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

main.java.com.streamlayer.sports.common.EventData 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/sports_common.proto

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

/**
 * Protobuf type {@code streamlayer.sports.EventData}
 */
public  final class EventData extends
    com.google.protobuf.GeneratedMessageLite<
        EventData, EventData.Builder> implements
    // @@protoc_insertion_point(message_implements:streamlayer.sports.EventData)
    EventDataOrBuilder {
  private EventData() {
    sport_ = "";
    league_ = "";
    scheduled_ = "";
    startTime_ = "";
    endTime_ = "";
    schedule_ = emptyProtobufList();
    providerId_ = "";
  }
  private int bitField0_;
  public static final int ID_FIELD_NUMBER = 1;
  private long id_;
  /**
   * uint64 id = 1 [json_name = "id"];
   * @return The id.
   */
  @java.lang.Override
  public long getId() {
    return id_;
  }
  /**
   * uint64 id = 1 [json_name = "id"];
   * @param value The id to set.
   */
  private void setId(long value) {
    
    id_ = value;
  }
  /**
   * uint64 id = 1 [json_name = "id"];
   */
  private void clearId() {

    id_ = 0L;
  }

  public static final int SPORT_FIELD_NUMBER = 2;
  private java.lang.String sport_;
  /**
   * string sport = 2 [json_name = "sport"];
   * @return The sport.
   */
  @java.lang.Override
  public java.lang.String getSport() {
    return sport_;
  }
  /**
   * string sport = 2 [json_name = "sport"];
   * @return The bytes for sport.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getSportBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(sport_);
  }
  /**
   * string sport = 2 [json_name = "sport"];
   * @param value The sport to set.
   */
  private void setSport(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    sport_ = value;
  }
  /**
   * string sport = 2 [json_name = "sport"];
   */
  private void clearSport() {

    sport_ = getDefaultInstance().getSport();
  }
  /**
   * string sport = 2 [json_name = "sport"];
   * @param value The bytes for sport to set.
   */
  private void setSportBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    sport_ = value.toStringUtf8();

  }

  public static final int LEAGUE_FIELD_NUMBER = 3;
  private java.lang.String league_;
  /**
   * string league = 3 [json_name = "league"];
   * @return The league.
   */
  @java.lang.Override
  public java.lang.String getLeague() {
    return league_;
  }
  /**
   * string league = 3 [json_name = "league"];
   * @return The bytes for league.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getLeagueBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(league_);
  }
  /**
   * string league = 3 [json_name = "league"];
   * @param value The league to set.
   */
  private void setLeague(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    league_ = value;
  }
  /**
   * string league = 3 [json_name = "league"];
   */
  private void clearLeague() {

    league_ = getDefaultInstance().getLeague();
  }
  /**
   * string league = 3 [json_name = "league"];
   * @param value The bytes for league to set.
   */
  private void setLeagueBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    league_ = value.toStringUtf8();

  }

  public static final int SCHEDULED_FIELD_NUMBER = 4;
  private java.lang.String scheduled_;
  /**
   * string scheduled = 4 [json_name = "scheduled"];
   * @return The scheduled.
   */
  @java.lang.Override
  public java.lang.String getScheduled() {
    return scheduled_;
  }
  /**
   * string scheduled = 4 [json_name = "scheduled"];
   * @return The bytes for scheduled.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getScheduledBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(scheduled_);
  }
  /**
   * string scheduled = 4 [json_name = "scheduled"];
   * @param value The scheduled to set.
   */
  private void setScheduled(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    scheduled_ = value;
  }
  /**
   * string scheduled = 4 [json_name = "scheduled"];
   */
  private void clearScheduled() {

    scheduled_ = getDefaultInstance().getScheduled();
  }
  /**
   * string scheduled = 4 [json_name = "scheduled"];
   * @param value The bytes for scheduled to set.
   */
  private void setScheduledBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    scheduled_ = value.toStringUtf8();

  }

  public static final int HOME_FIELD_NUMBER = 5;
  private com.streamlayer.sports.common.EventTeam home_;
  /**
   * .streamlayer.sports.EventTeam home = 5 [json_name = "home"];
   */
  @java.lang.Override
  public boolean hasHome() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * .streamlayer.sports.EventTeam home = 5 [json_name = "home"];
   */
  @java.lang.Override
  public com.streamlayer.sports.common.EventTeam getHome() {
    return home_ == null ? com.streamlayer.sports.common.EventTeam.getDefaultInstance() : home_;
  }
  /**
   * .streamlayer.sports.EventTeam home = 5 [json_name = "home"];
   */
  private void setHome(com.streamlayer.sports.common.EventTeam value) {
    value.getClass();
  home_ = value;
    bitField0_ |= 0x00000001;
    }
  /**
   * .streamlayer.sports.EventTeam home = 5 [json_name = "home"];
   */
  @java.lang.SuppressWarnings({"ReferenceEquality"})
  private void mergeHome(com.streamlayer.sports.common.EventTeam value) {
    value.getClass();
  if (home_ != null &&
        home_ != com.streamlayer.sports.common.EventTeam.getDefaultInstance()) {
      home_ =
        com.streamlayer.sports.common.EventTeam.newBuilder(home_).mergeFrom(value).buildPartial();
    } else {
      home_ = value;
    }
    bitField0_ |= 0x00000001;
  }
  /**
   * .streamlayer.sports.EventTeam home = 5 [json_name = "home"];
   */
  private void clearHome() {  home_ = null;
    bitField0_ = (bitField0_ & ~0x00000001);
  }

  public static final int AWAY_FIELD_NUMBER = 6;
  private com.streamlayer.sports.common.EventTeam away_;
  /**
   * .streamlayer.sports.EventTeam away = 6 [json_name = "away"];
   */
  @java.lang.Override
  public boolean hasAway() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * .streamlayer.sports.EventTeam away = 6 [json_name = "away"];
   */
  @java.lang.Override
  public com.streamlayer.sports.common.EventTeam getAway() {
    return away_ == null ? com.streamlayer.sports.common.EventTeam.getDefaultInstance() : away_;
  }
  /**
   * .streamlayer.sports.EventTeam away = 6 [json_name = "away"];
   */
  private void setAway(com.streamlayer.sports.common.EventTeam value) {
    value.getClass();
  away_ = value;
    bitField0_ |= 0x00000002;
    }
  /**
   * .streamlayer.sports.EventTeam away = 6 [json_name = "away"];
   */
  @java.lang.SuppressWarnings({"ReferenceEquality"})
  private void mergeAway(com.streamlayer.sports.common.EventTeam value) {
    value.getClass();
  if (away_ != null &&
        away_ != com.streamlayer.sports.common.EventTeam.getDefaultInstance()) {
      away_ =
        com.streamlayer.sports.common.EventTeam.newBuilder(away_).mergeFrom(value).buildPartial();
    } else {
      away_ = value;
    }
    bitField0_ |= 0x00000002;
  }
  /**
   * .streamlayer.sports.EventTeam away = 6 [json_name = "away"];
   */
  private void clearAway() {  away_ = null;
    bitField0_ = (bitField0_ & ~0x00000002);
  }

  public static final int STATUS_FIELD_NUMBER = 7;
  private int status_;
  /**
   * .streamlayer.sports.EventStatus status = 7 [json_name = "status"];
   * @return The enum numeric value on the wire for status.
   */
  @java.lang.Override
  public int getStatusValue() {
    return status_;
  }
  /**
   * .streamlayer.sports.EventStatus status = 7 [json_name = "status"];
   * @return The status.
   */
  @java.lang.Override
  public com.streamlayer.sports.common.EventStatus getStatus() {
    com.streamlayer.sports.common.EventStatus result = com.streamlayer.sports.common.EventStatus.forNumber(status_);
    return result == null ? com.streamlayer.sports.common.EventStatus.UNRECOGNIZED : result;
  }
  /**
   * .streamlayer.sports.EventStatus status = 7 [json_name = "status"];
   * @param value The enum numeric value on the wire for status to set.
   */
  private void setStatusValue(int value) {
      status_ = value;
  }
  /**
   * .streamlayer.sports.EventStatus status = 7 [json_name = "status"];
   * @param value The status to set.
   */
  private void setStatus(com.streamlayer.sports.common.EventStatus value) {
    status_ = value.getNumber();

  }
  /**
   * .streamlayer.sports.EventStatus status = 7 [json_name = "status"];
   */
  private void clearStatus() {

    status_ = 0;
  }

  public static final int CUSTOM_FIELDS_FIELD_NUMBER = 8;
  private com.streamlayer.sports.common.EventCustomFields customFields_;
  /**
   * .streamlayer.sports.EventCustomFields custom_fields = 8 [json_name = "customFields"];
   */
  @java.lang.Override
  public boolean hasCustomFields() {
    return ((bitField0_ & 0x00000004) != 0);
  }
  /**
   * .streamlayer.sports.EventCustomFields custom_fields = 8 [json_name = "customFields"];
   */
  @java.lang.Override
  public com.streamlayer.sports.common.EventCustomFields getCustomFields() {
    return customFields_ == null ? com.streamlayer.sports.common.EventCustomFields.getDefaultInstance() : customFields_;
  }
  /**
   * .streamlayer.sports.EventCustomFields custom_fields = 8 [json_name = "customFields"];
   */
  private void setCustomFields(com.streamlayer.sports.common.EventCustomFields value) {
    value.getClass();
  customFields_ = value;
    bitField0_ |= 0x00000004;
    }
  /**
   * .streamlayer.sports.EventCustomFields custom_fields = 8 [json_name = "customFields"];
   */
  @java.lang.SuppressWarnings({"ReferenceEquality"})
  private void mergeCustomFields(com.streamlayer.sports.common.EventCustomFields value) {
    value.getClass();
  if (customFields_ != null &&
        customFields_ != com.streamlayer.sports.common.EventCustomFields.getDefaultInstance()) {
      customFields_ =
        com.streamlayer.sports.common.EventCustomFields.newBuilder(customFields_).mergeFrom(value).buildPartial();
    } else {
      customFields_ = value;
    }
    bitField0_ |= 0x00000004;
  }
  /**
   * .streamlayer.sports.EventCustomFields custom_fields = 8 [json_name = "customFields"];
   */
  private void clearCustomFields() {  customFields_ = null;
    bitField0_ = (bitField0_ & ~0x00000004);
  }

  public static final int START_TIME_FIELD_NUMBER = 9;
  private java.lang.String startTime_;
  /**
   * string start_time = 9 [json_name = "startTime"];
   * @return The startTime.
   */
  @java.lang.Override
  public java.lang.String getStartTime() {
    return startTime_;
  }
  /**
   * string start_time = 9 [json_name = "startTime"];
   * @return The bytes for startTime.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getStartTimeBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(startTime_);
  }
  /**
   * string start_time = 9 [json_name = "startTime"];
   * @param value The startTime to set.
   */
  private void setStartTime(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    startTime_ = value;
  }
  /**
   * string start_time = 9 [json_name = "startTime"];
   */
  private void clearStartTime() {

    startTime_ = getDefaultInstance().getStartTime();
  }
  /**
   * string start_time = 9 [json_name = "startTime"];
   * @param value The bytes for startTime to set.
   */
  private void setStartTimeBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    startTime_ = value.toStringUtf8();

  }

  public static final int END_TIME_FIELD_NUMBER = 10;
  private java.lang.String endTime_;
  /**
   * string end_time = 10 [json_name = "endTime"];
   * @return The endTime.
   */
  @java.lang.Override
  public java.lang.String getEndTime() {
    return endTime_;
  }
  /**
   * string end_time = 10 [json_name = "endTime"];
   * @return The bytes for endTime.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getEndTimeBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(endTime_);
  }
  /**
   * string end_time = 10 [json_name = "endTime"];
   * @param value The endTime to set.
   */
  private void setEndTime(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    endTime_ = value;
  }
  /**
   * string end_time = 10 [json_name = "endTime"];
   */
  private void clearEndTime() {

    endTime_ = getDefaultInstance().getEndTime();
  }
  /**
   * string end_time = 10 [json_name = "endTime"];
   * @param value The bytes for endTime to set.
   */
  private void setEndTimeBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    endTime_ = value.toStringUtf8();

  }

  public static final int VENUE_FIELD_NUMBER = 11;
  private com.streamlayer.sports.common.Venue venue_;
  /**
   * .streamlayer.sports.Venue venue = 11 [json_name = "venue"];
   */
  @java.lang.Override
  public boolean hasVenue() {
    return ((bitField0_ & 0x00000008) != 0);
  }
  /**
   * .streamlayer.sports.Venue venue = 11 [json_name = "venue"];
   */
  @java.lang.Override
  public com.streamlayer.sports.common.Venue getVenue() {
    return venue_ == null ? com.streamlayer.sports.common.Venue.getDefaultInstance() : venue_;
  }
  /**
   * .streamlayer.sports.Venue venue = 11 [json_name = "venue"];
   */
  private void setVenue(com.streamlayer.sports.common.Venue value) {
    value.getClass();
  venue_ = value;
    bitField0_ |= 0x00000008;
    }
  /**
   * .streamlayer.sports.Venue venue = 11 [json_name = "venue"];
   */
  @java.lang.SuppressWarnings({"ReferenceEquality"})
  private void mergeVenue(com.streamlayer.sports.common.Venue value) {
    value.getClass();
  if (venue_ != null &&
        venue_ != com.streamlayer.sports.common.Venue.getDefaultInstance()) {
      venue_ =
        com.streamlayer.sports.common.Venue.newBuilder(venue_).mergeFrom(value).buildPartial();
    } else {
      venue_ = value;
    }
    bitField0_ |= 0x00000008;
  }
  /**
   * .streamlayer.sports.Venue venue = 11 [json_name = "venue"];
   */
  private void clearVenue() {  venue_ = null;
    bitField0_ = (bitField0_ & ~0x00000008);
  }

  public static final int SCHEDULE_FIELD_NUMBER = 12;
  private com.google.protobuf.Internal.ProtobufList schedule_;
  /**
   * repeated .streamlayer.sports.EventProgram schedule = 12 [json_name = "schedule"];
   */
  @java.lang.Override
  public java.util.List getScheduleList() {
    return schedule_;
  }
  /**
   * repeated .streamlayer.sports.EventProgram schedule = 12 [json_name = "schedule"];
   */
  public java.util.List 
      getScheduleOrBuilderList() {
    return schedule_;
  }
  /**
   * repeated .streamlayer.sports.EventProgram schedule = 12 [json_name = "schedule"];
   */
  @java.lang.Override
  public int getScheduleCount() {
    return schedule_.size();
  }
  /**
   * repeated .streamlayer.sports.EventProgram schedule = 12 [json_name = "schedule"];
   */
  @java.lang.Override
  public com.streamlayer.sports.common.EventProgram getSchedule(int index) {
    return schedule_.get(index);
  }
  /**
   * repeated .streamlayer.sports.EventProgram schedule = 12 [json_name = "schedule"];
   */
  public com.streamlayer.sports.common.EventProgramOrBuilder getScheduleOrBuilder(
      int index) {
    return schedule_.get(index);
  }
  private void ensureScheduleIsMutable() {
    com.google.protobuf.Internal.ProtobufList tmp = schedule_;
    if (!tmp.isModifiable()) {
      schedule_ =
          com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
     }
  }

  /**
   * repeated .streamlayer.sports.EventProgram schedule = 12 [json_name = "schedule"];
   */
  private void setSchedule(
      int index, com.streamlayer.sports.common.EventProgram value) {
    value.getClass();
  ensureScheduleIsMutable();
    schedule_.set(index, value);
  }
  /**
   * repeated .streamlayer.sports.EventProgram schedule = 12 [json_name = "schedule"];
   */
  private void addSchedule(com.streamlayer.sports.common.EventProgram value) {
    value.getClass();
  ensureScheduleIsMutable();
    schedule_.add(value);
  }
  /**
   * repeated .streamlayer.sports.EventProgram schedule = 12 [json_name = "schedule"];
   */
  private void addSchedule(
      int index, com.streamlayer.sports.common.EventProgram value) {
    value.getClass();
  ensureScheduleIsMutable();
    schedule_.add(index, value);
  }
  /**
   * repeated .streamlayer.sports.EventProgram schedule = 12 [json_name = "schedule"];
   */
  private void addAllSchedule(
      java.lang.Iterable values) {
    ensureScheduleIsMutable();
    com.google.protobuf.AbstractMessageLite.addAll(
        values, schedule_);
  }
  /**
   * repeated .streamlayer.sports.EventProgram schedule = 12 [json_name = "schedule"];
   */
  private void clearSchedule() {
    schedule_ = emptyProtobufList();
  }
  /**
   * repeated .streamlayer.sports.EventProgram schedule = 12 [json_name = "schedule"];
   */
  private void removeSchedule(int index) {
    ensureScheduleIsMutable();
    schedule_.remove(index);
  }

  public static final int ENDLESS_FIELD_NUMBER = 13;
  private int endless_;
  /**
   * .streamlayer.sports.EventEndless endless = 13 [json_name = "endless"];
   * @return The enum numeric value on the wire for endless.
   */
  @java.lang.Override
  public int getEndlessValue() {
    return endless_;
  }
  /**
   * .streamlayer.sports.EventEndless endless = 13 [json_name = "endless"];
   * @return The endless.
   */
  @java.lang.Override
  public com.streamlayer.sports.common.EventEndless getEndless() {
    com.streamlayer.sports.common.EventEndless result = com.streamlayer.sports.common.EventEndless.forNumber(endless_);
    return result == null ? com.streamlayer.sports.common.EventEndless.UNRECOGNIZED : result;
  }
  /**
   * .streamlayer.sports.EventEndless endless = 13 [json_name = "endless"];
   * @param value The enum numeric value on the wire for endless to set.
   */
  private void setEndlessValue(int value) {
      endless_ = value;
  }
  /**
   * .streamlayer.sports.EventEndless endless = 13 [json_name = "endless"];
   * @param value The endless to set.
   */
  private void setEndless(com.streamlayer.sports.common.EventEndless value) {
    endless_ = value.getNumber();

  }
  /**
   * .streamlayer.sports.EventEndless endless = 13 [json_name = "endless"];
   */
  private void clearEndless() {

    endless_ = 0;
  }

  public static final int PROVIDER_ID_FIELD_NUMBER = 14;
  private java.lang.String providerId_;
  /**
   * string provider_id = 14 [json_name = "providerId"];
   * @return The providerId.
   */
  @java.lang.Override
  public java.lang.String getProviderId() {
    return providerId_;
  }
  /**
   * string provider_id = 14 [json_name = "providerId"];
   * @return The bytes for providerId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getProviderIdBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(providerId_);
  }
  /**
   * string provider_id = 14 [json_name = "providerId"];
   * @param value The providerId to set.
   */
  private void setProviderId(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    providerId_ = value;
  }
  /**
   * string provider_id = 14 [json_name = "providerId"];
   */
  private void clearProviderId() {

    providerId_ = getDefaultInstance().getProviderId();
  }
  /**
   * string provider_id = 14 [json_name = "providerId"];
   * @param value The bytes for providerId to set.
   */
  private void setProviderIdBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    providerId_ = value.toStringUtf8();

  }

  public static com.streamlayer.sports.common.EventData parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.streamlayer.sports.common.EventData 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.common.EventData 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.common.EventData 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.common.EventData parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.streamlayer.sports.common.EventData 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.common.EventData parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input);
  }
  public static com.streamlayer.sports.common.EventData 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.common.EventData parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return parseDelimitedFrom(DEFAULT_INSTANCE, input);
  }

  public static com.streamlayer.sports.common.EventData 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.common.EventData parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input);
  }
  public static com.streamlayer.sports.common.EventData 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.common.EventData prototype) {
    return DEFAULT_INSTANCE.createBuilder(prototype);
  }

  /**
   * Protobuf type {@code streamlayer.sports.EventData}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageLite.Builder<
        com.streamlayer.sports.common.EventData, Builder> implements
      // @@protoc_insertion_point(builder_implements:streamlayer.sports.EventData)
      com.streamlayer.sports.common.EventDataOrBuilder {
    // Construct using com.streamlayer.sports.common.EventData.newBuilder()
    private Builder() {
      super(DEFAULT_INSTANCE);
    }


    /**
     * uint64 id = 1 [json_name = "id"];
     * @return The id.
     */
    @java.lang.Override
    public long getId() {
      return instance.getId();
    }
    /**
     * uint64 id = 1 [json_name = "id"];
     * @param value The id to set.
     * @return This builder for chaining.
     */
    public Builder setId(long value) {
      copyOnWrite();
      instance.setId(value);
      return this;
    }
    /**
     * uint64 id = 1 [json_name = "id"];
     * @return This builder for chaining.
     */
    public Builder clearId() {
      copyOnWrite();
      instance.clearId();
      return this;
    }

    /**
     * string sport = 2 [json_name = "sport"];
     * @return The sport.
     */
    @java.lang.Override
    public java.lang.String getSport() {
      return instance.getSport();
    }
    /**
     * string sport = 2 [json_name = "sport"];
     * @return The bytes for sport.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getSportBytes() {
      return instance.getSportBytes();
    }
    /**
     * string sport = 2 [json_name = "sport"];
     * @param value The sport to set.
     * @return This builder for chaining.
     */
    public Builder setSport(
        java.lang.String value) {
      copyOnWrite();
      instance.setSport(value);
      return this;
    }
    /**
     * string sport = 2 [json_name = "sport"];
     * @return This builder for chaining.
     */
    public Builder clearSport() {
      copyOnWrite();
      instance.clearSport();
      return this;
    }
    /**
     * string sport = 2 [json_name = "sport"];
     * @param value The bytes for sport to set.
     * @return This builder for chaining.
     */
    public Builder setSportBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setSportBytes(value);
      return this;
    }

    /**
     * string league = 3 [json_name = "league"];
     * @return The league.
     */
    @java.lang.Override
    public java.lang.String getLeague() {
      return instance.getLeague();
    }
    /**
     * string league = 3 [json_name = "league"];
     * @return The bytes for league.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getLeagueBytes() {
      return instance.getLeagueBytes();
    }
    /**
     * string league = 3 [json_name = "league"];
     * @param value The league to set.
     * @return This builder for chaining.
     */
    public Builder setLeague(
        java.lang.String value) {
      copyOnWrite();
      instance.setLeague(value);
      return this;
    }
    /**
     * string league = 3 [json_name = "league"];
     * @return This builder for chaining.
     */
    public Builder clearLeague() {
      copyOnWrite();
      instance.clearLeague();
      return this;
    }
    /**
     * string league = 3 [json_name = "league"];
     * @param value The bytes for league to set.
     * @return This builder for chaining.
     */
    public Builder setLeagueBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setLeagueBytes(value);
      return this;
    }

    /**
     * string scheduled = 4 [json_name = "scheduled"];
     * @return The scheduled.
     */
    @java.lang.Override
    public java.lang.String getScheduled() {
      return instance.getScheduled();
    }
    /**
     * string scheduled = 4 [json_name = "scheduled"];
     * @return The bytes for scheduled.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getScheduledBytes() {
      return instance.getScheduledBytes();
    }
    /**
     * string scheduled = 4 [json_name = "scheduled"];
     * @param value The scheduled to set.
     * @return This builder for chaining.
     */
    public Builder setScheduled(
        java.lang.String value) {
      copyOnWrite();
      instance.setScheduled(value);
      return this;
    }
    /**
     * string scheduled = 4 [json_name = "scheduled"];
     * @return This builder for chaining.
     */
    public Builder clearScheduled() {
      copyOnWrite();
      instance.clearScheduled();
      return this;
    }
    /**
     * string scheduled = 4 [json_name = "scheduled"];
     * @param value The bytes for scheduled to set.
     * @return This builder for chaining.
     */
    public Builder setScheduledBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setScheduledBytes(value);
      return this;
    }

    /**
     * .streamlayer.sports.EventTeam home = 5 [json_name = "home"];
     */
    @java.lang.Override
    public boolean hasHome() {
      return instance.hasHome();
    }
    /**
     * .streamlayer.sports.EventTeam home = 5 [json_name = "home"];
     */
    @java.lang.Override
    public com.streamlayer.sports.common.EventTeam getHome() {
      return instance.getHome();
    }
    /**
     * .streamlayer.sports.EventTeam home = 5 [json_name = "home"];
     */
    public Builder setHome(com.streamlayer.sports.common.EventTeam value) {
      copyOnWrite();
      instance.setHome(value);
      return this;
      }
    /**
     * .streamlayer.sports.EventTeam home = 5 [json_name = "home"];
     */
    public Builder setHome(
        com.streamlayer.sports.common.EventTeam.Builder builderForValue) {
      copyOnWrite();
      instance.setHome(builderForValue.build());
      return this;
    }
    /**
     * .streamlayer.sports.EventTeam home = 5 [json_name = "home"];
     */
    public Builder mergeHome(com.streamlayer.sports.common.EventTeam value) {
      copyOnWrite();
      instance.mergeHome(value);
      return this;
    }
    /**
     * .streamlayer.sports.EventTeam home = 5 [json_name = "home"];
     */
    public Builder clearHome() {  copyOnWrite();
      instance.clearHome();
      return this;
    }

    /**
     * .streamlayer.sports.EventTeam away = 6 [json_name = "away"];
     */
    @java.lang.Override
    public boolean hasAway() {
      return instance.hasAway();
    }
    /**
     * .streamlayer.sports.EventTeam away = 6 [json_name = "away"];
     */
    @java.lang.Override
    public com.streamlayer.sports.common.EventTeam getAway() {
      return instance.getAway();
    }
    /**
     * .streamlayer.sports.EventTeam away = 6 [json_name = "away"];
     */
    public Builder setAway(com.streamlayer.sports.common.EventTeam value) {
      copyOnWrite();
      instance.setAway(value);
      return this;
      }
    /**
     * .streamlayer.sports.EventTeam away = 6 [json_name = "away"];
     */
    public Builder setAway(
        com.streamlayer.sports.common.EventTeam.Builder builderForValue) {
      copyOnWrite();
      instance.setAway(builderForValue.build());
      return this;
    }
    /**
     * .streamlayer.sports.EventTeam away = 6 [json_name = "away"];
     */
    public Builder mergeAway(com.streamlayer.sports.common.EventTeam value) {
      copyOnWrite();
      instance.mergeAway(value);
      return this;
    }
    /**
     * .streamlayer.sports.EventTeam away = 6 [json_name = "away"];
     */
    public Builder clearAway() {  copyOnWrite();
      instance.clearAway();
      return this;
    }

    /**
     * .streamlayer.sports.EventStatus status = 7 [json_name = "status"];
     * @return The enum numeric value on the wire for status.
     */
    @java.lang.Override
    public int getStatusValue() {
      return instance.getStatusValue();
    }
    /**
     * .streamlayer.sports.EventStatus status = 7 [json_name = "status"];
     * @param value The status to set.
     * @return This builder for chaining.
     */
    public Builder setStatusValue(int value) {
      copyOnWrite();
      instance.setStatusValue(value);
      return this;
    }
    /**
     * .streamlayer.sports.EventStatus status = 7 [json_name = "status"];
     * @return The status.
     */
    @java.lang.Override
    public com.streamlayer.sports.common.EventStatus getStatus() {
      return instance.getStatus();
    }
    /**
     * .streamlayer.sports.EventStatus status = 7 [json_name = "status"];
     * @param value The enum numeric value on the wire for status to set.
     * @return This builder for chaining.
     */
    public Builder setStatus(com.streamlayer.sports.common.EventStatus value) {
      copyOnWrite();
      instance.setStatus(value);
      return this;
    }
    /**
     * .streamlayer.sports.EventStatus status = 7 [json_name = "status"];
     * @return This builder for chaining.
     */
    public Builder clearStatus() {
      copyOnWrite();
      instance.clearStatus();
      return this;
    }

    /**
     * .streamlayer.sports.EventCustomFields custom_fields = 8 [json_name = "customFields"];
     */
    @java.lang.Override
    public boolean hasCustomFields() {
      return instance.hasCustomFields();
    }
    /**
     * .streamlayer.sports.EventCustomFields custom_fields = 8 [json_name = "customFields"];
     */
    @java.lang.Override
    public com.streamlayer.sports.common.EventCustomFields getCustomFields() {
      return instance.getCustomFields();
    }
    /**
     * .streamlayer.sports.EventCustomFields custom_fields = 8 [json_name = "customFields"];
     */
    public Builder setCustomFields(com.streamlayer.sports.common.EventCustomFields value) {
      copyOnWrite();
      instance.setCustomFields(value);
      return this;
      }
    /**
     * .streamlayer.sports.EventCustomFields custom_fields = 8 [json_name = "customFields"];
     */
    public Builder setCustomFields(
        com.streamlayer.sports.common.EventCustomFields.Builder builderForValue) {
      copyOnWrite();
      instance.setCustomFields(builderForValue.build());
      return this;
    }
    /**
     * .streamlayer.sports.EventCustomFields custom_fields = 8 [json_name = "customFields"];
     */
    public Builder mergeCustomFields(com.streamlayer.sports.common.EventCustomFields value) {
      copyOnWrite();
      instance.mergeCustomFields(value);
      return this;
    }
    /**
     * .streamlayer.sports.EventCustomFields custom_fields = 8 [json_name = "customFields"];
     */
    public Builder clearCustomFields() {  copyOnWrite();
      instance.clearCustomFields();
      return this;
    }

    /**
     * string start_time = 9 [json_name = "startTime"];
     * @return The startTime.
     */
    @java.lang.Override
    public java.lang.String getStartTime() {
      return instance.getStartTime();
    }
    /**
     * string start_time = 9 [json_name = "startTime"];
     * @return The bytes for startTime.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getStartTimeBytes() {
      return instance.getStartTimeBytes();
    }
    /**
     * string start_time = 9 [json_name = "startTime"];
     * @param value The startTime to set.
     * @return This builder for chaining.
     */
    public Builder setStartTime(
        java.lang.String value) {
      copyOnWrite();
      instance.setStartTime(value);
      return this;
    }
    /**
     * string start_time = 9 [json_name = "startTime"];
     * @return This builder for chaining.
     */
    public Builder clearStartTime() {
      copyOnWrite();
      instance.clearStartTime();
      return this;
    }
    /**
     * string start_time = 9 [json_name = "startTime"];
     * @param value The bytes for startTime to set.
     * @return This builder for chaining.
     */
    public Builder setStartTimeBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setStartTimeBytes(value);
      return this;
    }

    /**
     * string end_time = 10 [json_name = "endTime"];
     * @return The endTime.
     */
    @java.lang.Override
    public java.lang.String getEndTime() {
      return instance.getEndTime();
    }
    /**
     * string end_time = 10 [json_name = "endTime"];
     * @return The bytes for endTime.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getEndTimeBytes() {
      return instance.getEndTimeBytes();
    }
    /**
     * string end_time = 10 [json_name = "endTime"];
     * @param value The endTime to set.
     * @return This builder for chaining.
     */
    public Builder setEndTime(
        java.lang.String value) {
      copyOnWrite();
      instance.setEndTime(value);
      return this;
    }
    /**
     * string end_time = 10 [json_name = "endTime"];
     * @return This builder for chaining.
     */
    public Builder clearEndTime() {
      copyOnWrite();
      instance.clearEndTime();
      return this;
    }
    /**
     * string end_time = 10 [json_name = "endTime"];
     * @param value The bytes for endTime to set.
     * @return This builder for chaining.
     */
    public Builder setEndTimeBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setEndTimeBytes(value);
      return this;
    }

    /**
     * .streamlayer.sports.Venue venue = 11 [json_name = "venue"];
     */
    @java.lang.Override
    public boolean hasVenue() {
      return instance.hasVenue();
    }
    /**
     * .streamlayer.sports.Venue venue = 11 [json_name = "venue"];
     */
    @java.lang.Override
    public com.streamlayer.sports.common.Venue getVenue() {
      return instance.getVenue();
    }
    /**
     * .streamlayer.sports.Venue venue = 11 [json_name = "venue"];
     */
    public Builder setVenue(com.streamlayer.sports.common.Venue value) {
      copyOnWrite();
      instance.setVenue(value);
      return this;
      }
    /**
     * .streamlayer.sports.Venue venue = 11 [json_name = "venue"];
     */
    public Builder setVenue(
        com.streamlayer.sports.common.Venue.Builder builderForValue) {
      copyOnWrite();
      instance.setVenue(builderForValue.build());
      return this;
    }
    /**
     * .streamlayer.sports.Venue venue = 11 [json_name = "venue"];
     */
    public Builder mergeVenue(com.streamlayer.sports.common.Venue value) {
      copyOnWrite();
      instance.mergeVenue(value);
      return this;
    }
    /**
     * .streamlayer.sports.Venue venue = 11 [json_name = "venue"];
     */
    public Builder clearVenue() {  copyOnWrite();
      instance.clearVenue();
      return this;
    }

    /**
     * repeated .streamlayer.sports.EventProgram schedule = 12 [json_name = "schedule"];
     */
    @java.lang.Override
    public java.util.List getScheduleList() {
      return java.util.Collections.unmodifiableList(
          instance.getScheduleList());
    }
    /**
     * repeated .streamlayer.sports.EventProgram schedule = 12 [json_name = "schedule"];
     */
    @java.lang.Override
    public int getScheduleCount() {
      return instance.getScheduleCount();
    }/**
     * repeated .streamlayer.sports.EventProgram schedule = 12 [json_name = "schedule"];
     */
    @java.lang.Override
    public com.streamlayer.sports.common.EventProgram getSchedule(int index) {
      return instance.getSchedule(index);
    }
    /**
     * repeated .streamlayer.sports.EventProgram schedule = 12 [json_name = "schedule"];
     */
    public Builder setSchedule(
        int index, com.streamlayer.sports.common.EventProgram value) {
      copyOnWrite();
      instance.setSchedule(index, value);
      return this;
    }
    /**
     * repeated .streamlayer.sports.EventProgram schedule = 12 [json_name = "schedule"];
     */
    public Builder setSchedule(
        int index, com.streamlayer.sports.common.EventProgram.Builder builderForValue) {
      copyOnWrite();
      instance.setSchedule(index,
          builderForValue.build());
      return this;
    }
    /**
     * repeated .streamlayer.sports.EventProgram schedule = 12 [json_name = "schedule"];
     */
    public Builder addSchedule(com.streamlayer.sports.common.EventProgram value) {
      copyOnWrite();
      instance.addSchedule(value);
      return this;
    }
    /**
     * repeated .streamlayer.sports.EventProgram schedule = 12 [json_name = "schedule"];
     */
    public Builder addSchedule(
        int index, com.streamlayer.sports.common.EventProgram value) {
      copyOnWrite();
      instance.addSchedule(index, value);
      return this;
    }
    /**
     * repeated .streamlayer.sports.EventProgram schedule = 12 [json_name = "schedule"];
     */
    public Builder addSchedule(
        com.streamlayer.sports.common.EventProgram.Builder builderForValue) {
      copyOnWrite();
      instance.addSchedule(builderForValue.build());
      return this;
    }
    /**
     * repeated .streamlayer.sports.EventProgram schedule = 12 [json_name = "schedule"];
     */
    public Builder addSchedule(
        int index, com.streamlayer.sports.common.EventProgram.Builder builderForValue) {
      copyOnWrite();
      instance.addSchedule(index,
          builderForValue.build());
      return this;
    }
    /**
     * repeated .streamlayer.sports.EventProgram schedule = 12 [json_name = "schedule"];
     */
    public Builder addAllSchedule(
        java.lang.Iterable values) {
      copyOnWrite();
      instance.addAllSchedule(values);
      return this;
    }
    /**
     * repeated .streamlayer.sports.EventProgram schedule = 12 [json_name = "schedule"];
     */
    public Builder clearSchedule() {
      copyOnWrite();
      instance.clearSchedule();
      return this;
    }
    /**
     * repeated .streamlayer.sports.EventProgram schedule = 12 [json_name = "schedule"];
     */
    public Builder removeSchedule(int index) {
      copyOnWrite();
      instance.removeSchedule(index);
      return this;
    }

    /**
     * .streamlayer.sports.EventEndless endless = 13 [json_name = "endless"];
     * @return The enum numeric value on the wire for endless.
     */
    @java.lang.Override
    public int getEndlessValue() {
      return instance.getEndlessValue();
    }
    /**
     * .streamlayer.sports.EventEndless endless = 13 [json_name = "endless"];
     * @param value The endless to set.
     * @return This builder for chaining.
     */
    public Builder setEndlessValue(int value) {
      copyOnWrite();
      instance.setEndlessValue(value);
      return this;
    }
    /**
     * .streamlayer.sports.EventEndless endless = 13 [json_name = "endless"];
     * @return The endless.
     */
    @java.lang.Override
    public com.streamlayer.sports.common.EventEndless getEndless() {
      return instance.getEndless();
    }
    /**
     * .streamlayer.sports.EventEndless endless = 13 [json_name = "endless"];
     * @param value The enum numeric value on the wire for endless to set.
     * @return This builder for chaining.
     */
    public Builder setEndless(com.streamlayer.sports.common.EventEndless value) {
      copyOnWrite();
      instance.setEndless(value);
      return this;
    }
    /**
     * .streamlayer.sports.EventEndless endless = 13 [json_name = "endless"];
     * @return This builder for chaining.
     */
    public Builder clearEndless() {
      copyOnWrite();
      instance.clearEndless();
      return this;
    }

    /**
     * string provider_id = 14 [json_name = "providerId"];
     * @return The providerId.
     */
    @java.lang.Override
    public java.lang.String getProviderId() {
      return instance.getProviderId();
    }
    /**
     * string provider_id = 14 [json_name = "providerId"];
     * @return The bytes for providerId.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getProviderIdBytes() {
      return instance.getProviderIdBytes();
    }
    /**
     * string provider_id = 14 [json_name = "providerId"];
     * @param value The providerId to set.
     * @return This builder for chaining.
     */
    public Builder setProviderId(
        java.lang.String value) {
      copyOnWrite();
      instance.setProviderId(value);
      return this;
    }
    /**
     * string provider_id = 14 [json_name = "providerId"];
     * @return This builder for chaining.
     */
    public Builder clearProviderId() {
      copyOnWrite();
      instance.clearProviderId();
      return this;
    }
    /**
     * string provider_id = 14 [json_name = "providerId"];
     * @param value The bytes for providerId to set.
     * @return This builder for chaining.
     */
    public Builder setProviderIdBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setProviderIdBytes(value);
      return this;
    }

    // @@protoc_insertion_point(builder_scope:streamlayer.sports.EventData)
  }
  @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.common.EventData();
      }
      case NEW_BUILDER: {
        return new Builder();
      }
      case BUILD_MESSAGE_INFO: {
          java.lang.Object[] objects = new java.lang.Object[] {
            "bitField0_",
            "id_",
            "sport_",
            "league_",
            "scheduled_",
            "home_",
            "away_",
            "status_",
            "customFields_",
            "startTime_",
            "endTime_",
            "venue_",
            "schedule_",
            com.streamlayer.sports.common.EventProgram.class,
            "endless_",
            "providerId_",
          };
          java.lang.String info =
              "\u0000\u000e\u0000\u0001\u0001\u000e\u000e\u0000\u0001\u0000\u0001\u0003\u0002\u0208" +
              "\u0003\u0208\u0004\u0208\u0005\u1009\u0000\u0006\u1009\u0001\u0007\f\b\u1009\u0002" +
              "\t\u0208\n\u0208\u000b\u1009\u0003\f\u001b\r\f\u000e\u0208";
          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.common.EventData.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.EventData)
  private static final com.streamlayer.sports.common.EventData DEFAULT_INSTANCE;
  static {
    EventData defaultInstance = new EventData();
    // New instances are implicitly immutable so no need to make
    // immutable.
    DEFAULT_INSTANCE = defaultInstance;
    com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
      EventData.class, defaultInstance);
  }

  public static com.streamlayer.sports.common.EventData 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