public static final class PhoneNumber.ShortCode extends GeneratedMessageV3 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
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > PhoneNumber.ShortCodeImplements
PhoneNumber.ShortCodeOrBuilderStatic Fields
NUMBER_FIELD_NUMBER
public static final int NUMBER_FIELD_NUMBER
Type | Description |
int |
REGION_CODE_FIELD_NUMBER
public static final int REGION_CODE_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static PhoneNumber.ShortCode getDefaultInstance()
Type | Description |
PhoneNumber.ShortCode |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static PhoneNumber.ShortCode.Builder newBuilder()
Type | Description |
PhoneNumber.ShortCode.Builder |
newBuilder(PhoneNumber.ShortCode prototype)
public static PhoneNumber.ShortCode.Builder newBuilder(PhoneNumber.ShortCode prototype)
Name | Description |
prototype | PhoneNumber.ShortCode |
Type | Description |
PhoneNumber.ShortCode.Builder |
parseDelimitedFrom(InputStream input)
public static PhoneNumber.ShortCode parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
PhoneNumber.ShortCode |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static PhoneNumber.ShortCode parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PhoneNumber.ShortCode |
Type | Description |
IOException |
parseFrom(byte[] data)
public static PhoneNumber.ShortCode parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
PhoneNumber.ShortCode |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PhoneNumber.ShortCode parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PhoneNumber.ShortCode |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static PhoneNumber.ShortCode parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
PhoneNumber.ShortCode |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PhoneNumber.ShortCode parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PhoneNumber.ShortCode |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static PhoneNumber.ShortCode parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
PhoneNumber.ShortCode |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static PhoneNumber.ShortCode parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PhoneNumber.ShortCode |
Type | Description |
IOException |
parseFrom(InputStream input)
public static PhoneNumber.ShortCode parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
PhoneNumber.ShortCode |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static PhoneNumber.ShortCode parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PhoneNumber.ShortCode |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static PhoneNumber.ShortCode parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
PhoneNumber.ShortCode |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static PhoneNumber.ShortCode parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PhoneNumber.ShortCode |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<PhoneNumber.ShortCode> parser()
Type | Description |
Parser<ShortCode> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public PhoneNumber.ShortCode getDefaultInstanceForType()
Type | Description |
PhoneNumber.ShortCode |
getNumber()
public String getNumber()
Required. The short code digits, without a leading plus ('+') or country calling code, e.g. "611".
string number = 2;
Type | Description |
String | The number. |
getNumberBytes()
public ByteString getNumberBytes()
Required. The short code digits, without a leading plus ('+') or country calling code, e.g. "611".
string number = 2;
Type | Description |
ByteString | The bytes for number. |
getParserForType()
public Parser<PhoneNumber.ShortCode> getParserForType()
Type | Description |
Parser<ShortCode> |
getRegionCode()
public String 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):
string region_code = 1;
Type | Description |
String | The regionCode. |
getRegionCodeBytes()
public 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):
string region_code = 1;
Type | Description |
ByteString | The bytes for regionCode. |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public PhoneNumber.ShortCode.Builder newBuilderForType()
Type | Description |
PhoneNumber.ShortCode.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected PhoneNumber.ShortCode.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
PhoneNumber.ShortCode.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public PhoneNumber.ShortCode.Builder toBuilder()
Type | Description |
PhoneNumber.ShortCode.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |