main.java.com.streamlayer.sports.common.EventSummary 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.EventSummary}
*/
public final class EventSummary extends
com.google.protobuf.GeneratedMessageLite<
EventSummary, EventSummary.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.sports.EventSummary)
EventSummaryOrBuilder {
private EventSummary() {
scheduled_ = "";
periods_ = emptyProtobufList();
league_ = "";
startTime_ = "";
endTime_ = "";
name_ = "";
logo_ = "";
stream_ = "";
}
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 SCHEDULED_FIELD_NUMBER = 2;
private java.lang.String scheduled_;
/**
* string scheduled = 2 [json_name = "scheduled"];
* @return The scheduled.
*/
@java.lang.Override
public java.lang.String getScheduled() {
return scheduled_;
}
/**
* string scheduled = 2 [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 = 2 [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 = 2 [json_name = "scheduled"];
*/
private void clearScheduled() {
scheduled_ = getDefaultInstance().getScheduled();
}
/**
* string scheduled = 2 [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 = 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 VENUE_FIELD_NUMBER = 5;
private com.streamlayer.sports.common.Venue venue_;
/**
* .streamlayer.sports.Venue venue = 5 [json_name = "venue"];
*/
@java.lang.Override
public boolean hasVenue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .streamlayer.sports.Venue venue = 5 [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 = 5 [json_name = "venue"];
*/
private void setVenue(com.streamlayer.sports.common.Venue value) {
value.getClass();
venue_ = value;
bitField0_ |= 0x00000001;
}
/**
* .streamlayer.sports.Venue venue = 5 [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 = 5 [json_name = "venue"];
*/
private void clearVenue() { venue_ = null;
bitField0_ = (bitField0_ & ~0x00000001);
}
public static final int EVENT_TIME_FIELD_NUMBER = 6;
private com.streamlayer.sports.common.EventTime eventTime_;
/**
* .streamlayer.sports.EventTime event_time = 6 [json_name = "eventTime"];
*/
@java.lang.Override
public boolean hasEventTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .streamlayer.sports.EventTime event_time = 6 [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 = 6 [json_name = "eventTime"];
*/
private void setEventTime(com.streamlayer.sports.common.EventTime value) {
value.getClass();
eventTime_ = value;
bitField0_ |= 0x00000002;
}
/**
* .streamlayer.sports.EventTime event_time = 6 [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 = 6 [json_name = "eventTime"];
*/
private void clearEventTime() { eventTime_ = null;
bitField0_ = (bitField0_ & ~0x00000002);
}
public static final int HOME_TEAM_FIELD_NUMBER = 7;
private com.streamlayer.sports.common.EventTeam homeTeam_;
/**
* .streamlayer.sports.EventTeam home_team = 7 [json_name = "homeTeam"];
*/
@java.lang.Override
public boolean hasHomeTeam() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .streamlayer.sports.EventTeam home_team = 7 [json_name = "homeTeam"];
*/
@java.lang.Override
public com.streamlayer.sports.common.EventTeam getHomeTeam() {
return homeTeam_ == null ? com.streamlayer.sports.common.EventTeam.getDefaultInstance() : homeTeam_;
}
/**
* .streamlayer.sports.EventTeam home_team = 7 [json_name = "homeTeam"];
*/
private void setHomeTeam(com.streamlayer.sports.common.EventTeam value) {
value.getClass();
homeTeam_ = value;
bitField0_ |= 0x00000004;
}
/**
* .streamlayer.sports.EventTeam home_team = 7 [json_name = "homeTeam"];
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeHomeTeam(com.streamlayer.sports.common.EventTeam value) {
value.getClass();
if (homeTeam_ != null &&
homeTeam_ != com.streamlayer.sports.common.EventTeam.getDefaultInstance()) {
homeTeam_ =
com.streamlayer.sports.common.EventTeam.newBuilder(homeTeam_).mergeFrom(value).buildPartial();
} else {
homeTeam_ = value;
}
bitField0_ |= 0x00000004;
}
/**
* .streamlayer.sports.EventTeam home_team = 7 [json_name = "homeTeam"];
*/
private void clearHomeTeam() { homeTeam_ = null;
bitField0_ = (bitField0_ & ~0x00000004);
}
public static final int AWAY_TEAM_FIELD_NUMBER = 8;
private com.streamlayer.sports.common.EventTeam awayTeam_;
/**
* .streamlayer.sports.EventTeam away_team = 8 [json_name = "awayTeam"];
*/
@java.lang.Override
public boolean hasAwayTeam() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* .streamlayer.sports.EventTeam away_team = 8 [json_name = "awayTeam"];
*/
@java.lang.Override
public com.streamlayer.sports.common.EventTeam getAwayTeam() {
return awayTeam_ == null ? com.streamlayer.sports.common.EventTeam.getDefaultInstance() : awayTeam_;
}
/**
* .streamlayer.sports.EventTeam away_team = 8 [json_name = "awayTeam"];
*/
private void setAwayTeam(com.streamlayer.sports.common.EventTeam value) {
value.getClass();
awayTeam_ = value;
bitField0_ |= 0x00000008;
}
/**
* .streamlayer.sports.EventTeam away_team = 8 [json_name = "awayTeam"];
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeAwayTeam(com.streamlayer.sports.common.EventTeam value) {
value.getClass();
if (awayTeam_ != null &&
awayTeam_ != com.streamlayer.sports.common.EventTeam.getDefaultInstance()) {
awayTeam_ =
com.streamlayer.sports.common.EventTeam.newBuilder(awayTeam_).mergeFrom(value).buildPartial();
} else {
awayTeam_ = value;
}
bitField0_ |= 0x00000008;
}
/**
* .streamlayer.sports.EventTeam away_team = 8 [json_name = "awayTeam"];
*/
private void clearAwayTeam() { awayTeam_ = null;
bitField0_ = (bitField0_ & ~0x00000008);
}
public static final int STATUS_FIELD_NUMBER = 9;
private int status_;
/**
* .streamlayer.sports.EventStatus status = 9 [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 = 9 [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 = 9 [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 = 9 [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 = 9 [json_name = "status"];
*/
private void clearStatus() {
status_ = 0;
}
public static final int PERIODS_FIELD_NUMBER = 10;
private com.google.protobuf.Internal.ProtobufList periods_;
/**
* repeated .streamlayer.sports.EventPeriod periods = 10 [json_name = "periods"];
*/
@java.lang.Override
public java.util.List getPeriodsList() {
return periods_;
}
/**
* repeated .streamlayer.sports.EventPeriod periods = 10 [json_name = "periods"];
*/
public java.util.List extends com.streamlayer.sports.common.EventPeriodOrBuilder>
getPeriodsOrBuilderList() {
return periods_;
}
/**
* repeated .streamlayer.sports.EventPeriod periods = 10 [json_name = "periods"];
*/
@java.lang.Override
public int getPeriodsCount() {
return periods_.size();
}
/**
* repeated .streamlayer.sports.EventPeriod periods = 10 [json_name = "periods"];
*/
@java.lang.Override
public com.streamlayer.sports.common.EventPeriod getPeriods(int index) {
return periods_.get(index);
}
/**
* repeated .streamlayer.sports.EventPeriod periods = 10 [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 = 10 [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 = 10 [json_name = "periods"];
*/
private void addPeriods(com.streamlayer.sports.common.EventPeriod value) {
value.getClass();
ensurePeriodsIsMutable();
periods_.add(value);
}
/**
* repeated .streamlayer.sports.EventPeriod periods = 10 [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 = 10 [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 = 10 [json_name = "periods"];
*/
private void clearPeriods() {
periods_ = emptyProtobufList();
}
/**
* repeated .streamlayer.sports.EventPeriod periods = 10 [json_name = "periods"];
*/
private void removePeriods(int index) {
ensurePeriodsIsMutable();
periods_.remove(index);
}
public static final int LEAGUE_FIELD_NUMBER = 11;
private java.lang.String league_;
/**
* string league = 11 [json_name = "league"];
* @return The league.
*/
@java.lang.Override
public java.lang.String getLeague() {
return league_;
}
/**
* string league = 11 [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 = 11 [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 = 11 [json_name = "league"];
*/
private void clearLeague() {
league_ = getDefaultInstance().getLeague();
}
/**
* string league = 11 [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 START_TIME_FIELD_NUMBER = 12;
private java.lang.String startTime_;
/**
* string start_time = 12 [json_name = "startTime"];
* @return The startTime.
*/
@java.lang.Override
public java.lang.String getStartTime() {
return startTime_;
}
/**
* string start_time = 12 [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 = 12 [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 = 12 [json_name = "startTime"];
*/
private void clearStartTime() {
startTime_ = getDefaultInstance().getStartTime();
}
/**
* string start_time = 12 [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 = 13;
private java.lang.String endTime_;
/**
* string end_time = 13 [json_name = "endTime"];
* @return The endTime.
*/
@java.lang.Override
public java.lang.String getEndTime() {
return endTime_;
}
/**
* string end_time = 13 [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 = 13 [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 = 13 [json_name = "endTime"];
*/
private void clearEndTime() {
endTime_ = getDefaultInstance().getEndTime();
}
/**
* string end_time = 13 [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 NAME_FIELD_NUMBER = 14;
private java.lang.String name_;
/**
* string name = 14 [json_name = "name"];
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
return name_;
}
/**
* string name = 14 [json_name = "name"];
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(name_);
}
/**
* string name = 14 [json_name = "name"];
* @param value The name to set.
*/
private void setName(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
name_ = value;
}
/**
* string name = 14 [json_name = "name"];
*/
private void clearName() {
name_ = getDefaultInstance().getName();
}
/**
* string name = 14 [json_name = "name"];
* @param value The bytes for name to set.
*/
private void setNameBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
name_ = value.toStringUtf8();
}
public static final int LOGO_FIELD_NUMBER = 15;
private java.lang.String logo_;
/**
* string logo = 15 [json_name = "logo"];
* @return The logo.
*/
@java.lang.Override
public java.lang.String getLogo() {
return logo_;
}
/**
* string logo = 15 [json_name = "logo"];
* @return The bytes for logo.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLogoBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(logo_);
}
/**
* string logo = 15 [json_name = "logo"];
* @param value The logo to set.
*/
private void setLogo(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
logo_ = value;
}
/**
* string logo = 15 [json_name = "logo"];
*/
private void clearLogo() {
logo_ = getDefaultInstance().getLogo();
}
/**
* string logo = 15 [json_name = "logo"];
* @param value The bytes for logo to set.
*/
private void setLogoBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
logo_ = value.toStringUtf8();
}
public static final int STREAM_FIELD_NUMBER = 16;
private java.lang.String stream_;
/**
*
* stream url
*
*
* string stream = 16 [json_name = "stream"];
* @return The stream.
*/
@java.lang.Override
public java.lang.String getStream() {
return stream_;
}
/**
*
* stream url
*
*
* string stream = 16 [json_name = "stream"];
* @return The bytes for stream.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStreamBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(stream_);
}
/**
*
* stream url
*
*
* string stream = 16 [json_name = "stream"];
* @param value The stream to set.
*/
private void setStream(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
stream_ = value;
}
/**
*
* stream url
*
*
* string stream = 16 [json_name = "stream"];
*/
private void clearStream() {
stream_ = getDefaultInstance().getStream();
}
/**
*
* stream url
*
*
* string stream = 16 [json_name = "stream"];
* @param value The bytes for stream to set.
*/
private void setStreamBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
stream_ = value.toStringUtf8();
}
public static com.streamlayer.sports.common.EventSummary 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.EventSummary 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.EventSummary 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.EventSummary 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.EventSummary parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sports.common.EventSummary 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.EventSummary parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sports.common.EventSummary 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.EventSummary parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sports.common.EventSummary 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.EventSummary 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.EventSummary 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.EventSummary prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.sports.EventSummary}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.sports.common.EventSummary, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.sports.EventSummary)
com.streamlayer.sports.common.EventSummaryOrBuilder {
// Construct using com.streamlayer.sports.common.EventSummary.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 scheduled = 2 [json_name = "scheduled"];
* @return The scheduled.
*/
@java.lang.Override
public java.lang.String getScheduled() {
return instance.getScheduled();
}
/**
* string scheduled = 2 [json_name = "scheduled"];
* @return The bytes for scheduled.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getScheduledBytes() {
return instance.getScheduledBytes();
}
/**
* string scheduled = 2 [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 = 2 [json_name = "scheduled"];
* @return This builder for chaining.
*/
public Builder clearScheduled() {
copyOnWrite();
instance.clearScheduled();
return this;
}
/**
* string scheduled = 2 [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 = 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;
}
/**
* .streamlayer.sports.Venue venue = 5 [json_name = "venue"];
*/
@java.lang.Override
public boolean hasVenue() {
return instance.hasVenue();
}
/**
* .streamlayer.sports.Venue venue = 5 [json_name = "venue"];
*/
@java.lang.Override
public com.streamlayer.sports.common.Venue getVenue() {
return instance.getVenue();
}
/**
* .streamlayer.sports.Venue venue = 5 [json_name = "venue"];
*/
public Builder setVenue(com.streamlayer.sports.common.Venue value) {
copyOnWrite();
instance.setVenue(value);
return this;
}
/**
* .streamlayer.sports.Venue venue = 5 [json_name = "venue"];
*/
public Builder setVenue(
com.streamlayer.sports.common.Venue.Builder builderForValue) {
copyOnWrite();
instance.setVenue(builderForValue.build());
return this;
}
/**
* .streamlayer.sports.Venue venue = 5 [json_name = "venue"];
*/
public Builder mergeVenue(com.streamlayer.sports.common.Venue value) {
copyOnWrite();
instance.mergeVenue(value);
return this;
}
/**
* .streamlayer.sports.Venue venue = 5 [json_name = "venue"];
*/
public Builder clearVenue() { copyOnWrite();
instance.clearVenue();
return this;
}
/**
* .streamlayer.sports.EventTime event_time = 6 [json_name = "eventTime"];
*/
@java.lang.Override
public boolean hasEventTime() {
return instance.hasEventTime();
}
/**
* .streamlayer.sports.EventTime event_time = 6 [json_name = "eventTime"];
*/
@java.lang.Override
public com.streamlayer.sports.common.EventTime getEventTime() {
return instance.getEventTime();
}
/**
* .streamlayer.sports.EventTime event_time = 6 [json_name = "eventTime"];
*/
public Builder setEventTime(com.streamlayer.sports.common.EventTime value) {
copyOnWrite();
instance.setEventTime(value);
return this;
}
/**
* .streamlayer.sports.EventTime event_time = 6 [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 = 6 [json_name = "eventTime"];
*/
public Builder mergeEventTime(com.streamlayer.sports.common.EventTime value) {
copyOnWrite();
instance.mergeEventTime(value);
return this;
}
/**
* .streamlayer.sports.EventTime event_time = 6 [json_name = "eventTime"];
*/
public Builder clearEventTime() { copyOnWrite();
instance.clearEventTime();
return this;
}
/**
* .streamlayer.sports.EventTeam home_team = 7 [json_name = "homeTeam"];
*/
@java.lang.Override
public boolean hasHomeTeam() {
return instance.hasHomeTeam();
}
/**
* .streamlayer.sports.EventTeam home_team = 7 [json_name = "homeTeam"];
*/
@java.lang.Override
public com.streamlayer.sports.common.EventTeam getHomeTeam() {
return instance.getHomeTeam();
}
/**
* .streamlayer.sports.EventTeam home_team = 7 [json_name = "homeTeam"];
*/
public Builder setHomeTeam(com.streamlayer.sports.common.EventTeam value) {
copyOnWrite();
instance.setHomeTeam(value);
return this;
}
/**
* .streamlayer.sports.EventTeam home_team = 7 [json_name = "homeTeam"];
*/
public Builder setHomeTeam(
com.streamlayer.sports.common.EventTeam.Builder builderForValue) {
copyOnWrite();
instance.setHomeTeam(builderForValue.build());
return this;
}
/**
* .streamlayer.sports.EventTeam home_team = 7 [json_name = "homeTeam"];
*/
public Builder mergeHomeTeam(com.streamlayer.sports.common.EventTeam value) {
copyOnWrite();
instance.mergeHomeTeam(value);
return this;
}
/**
* .streamlayer.sports.EventTeam home_team = 7 [json_name = "homeTeam"];
*/
public Builder clearHomeTeam() { copyOnWrite();
instance.clearHomeTeam();
return this;
}
/**
* .streamlayer.sports.EventTeam away_team = 8 [json_name = "awayTeam"];
*/
@java.lang.Override
public boolean hasAwayTeam() {
return instance.hasAwayTeam();
}
/**
* .streamlayer.sports.EventTeam away_team = 8 [json_name = "awayTeam"];
*/
@java.lang.Override
public com.streamlayer.sports.common.EventTeam getAwayTeam() {
return instance.getAwayTeam();
}
/**
* .streamlayer.sports.EventTeam away_team = 8 [json_name = "awayTeam"];
*/
public Builder setAwayTeam(com.streamlayer.sports.common.EventTeam value) {
copyOnWrite();
instance.setAwayTeam(value);
return this;
}
/**
* .streamlayer.sports.EventTeam away_team = 8 [json_name = "awayTeam"];
*/
public Builder setAwayTeam(
com.streamlayer.sports.common.EventTeam.Builder builderForValue) {
copyOnWrite();
instance.setAwayTeam(builderForValue.build());
return this;
}
/**
* .streamlayer.sports.EventTeam away_team = 8 [json_name = "awayTeam"];
*/
public Builder mergeAwayTeam(com.streamlayer.sports.common.EventTeam value) {
copyOnWrite();
instance.mergeAwayTeam(value);
return this;
}
/**
* .streamlayer.sports.EventTeam away_team = 8 [json_name = "awayTeam"];
*/
public Builder clearAwayTeam() { copyOnWrite();
instance.clearAwayTeam();
return this;
}
/**
* .streamlayer.sports.EventStatus status = 9 [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 = 9 [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 = 9 [json_name = "status"];
* @return The status.
*/
@java.lang.Override
public com.streamlayer.sports.common.EventStatus getStatus() {
return instance.getStatus();
}
/**
* .streamlayer.sports.EventStatus status = 9 [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 = 9 [json_name = "status"];
* @return This builder for chaining.
*/
public Builder clearStatus() {
copyOnWrite();
instance.clearStatus();
return this;
}
/**
* repeated .streamlayer.sports.EventPeriod periods = 10 [json_name = "periods"];
*/
@java.lang.Override
public java.util.List getPeriodsList() {
return java.util.Collections.unmodifiableList(
instance.getPeriodsList());
}
/**
* repeated .streamlayer.sports.EventPeriod periods = 10 [json_name = "periods"];
*/
@java.lang.Override
public int getPeriodsCount() {
return instance.getPeriodsCount();
}/**
* repeated .streamlayer.sports.EventPeriod periods = 10 [json_name = "periods"];
*/
@java.lang.Override
public com.streamlayer.sports.common.EventPeriod getPeriods(int index) {
return instance.getPeriods(index);
}
/**
* repeated .streamlayer.sports.EventPeriod periods = 10 [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 = 10 [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 = 10 [json_name = "periods"];
*/
public Builder addPeriods(com.streamlayer.sports.common.EventPeriod value) {
copyOnWrite();
instance.addPeriods(value);
return this;
}
/**
* repeated .streamlayer.sports.EventPeriod periods = 10 [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 = 10 [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 = 10 [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 = 10 [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 = 10 [json_name = "periods"];
*/
public Builder clearPeriods() {
copyOnWrite();
instance.clearPeriods();
return this;
}
/**
* repeated .streamlayer.sports.EventPeriod periods = 10 [json_name = "periods"];
*/
public Builder removePeriods(int index) {
copyOnWrite();
instance.removePeriods(index);
return this;
}
/**
* string league = 11 [json_name = "league"];
* @return The league.
*/
@java.lang.Override
public java.lang.String getLeague() {
return instance.getLeague();
}
/**
* string league = 11 [json_name = "league"];
* @return The bytes for league.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLeagueBytes() {
return instance.getLeagueBytes();
}
/**
* string league = 11 [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 = 11 [json_name = "league"];
* @return This builder for chaining.
*/
public Builder clearLeague() {
copyOnWrite();
instance.clearLeague();
return this;
}
/**
* string league = 11 [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 start_time = 12 [json_name = "startTime"];
* @return The startTime.
*/
@java.lang.Override
public java.lang.String getStartTime() {
return instance.getStartTime();
}
/**
* string start_time = 12 [json_name = "startTime"];
* @return The bytes for startTime.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStartTimeBytes() {
return instance.getStartTimeBytes();
}
/**
* string start_time = 12 [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 = 12 [json_name = "startTime"];
* @return This builder for chaining.
*/
public Builder clearStartTime() {
copyOnWrite();
instance.clearStartTime();
return this;
}
/**
* string start_time = 12 [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 = 13 [json_name = "endTime"];
* @return The endTime.
*/
@java.lang.Override
public java.lang.String getEndTime() {
return instance.getEndTime();
}
/**
* string end_time = 13 [json_name = "endTime"];
* @return The bytes for endTime.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEndTimeBytes() {
return instance.getEndTimeBytes();
}
/**
* string end_time = 13 [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 = 13 [json_name = "endTime"];
* @return This builder for chaining.
*/
public Builder clearEndTime() {
copyOnWrite();
instance.clearEndTime();
return this;
}
/**
* string end_time = 13 [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;
}
/**
* string name = 14 [json_name = "name"];
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
return instance.getName();
}
/**
* string name = 14 [json_name = "name"];
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
return instance.getNameBytes();
}
/**
* string name = 14 [json_name = "name"];
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
copyOnWrite();
instance.setName(value);
return this;
}
/**
* string name = 14 [json_name = "name"];
* @return This builder for chaining.
*/
public Builder clearName() {
copyOnWrite();
instance.clearName();
return this;
}
/**
* string name = 14 [json_name = "name"];
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setNameBytes(value);
return this;
}
/**
* string logo = 15 [json_name = "logo"];
* @return The logo.
*/
@java.lang.Override
public java.lang.String getLogo() {
return instance.getLogo();
}
/**
* string logo = 15 [json_name = "logo"];
* @return The bytes for logo.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLogoBytes() {
return instance.getLogoBytes();
}
/**
* string logo = 15 [json_name = "logo"];
* @param value The logo to set.
* @return This builder for chaining.
*/
public Builder setLogo(
java.lang.String value) {
copyOnWrite();
instance.setLogo(value);
return this;
}
/**
* string logo = 15 [json_name = "logo"];
* @return This builder for chaining.
*/
public Builder clearLogo() {
copyOnWrite();
instance.clearLogo();
return this;
}
/**
* string logo = 15 [json_name = "logo"];
* @param value The bytes for logo to set.
* @return This builder for chaining.
*/
public Builder setLogoBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setLogoBytes(value);
return this;
}
/**
*
* stream url
*
*
* string stream = 16 [json_name = "stream"];
* @return The stream.
*/
@java.lang.Override
public java.lang.String getStream() {
return instance.getStream();
}
/**
*
* stream url
*
*
* string stream = 16 [json_name = "stream"];
* @return The bytes for stream.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStreamBytes() {
return instance.getStreamBytes();
}
/**
*
* stream url
*
*
* string stream = 16 [json_name = "stream"];
* @param value The stream to set.
* @return This builder for chaining.
*/
public Builder setStream(
java.lang.String value) {
copyOnWrite();
instance.setStream(value);
return this;
}
/**
*
* stream url
*
*
* string stream = 16 [json_name = "stream"];
* @return This builder for chaining.
*/
public Builder clearStream() {
copyOnWrite();
instance.clearStream();
return this;
}
/**
*
* stream url
*
*
* string stream = 16 [json_name = "stream"];
* @param value The bytes for stream to set.
* @return This builder for chaining.
*/
public Builder setStreamBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setStreamBytes(value);
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.sports.EventSummary)
}
@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.EventSummary();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"bitField0_",
"id_",
"scheduled_",
"scoreHome_",
"scoreAway_",
"venue_",
"eventTime_",
"homeTeam_",
"awayTeam_",
"status_",
"periods_",
com.streamlayer.sports.common.EventPeriod.class,
"league_",
"startTime_",
"endTime_",
"name_",
"logo_",
"stream_",
};
java.lang.String info =
"\u0000\u0010\u0000\u0001\u0001\u0010\u0010\u0000\u0001\u0000\u0001\u0003\u0002\u0208" +
"\u0003\u0004\u0004\u0004\u0005\u1009\u0000\u0006\u1009\u0001\u0007\u1009\u0002\b" +
"\u1009\u0003\t\f\n\u001b\u000b\u0208\f\u0208\r\u0208\u000e\u0208\u000f\u0208\u0010" +
"\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.EventSummary.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.EventSummary)
private static final com.streamlayer.sports.common.EventSummary DEFAULT_INSTANCE;
static {
EventSummary defaultInstance = new EventSummary();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
EventSummary.class, defaultInstance);
}
public static com.streamlayer.sports.common.EventSummary getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}