Class Country.Builder

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

    public static final class Country.Builder
    extends com.google.protobuf.GeneratedMessageLite.Builder<Country,​Country.Builder>
    implements CountryOrBuilder
    Protobuf type streamlayer.inplay.Country
    • Field Summary

      • Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

        instance
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Country.Builder addAllLeagues​(java.lang.Iterable<java.lang.String> values)
      repeated string leagues = 2 [json_name = "leagues"];
      Country.Builder addLeagues​(java.lang.String value)
      repeated string leagues = 2 [json_name = "leagues"];
      Country.Builder addLeaguesBytes​(com.google.protobuf.ByteString value)
      repeated string leagues = 2 [json_name = "leagues"];
      Country.Builder clearAlpha2()
      ISO 3166-1 alpha-2 country code
      Country.Builder clearAlpha3()
      ISO 3166-1 alpha-3 country code
      Country.Builder clearLeagues()
      repeated string leagues = 2 [json_name = "leagues"];
      Country.Builder clearName()
      string name = 1 [json_name = "name"];
      java.lang.String getAlpha2()
      ISO 3166-1 alpha-2 country code
      com.google.protobuf.ByteString getAlpha2Bytes()
      ISO 3166-1 alpha-2 country code
      java.lang.String getAlpha3()
      ISO 3166-1 alpha-3 country code
      com.google.protobuf.ByteString getAlpha3Bytes()
      ISO 3166-1 alpha-3 country code
      java.lang.String getLeagues​(int index)
      repeated string leagues = 2 [json_name = "leagues"];
      com.google.protobuf.ByteString getLeaguesBytes​(int index)
      repeated string leagues = 2 [json_name = "leagues"];
      int getLeaguesCount()
      repeated string leagues = 2 [json_name = "leagues"];
      java.util.List<java.lang.String> getLeaguesList()
      repeated string leagues = 2 [json_name = "leagues"];
      java.lang.String getName()
      string name = 1 [json_name = "name"];
      com.google.protobuf.ByteString getNameBytes()
      string name = 1 [json_name = "name"];
      Country.Builder setAlpha2​(java.lang.String value)
      ISO 3166-1 alpha-2 country code
      Country.Builder setAlpha2Bytes​(com.google.protobuf.ByteString value)
      ISO 3166-1 alpha-2 country code
      Country.Builder setAlpha3​(java.lang.String value)
      ISO 3166-1 alpha-3 country code
      Country.Builder setAlpha3Bytes​(com.google.protobuf.ByteString value)
      ISO 3166-1 alpha-3 country code
      Country.Builder setLeagues​(int index, java.lang.String value)
      repeated string leagues = 2 [json_name = "leagues"];
      Country.Builder setName​(java.lang.String value)
      string name = 1 [json_name = "name"];
      Country.Builder setNameBytes​(com.google.protobuf.ByteString value)
      string name = 1 [json_name = "name"];
      • Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder

        build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
      • Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

        addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        getDefaultInstanceForType, isInitialized
    • Method Detail

      • getName

        public java.lang.String getName()
        string name = 1 [json_name = "name"];
        Specified by:
        getName in interface CountryOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
        string name = 1 [json_name = "name"];
        Specified by:
        getNameBytes in interface CountryOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Country.Builder setName​(java.lang.String value)
        string name = 1 [json_name = "name"];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Country.Builder clearName()
        string name = 1 [json_name = "name"];
        Returns:
        This builder for chaining.
      • setNameBytes

        public Country.Builder setNameBytes​(com.google.protobuf.ByteString value)
        string name = 1 [json_name = "name"];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getLeaguesList

        public java.util.List<java.lang.String> getLeaguesList()
        repeated string leagues = 2 [json_name = "leagues"];
        Specified by:
        getLeaguesList in interface CountryOrBuilder
        Returns:
        A list containing the leagues.
      • getLeaguesCount

        public int getLeaguesCount()
        repeated string leagues = 2 [json_name = "leagues"];
        Specified by:
        getLeaguesCount in interface CountryOrBuilder
        Returns:
        The count of leagues.
      • getLeagues

        public java.lang.String getLeagues​(int index)
        repeated string leagues = 2 [json_name = "leagues"];
        Specified by:
        getLeagues in interface CountryOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The leagues at the given index.
      • getLeaguesBytes

        public com.google.protobuf.ByteString getLeaguesBytes​(int index)
        repeated string leagues = 2 [json_name = "leagues"];
        Specified by:
        getLeaguesBytes in interface CountryOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the leagues at the given index.
      • setLeagues

        public Country.Builder setLeagues​(int index,
                                          java.lang.String value)
        repeated string leagues = 2 [json_name = "leagues"];
        Parameters:
        index - The index to set the value at.
        value - The leagues to set.
        Returns:
        This builder for chaining.
      • addLeagues

        public Country.Builder addLeagues​(java.lang.String value)
        repeated string leagues = 2 [json_name = "leagues"];
        Parameters:
        value - The leagues to add.
        Returns:
        This builder for chaining.
      • addAllLeagues

        public Country.Builder addAllLeagues​(java.lang.Iterable<java.lang.String> values)
        repeated string leagues = 2 [json_name = "leagues"];
        Parameters:
        values - The leagues to add.
        Returns:
        This builder for chaining.
      • clearLeagues

        public Country.Builder clearLeagues()
        repeated string leagues = 2 [json_name = "leagues"];
        Returns:
        This builder for chaining.
      • addLeaguesBytes

        public Country.Builder addLeaguesBytes​(com.google.protobuf.ByteString value)
        repeated string leagues = 2 [json_name = "leagues"];
        Parameters:
        value - The bytes of the leagues to add.
        Returns:
        This builder for chaining.
      • getAlpha2

        public java.lang.String getAlpha2()
         ISO 3166-1 alpha-2 country code
         
        string alpha2 = 3 [json_name = "alpha2"];
        Specified by:
        getAlpha2 in interface CountryOrBuilder
        Returns:
        The alpha2.
      • getAlpha2Bytes

        public com.google.protobuf.ByteString getAlpha2Bytes()
         ISO 3166-1 alpha-2 country code
         
        string alpha2 = 3 [json_name = "alpha2"];
        Specified by:
        getAlpha2Bytes in interface CountryOrBuilder
        Returns:
        The bytes for alpha2.
      • setAlpha2

        public Country.Builder setAlpha2​(java.lang.String value)
         ISO 3166-1 alpha-2 country code
         
        string alpha2 = 3 [json_name = "alpha2"];
        Parameters:
        value - The alpha2 to set.
        Returns:
        This builder for chaining.
      • clearAlpha2

        public Country.Builder clearAlpha2()
         ISO 3166-1 alpha-2 country code
         
        string alpha2 = 3 [json_name = "alpha2"];
        Returns:
        This builder for chaining.
      • setAlpha2Bytes

        public Country.Builder setAlpha2Bytes​(com.google.protobuf.ByteString value)
         ISO 3166-1 alpha-2 country code
         
        string alpha2 = 3 [json_name = "alpha2"];
        Parameters:
        value - The bytes for alpha2 to set.
        Returns:
        This builder for chaining.
      • getAlpha3

        public java.lang.String getAlpha3()
         ISO 3166-1 alpha-3 country code
         
        string alpha3 = 4 [json_name = "alpha3"];
        Specified by:
        getAlpha3 in interface CountryOrBuilder
        Returns:
        The alpha3.
      • getAlpha3Bytes

        public com.google.protobuf.ByteString getAlpha3Bytes()
         ISO 3166-1 alpha-3 country code
         
        string alpha3 = 4 [json_name = "alpha3"];
        Specified by:
        getAlpha3Bytes in interface CountryOrBuilder
        Returns:
        The bytes for alpha3.
      • setAlpha3

        public Country.Builder setAlpha3​(java.lang.String value)
         ISO 3166-1 alpha-3 country code
         
        string alpha3 = 4 [json_name = "alpha3"];
        Parameters:
        value - The alpha3 to set.
        Returns:
        This builder for chaining.
      • clearAlpha3

        public Country.Builder clearAlpha3()
         ISO 3166-1 alpha-3 country code
         
        string alpha3 = 4 [json_name = "alpha3"];
        Returns:
        This builder for chaining.
      • setAlpha3Bytes

        public Country.Builder setAlpha3Bytes​(com.google.protobuf.ByteString value)
         ISO 3166-1 alpha-3 country code
         
        string alpha3 = 4 [json_name = "alpha3"];
        Parameters:
        value - The bytes for alpha3 to set.
        Returns:
        This builder for chaining.