Package com.google.type
Class PhoneNumber.ShortCode.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<PhoneNumber.ShortCode,PhoneNumber.ShortCode.Builder>
com.google.type.PhoneNumber.ShortCode.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,PhoneNumber.ShortCodeOrBuilder
,Cloneable
- Enclosing class:
- PhoneNumber.ShortCode
public static final class PhoneNumber.ShortCode.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<PhoneNumber.ShortCode,PhoneNumber.ShortCode.Builder>
implements PhoneNumber.ShortCodeOrBuilder
An object representing a short code, which is a phone number that is typically much shorter than regular phone numbers and can be used to address messages in MMS and SMS systems, as well as for abbreviated dialing (e.g. "Text 611 to see how many minutes you have remaining on your plan."). Short codes are restricted to a region and are not internationally dialable, which means the same short code can exist in different regions, with different usage and pricing, even if those regions share the same country calling code (e.g. US and CA).Protobuf type
google.type.PhoneNumber.ShortCode
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionRequired.Required.Required.com.google.protobuf.ByteString
Required.Required.com.google.protobuf.ByteString
Required.Required.setNumberBytes
(com.google.protobuf.ByteString value) Required.setRegionCode
(String value) Required.setRegionCodeBytes
(com.google.protobuf.ByteString value) Required.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 Details
-
getRegionCode
Required. The BCP-47 region code of the location where calls to this short code can be made, such as "US" and "BB". Reference(s): - http://www.unicode.org/reports/tr35/#unicode_region_subtag
string region_code = 1 [json_name = "regionCode"];
- Specified by:
getRegionCode
in interfacePhoneNumber.ShortCodeOrBuilder
- Returns:
- The regionCode.
-
getRegionCodeBytes
public com.google.protobuf.ByteString getRegionCodeBytes()Required. The BCP-47 region code of the location where calls to this short code can be made, such as "US" and "BB". Reference(s): - http://www.unicode.org/reports/tr35/#unicode_region_subtag
string region_code = 1 [json_name = "regionCode"];
- Specified by:
getRegionCodeBytes
in interfacePhoneNumber.ShortCodeOrBuilder
- Returns:
- The bytes for regionCode.
-
setRegionCode
Required. The BCP-47 region code of the location where calls to this short code can be made, such as "US" and "BB". Reference(s): - http://www.unicode.org/reports/tr35/#unicode_region_subtag
string region_code = 1 [json_name = "regionCode"];
- Parameters:
value
- The regionCode to set.- Returns:
- This builder for chaining.
-
clearRegionCode
Required. The BCP-47 region code of the location where calls to this short code can be made, such as "US" and "BB". Reference(s): - http://www.unicode.org/reports/tr35/#unicode_region_subtag
string region_code = 1 [json_name = "regionCode"];
- Returns:
- This builder for chaining.
-
setRegionCodeBytes
Required. The BCP-47 region code of the location where calls to this short code can be made, such as "US" and "BB". Reference(s): - http://www.unicode.org/reports/tr35/#unicode_region_subtag
string region_code = 1 [json_name = "regionCode"];
- Parameters:
value
- The bytes for regionCode to set.- Returns:
- This builder for chaining.
-
getNumber
Required. The short code digits, without a leading plus ('+') or country calling code, e.g. "611".
string number = 2 [json_name = "number"];
- Specified by:
getNumber
in interfacePhoneNumber.ShortCodeOrBuilder
- Returns:
- The number.
-
getNumberBytes
public com.google.protobuf.ByteString getNumberBytes()Required. The short code digits, without a leading plus ('+') or country calling code, e.g. "611".
string number = 2 [json_name = "number"];
- Specified by:
getNumberBytes
in interfacePhoneNumber.ShortCodeOrBuilder
- Returns:
- The bytes for number.
-
setNumber
Required. The short code digits, without a leading plus ('+') or country calling code, e.g. "611".
string number = 2 [json_name = "number"];
- Parameters:
value
- The number to set.- Returns:
- This builder for chaining.
-
clearNumber
Required. The short code digits, without a leading plus ('+') or country calling code, e.g. "611".
string number = 2 [json_name = "number"];
- Returns:
- This builder for chaining.
-
setNumberBytes
Required. The short code digits, without a leading plus ('+') or country calling code, e.g. "611".
string number = 2 [json_name = "number"];
- Parameters:
value
- The bytes for number to set.- Returns:
- This builder for chaining.
-