Class Game.Builder

  • All Implemented Interfaces:
    com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, GameOrBuilder, java.lang.Cloneable
    Enclosing class:
    Game

    public static final class Game.Builder
    extends com.google.protobuf.GeneratedMessageLite.Builder<Game,​Game.Builder>
    implements GameOrBuilder
    Protobuf type streamlayer.sportsdata.client.games.Game
    • Method Detail

      • getId

        public int getId()
        int32 id = 1 [json_name = "id"];
        Specified by:
        getId in interface GameOrBuilder
        Returns:
        The id.
      • setId

        public Game.Builder setId​(int value)
        int32 id = 1 [json_name = "id"];
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public Game.Builder clearId()
        int32 id = 1 [json_name = "id"];
        Returns:
        This builder for chaining.
      • getLeagueId

        public int getLeagueId()
        int32 league_id = 2 [json_name = "leagueId"];
        Specified by:
        getLeagueId in interface GameOrBuilder
        Returns:
        The leagueId.
      • setLeagueId

        public Game.Builder setLeagueId​(int value)
        int32 league_id = 2 [json_name = "leagueId"];
        Parameters:
        value - The leagueId to set.
        Returns:
        This builder for chaining.
      • clearLeagueId

        public Game.Builder clearLeagueId()
        int32 league_id = 2 [json_name = "leagueId"];
        Returns:
        This builder for chaining.
      • getHomeTeam

        public java.lang.String getHomeTeam()
        string home_team = 3 [json_name = "homeTeam"];
        Specified by:
        getHomeTeam in interface GameOrBuilder
        Returns:
        The homeTeam.
      • getHomeTeamBytes

        public com.google.protobuf.ByteString getHomeTeamBytes()
        string home_team = 3 [json_name = "homeTeam"];
        Specified by:
        getHomeTeamBytes in interface GameOrBuilder
        Returns:
        The bytes for homeTeam.
      • setHomeTeam

        public Game.Builder setHomeTeam​(java.lang.String value)
        string home_team = 3 [json_name = "homeTeam"];
        Parameters:
        value - The homeTeam to set.
        Returns:
        This builder for chaining.
      • clearHomeTeam

        public Game.Builder clearHomeTeam()
        string home_team = 3 [json_name = "homeTeam"];
        Returns:
        This builder for chaining.
      • setHomeTeamBytes

        public Game.Builder setHomeTeamBytes​(com.google.protobuf.ByteString value)
        string home_team = 3 [json_name = "homeTeam"];
        Parameters:
        value - The bytes for homeTeam to set.
        Returns:
        This builder for chaining.
      • getAwayTeam

        public java.lang.String getAwayTeam()
        string away_team = 4 [json_name = "awayTeam"];
        Specified by:
        getAwayTeam in interface GameOrBuilder
        Returns:
        The awayTeam.
      • getAwayTeamBytes

        public com.google.protobuf.ByteString getAwayTeamBytes()
        string away_team = 4 [json_name = "awayTeam"];
        Specified by:
        getAwayTeamBytes in interface GameOrBuilder
        Returns:
        The bytes for awayTeam.
      • setAwayTeam

        public Game.Builder setAwayTeam​(java.lang.String value)
        string away_team = 4 [json_name = "awayTeam"];
        Parameters:
        value - The awayTeam to set.
        Returns:
        This builder for chaining.
      • clearAwayTeam

        public Game.Builder clearAwayTeam()
        string away_team = 4 [json_name = "awayTeam"];
        Returns:
        This builder for chaining.
      • setAwayTeamBytes

        public Game.Builder setAwayTeamBytes​(com.google.protobuf.ByteString value)
        string away_team = 4 [json_name = "awayTeam"];
        Parameters:
        value - The bytes for awayTeam to set.
        Returns:
        This builder for chaining.
      • getHomeTeamLogo

        public java.lang.String getHomeTeamLogo()
        string home_team_logo = 5 [json_name = "homeTeamLogo"];
        Specified by:
        getHomeTeamLogo in interface GameOrBuilder
        Returns:
        The homeTeamLogo.
      • getHomeTeamLogoBytes

        public com.google.protobuf.ByteString getHomeTeamLogoBytes()
        string home_team_logo = 5 [json_name = "homeTeamLogo"];
        Specified by:
        getHomeTeamLogoBytes in interface GameOrBuilder
        Returns:
        The bytes for homeTeamLogo.
      • setHomeTeamLogo

        public Game.Builder setHomeTeamLogo​(java.lang.String value)
        string home_team_logo = 5 [json_name = "homeTeamLogo"];
        Parameters:
        value - The homeTeamLogo to set.
        Returns:
        This builder for chaining.
      • clearHomeTeamLogo

        public Game.Builder clearHomeTeamLogo()
        string home_team_logo = 5 [json_name = "homeTeamLogo"];
        Returns:
        This builder for chaining.
      • setHomeTeamLogoBytes

        public Game.Builder setHomeTeamLogoBytes​(com.google.protobuf.ByteString value)
        string home_team_logo = 5 [json_name = "homeTeamLogo"];
        Parameters:
        value - The bytes for homeTeamLogo to set.
        Returns:
        This builder for chaining.
      • getAwayTeamLogo

        public java.lang.String getAwayTeamLogo()
        string away_team_logo = 6 [json_name = "awayTeamLogo"];
        Specified by:
        getAwayTeamLogo in interface GameOrBuilder
        Returns:
        The awayTeamLogo.
      • getAwayTeamLogoBytes

        public com.google.protobuf.ByteString getAwayTeamLogoBytes()
        string away_team_logo = 6 [json_name = "awayTeamLogo"];
        Specified by:
        getAwayTeamLogoBytes in interface GameOrBuilder
        Returns:
        The bytes for awayTeamLogo.
      • setAwayTeamLogo

        public Game.Builder setAwayTeamLogo​(java.lang.String value)
        string away_team_logo = 6 [json_name = "awayTeamLogo"];
        Parameters:
        value - The awayTeamLogo to set.
        Returns:
        This builder for chaining.
      • clearAwayTeamLogo

        public Game.Builder clearAwayTeamLogo()
        string away_team_logo = 6 [json_name = "awayTeamLogo"];
        Returns:
        This builder for chaining.
      • setAwayTeamLogoBytes

        public Game.Builder setAwayTeamLogoBytes​(com.google.protobuf.ByteString value)
        string away_team_logo = 6 [json_name = "awayTeamLogo"];
        Parameters:
        value - The bytes for awayTeamLogo to set.
        Returns:
        This builder for chaining.
      • getHomeTeamShortName

        public java.lang.String getHomeTeamShortName()
        string home_team_short_name = 7 [json_name = "homeTeamShortName"];
        Specified by:
        getHomeTeamShortName in interface GameOrBuilder
        Returns:
        The homeTeamShortName.
      • getHomeTeamShortNameBytes

        public com.google.protobuf.ByteString getHomeTeamShortNameBytes()
        string home_team_short_name = 7 [json_name = "homeTeamShortName"];
        Specified by:
        getHomeTeamShortNameBytes in interface GameOrBuilder
        Returns:
        The bytes for homeTeamShortName.
      • setHomeTeamShortName

        public Game.Builder setHomeTeamShortName​(java.lang.String value)
        string home_team_short_name = 7 [json_name = "homeTeamShortName"];
        Parameters:
        value - The homeTeamShortName to set.
        Returns:
        This builder for chaining.
      • clearHomeTeamShortName

        public Game.Builder clearHomeTeamShortName()
        string home_team_short_name = 7 [json_name = "homeTeamShortName"];
        Returns:
        This builder for chaining.
      • setHomeTeamShortNameBytes

        public Game.Builder setHomeTeamShortNameBytes​(com.google.protobuf.ByteString value)
        string home_team_short_name = 7 [json_name = "homeTeamShortName"];
        Parameters:
        value - The bytes for homeTeamShortName to set.
        Returns:
        This builder for chaining.
      • getAwayTeamShortName

        public java.lang.String getAwayTeamShortName()
        string away_team_short_name = 8 [json_name = "awayTeamShortName"];
        Specified by:
        getAwayTeamShortName in interface GameOrBuilder
        Returns:
        The awayTeamShortName.
      • getAwayTeamShortNameBytes

        public com.google.protobuf.ByteString getAwayTeamShortNameBytes()
        string away_team_short_name = 8 [json_name = "awayTeamShortName"];
        Specified by:
        getAwayTeamShortNameBytes in interface GameOrBuilder
        Returns:
        The bytes for awayTeamShortName.
      • setAwayTeamShortName

        public Game.Builder setAwayTeamShortName​(java.lang.String value)
        string away_team_short_name = 8 [json_name = "awayTeamShortName"];
        Parameters:
        value - The awayTeamShortName to set.
        Returns:
        This builder for chaining.
      • clearAwayTeamShortName

        public Game.Builder clearAwayTeamShortName()
        string away_team_short_name = 8 [json_name = "awayTeamShortName"];
        Returns:
        This builder for chaining.
      • setAwayTeamShortNameBytes

        public Game.Builder setAwayTeamShortNameBytes​(com.google.protobuf.ByteString value)
        string away_team_short_name = 8 [json_name = "awayTeamShortName"];
        Parameters:
        value - The bytes for awayTeamShortName to set.
        Returns:
        This builder for chaining.
      • getHomeScore

        public int getHomeScore()
        int32 home_score = 9 [json_name = "homeScore"];
        Specified by:
        getHomeScore in interface GameOrBuilder
        Returns:
        The homeScore.
      • setHomeScore

        public Game.Builder setHomeScore​(int value)
        int32 home_score = 9 [json_name = "homeScore"];
        Parameters:
        value - The homeScore to set.
        Returns:
        This builder for chaining.
      • clearHomeScore

        public Game.Builder clearHomeScore()
        int32 home_score = 9 [json_name = "homeScore"];
        Returns:
        This builder for chaining.
      • getAwayScore

        public int getAwayScore()
        int32 away_score = 10 [json_name = "awayScore"];
        Specified by:
        getAwayScore in interface GameOrBuilder
        Returns:
        The awayScore.
      • setAwayScore

        public Game.Builder setAwayScore​(int value)
        int32 away_score = 10 [json_name = "awayScore"];
        Parameters:
        value - The awayScore to set.
        Returns:
        This builder for chaining.
      • clearAwayScore

        public Game.Builder clearAwayScore()
        int32 away_score = 10 [json_name = "awayScore"];
        Returns:
        This builder for chaining.
      • getStartDate

        public java.lang.String getStartDate()
        string start_date = 11 [json_name = "startDate"];
        Specified by:
        getStartDate in interface GameOrBuilder
        Returns:
        The startDate.
      • getStartDateBytes

        public com.google.protobuf.ByteString getStartDateBytes()
        string start_date = 11 [json_name = "startDate"];
        Specified by:
        getStartDateBytes in interface GameOrBuilder
        Returns:
        The bytes for startDate.
      • setStartDate

        public Game.Builder setStartDate​(java.lang.String value)
        string start_date = 11 [json_name = "startDate"];
        Parameters:
        value - The startDate to set.
        Returns:
        This builder for chaining.
      • clearStartDate

        public Game.Builder clearStartDate()
        string start_date = 11 [json_name = "startDate"];
        Returns:
        This builder for chaining.
      • setStartDateBytes

        public Game.Builder setStartDateBytes​(com.google.protobuf.ByteString value)
        string start_date = 11 [json_name = "startDate"];
        Parameters:
        value - The bytes for startDate to set.
        Returns:
        This builder for chaining.
      • getInLive

        public boolean getInLive()
        bool in_live = 12 [json_name = "inLive"];
        Specified by:
        getInLive in interface GameOrBuilder
        Returns:
        The inLive.
      • setInLive

        public Game.Builder setInLive​(boolean value)
        bool in_live = 12 [json_name = "inLive"];
        Parameters:
        value - The inLive to set.
        Returns:
        This builder for chaining.
      • clearInLive

        public Game.Builder clearInLive()
        bool in_live = 12 [json_name = "inLive"];
        Returns:
        This builder for chaining.
      • hasOdds

        public boolean hasOdds()
        .streamlayer.sportsdata.GameOdds odds = 13 [json_name = "odds"];
        Specified by:
        hasOdds in interface GameOrBuilder
        Returns:
        Whether the odds field is set.
      • getOdds

        public GameOdds getOdds()
        .streamlayer.sportsdata.GameOdds odds = 13 [json_name = "odds"];
        Specified by:
        getOdds in interface GameOrBuilder
        Returns:
        The odds.
      • setOdds

        public Game.Builder setOdds​(GameOdds value)
        .streamlayer.sportsdata.GameOdds odds = 13 [json_name = "odds"];
      • setOdds

        public Game.Builder setOdds​(GameOdds.Builder builderForValue)
        .streamlayer.sportsdata.GameOdds odds = 13 [json_name = "odds"];
      • mergeOdds

        public Game.Builder mergeOdds​(GameOdds value)
        .streamlayer.sportsdata.GameOdds odds = 13 [json_name = "odds"];
      • clearOdds

        public Game.Builder clearOdds()
        .streamlayer.sportsdata.GameOdds odds = 13 [json_name = "odds"];
      • getPeriodValue

        public int getPeriodValue()
        .streamlayer.sportsdata.client.games.GamePeriod period = 14 [json_name = "period"];
        Specified by:
        getPeriodValue in interface GameOrBuilder
        Returns:
        The enum numeric value on the wire for period.
      • setPeriodValue

        public Game.Builder setPeriodValue​(int value)
        .streamlayer.sportsdata.client.games.GamePeriod period = 14 [json_name = "period"];
        Parameters:
        value - The period to set.
        Returns:
        This builder for chaining.
      • getPeriod

        public GamePeriod getPeriod()
        .streamlayer.sportsdata.client.games.GamePeriod period = 14 [json_name = "period"];
        Specified by:
        getPeriod in interface GameOrBuilder
        Returns:
        The period.
      • setPeriod

        public Game.Builder setPeriod​(GamePeriod value)
        .streamlayer.sportsdata.client.games.GamePeriod period = 14 [json_name = "period"];
        Parameters:
        value - The enum numeric value on the wire for period to set.
        Returns:
        This builder for chaining.
      • clearPeriod

        public Game.Builder clearPeriod()
        .streamlayer.sportsdata.client.games.GamePeriod period = 14 [json_name = "period"];
        Returns:
        This builder for chaining.
      • hasStartDateTimestamp

        public boolean hasStartDateTimestamp()
        .google.protobuf.Timestamp start_date_timestamp = 15 [json_name = "startDateTimestamp"];
        Specified by:
        hasStartDateTimestamp in interface GameOrBuilder
        Returns:
        Whether the startDateTimestamp field is set.
      • getStartDateTimestamp

        public com.google.protobuf.Timestamp getStartDateTimestamp()
        .google.protobuf.Timestamp start_date_timestamp = 15 [json_name = "startDateTimestamp"];
        Specified by:
        getStartDateTimestamp in interface GameOrBuilder
        Returns:
        The startDateTimestamp.
      • setStartDateTimestamp

        public Game.Builder setStartDateTimestamp​(com.google.protobuf.Timestamp value)
        .google.protobuf.Timestamp start_date_timestamp = 15 [json_name = "startDateTimestamp"];
      • setStartDateTimestamp

        public Game.Builder setStartDateTimestamp​(com.google.protobuf.Timestamp.Builder builderForValue)
        .google.protobuf.Timestamp start_date_timestamp = 15 [json_name = "startDateTimestamp"];
      • mergeStartDateTimestamp

        public Game.Builder mergeStartDateTimestamp​(com.google.protobuf.Timestamp value)
        .google.protobuf.Timestamp start_date_timestamp = 15 [json_name = "startDateTimestamp"];
      • clearStartDateTimestamp

        public Game.Builder clearStartDateTimestamp()
        .google.protobuf.Timestamp start_date_timestamp = 15 [json_name = "startDateTimestamp"];
      • getSport

        public java.lang.String getSport()
        string sport = 16 [json_name = "sport"];
        Specified by:
        getSport in interface GameOrBuilder
        Returns:
        The sport.
      • getSportBytes

        public com.google.protobuf.ByteString getSportBytes()
        string sport = 16 [json_name = "sport"];
        Specified by:
        getSportBytes in interface GameOrBuilder
        Returns:
        The bytes for sport.
      • setSport

        public Game.Builder setSport​(java.lang.String value)
        string sport = 16 [json_name = "sport"];
        Parameters:
        value - The sport to set.
        Returns:
        This builder for chaining.
      • clearSport

        public Game.Builder clearSport()
        string sport = 16 [json_name = "sport"];
        Returns:
        This builder for chaining.
      • setSportBytes

        public Game.Builder setSportBytes​(com.google.protobuf.ByteString value)
        string sport = 16 [json_name = "sport"];
        Parameters:
        value - The bytes for sport to set.
        Returns:
        This builder for chaining.
      • getLeague

        public java.lang.String getLeague()
        string league = 17 [json_name = "league"];
        Specified by:
        getLeague in interface GameOrBuilder
        Returns:
        The league.
      • getLeagueBytes

        public com.google.protobuf.ByteString getLeagueBytes()
        string league = 17 [json_name = "league"];
        Specified by:
        getLeagueBytes in interface GameOrBuilder
        Returns:
        The bytes for league.
      • setLeague

        public Game.Builder setLeague​(java.lang.String value)
        string league = 17 [json_name = "league"];
        Parameters:
        value - The league to set.
        Returns:
        This builder for chaining.
      • clearLeague

        public Game.Builder clearLeague()
        string league = 17 [json_name = "league"];
        Returns:
        This builder for chaining.
      • setLeagueBytes

        public Game.Builder setLeagueBytes​(com.google.protobuf.ByteString value)
        string league = 17 [json_name = "league"];
        Parameters:
        value - The bytes for league to set.
        Returns:
        This builder for chaining.
      • getSportTypeValue

        public int getSportTypeValue()
        .streamlayer.sportsdata.SportType sport_type = 18 [json_name = "sportType"];
        Specified by:
        getSportTypeValue in interface GameOrBuilder
        Returns:
        The enum numeric value on the wire for sportType.
      • setSportTypeValue

        public Game.Builder setSportTypeValue​(int value)
        .streamlayer.sportsdata.SportType sport_type = 18 [json_name = "sportType"];
        Parameters:
        value - The sportType to set.
        Returns:
        This builder for chaining.
      • getSportType

        public SportType getSportType()
        .streamlayer.sportsdata.SportType sport_type = 18 [json_name = "sportType"];
        Specified by:
        getSportType in interface GameOrBuilder
        Returns:
        The sportType.
      • setSportType

        public Game.Builder setSportType​(SportType value)
        .streamlayer.sportsdata.SportType sport_type = 18 [json_name = "sportType"];
        Parameters:
        value - The enum numeric value on the wire for sportType to set.
        Returns:
        This builder for chaining.
      • clearSportType

        public Game.Builder clearSportType()
        .streamlayer.sportsdata.SportType sport_type = 18 [json_name = "sportType"];
        Returns:
        This builder for chaining.