main.java.com.streamlayer.sportsdata.client.games.Game 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/sportsdata/client/games/games.proto
// Protobuf Java Version: 3.25.3
package com.streamlayer.sportsdata.client.games;
/**
* Protobuf type {@code streamlayer.sportsdata.client.games.Game}
*/
public final class Game extends
com.google.protobuf.GeneratedMessageLite<
Game, Game.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.sportsdata.client.games.Game)
GameOrBuilder {
private Game() {
homeTeam_ = "";
awayTeam_ = "";
homeTeamLogo_ = "";
awayTeamLogo_ = "";
homeTeamShortName_ = "";
awayTeamShortName_ = "";
startDate_ = "";
sport_ = "";
league_ = "";
}
private int bitField0_;
public static final int ID_FIELD_NUMBER = 1;
private int id_;
/**
* int32 id = 1 [json_name = "id"];
* @return The id.
*/
@java.lang.Override
public int getId() {
return id_;
}
/**
* int32 id = 1 [json_name = "id"];
* @param value The id to set.
*/
private void setId(int value) {
id_ = value;
}
/**
* int32 id = 1 [json_name = "id"];
*/
private void clearId() {
id_ = 0;
}
public static final int LEAGUE_ID_FIELD_NUMBER = 2;
private int leagueId_;
/**
* int32 league_id = 2 [json_name = "leagueId"];
* @return The leagueId.
*/
@java.lang.Override
public int getLeagueId() {
return leagueId_;
}
/**
* int32 league_id = 2 [json_name = "leagueId"];
* @param value The leagueId to set.
*/
private void setLeagueId(int value) {
leagueId_ = value;
}
/**
* int32 league_id = 2 [json_name = "leagueId"];
*/
private void clearLeagueId() {
leagueId_ = 0;
}
public static final int HOME_TEAM_FIELD_NUMBER = 3;
private java.lang.String homeTeam_;
/**
* string home_team = 3 [json_name = "homeTeam"];
* @return The homeTeam.
*/
@java.lang.Override
public java.lang.String getHomeTeam() {
return homeTeam_;
}
/**
* string home_team = 3 [json_name = "homeTeam"];
* @return The bytes for homeTeam.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHomeTeamBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(homeTeam_);
}
/**
* string home_team = 3 [json_name = "homeTeam"];
* @param value The homeTeam to set.
*/
private void setHomeTeam(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
homeTeam_ = value;
}
/**
* string home_team = 3 [json_name = "homeTeam"];
*/
private void clearHomeTeam() {
homeTeam_ = getDefaultInstance().getHomeTeam();
}
/**
* string home_team = 3 [json_name = "homeTeam"];
* @param value The bytes for homeTeam to set.
*/
private void setHomeTeamBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
homeTeam_ = value.toStringUtf8();
}
public static final int AWAY_TEAM_FIELD_NUMBER = 4;
private java.lang.String awayTeam_;
/**
* string away_team = 4 [json_name = "awayTeam"];
* @return The awayTeam.
*/
@java.lang.Override
public java.lang.String getAwayTeam() {
return awayTeam_;
}
/**
* string away_team = 4 [json_name = "awayTeam"];
* @return The bytes for awayTeam.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAwayTeamBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(awayTeam_);
}
/**
* string away_team = 4 [json_name = "awayTeam"];
* @param value The awayTeam to set.
*/
private void setAwayTeam(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
awayTeam_ = value;
}
/**
* string away_team = 4 [json_name = "awayTeam"];
*/
private void clearAwayTeam() {
awayTeam_ = getDefaultInstance().getAwayTeam();
}
/**
* string away_team = 4 [json_name = "awayTeam"];
* @param value The bytes for awayTeam to set.
*/
private void setAwayTeamBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
awayTeam_ = value.toStringUtf8();
}
public static final int HOME_TEAM_LOGO_FIELD_NUMBER = 5;
private java.lang.String homeTeamLogo_;
/**
* string home_team_logo = 5 [json_name = "homeTeamLogo"];
* @return The homeTeamLogo.
*/
@java.lang.Override
public java.lang.String getHomeTeamLogo() {
return homeTeamLogo_;
}
/**
* string home_team_logo = 5 [json_name = "homeTeamLogo"];
* @return The bytes for homeTeamLogo.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHomeTeamLogoBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(homeTeamLogo_);
}
/**
* string home_team_logo = 5 [json_name = "homeTeamLogo"];
* @param value The homeTeamLogo to set.
*/
private void setHomeTeamLogo(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
homeTeamLogo_ = value;
}
/**
* string home_team_logo = 5 [json_name = "homeTeamLogo"];
*/
private void clearHomeTeamLogo() {
homeTeamLogo_ = getDefaultInstance().getHomeTeamLogo();
}
/**
* string home_team_logo = 5 [json_name = "homeTeamLogo"];
* @param value The bytes for homeTeamLogo to set.
*/
private void setHomeTeamLogoBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
homeTeamLogo_ = value.toStringUtf8();
}
public static final int AWAY_TEAM_LOGO_FIELD_NUMBER = 6;
private java.lang.String awayTeamLogo_;
/**
* string away_team_logo = 6 [json_name = "awayTeamLogo"];
* @return The awayTeamLogo.
*/
@java.lang.Override
public java.lang.String getAwayTeamLogo() {
return awayTeamLogo_;
}
/**
* string away_team_logo = 6 [json_name = "awayTeamLogo"];
* @return The bytes for awayTeamLogo.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAwayTeamLogoBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(awayTeamLogo_);
}
/**
* string away_team_logo = 6 [json_name = "awayTeamLogo"];
* @param value The awayTeamLogo to set.
*/
private void setAwayTeamLogo(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
awayTeamLogo_ = value;
}
/**
* string away_team_logo = 6 [json_name = "awayTeamLogo"];
*/
private void clearAwayTeamLogo() {
awayTeamLogo_ = getDefaultInstance().getAwayTeamLogo();
}
/**
* string away_team_logo = 6 [json_name = "awayTeamLogo"];
* @param value The bytes for awayTeamLogo to set.
*/
private void setAwayTeamLogoBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
awayTeamLogo_ = value.toStringUtf8();
}
public static final int HOME_TEAM_SHORT_NAME_FIELD_NUMBER = 7;
private java.lang.String homeTeamShortName_;
/**
* string home_team_short_name = 7 [json_name = "homeTeamShortName"];
* @return The homeTeamShortName.
*/
@java.lang.Override
public java.lang.String getHomeTeamShortName() {
return homeTeamShortName_;
}
/**
* string home_team_short_name = 7 [json_name = "homeTeamShortName"];
* @return The bytes for homeTeamShortName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHomeTeamShortNameBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(homeTeamShortName_);
}
/**
* string home_team_short_name = 7 [json_name = "homeTeamShortName"];
* @param value The homeTeamShortName to set.
*/
private void setHomeTeamShortName(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
homeTeamShortName_ = value;
}
/**
* string home_team_short_name = 7 [json_name = "homeTeamShortName"];
*/
private void clearHomeTeamShortName() {
homeTeamShortName_ = getDefaultInstance().getHomeTeamShortName();
}
/**
* string home_team_short_name = 7 [json_name = "homeTeamShortName"];
* @param value The bytes for homeTeamShortName to set.
*/
private void setHomeTeamShortNameBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
homeTeamShortName_ = value.toStringUtf8();
}
public static final int AWAY_TEAM_SHORT_NAME_FIELD_NUMBER = 8;
private java.lang.String awayTeamShortName_;
/**
* string away_team_short_name = 8 [json_name = "awayTeamShortName"];
* @return The awayTeamShortName.
*/
@java.lang.Override
public java.lang.String getAwayTeamShortName() {
return awayTeamShortName_;
}
/**
* string away_team_short_name = 8 [json_name = "awayTeamShortName"];
* @return The bytes for awayTeamShortName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAwayTeamShortNameBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(awayTeamShortName_);
}
/**
* string away_team_short_name = 8 [json_name = "awayTeamShortName"];
* @param value The awayTeamShortName to set.
*/
private void setAwayTeamShortName(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
awayTeamShortName_ = value;
}
/**
* string away_team_short_name = 8 [json_name = "awayTeamShortName"];
*/
private void clearAwayTeamShortName() {
awayTeamShortName_ = getDefaultInstance().getAwayTeamShortName();
}
/**
* string away_team_short_name = 8 [json_name = "awayTeamShortName"];
* @param value The bytes for awayTeamShortName to set.
*/
private void setAwayTeamShortNameBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
awayTeamShortName_ = value.toStringUtf8();
}
public static final int HOME_SCORE_FIELD_NUMBER = 9;
private int homeScore_;
/**
* int32 home_score = 9 [json_name = "homeScore"];
* @return The homeScore.
*/
@java.lang.Override
public int getHomeScore() {
return homeScore_;
}
/**
* int32 home_score = 9 [json_name = "homeScore"];
* @param value The homeScore to set.
*/
private void setHomeScore(int value) {
homeScore_ = value;
}
/**
* int32 home_score = 9 [json_name = "homeScore"];
*/
private void clearHomeScore() {
homeScore_ = 0;
}
public static final int AWAY_SCORE_FIELD_NUMBER = 10;
private int awayScore_;
/**
* int32 away_score = 10 [json_name = "awayScore"];
* @return The awayScore.
*/
@java.lang.Override
public int getAwayScore() {
return awayScore_;
}
/**
* int32 away_score = 10 [json_name = "awayScore"];
* @param value The awayScore to set.
*/
private void setAwayScore(int value) {
awayScore_ = value;
}
/**
* int32 away_score = 10 [json_name = "awayScore"];
*/
private void clearAwayScore() {
awayScore_ = 0;
}
public static final int START_DATE_FIELD_NUMBER = 11;
private java.lang.String startDate_;
/**
* string start_date = 11 [json_name = "startDate"];
* @return The startDate.
*/
@java.lang.Override
public java.lang.String getStartDate() {
return startDate_;
}
/**
* string start_date = 11 [json_name = "startDate"];
* @return The bytes for startDate.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStartDateBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(startDate_);
}
/**
* string start_date = 11 [json_name = "startDate"];
* @param value The startDate to set.
*/
private void setStartDate(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
startDate_ = value;
}
/**
* string start_date = 11 [json_name = "startDate"];
*/
private void clearStartDate() {
startDate_ = getDefaultInstance().getStartDate();
}
/**
* string start_date = 11 [json_name = "startDate"];
* @param value The bytes for startDate to set.
*/
private void setStartDateBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
startDate_ = value.toStringUtf8();
}
public static final int IN_LIVE_FIELD_NUMBER = 12;
private boolean inLive_;
/**
* bool in_live = 12 [json_name = "inLive"];
* @return The inLive.
*/
@java.lang.Override
public boolean getInLive() {
return inLive_;
}
/**
* bool in_live = 12 [json_name = "inLive"];
* @param value The inLive to set.
*/
private void setInLive(boolean value) {
inLive_ = value;
}
/**
* bool in_live = 12 [json_name = "inLive"];
*/
private void clearInLive() {
inLive_ = false;
}
public static final int ODDS_FIELD_NUMBER = 13;
private com.streamlayer.sportsdata.common.GameOdds odds_;
/**
* .streamlayer.sportsdata.GameOdds odds = 13 [json_name = "odds"];
*/
@java.lang.Override
public boolean hasOdds() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .streamlayer.sportsdata.GameOdds odds = 13 [json_name = "odds"];
*/
@java.lang.Override
public com.streamlayer.sportsdata.common.GameOdds getOdds() {
return odds_ == null ? com.streamlayer.sportsdata.common.GameOdds.getDefaultInstance() : odds_;
}
/**
* .streamlayer.sportsdata.GameOdds odds = 13 [json_name = "odds"];
*/
private void setOdds(com.streamlayer.sportsdata.common.GameOdds value) {
value.getClass();
odds_ = value;
bitField0_ |= 0x00000001;
}
/**
* .streamlayer.sportsdata.GameOdds odds = 13 [json_name = "odds"];
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeOdds(com.streamlayer.sportsdata.common.GameOdds value) {
value.getClass();
if (odds_ != null &&
odds_ != com.streamlayer.sportsdata.common.GameOdds.getDefaultInstance()) {
odds_ =
com.streamlayer.sportsdata.common.GameOdds.newBuilder(odds_).mergeFrom(value).buildPartial();
} else {
odds_ = value;
}
bitField0_ |= 0x00000001;
}
/**
* .streamlayer.sportsdata.GameOdds odds = 13 [json_name = "odds"];
*/
private void clearOdds() { odds_ = null;
bitField0_ = (bitField0_ & ~0x00000001);
}
public static final int PERIOD_FIELD_NUMBER = 14;
private int period_;
/**
* .streamlayer.sportsdata.client.games.GamePeriod period = 14 [json_name = "period"];
* @return The enum numeric value on the wire for period.
*/
@java.lang.Override
public int getPeriodValue() {
return period_;
}
/**
* .streamlayer.sportsdata.client.games.GamePeriod period = 14 [json_name = "period"];
* @return The period.
*/
@java.lang.Override
public com.streamlayer.sportsdata.client.games.GamePeriod getPeriod() {
com.streamlayer.sportsdata.client.games.GamePeriod result = com.streamlayer.sportsdata.client.games.GamePeriod.forNumber(period_);
return result == null ? com.streamlayer.sportsdata.client.games.GamePeriod.UNRECOGNIZED : result;
}
/**
* .streamlayer.sportsdata.client.games.GamePeriod period = 14 [json_name = "period"];
* @param value The enum numeric value on the wire for period to set.
*/
private void setPeriodValue(int value) {
period_ = value;
}
/**
* .streamlayer.sportsdata.client.games.GamePeriod period = 14 [json_name = "period"];
* @param value The period to set.
*/
private void setPeriod(com.streamlayer.sportsdata.client.games.GamePeriod value) {
period_ = value.getNumber();
}
/**
* .streamlayer.sportsdata.client.games.GamePeriod period = 14 [json_name = "period"];
*/
private void clearPeriod() {
period_ = 0;
}
public static final int START_DATE_TIMESTAMP_FIELD_NUMBER = 15;
private com.google.protobuf.Timestamp startDateTimestamp_;
/**
* .google.protobuf.Timestamp start_date_timestamp = 15 [json_name = "startDateTimestamp"];
*/
@java.lang.Override
public boolean hasStartDateTimestamp() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .google.protobuf.Timestamp start_date_timestamp = 15 [json_name = "startDateTimestamp"];
*/
@java.lang.Override
public com.google.protobuf.Timestamp getStartDateTimestamp() {
return startDateTimestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startDateTimestamp_;
}
/**
* .google.protobuf.Timestamp start_date_timestamp = 15 [json_name = "startDateTimestamp"];
*/
private void setStartDateTimestamp(com.google.protobuf.Timestamp value) {
value.getClass();
startDateTimestamp_ = value;
bitField0_ |= 0x00000002;
}
/**
* .google.protobuf.Timestamp start_date_timestamp = 15 [json_name = "startDateTimestamp"];
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeStartDateTimestamp(com.google.protobuf.Timestamp value) {
value.getClass();
if (startDateTimestamp_ != null &&
startDateTimestamp_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
startDateTimestamp_ =
com.google.protobuf.Timestamp.newBuilder(startDateTimestamp_).mergeFrom(value).buildPartial();
} else {
startDateTimestamp_ = value;
}
bitField0_ |= 0x00000002;
}
/**
* .google.protobuf.Timestamp start_date_timestamp = 15 [json_name = "startDateTimestamp"];
*/
private void clearStartDateTimestamp() { startDateTimestamp_ = null;
bitField0_ = (bitField0_ & ~0x00000002);
}
public static final int SPORT_FIELD_NUMBER = 16;
private java.lang.String sport_;
/**
* string sport = 16 [json_name = "sport"];
* @return The sport.
*/
@java.lang.Override
public java.lang.String getSport() {
return sport_;
}
/**
* string sport = 16 [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 = 16 [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 = 16 [json_name = "sport"];
*/
private void clearSport() {
sport_ = getDefaultInstance().getSport();
}
/**
* string sport = 16 [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 = 17;
private java.lang.String league_;
/**
* string league = 17 [json_name = "league"];
* @return The league.
*/
@java.lang.Override
public java.lang.String getLeague() {
return league_;
}
/**
* string league = 17 [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 = 17 [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 = 17 [json_name = "league"];
*/
private void clearLeague() {
league_ = getDefaultInstance().getLeague();
}
/**
* string league = 17 [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 SPORT_TYPE_FIELD_NUMBER = 18;
private int sportType_;
/**
* .streamlayer.sportsdata.SportType sport_type = 18 [json_name = "sportType"];
* @return The enum numeric value on the wire for sportType.
*/
@java.lang.Override
public int getSportTypeValue() {
return sportType_;
}
/**
* .streamlayer.sportsdata.SportType sport_type = 18 [json_name = "sportType"];
* @return The sportType.
*/
@java.lang.Override
public com.streamlayer.sportsdata.common.SportType getSportType() {
com.streamlayer.sportsdata.common.SportType result = com.streamlayer.sportsdata.common.SportType.forNumber(sportType_);
return result == null ? com.streamlayer.sportsdata.common.SportType.UNRECOGNIZED : result;
}
/**
* .streamlayer.sportsdata.SportType sport_type = 18 [json_name = "sportType"];
* @param value The enum numeric value on the wire for sportType to set.
*/
private void setSportTypeValue(int value) {
sportType_ = value;
}
/**
* .streamlayer.sportsdata.SportType sport_type = 18 [json_name = "sportType"];
* @param value The sportType to set.
*/
private void setSportType(com.streamlayer.sportsdata.common.SportType value) {
sportType_ = value.getNumber();
}
/**
* .streamlayer.sportsdata.SportType sport_type = 18 [json_name = "sportType"];
*/
private void clearSportType() {
sportType_ = 0;
}
public static com.streamlayer.sportsdata.client.games.Game parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sportsdata.client.games.Game 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.sportsdata.client.games.Game parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sportsdata.client.games.Game 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.sportsdata.client.games.Game parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sportsdata.client.games.Game 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.sportsdata.client.games.Game parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sportsdata.client.games.Game 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.sportsdata.client.games.Game parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sportsdata.client.games.Game parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.streamlayer.sportsdata.client.games.Game parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sportsdata.client.games.Game 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.sportsdata.client.games.Game prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.sportsdata.client.games.Game}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.sportsdata.client.games.Game, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.sportsdata.client.games.Game)
com.streamlayer.sportsdata.client.games.GameOrBuilder {
// Construct using com.streamlayer.sportsdata.client.games.Game.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* int32 id = 1 [json_name = "id"];
* @return The id.
*/
@java.lang.Override
public int getId() {
return instance.getId();
}
/**
* int32 id = 1 [json_name = "id"];
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(int value) {
copyOnWrite();
instance.setId(value);
return this;
}
/**
* int32 id = 1 [json_name = "id"];
* @return This builder for chaining.
*/
public Builder clearId() {
copyOnWrite();
instance.clearId();
return this;
}
/**
* int32 league_id = 2 [json_name = "leagueId"];
* @return The leagueId.
*/
@java.lang.Override
public int getLeagueId() {
return instance.getLeagueId();
}
/**
* int32 league_id = 2 [json_name = "leagueId"];
* @param value The leagueId to set.
* @return This builder for chaining.
*/
public Builder setLeagueId(int value) {
copyOnWrite();
instance.setLeagueId(value);
return this;
}
/**
* int32 league_id = 2 [json_name = "leagueId"];
* @return This builder for chaining.
*/
public Builder clearLeagueId() {
copyOnWrite();
instance.clearLeagueId();
return this;
}
/**
* string home_team = 3 [json_name = "homeTeam"];
* @return The homeTeam.
*/
@java.lang.Override
public java.lang.String getHomeTeam() {
return instance.getHomeTeam();
}
/**
* string home_team = 3 [json_name = "homeTeam"];
* @return The bytes for homeTeam.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHomeTeamBytes() {
return instance.getHomeTeamBytes();
}
/**
* string home_team = 3 [json_name = "homeTeam"];
* @param value The homeTeam to set.
* @return This builder for chaining.
*/
public Builder setHomeTeam(
java.lang.String value) {
copyOnWrite();
instance.setHomeTeam(value);
return this;
}
/**
* string home_team = 3 [json_name = "homeTeam"];
* @return This builder for chaining.
*/
public Builder clearHomeTeam() {
copyOnWrite();
instance.clearHomeTeam();
return this;
}
/**
* string home_team = 3 [json_name = "homeTeam"];
* @param value The bytes for homeTeam to set.
* @return This builder for chaining.
*/
public Builder setHomeTeamBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setHomeTeamBytes(value);
return this;
}
/**
* string away_team = 4 [json_name = "awayTeam"];
* @return The awayTeam.
*/
@java.lang.Override
public java.lang.String getAwayTeam() {
return instance.getAwayTeam();
}
/**
* string away_team = 4 [json_name = "awayTeam"];
* @return The bytes for awayTeam.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAwayTeamBytes() {
return instance.getAwayTeamBytes();
}
/**
* string away_team = 4 [json_name = "awayTeam"];
* @param value The awayTeam to set.
* @return This builder for chaining.
*/
public Builder setAwayTeam(
java.lang.String value) {
copyOnWrite();
instance.setAwayTeam(value);
return this;
}
/**
* string away_team = 4 [json_name = "awayTeam"];
* @return This builder for chaining.
*/
public Builder clearAwayTeam() {
copyOnWrite();
instance.clearAwayTeam();
return this;
}
/**
* string away_team = 4 [json_name = "awayTeam"];
* @param value The bytes for awayTeam to set.
* @return This builder for chaining.
*/
public Builder setAwayTeamBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setAwayTeamBytes(value);
return this;
}
/**
* string home_team_logo = 5 [json_name = "homeTeamLogo"];
* @return The homeTeamLogo.
*/
@java.lang.Override
public java.lang.String getHomeTeamLogo() {
return instance.getHomeTeamLogo();
}
/**
* string home_team_logo = 5 [json_name = "homeTeamLogo"];
* @return The bytes for homeTeamLogo.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHomeTeamLogoBytes() {
return instance.getHomeTeamLogoBytes();
}
/**
* string home_team_logo = 5 [json_name = "homeTeamLogo"];
* @param value The homeTeamLogo to set.
* @return This builder for chaining.
*/
public Builder setHomeTeamLogo(
java.lang.String value) {
copyOnWrite();
instance.setHomeTeamLogo(value);
return this;
}
/**
* string home_team_logo = 5 [json_name = "homeTeamLogo"];
* @return This builder for chaining.
*/
public Builder clearHomeTeamLogo() {
copyOnWrite();
instance.clearHomeTeamLogo();
return this;
}
/**
* string home_team_logo = 5 [json_name = "homeTeamLogo"];
* @param value The bytes for homeTeamLogo to set.
* @return This builder for chaining.
*/
public Builder setHomeTeamLogoBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setHomeTeamLogoBytes(value);
return this;
}
/**
* string away_team_logo = 6 [json_name = "awayTeamLogo"];
* @return The awayTeamLogo.
*/
@java.lang.Override
public java.lang.String getAwayTeamLogo() {
return instance.getAwayTeamLogo();
}
/**
* string away_team_logo = 6 [json_name = "awayTeamLogo"];
* @return The bytes for awayTeamLogo.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAwayTeamLogoBytes() {
return instance.getAwayTeamLogoBytes();
}
/**
* string away_team_logo = 6 [json_name = "awayTeamLogo"];
* @param value The awayTeamLogo to set.
* @return This builder for chaining.
*/
public Builder setAwayTeamLogo(
java.lang.String value) {
copyOnWrite();
instance.setAwayTeamLogo(value);
return this;
}
/**
* string away_team_logo = 6 [json_name = "awayTeamLogo"];
* @return This builder for chaining.
*/
public Builder clearAwayTeamLogo() {
copyOnWrite();
instance.clearAwayTeamLogo();
return this;
}
/**
* string away_team_logo = 6 [json_name = "awayTeamLogo"];
* @param value The bytes for awayTeamLogo to set.
* @return This builder for chaining.
*/
public Builder setAwayTeamLogoBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setAwayTeamLogoBytes(value);
return this;
}
/**
* string home_team_short_name = 7 [json_name = "homeTeamShortName"];
* @return The homeTeamShortName.
*/
@java.lang.Override
public java.lang.String getHomeTeamShortName() {
return instance.getHomeTeamShortName();
}
/**
* string home_team_short_name = 7 [json_name = "homeTeamShortName"];
* @return The bytes for homeTeamShortName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHomeTeamShortNameBytes() {
return instance.getHomeTeamShortNameBytes();
}
/**
* string home_team_short_name = 7 [json_name = "homeTeamShortName"];
* @param value The homeTeamShortName to set.
* @return This builder for chaining.
*/
public Builder setHomeTeamShortName(
java.lang.String value) {
copyOnWrite();
instance.setHomeTeamShortName(value);
return this;
}
/**
* string home_team_short_name = 7 [json_name = "homeTeamShortName"];
* @return This builder for chaining.
*/
public Builder clearHomeTeamShortName() {
copyOnWrite();
instance.clearHomeTeamShortName();
return this;
}
/**
* string home_team_short_name = 7 [json_name = "homeTeamShortName"];
* @param value The bytes for homeTeamShortName to set.
* @return This builder for chaining.
*/
public Builder setHomeTeamShortNameBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setHomeTeamShortNameBytes(value);
return this;
}
/**
* string away_team_short_name = 8 [json_name = "awayTeamShortName"];
* @return The awayTeamShortName.
*/
@java.lang.Override
public java.lang.String getAwayTeamShortName() {
return instance.getAwayTeamShortName();
}
/**
* string away_team_short_name = 8 [json_name = "awayTeamShortName"];
* @return The bytes for awayTeamShortName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAwayTeamShortNameBytes() {
return instance.getAwayTeamShortNameBytes();
}
/**
* string away_team_short_name = 8 [json_name = "awayTeamShortName"];
* @param value The awayTeamShortName to set.
* @return This builder for chaining.
*/
public Builder setAwayTeamShortName(
java.lang.String value) {
copyOnWrite();
instance.setAwayTeamShortName(value);
return this;
}
/**
* string away_team_short_name = 8 [json_name = "awayTeamShortName"];
* @return This builder for chaining.
*/
public Builder clearAwayTeamShortName() {
copyOnWrite();
instance.clearAwayTeamShortName();
return this;
}
/**
* string away_team_short_name = 8 [json_name = "awayTeamShortName"];
* @param value The bytes for awayTeamShortName to set.
* @return This builder for chaining.
*/
public Builder setAwayTeamShortNameBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setAwayTeamShortNameBytes(value);
return this;
}
/**
* int32 home_score = 9 [json_name = "homeScore"];
* @return The homeScore.
*/
@java.lang.Override
public int getHomeScore() {
return instance.getHomeScore();
}
/**
* int32 home_score = 9 [json_name = "homeScore"];
* @param value The homeScore to set.
* @return This builder for chaining.
*/
public Builder setHomeScore(int value) {
copyOnWrite();
instance.setHomeScore(value);
return this;
}
/**
* int32 home_score = 9 [json_name = "homeScore"];
* @return This builder for chaining.
*/
public Builder clearHomeScore() {
copyOnWrite();
instance.clearHomeScore();
return this;
}
/**
* int32 away_score = 10 [json_name = "awayScore"];
* @return The awayScore.
*/
@java.lang.Override
public int getAwayScore() {
return instance.getAwayScore();
}
/**
* int32 away_score = 10 [json_name = "awayScore"];
* @param value The awayScore to set.
* @return This builder for chaining.
*/
public Builder setAwayScore(int value) {
copyOnWrite();
instance.setAwayScore(value);
return this;
}
/**
* int32 away_score = 10 [json_name = "awayScore"];
* @return This builder for chaining.
*/
public Builder clearAwayScore() {
copyOnWrite();
instance.clearAwayScore();
return this;
}
/**
* string start_date = 11 [json_name = "startDate"];
* @return The startDate.
*/
@java.lang.Override
public java.lang.String getStartDate() {
return instance.getStartDate();
}
/**
* string start_date = 11 [json_name = "startDate"];
* @return The bytes for startDate.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStartDateBytes() {
return instance.getStartDateBytes();
}
/**
* string start_date = 11 [json_name = "startDate"];
* @param value The startDate to set.
* @return This builder for chaining.
*/
public Builder setStartDate(
java.lang.String value) {
copyOnWrite();
instance.setStartDate(value);
return this;
}
/**
* string start_date = 11 [json_name = "startDate"];
* @return This builder for chaining.
*/
public Builder clearStartDate() {
copyOnWrite();
instance.clearStartDate();
return this;
}
/**
* string start_date = 11 [json_name = "startDate"];
* @param value The bytes for startDate to set.
* @return This builder for chaining.
*/
public Builder setStartDateBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setStartDateBytes(value);
return this;
}
/**
* bool in_live = 12 [json_name = "inLive"];
* @return The inLive.
*/
@java.lang.Override
public boolean getInLive() {
return instance.getInLive();
}
/**
* bool in_live = 12 [json_name = "inLive"];
* @param value The inLive to set.
* @return This builder for chaining.
*/
public Builder setInLive(boolean value) {
copyOnWrite();
instance.setInLive(value);
return this;
}
/**
* bool in_live = 12 [json_name = "inLive"];
* @return This builder for chaining.
*/
public Builder clearInLive() {
copyOnWrite();
instance.clearInLive();
return this;
}
/**
* .streamlayer.sportsdata.GameOdds odds = 13 [json_name = "odds"];
*/
@java.lang.Override
public boolean hasOdds() {
return instance.hasOdds();
}
/**
* .streamlayer.sportsdata.GameOdds odds = 13 [json_name = "odds"];
*/
@java.lang.Override
public com.streamlayer.sportsdata.common.GameOdds getOdds() {
return instance.getOdds();
}
/**
* .streamlayer.sportsdata.GameOdds odds = 13 [json_name = "odds"];
*/
public Builder setOdds(com.streamlayer.sportsdata.common.GameOdds value) {
copyOnWrite();
instance.setOdds(value);
return this;
}
/**
* .streamlayer.sportsdata.GameOdds odds = 13 [json_name = "odds"];
*/
public Builder setOdds(
com.streamlayer.sportsdata.common.GameOdds.Builder builderForValue) {
copyOnWrite();
instance.setOdds(builderForValue.build());
return this;
}
/**
* .streamlayer.sportsdata.GameOdds odds = 13 [json_name = "odds"];
*/
public Builder mergeOdds(com.streamlayer.sportsdata.common.GameOdds value) {
copyOnWrite();
instance.mergeOdds(value);
return this;
}
/**
* .streamlayer.sportsdata.GameOdds odds = 13 [json_name = "odds"];
*/
public Builder clearOdds() { copyOnWrite();
instance.clearOdds();
return this;
}
/**
* .streamlayer.sportsdata.client.games.GamePeriod period = 14 [json_name = "period"];
* @return The enum numeric value on the wire for period.
*/
@java.lang.Override
public int getPeriodValue() {
return instance.getPeriodValue();
}
/**
* .streamlayer.sportsdata.client.games.GamePeriod period = 14 [json_name = "period"];
* @param value The period to set.
* @return This builder for chaining.
*/
public Builder setPeriodValue(int value) {
copyOnWrite();
instance.setPeriodValue(value);
return this;
}
/**
* .streamlayer.sportsdata.client.games.GamePeriod period = 14 [json_name = "period"];
* @return The period.
*/
@java.lang.Override
public com.streamlayer.sportsdata.client.games.GamePeriod getPeriod() {
return instance.getPeriod();
}
/**
* .streamlayer.sportsdata.client.games.GamePeriod period = 14 [json_name = "period"];
* @param value The enum numeric value on the wire for period to set.
* @return This builder for chaining.
*/
public Builder setPeriod(com.streamlayer.sportsdata.client.games.GamePeriod value) {
copyOnWrite();
instance.setPeriod(value);
return this;
}
/**
* .streamlayer.sportsdata.client.games.GamePeriod period = 14 [json_name = "period"];
* @return This builder for chaining.
*/
public Builder clearPeriod() {
copyOnWrite();
instance.clearPeriod();
return this;
}
/**
* .google.protobuf.Timestamp start_date_timestamp = 15 [json_name = "startDateTimestamp"];
*/
@java.lang.Override
public boolean hasStartDateTimestamp() {
return instance.hasStartDateTimestamp();
}
/**
* .google.protobuf.Timestamp start_date_timestamp = 15 [json_name = "startDateTimestamp"];
*/
@java.lang.Override
public com.google.protobuf.Timestamp getStartDateTimestamp() {
return instance.getStartDateTimestamp();
}
/**
* .google.protobuf.Timestamp start_date_timestamp = 15 [json_name = "startDateTimestamp"];
*/
public Builder setStartDateTimestamp(com.google.protobuf.Timestamp value) {
copyOnWrite();
instance.setStartDateTimestamp(value);
return this;
}
/**
* .google.protobuf.Timestamp start_date_timestamp = 15 [json_name = "startDateTimestamp"];
*/
public Builder setStartDateTimestamp(
com.google.protobuf.Timestamp.Builder builderForValue) {
copyOnWrite();
instance.setStartDateTimestamp(builderForValue.build());
return this;
}
/**
* .google.protobuf.Timestamp start_date_timestamp = 15 [json_name = "startDateTimestamp"];
*/
public Builder mergeStartDateTimestamp(com.google.protobuf.Timestamp value) {
copyOnWrite();
instance.mergeStartDateTimestamp(value);
return this;
}
/**
* .google.protobuf.Timestamp start_date_timestamp = 15 [json_name = "startDateTimestamp"];
*/
public Builder clearStartDateTimestamp() { copyOnWrite();
instance.clearStartDateTimestamp();
return this;
}
/**
* string sport = 16 [json_name = "sport"];
* @return The sport.
*/
@java.lang.Override
public java.lang.String getSport() {
return instance.getSport();
}
/**
* string sport = 16 [json_name = "sport"];
* @return The bytes for sport.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSportBytes() {
return instance.getSportBytes();
}
/**
* string sport = 16 [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 = 16 [json_name = "sport"];
* @return This builder for chaining.
*/
public Builder clearSport() {
copyOnWrite();
instance.clearSport();
return this;
}
/**
* string sport = 16 [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 = 17 [json_name = "league"];
* @return The league.
*/
@java.lang.Override
public java.lang.String getLeague() {
return instance.getLeague();
}
/**
* string league = 17 [json_name = "league"];
* @return The bytes for league.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLeagueBytes() {
return instance.getLeagueBytes();
}
/**
* string league = 17 [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 = 17 [json_name = "league"];
* @return This builder for chaining.
*/
public Builder clearLeague() {
copyOnWrite();
instance.clearLeague();
return this;
}
/**
* string league = 17 [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;
}
/**
* .streamlayer.sportsdata.SportType sport_type = 18 [json_name = "sportType"];
* @return The enum numeric value on the wire for sportType.
*/
@java.lang.Override
public int getSportTypeValue() {
return instance.getSportTypeValue();
}
/**
* .streamlayer.sportsdata.SportType sport_type = 18 [json_name = "sportType"];
* @param value The sportType to set.
* @return This builder for chaining.
*/
public Builder setSportTypeValue(int value) {
copyOnWrite();
instance.setSportTypeValue(value);
return this;
}
/**
* .streamlayer.sportsdata.SportType sport_type = 18 [json_name = "sportType"];
* @return The sportType.
*/
@java.lang.Override
public com.streamlayer.sportsdata.common.SportType getSportType() {
return instance.getSportType();
}
/**
* .streamlayer.sportsdata.SportType sport_type = 18 [json_name = "sportType"];
* @param value The enum numeric value on the wire for sportType to set.
* @return This builder for chaining.
*/
public Builder setSportType(com.streamlayer.sportsdata.common.SportType value) {
copyOnWrite();
instance.setSportType(value);
return this;
}
/**
* .streamlayer.sportsdata.SportType sport_type = 18 [json_name = "sportType"];
* @return This builder for chaining.
*/
public Builder clearSportType() {
copyOnWrite();
instance.clearSportType();
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.sportsdata.client.games.Game)
}
@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.sportsdata.client.games.Game();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"bitField0_",
"id_",
"leagueId_",
"homeTeam_",
"awayTeam_",
"homeTeamLogo_",
"awayTeamLogo_",
"homeTeamShortName_",
"awayTeamShortName_",
"homeScore_",
"awayScore_",
"startDate_",
"inLive_",
"odds_",
"period_",
"startDateTimestamp_",
"sport_",
"league_",
"sportType_",
};
java.lang.String info =
"\u0000\u0012\u0000\u0001\u0001\u0012\u0012\u0000\u0000\u0000\u0001\u0004\u0002\u0004" +
"\u0003\u0208\u0004\u0208\u0005\u0208\u0006\u0208\u0007\u0208\b\u0208\t\u0004\n\u0004" +
"\u000b\u0208\f\u0007\r\u1009\u0000\u000e\f\u000f\u1009\u0001\u0010\u0208\u0011\u0208" +
"\u0012\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.sportsdata.client.games.Game.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.sportsdata.client.games.Game)
private static final com.streamlayer.sportsdata.client.games.Game DEFAULT_INSTANCE;
static {
Game defaultInstance = new Game();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
Game.class, defaultInstance);
}
public static com.streamlayer.sportsdata.client.games.Game getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}