Package com.streamlayer.inplay
Class Country.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
-
- com.google.protobuf.GeneratedMessageLite.Builder<Country,Country.Builder>
-
- com.streamlayer.inplay.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 typestreamlayer.inplay.Country
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Country.BuilderaddAllLeagues(java.lang.Iterable<java.lang.String> values)repeated string leagues = 2 [json_name = "leagues"];Country.BuilderaddLeagues(java.lang.String value)repeated string leagues = 2 [json_name = "leagues"];Country.BuilderaddLeaguesBytes(com.google.protobuf.ByteString value)repeated string leagues = 2 [json_name = "leagues"];Country.BuilderclearAlpha2()ISO 3166-1 alpha-2 country codeCountry.BuilderclearAlpha3()ISO 3166-1 alpha-3 country codeCountry.BuilderclearLeagues()repeated string leagues = 2 [json_name = "leagues"];Country.BuilderclearName()string name = 1 [json_name = "name"];java.lang.StringgetAlpha2()ISO 3166-1 alpha-2 country codecom.google.protobuf.ByteStringgetAlpha2Bytes()ISO 3166-1 alpha-2 country codejava.lang.StringgetAlpha3()ISO 3166-1 alpha-3 country codecom.google.protobuf.ByteStringgetAlpha3Bytes()ISO 3166-1 alpha-3 country codejava.lang.StringgetLeagues(int index)repeated string leagues = 2 [json_name = "leagues"];com.google.protobuf.ByteStringgetLeaguesBytes(int index)repeated string leagues = 2 [json_name = "leagues"];intgetLeaguesCount()repeated string leagues = 2 [json_name = "leagues"];java.util.List<java.lang.String>getLeaguesList()repeated string leagues = 2 [json_name = "leagues"];java.lang.StringgetName()string name = 1 [json_name = "name"];com.google.protobuf.ByteStringgetNameBytes()string name = 1 [json_name = "name"];Country.BuildersetAlpha2(java.lang.String value)ISO 3166-1 alpha-2 country codeCountry.BuildersetAlpha2Bytes(com.google.protobuf.ByteString value)ISO 3166-1 alpha-2 country codeCountry.BuildersetAlpha3(java.lang.String value)ISO 3166-1 alpha-3 country codeCountry.BuildersetAlpha3Bytes(com.google.protobuf.ByteString value)ISO 3166-1 alpha-3 country codeCountry.BuildersetLeagues(int index, java.lang.String value)repeated string leagues = 2 [json_name = "leagues"];Country.BuildersetName(java.lang.String value)string name = 1 [json_name = "name"];Country.BuildersetNameBytes(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
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
string name = 1 [json_name = "name"];- Specified by:
getNamein interfaceCountryOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
string name = 1 [json_name = "name"];- Specified by:
getNameBytesin interfaceCountryOrBuilder- 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:
getLeaguesListin interfaceCountryOrBuilder- Returns:
- A list containing the leagues.
-
getLeaguesCount
public int getLeaguesCount()
repeated string leagues = 2 [json_name = "leagues"];- Specified by:
getLeaguesCountin interfaceCountryOrBuilder- Returns:
- The count of leagues.
-
getLeagues
public java.lang.String getLeagues(int index)
repeated string leagues = 2 [json_name = "leagues"];- Specified by:
getLeaguesin interfaceCountryOrBuilder- 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:
getLeaguesBytesin interfaceCountryOrBuilder- 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:
getAlpha2in interfaceCountryOrBuilder- 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:
getAlpha2Bytesin interfaceCountryOrBuilder- 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:
getAlpha3in interfaceCountryOrBuilder- 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:
getAlpha3Bytesin interfaceCountryOrBuilder- 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.
-
-