All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.java.com.streamlayer.sports.hockey.HockeyPlayByPlayStatistics Maven / Gradle / Ivy

There is a newer version: 5.133.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: streamlayer/sports/hockey/hockey.proto

// Protobuf Java Version: 3.25.3
package com.streamlayer.sports.hockey;

/**
 * Protobuf type {@code streamlayer.sports.hockey.HockeyPlayByPlayStatistics}
 */
public  final class HockeyPlayByPlayStatistics extends
    com.google.protobuf.GeneratedMessageLite<
        HockeyPlayByPlayStatistics, HockeyPlayByPlayStatistics.Builder> implements
    // @@protoc_insertion_point(message_implements:streamlayer.sports.hockey.HockeyPlayByPlayStatistics)
    HockeyPlayByPlayStatisticsOrBuilder {
  private HockeyPlayByPlayStatistics() {
    playText_ = "";
  }
  private int bitField0_;
  public static final int TEAM_FIELD_NUMBER = 1;
  private com.streamlayer.sports.common.EventTeam team_;
  /**
   * .streamlayer.sports.EventTeam team = 1 [json_name = "team"];
   */
  @java.lang.Override
  public boolean hasTeam() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * .streamlayer.sports.EventTeam team = 1 [json_name = "team"];
   */
  @java.lang.Override
  public com.streamlayer.sports.common.EventTeam getTeam() {
    return team_ == null ? com.streamlayer.sports.common.EventTeam.getDefaultInstance() : team_;
  }
  /**
   * .streamlayer.sports.EventTeam team = 1 [json_name = "team"];
   */
  private void setTeam(com.streamlayer.sports.common.EventTeam value) {
    value.getClass();
  team_ = value;
    bitField0_ |= 0x00000001;
    }
  /**
   * .streamlayer.sports.EventTeam team = 1 [json_name = "team"];
   */
  @java.lang.SuppressWarnings({"ReferenceEquality"})
  private void mergeTeam(com.streamlayer.sports.common.EventTeam value) {
    value.getClass();
  if (team_ != null &&
        team_ != com.streamlayer.sports.common.EventTeam.getDefaultInstance()) {
      team_ =
        com.streamlayer.sports.common.EventTeam.newBuilder(team_).mergeFrom(value).buildPartial();
    } else {
      team_ = value;
    }
    bitField0_ |= 0x00000001;
  }
  /**
   * .streamlayer.sports.EventTeam team = 1 [json_name = "team"];
   */
  private void clearTeam() {  team_ = null;
    bitField0_ = (bitField0_ & ~0x00000001);
  }

  public static final int EVENT_TIME_FIELD_NUMBER = 2;
  private com.streamlayer.sports.common.EventTime eventTime_;
  /**
   * .streamlayer.sports.EventTime event_time = 2 [json_name = "eventTime"];
   */
  @java.lang.Override
  public boolean hasEventTime() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * .streamlayer.sports.EventTime event_time = 2 [json_name = "eventTime"];
   */
  @java.lang.Override
  public com.streamlayer.sports.common.EventTime getEventTime() {
    return eventTime_ == null ? com.streamlayer.sports.common.EventTime.getDefaultInstance() : eventTime_;
  }
  /**
   * .streamlayer.sports.EventTime event_time = 2 [json_name = "eventTime"];
   */
  private void setEventTime(com.streamlayer.sports.common.EventTime value) {
    value.getClass();
  eventTime_ = value;
    bitField0_ |= 0x00000002;
    }
  /**
   * .streamlayer.sports.EventTime event_time = 2 [json_name = "eventTime"];
   */
  @java.lang.SuppressWarnings({"ReferenceEquality"})
  private void mergeEventTime(com.streamlayer.sports.common.EventTime value) {
    value.getClass();
  if (eventTime_ != null &&
        eventTime_ != com.streamlayer.sports.common.EventTime.getDefaultInstance()) {
      eventTime_ =
        com.streamlayer.sports.common.EventTime.newBuilder(eventTime_).mergeFrom(value).buildPartial();
    } else {
      eventTime_ = value;
    }
    bitField0_ |= 0x00000002;
  }
  /**
   * .streamlayer.sports.EventTime event_time = 2 [json_name = "eventTime"];
   */
  private void clearEventTime() {  eventTime_ = null;
    bitField0_ = (bitField0_ & ~0x00000002);
  }

  public static final int SCORE_HOME_FIELD_NUMBER = 3;
  private int scoreHome_;
  /**
   * int32 score_home = 3 [json_name = "scoreHome"];
   * @return The scoreHome.
   */
  @java.lang.Override
  public int getScoreHome() {
    return scoreHome_;
  }
  /**
   * int32 score_home = 3 [json_name = "scoreHome"];
   * @param value The scoreHome to set.
   */
  private void setScoreHome(int value) {
    
    scoreHome_ = value;
  }
  /**
   * int32 score_home = 3 [json_name = "scoreHome"];
   */
  private void clearScoreHome() {

    scoreHome_ = 0;
  }

  public static final int SCORE_AWAY_FIELD_NUMBER = 4;
  private int scoreAway_;
  /**
   * int32 score_away = 4 [json_name = "scoreAway"];
   * @return The scoreAway.
   */
  @java.lang.Override
  public int getScoreAway() {
    return scoreAway_;
  }
  /**
   * int32 score_away = 4 [json_name = "scoreAway"];
   * @param value The scoreAway to set.
   */
  private void setScoreAway(int value) {
    
    scoreAway_ = value;
  }
  /**
   * int32 score_away = 4 [json_name = "scoreAway"];
   */
  private void clearScoreAway() {

    scoreAway_ = 0;
  }

  public static final int PLAY_TEXT_FIELD_NUMBER = 5;
  private java.lang.String playText_;
  /**
   * string play_text = 5 [json_name = "playText"];
   * @return The playText.
   */
  @java.lang.Override
  public java.lang.String getPlayText() {
    return playText_;
  }
  /**
   * string play_text = 5 [json_name = "playText"];
   * @return The bytes for playText.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPlayTextBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(playText_);
  }
  /**
   * string play_text = 5 [json_name = "playText"];
   * @param value The playText to set.
   */
  private void setPlayText(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    playText_ = value;
  }
  /**
   * string play_text = 5 [json_name = "playText"];
   */
  private void clearPlayText() {

    playText_ = getDefaultInstance().getPlayText();
  }
  /**
   * string play_text = 5 [json_name = "playText"];
   * @param value The bytes for playText to set.
   */
  private void setPlayTextBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    playText_ = value.toStringUtf8();

  }

  public static final int SCORING_FIELD_NUMBER = 6;
  private boolean scoring_;
  /**
   * 
   * flag to define event that changed the score
   * 
* * bool scoring = 6 [json_name = "scoring"]; * @return The scoring. */ @java.lang.Override public boolean getScoring() { return scoring_; } /** *
   * flag to define event that changed the score
   * 
* * bool scoring = 6 [json_name = "scoring"]; * @param value The scoring to set. */ private void setScoring(boolean value) { scoring_ = value; } /** *
   * flag to define event that changed the score
   * 
* * bool scoring = 6 [json_name = "scoring"]; */ private void clearScoring() { scoring_ = false; } public static final int PLAY_ID_FIELD_NUMBER = 7; private int playId_; /** *
   * sequence
   * 
* * int32 play_id = 7 [json_name = "playId"]; * @return The playId. */ @java.lang.Override public int getPlayId() { return playId_; } /** *
   * sequence
   * 
* * int32 play_id = 7 [json_name = "playId"]; * @param value The playId to set. */ private void setPlayId(int value) { playId_ = value; } /** *
   * sequence
   * 
* * int32 play_id = 7 [json_name = "playId"]; */ private void clearPlayId() { playId_ = 0; } public static com.streamlayer.sports.hockey.HockeyPlayByPlayStatistics parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.streamlayer.sports.hockey.HockeyPlayByPlayStatistics parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.streamlayer.sports.hockey.HockeyPlayByPlayStatistics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.streamlayer.sports.hockey.HockeyPlayByPlayStatistics parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.streamlayer.sports.hockey.HockeyPlayByPlayStatistics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.streamlayer.sports.hockey.HockeyPlayByPlayStatistics parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.streamlayer.sports.hockey.HockeyPlayByPlayStatistics parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.streamlayer.sports.hockey.HockeyPlayByPlayStatistics parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static com.streamlayer.sports.hockey.HockeyPlayByPlayStatistics parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.streamlayer.sports.hockey.HockeyPlayByPlayStatistics parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static com.streamlayer.sports.hockey.HockeyPlayByPlayStatistics parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.streamlayer.sports.hockey.HockeyPlayByPlayStatistics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static Builder newBuilder() { return (Builder) DEFAULT_INSTANCE.createBuilder(); } public static Builder newBuilder(com.streamlayer.sports.hockey.HockeyPlayByPlayStatistics prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** * Protobuf type {@code streamlayer.sports.hockey.HockeyPlayByPlayStatistics} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.streamlayer.sports.hockey.HockeyPlayByPlayStatistics, Builder> implements // @@protoc_insertion_point(builder_implements:streamlayer.sports.hockey.HockeyPlayByPlayStatistics) com.streamlayer.sports.hockey.HockeyPlayByPlayStatisticsOrBuilder { // Construct using com.streamlayer.sports.hockey.HockeyPlayByPlayStatistics.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * .streamlayer.sports.EventTeam team = 1 [json_name = "team"]; */ @java.lang.Override public boolean hasTeam() { return instance.hasTeam(); } /** * .streamlayer.sports.EventTeam team = 1 [json_name = "team"]; */ @java.lang.Override public com.streamlayer.sports.common.EventTeam getTeam() { return instance.getTeam(); } /** * .streamlayer.sports.EventTeam team = 1 [json_name = "team"]; */ public Builder setTeam(com.streamlayer.sports.common.EventTeam value) { copyOnWrite(); instance.setTeam(value); return this; } /** * .streamlayer.sports.EventTeam team = 1 [json_name = "team"]; */ public Builder setTeam( com.streamlayer.sports.common.EventTeam.Builder builderForValue) { copyOnWrite(); instance.setTeam(builderForValue.build()); return this; } /** * .streamlayer.sports.EventTeam team = 1 [json_name = "team"]; */ public Builder mergeTeam(com.streamlayer.sports.common.EventTeam value) { copyOnWrite(); instance.mergeTeam(value); return this; } /** * .streamlayer.sports.EventTeam team = 1 [json_name = "team"]; */ public Builder clearTeam() { copyOnWrite(); instance.clearTeam(); return this; } /** * .streamlayer.sports.EventTime event_time = 2 [json_name = "eventTime"]; */ @java.lang.Override public boolean hasEventTime() { return instance.hasEventTime(); } /** * .streamlayer.sports.EventTime event_time = 2 [json_name = "eventTime"]; */ @java.lang.Override public com.streamlayer.sports.common.EventTime getEventTime() { return instance.getEventTime(); } /** * .streamlayer.sports.EventTime event_time = 2 [json_name = "eventTime"]; */ public Builder setEventTime(com.streamlayer.sports.common.EventTime value) { copyOnWrite(); instance.setEventTime(value); return this; } /** * .streamlayer.sports.EventTime event_time = 2 [json_name = "eventTime"]; */ public Builder setEventTime( com.streamlayer.sports.common.EventTime.Builder builderForValue) { copyOnWrite(); instance.setEventTime(builderForValue.build()); return this; } /** * .streamlayer.sports.EventTime event_time = 2 [json_name = "eventTime"]; */ public Builder mergeEventTime(com.streamlayer.sports.common.EventTime value) { copyOnWrite(); instance.mergeEventTime(value); return this; } /** * .streamlayer.sports.EventTime event_time = 2 [json_name = "eventTime"]; */ public Builder clearEventTime() { copyOnWrite(); instance.clearEventTime(); return this; } /** * int32 score_home = 3 [json_name = "scoreHome"]; * @return The scoreHome. */ @java.lang.Override public int getScoreHome() { return instance.getScoreHome(); } /** * int32 score_home = 3 [json_name = "scoreHome"]; * @param value The scoreHome to set. * @return This builder for chaining. */ public Builder setScoreHome(int value) { copyOnWrite(); instance.setScoreHome(value); return this; } /** * int32 score_home = 3 [json_name = "scoreHome"]; * @return This builder for chaining. */ public Builder clearScoreHome() { copyOnWrite(); instance.clearScoreHome(); return this; } /** * int32 score_away = 4 [json_name = "scoreAway"]; * @return The scoreAway. */ @java.lang.Override public int getScoreAway() { return instance.getScoreAway(); } /** * int32 score_away = 4 [json_name = "scoreAway"]; * @param value The scoreAway to set. * @return This builder for chaining. */ public Builder setScoreAway(int value) { copyOnWrite(); instance.setScoreAway(value); return this; } /** * int32 score_away = 4 [json_name = "scoreAway"]; * @return This builder for chaining. */ public Builder clearScoreAway() { copyOnWrite(); instance.clearScoreAway(); return this; } /** * string play_text = 5 [json_name = "playText"]; * @return The playText. */ @java.lang.Override public java.lang.String getPlayText() { return instance.getPlayText(); } /** * string play_text = 5 [json_name = "playText"]; * @return The bytes for playText. */ @java.lang.Override public com.google.protobuf.ByteString getPlayTextBytes() { return instance.getPlayTextBytes(); } /** * string play_text = 5 [json_name = "playText"]; * @param value The playText to set. * @return This builder for chaining. */ public Builder setPlayText( java.lang.String value) { copyOnWrite(); instance.setPlayText(value); return this; } /** * string play_text = 5 [json_name = "playText"]; * @return This builder for chaining. */ public Builder clearPlayText() { copyOnWrite(); instance.clearPlayText(); return this; } /** * string play_text = 5 [json_name = "playText"]; * @param value The bytes for playText to set. * @return This builder for chaining. */ public Builder setPlayTextBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setPlayTextBytes(value); return this; } /** *
     * flag to define event that changed the score
     * 
* * bool scoring = 6 [json_name = "scoring"]; * @return The scoring. */ @java.lang.Override public boolean getScoring() { return instance.getScoring(); } /** *
     * flag to define event that changed the score
     * 
* * bool scoring = 6 [json_name = "scoring"]; * @param value The scoring to set. * @return This builder for chaining. */ public Builder setScoring(boolean value) { copyOnWrite(); instance.setScoring(value); return this; } /** *
     * flag to define event that changed the score
     * 
* * bool scoring = 6 [json_name = "scoring"]; * @return This builder for chaining. */ public Builder clearScoring() { copyOnWrite(); instance.clearScoring(); return this; } /** *
     * sequence
     * 
* * int32 play_id = 7 [json_name = "playId"]; * @return The playId. */ @java.lang.Override public int getPlayId() { return instance.getPlayId(); } /** *
     * sequence
     * 
* * int32 play_id = 7 [json_name = "playId"]; * @param value The playId to set. * @return This builder for chaining. */ public Builder setPlayId(int value) { copyOnWrite(); instance.setPlayId(value); return this; } /** *
     * sequence
     * 
* * int32 play_id = 7 [json_name = "playId"]; * @return This builder for chaining. */ public Builder clearPlayId() { copyOnWrite(); instance.clearPlayId(); return this; } // @@protoc_insertion_point(builder_scope:streamlayer.sports.hockey.HockeyPlayByPlayStatistics) } @java.lang.Override @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) protected final java.lang.Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new com.streamlayer.sports.hockey.HockeyPlayByPlayStatistics(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "bitField0_", "team_", "eventTime_", "scoreHome_", "scoreAway_", "playText_", "scoring_", "playId_", }; java.lang.String info = "\u0000\u0007\u0000\u0001\u0001\u0007\u0007\u0000\u0000\u0000\u0001\u1009\u0000\u0002" + "\u1009\u0001\u0003\u0004\u0004\u0004\u0005\u0208\u0006\u0007\u0007\u0004"; return newMessageInfo(DEFAULT_INSTANCE, info, objects); } // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } case GET_PARSER: { com.google.protobuf.Parser parser = PARSER; if (parser == null) { synchronized (com.streamlayer.sports.hockey.HockeyPlayByPlayStatistics.class) { parser = PARSER; if (parser == null) { parser = new DefaultInstanceBasedParser( DEFAULT_INSTANCE); PARSER = parser; } } } return parser; } case GET_MEMOIZED_IS_INITIALIZED: { return (byte) 1; } case SET_MEMOIZED_IS_INITIALIZED: { return null; } } throw new UnsupportedOperationException(); } // @@protoc_insertion_point(class_scope:streamlayer.sports.hockey.HockeyPlayByPlayStatistics) private static final com.streamlayer.sports.hockey.HockeyPlayByPlayStatistics DEFAULT_INSTANCE; static { HockeyPlayByPlayStatistics defaultInstance = new HockeyPlayByPlayStatistics(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( HockeyPlayByPlayStatistics.class, defaultInstance); } public static com.streamlayer.sports.hockey.HockeyPlayByPlayStatistics getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy