main.java.com.streamlayer.sports.common.Event Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sl-protofiles Show documentation
Show all versions of sl-protofiles Show documentation
StreamLayer Java Protofiles
// 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.Event}
*/
public final class Event extends
com.google.protobuf.GeneratedMessageLite<
Event, Event.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.sports.Event)
EventOrBuilder {
private Event() {
customFields_ = "";
scheduled_ = "";
periods_ = emptyProtobufList();
startTime_ = "";
endTime_ = "";
}
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 CUSTOM_FIELDS_FIELD_NUMBER = 2;
private java.lang.String customFields_;
/**
* string custom_fields = 2 [json_name = "customFields"];
* @return The customFields.
*/
@java.lang.Override
public java.lang.String getCustomFields() {
return customFields_;
}
/**
* string custom_fields = 2 [json_name = "customFields"];
* @return The bytes for customFields.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCustomFieldsBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(customFields_);
}
/**
* string custom_fields = 2 [json_name = "customFields"];
* @param value The customFields to set.
*/
private void setCustomFields(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
customFields_ = value;
}
/**
* string custom_fields = 2 [json_name = "customFields"];
*/
private void clearCustomFields() {
customFields_ = getDefaultInstance().getCustomFields();
}
/**
* string custom_fields = 2 [json_name = "customFields"];
* @param value The bytes for customFields to set.
*/
private void setCustomFieldsBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
customFields_ = value.toStringUtf8();
}
public static final int LEAGUE_ID_FIELD_NUMBER = 3;
private long leagueId_;
/**
* uint64 league_id = 3 [json_name = "leagueId"];
* @return The leagueId.
*/
@java.lang.Override
public long getLeagueId() {
return leagueId_;
}
/**
* uint64 league_id = 3 [json_name = "leagueId"];
* @param value The leagueId to set.
*/
private void setLeagueId(long value) {
leagueId_ = value;
}
/**
* uint64 league_id = 3 [json_name = "leagueId"];
*/
private void clearLeagueId() {
leagueId_ = 0L;
}
public static final int SEASON_ID_FIELD_NUMBER = 4;
private long seasonId_;
/**
* uint64 season_id = 4 [json_name = "seasonId"];
* @return The seasonId.
*/
@java.lang.Override
public long getSeasonId() {
return seasonId_;
}
/**
* uint64 season_id = 4 [json_name = "seasonId"];
* @param value The seasonId to set.
*/
private void setSeasonId(long value) {
seasonId_ = value;
}
/**
* uint64 season_id = 4 [json_name = "seasonId"];
*/
private void clearSeasonId() {
seasonId_ = 0L;
}
public static final int HOME_TEAM_ID_FIELD_NUMBER = 5;
private long homeTeamId_;
/**
* uint64 home_team_id = 5 [json_name = "homeTeamId"];
* @return The homeTeamId.
*/
@java.lang.Override
public long getHomeTeamId() {
return homeTeamId_;
}
/**
* uint64 home_team_id = 5 [json_name = "homeTeamId"];
* @param value The homeTeamId to set.
*/
private void setHomeTeamId(long value) {
homeTeamId_ = value;
}
/**
* uint64 home_team_id = 5 [json_name = "homeTeamId"];
*/
private void clearHomeTeamId() {
homeTeamId_ = 0L;
}
public static final int AWAY_TEAM_ID_FIELD_NUMBER = 6;
private long awayTeamId_;
/**
* uint64 away_team_id = 6 [json_name = "awayTeamId"];
* @return The awayTeamId.
*/
@java.lang.Override
public long getAwayTeamId() {
return awayTeamId_;
}
/**
* uint64 away_team_id = 6 [json_name = "awayTeamId"];
* @param value The awayTeamId to set.
*/
private void setAwayTeamId(long value) {
awayTeamId_ = value;
}
/**
* uint64 away_team_id = 6 [json_name = "awayTeamId"];
*/
private void clearAwayTeamId() {
awayTeamId_ = 0L;
}
public static final int WINNER_TEAM_ID_FIELD_NUMBER = 7;
private long winnerTeamId_;
/**
* uint64 winner_team_id = 7 [json_name = "winnerTeamId"];
* @return The winnerTeamId.
*/
@java.lang.Override
public long getWinnerTeamId() {
return winnerTeamId_;
}
/**
* uint64 winner_team_id = 7 [json_name = "winnerTeamId"];
* @param value The winnerTeamId to set.
*/
private void setWinnerTeamId(long value) {
winnerTeamId_ = value;
}
/**
* uint64 winner_team_id = 7 [json_name = "winnerTeamId"];
*/
private void clearWinnerTeamId() {
winnerTeamId_ = 0L;
}
public static final int SCHEDULED_FIELD_NUMBER = 8;
private java.lang.String scheduled_;
/**
* string scheduled = 8 [json_name = "scheduled"];
* @return The scheduled.
*/
@java.lang.Override
public java.lang.String getScheduled() {
return scheduled_;
}
/**
* string scheduled = 8 [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 = 8 [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 = 8 [json_name = "scheduled"];
*/
private void clearScheduled() {
scheduled_ = getDefaultInstance().getScheduled();
}
/**
* string scheduled = 8 [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 SCORE_HOME_FIELD_NUMBER = 9;
private int scoreHome_;
/**
* int32 score_home = 9 [json_name = "scoreHome"];
* @return The scoreHome.
*/
@java.lang.Override
public int getScoreHome() {
return scoreHome_;
}
/**
* int32 score_home = 9 [json_name = "scoreHome"];
* @param value The scoreHome to set.
*/
private void setScoreHome(int value) {
scoreHome_ = value;
}
/**
* int32 score_home = 9 [json_name = "scoreHome"];
*/
private void clearScoreHome() {
scoreHome_ = 0;
}
public static final int SCORE_AWAY_FIELD_NUMBER = 10;
private int scoreAway_;
/**
* int32 score_away = 10 [json_name = "scoreAway"];
* @return The scoreAway.
*/
@java.lang.Override
public int getScoreAway() {
return scoreAway_;
}
/**
* int32 score_away = 10 [json_name = "scoreAway"];
* @param value The scoreAway to set.
*/
private void setScoreAway(int value) {
scoreAway_ = value;
}
/**
* int32 score_away = 10 [json_name = "scoreAway"];
*/
private void clearScoreAway() {
scoreAway_ = 0;
}
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_ & 0x00000001) != 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_ |= 0x00000001;
}
/**
* .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_ |= 0x00000001;
}
/**
* .streamlayer.sports.Venue venue = 11 [json_name = "venue"];
*/
private void clearVenue() { venue_ = null;
bitField0_ = (bitField0_ & ~0x00000001);
}
public static final int EVENT_TIME_FIELD_NUMBER = 12;
private com.streamlayer.sports.common.EventTime eventTime_;
/**
* .streamlayer.sports.EventTime event_time = 12 [json_name = "eventTime"];
*/
@java.lang.Override
public boolean hasEventTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .streamlayer.sports.EventTime event_time = 12 [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 = 12 [json_name = "eventTime"];
*/
private void setEventTime(com.streamlayer.sports.common.EventTime value) {
value.getClass();
eventTime_ = value;
bitField0_ |= 0x00000002;
}
/**
* .streamlayer.sports.EventTime event_time = 12 [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 = 12 [json_name = "eventTime"];
*/
private void clearEventTime() { eventTime_ = null;
bitField0_ = (bitField0_ & ~0x00000002);
}
public static final int STATUS_FIELD_NUMBER = 13;
private int status_;
/**
* .streamlayer.sports.EventStatus status = 13 [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 = 13 [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 = 13 [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 = 13 [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 = 13 [json_name = "status"];
*/
private void clearStatus() {
status_ = 0;
}
public static final int PERIODS_FIELD_NUMBER = 14;
private com.google.protobuf.Internal.ProtobufList periods_;
/**
* repeated .streamlayer.sports.EventPeriod periods = 14 [json_name = "periods"];
*/
@java.lang.Override
public java.util.List getPeriodsList() {
return periods_;
}
/**
* repeated .streamlayer.sports.EventPeriod periods = 14 [json_name = "periods"];
*/
public java.util.List extends com.streamlayer.sports.common.EventPeriodOrBuilder>
getPeriodsOrBuilderList() {
return periods_;
}
/**
* repeated .streamlayer.sports.EventPeriod periods = 14 [json_name = "periods"];
*/
@java.lang.Override
public int getPeriodsCount() {
return periods_.size();
}
/**
* repeated .streamlayer.sports.EventPeriod periods = 14 [json_name = "periods"];
*/
@java.lang.Override
public com.streamlayer.sports.common.EventPeriod getPeriods(int index) {
return periods_.get(index);
}
/**
* repeated .streamlayer.sports.EventPeriod periods = 14 [json_name = "periods"];
*/
public com.streamlayer.sports.common.EventPeriodOrBuilder getPeriodsOrBuilder(
int index) {
return periods_.get(index);
}
private void ensurePeriodsIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp = periods_;
if (!tmp.isModifiable()) {
periods_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
* repeated .streamlayer.sports.EventPeriod periods = 14 [json_name = "periods"];
*/
private void setPeriods(
int index, com.streamlayer.sports.common.EventPeriod value) {
value.getClass();
ensurePeriodsIsMutable();
periods_.set(index, value);
}
/**
* repeated .streamlayer.sports.EventPeriod periods = 14 [json_name = "periods"];
*/
private void addPeriods(com.streamlayer.sports.common.EventPeriod value) {
value.getClass();
ensurePeriodsIsMutable();
periods_.add(value);
}
/**
* repeated .streamlayer.sports.EventPeriod periods = 14 [json_name = "periods"];
*/
private void addPeriods(
int index, com.streamlayer.sports.common.EventPeriod value) {
value.getClass();
ensurePeriodsIsMutable();
periods_.add(index, value);
}
/**
* repeated .streamlayer.sports.EventPeriod periods = 14 [json_name = "periods"];
*/
private void addAllPeriods(
java.lang.Iterable extends com.streamlayer.sports.common.EventPeriod> values) {
ensurePeriodsIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, periods_);
}
/**
* repeated .streamlayer.sports.EventPeriod periods = 14 [json_name = "periods"];
*/
private void clearPeriods() {
periods_ = emptyProtobufList();
}
/**
* repeated .streamlayer.sports.EventPeriod periods = 14 [json_name = "periods"];
*/
private void removePeriods(int index) {
ensurePeriodsIsMutable();
periods_.remove(index);
}
public static final int START_TIME_FIELD_NUMBER = 15;
private java.lang.String startTime_;
/**
* string start_time = 15 [json_name = "startTime"];
* @return The startTime.
*/
@java.lang.Override
public java.lang.String getStartTime() {
return startTime_;
}
/**
* string start_time = 15 [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 = 15 [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 = 15 [json_name = "startTime"];
*/
private void clearStartTime() {
startTime_ = getDefaultInstance().getStartTime();
}
/**
* string start_time = 15 [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 = 16;
private java.lang.String endTime_;
/**
* string end_time = 16 [json_name = "endTime"];
* @return The endTime.
*/
@java.lang.Override
public java.lang.String getEndTime() {
return endTime_;
}
/**
* string end_time = 16 [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 = 16 [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 = 16 [json_name = "endTime"];
*/
private void clearEndTime() {
endTime_ = getDefaultInstance().getEndTime();
}
/**
* string end_time = 16 [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 ENDLESS_FIELD_NUMBER = 17;
private int endless_;
/**
* .streamlayer.sports.EventEndless endless = 17 [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 = 17 [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 = 17 [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 = 17 [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 = 17 [json_name = "endless"];
*/
private void clearEndless() {
endless_ = 0;
}
public static com.streamlayer.sports.common.Event 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.Event 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.Event 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.Event 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.Event parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sports.common.Event 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.Event parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sports.common.Event 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.Event parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sports.common.Event 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.Event 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.Event 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.Event prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.sports.Event}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.sports.common.Event, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.sports.Event)
com.streamlayer.sports.common.EventOrBuilder {
// Construct using com.streamlayer.sports.common.Event.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 custom_fields = 2 [json_name = "customFields"];
* @return The customFields.
*/
@java.lang.Override
public java.lang.String getCustomFields() {
return instance.getCustomFields();
}
/**
* string custom_fields = 2 [json_name = "customFields"];
* @return The bytes for customFields.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCustomFieldsBytes() {
return instance.getCustomFieldsBytes();
}
/**
* string custom_fields = 2 [json_name = "customFields"];
* @param value The customFields to set.
* @return This builder for chaining.
*/
public Builder setCustomFields(
java.lang.String value) {
copyOnWrite();
instance.setCustomFields(value);
return this;
}
/**
* string custom_fields = 2 [json_name = "customFields"];
* @return This builder for chaining.
*/
public Builder clearCustomFields() {
copyOnWrite();
instance.clearCustomFields();
return this;
}
/**
* string custom_fields = 2 [json_name = "customFields"];
* @param value The bytes for customFields to set.
* @return This builder for chaining.
*/
public Builder setCustomFieldsBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setCustomFieldsBytes(value);
return this;
}
/**
* uint64 league_id = 3 [json_name = "leagueId"];
* @return The leagueId.
*/
@java.lang.Override
public long getLeagueId() {
return instance.getLeagueId();
}
/**
* uint64 league_id = 3 [json_name = "leagueId"];
* @param value The leagueId to set.
* @return This builder for chaining.
*/
public Builder setLeagueId(long value) {
copyOnWrite();
instance.setLeagueId(value);
return this;
}
/**
* uint64 league_id = 3 [json_name = "leagueId"];
* @return This builder for chaining.
*/
public Builder clearLeagueId() {
copyOnWrite();
instance.clearLeagueId();
return this;
}
/**
* uint64 season_id = 4 [json_name = "seasonId"];
* @return The seasonId.
*/
@java.lang.Override
public long getSeasonId() {
return instance.getSeasonId();
}
/**
* uint64 season_id = 4 [json_name = "seasonId"];
* @param value The seasonId to set.
* @return This builder for chaining.
*/
public Builder setSeasonId(long value) {
copyOnWrite();
instance.setSeasonId(value);
return this;
}
/**
* uint64 season_id = 4 [json_name = "seasonId"];
* @return This builder for chaining.
*/
public Builder clearSeasonId() {
copyOnWrite();
instance.clearSeasonId();
return this;
}
/**
* uint64 home_team_id = 5 [json_name = "homeTeamId"];
* @return The homeTeamId.
*/
@java.lang.Override
public long getHomeTeamId() {
return instance.getHomeTeamId();
}
/**
* uint64 home_team_id = 5 [json_name = "homeTeamId"];
* @param value The homeTeamId to set.
* @return This builder for chaining.
*/
public Builder setHomeTeamId(long value) {
copyOnWrite();
instance.setHomeTeamId(value);
return this;
}
/**
* uint64 home_team_id = 5 [json_name = "homeTeamId"];
* @return This builder for chaining.
*/
public Builder clearHomeTeamId() {
copyOnWrite();
instance.clearHomeTeamId();
return this;
}
/**
* uint64 away_team_id = 6 [json_name = "awayTeamId"];
* @return The awayTeamId.
*/
@java.lang.Override
public long getAwayTeamId() {
return instance.getAwayTeamId();
}
/**
* uint64 away_team_id = 6 [json_name = "awayTeamId"];
* @param value The awayTeamId to set.
* @return This builder for chaining.
*/
public Builder setAwayTeamId(long value) {
copyOnWrite();
instance.setAwayTeamId(value);
return this;
}
/**
* uint64 away_team_id = 6 [json_name = "awayTeamId"];
* @return This builder for chaining.
*/
public Builder clearAwayTeamId() {
copyOnWrite();
instance.clearAwayTeamId();
return this;
}
/**
* uint64 winner_team_id = 7 [json_name = "winnerTeamId"];
* @return The winnerTeamId.
*/
@java.lang.Override
public long getWinnerTeamId() {
return instance.getWinnerTeamId();
}
/**
* uint64 winner_team_id = 7 [json_name = "winnerTeamId"];
* @param value The winnerTeamId to set.
* @return This builder for chaining.
*/
public Builder setWinnerTeamId(long value) {
copyOnWrite();
instance.setWinnerTeamId(value);
return this;
}
/**
* uint64 winner_team_id = 7 [json_name = "winnerTeamId"];
* @return This builder for chaining.
*/
public Builder clearWinnerTeamId() {
copyOnWrite();
instance.clearWinnerTeamId();
return this;
}
/**
* string scheduled = 8 [json_name = "scheduled"];
* @return The scheduled.
*/
@java.lang.Override
public java.lang.String getScheduled() {
return instance.getScheduled();
}
/**
* string scheduled = 8 [json_name = "scheduled"];
* @return The bytes for scheduled.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getScheduledBytes() {
return instance.getScheduledBytes();
}
/**
* string scheduled = 8 [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 = 8 [json_name = "scheduled"];
* @return This builder for chaining.
*/
public Builder clearScheduled() {
copyOnWrite();
instance.clearScheduled();
return this;
}
/**
* string scheduled = 8 [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;
}
/**
* int32 score_home = 9 [json_name = "scoreHome"];
* @return The scoreHome.
*/
@java.lang.Override
public int getScoreHome() {
return instance.getScoreHome();
}
/**
* int32 score_home = 9 [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 = 9 [json_name = "scoreHome"];
* @return This builder for chaining.
*/
public Builder clearScoreHome() {
copyOnWrite();
instance.clearScoreHome();
return this;
}
/**
* int32 score_away = 10 [json_name = "scoreAway"];
* @return The scoreAway.
*/
@java.lang.Override
public int getScoreAway() {
return instance.getScoreAway();
}
/**
* int32 score_away = 10 [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 = 10 [json_name = "scoreAway"];
* @return This builder for chaining.
*/
public Builder clearScoreAway() {
copyOnWrite();
instance.clearScoreAway();
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;
}
/**
* .streamlayer.sports.EventTime event_time = 12 [json_name = "eventTime"];
*/
@java.lang.Override
public boolean hasEventTime() {
return instance.hasEventTime();
}
/**
* .streamlayer.sports.EventTime event_time = 12 [json_name = "eventTime"];
*/
@java.lang.Override
public com.streamlayer.sports.common.EventTime getEventTime() {
return instance.getEventTime();
}
/**
* .streamlayer.sports.EventTime event_time = 12 [json_name = "eventTime"];
*/
public Builder setEventTime(com.streamlayer.sports.common.EventTime value) {
copyOnWrite();
instance.setEventTime(value);
return this;
}
/**
* .streamlayer.sports.EventTime event_time = 12 [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 = 12 [json_name = "eventTime"];
*/
public Builder mergeEventTime(com.streamlayer.sports.common.EventTime value) {
copyOnWrite();
instance.mergeEventTime(value);
return this;
}
/**
* .streamlayer.sports.EventTime event_time = 12 [json_name = "eventTime"];
*/
public Builder clearEventTime() { copyOnWrite();
instance.clearEventTime();
return this;
}
/**
* .streamlayer.sports.EventStatus status = 13 [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 = 13 [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 = 13 [json_name = "status"];
* @return The status.
*/
@java.lang.Override
public com.streamlayer.sports.common.EventStatus getStatus() {
return instance.getStatus();
}
/**
* .streamlayer.sports.EventStatus status = 13 [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 = 13 [json_name = "status"];
* @return This builder for chaining.
*/
public Builder clearStatus() {
copyOnWrite();
instance.clearStatus();
return this;
}
/**
* repeated .streamlayer.sports.EventPeriod periods = 14 [json_name = "periods"];
*/
@java.lang.Override
public java.util.List getPeriodsList() {
return java.util.Collections.unmodifiableList(
instance.getPeriodsList());
}
/**
* repeated .streamlayer.sports.EventPeriod periods = 14 [json_name = "periods"];
*/
@java.lang.Override
public int getPeriodsCount() {
return instance.getPeriodsCount();
}/**
* repeated .streamlayer.sports.EventPeriod periods = 14 [json_name = "periods"];
*/
@java.lang.Override
public com.streamlayer.sports.common.EventPeriod getPeriods(int index) {
return instance.getPeriods(index);
}
/**
* repeated .streamlayer.sports.EventPeriod periods = 14 [json_name = "periods"];
*/
public Builder setPeriods(
int index, com.streamlayer.sports.common.EventPeriod value) {
copyOnWrite();
instance.setPeriods(index, value);
return this;
}
/**
* repeated .streamlayer.sports.EventPeriod periods = 14 [json_name = "periods"];
*/
public Builder setPeriods(
int index, com.streamlayer.sports.common.EventPeriod.Builder builderForValue) {
copyOnWrite();
instance.setPeriods(index,
builderForValue.build());
return this;
}
/**
* repeated .streamlayer.sports.EventPeriod periods = 14 [json_name = "periods"];
*/
public Builder addPeriods(com.streamlayer.sports.common.EventPeriod value) {
copyOnWrite();
instance.addPeriods(value);
return this;
}
/**
* repeated .streamlayer.sports.EventPeriod periods = 14 [json_name = "periods"];
*/
public Builder addPeriods(
int index, com.streamlayer.sports.common.EventPeriod value) {
copyOnWrite();
instance.addPeriods(index, value);
return this;
}
/**
* repeated .streamlayer.sports.EventPeriod periods = 14 [json_name = "periods"];
*/
public Builder addPeriods(
com.streamlayer.sports.common.EventPeriod.Builder builderForValue) {
copyOnWrite();
instance.addPeriods(builderForValue.build());
return this;
}
/**
* repeated .streamlayer.sports.EventPeriod periods = 14 [json_name = "periods"];
*/
public Builder addPeriods(
int index, com.streamlayer.sports.common.EventPeriod.Builder builderForValue) {
copyOnWrite();
instance.addPeriods(index,
builderForValue.build());
return this;
}
/**
* repeated .streamlayer.sports.EventPeriod periods = 14 [json_name = "periods"];
*/
public Builder addAllPeriods(
java.lang.Iterable extends com.streamlayer.sports.common.EventPeriod> values) {
copyOnWrite();
instance.addAllPeriods(values);
return this;
}
/**
* repeated .streamlayer.sports.EventPeriod periods = 14 [json_name = "periods"];
*/
public Builder clearPeriods() {
copyOnWrite();
instance.clearPeriods();
return this;
}
/**
* repeated .streamlayer.sports.EventPeriod periods = 14 [json_name = "periods"];
*/
public Builder removePeriods(int index) {
copyOnWrite();
instance.removePeriods(index);
return this;
}
/**
* string start_time = 15 [json_name = "startTime"];
* @return The startTime.
*/
@java.lang.Override
public java.lang.String getStartTime() {
return instance.getStartTime();
}
/**
* string start_time = 15 [json_name = "startTime"];
* @return The bytes for startTime.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStartTimeBytes() {
return instance.getStartTimeBytes();
}
/**
* string start_time = 15 [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 = 15 [json_name = "startTime"];
* @return This builder for chaining.
*/
public Builder clearStartTime() {
copyOnWrite();
instance.clearStartTime();
return this;
}
/**
* string start_time = 15 [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 = 16 [json_name = "endTime"];
* @return The endTime.
*/
@java.lang.Override
public java.lang.String getEndTime() {
return instance.getEndTime();
}
/**
* string end_time = 16 [json_name = "endTime"];
* @return The bytes for endTime.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEndTimeBytes() {
return instance.getEndTimeBytes();
}
/**
* string end_time = 16 [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 = 16 [json_name = "endTime"];
* @return This builder for chaining.
*/
public Builder clearEndTime() {
copyOnWrite();
instance.clearEndTime();
return this;
}
/**
* string end_time = 16 [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.EventEndless endless = 17 [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 = 17 [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 = 17 [json_name = "endless"];
* @return The endless.
*/
@java.lang.Override
public com.streamlayer.sports.common.EventEndless getEndless() {
return instance.getEndless();
}
/**
* .streamlayer.sports.EventEndless endless = 17 [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 = 17 [json_name = "endless"];
* @return This builder for chaining.
*/
public Builder clearEndless() {
copyOnWrite();
instance.clearEndless();
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.sports.Event)
}
@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.Event();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"bitField0_",
"id_",
"customFields_",
"leagueId_",
"seasonId_",
"homeTeamId_",
"awayTeamId_",
"winnerTeamId_",
"scheduled_",
"scoreHome_",
"scoreAway_",
"venue_",
"eventTime_",
"status_",
"periods_",
com.streamlayer.sports.common.EventPeriod.class,
"startTime_",
"endTime_",
"endless_",
};
java.lang.String info =
"\u0000\u0011\u0000\u0001\u0001\u0011\u0011\u0000\u0001\u0000\u0001\u0003\u0002\u0208" +
"\u0003\u0003\u0004\u0003\u0005\u0003\u0006\u0003\u0007\u0003\b\u0208\t\u0004\n\u0004" +
"\u000b\u1009\u0000\f\u1009\u0001\r\f\u000e\u001b\u000f\u0208\u0010\u0208\u0011\f" +
"";
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.Event.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.Event)
private static final com.streamlayer.sports.common.Event DEFAULT_INSTANCE;
static {
Event defaultInstance = new Event();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
Event.class, defaultInstance);
}
public static com.streamlayer.sports.common.Event getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}