Constructor
new PhoneNumber(propertiesopt)
Constructs a new PhoneNumber.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
properties |
enfonica.numbering.v1beta1.IPhoneNumber |
<optional> |
Properties to set |
- Implements:
-
- IPhoneNumber
Members
PhoneNumberCapability
PhoneNumberCapability enum.
Properties:
Name | Type | Description |
---|---|---|
PHONE_NUMBER_CAPABILITY_UNSPECIFIED |
number |
PHONE_NUMBER_CAPABILITY_UNSPECIFIED value |
SMS |
number |
SMS value |
MMS |
number |
MMS value |
VOICE |
number |
VOICE value |
PhoneNumberType
PhoneNumberType enum.
Properties:
Name | Type | Description |
---|---|---|
PHONE_NUMBER_TYPE_UNSPECIFIED |
number |
PHONE_NUMBER_TYPE_UNSPECIFIED value |
LOCAL |
number |
LOCAL value |
NATIONAL |
number |
NATIONAL value |
MOBILE |
number |
MOBILE value |
TOLL_FREE |
number |
TOLL_FREE value |
SHARED_RATE |
number |
SHARED_RATE value |
activationSku
PhoneNumber activationSku.
capabilities
PhoneNumber capabilities.
countryCode
PhoneNumber countryCode.
name
PhoneNumber name.
numberType
PhoneNumber numberType.
phoneNumber
PhoneNumber phoneNumber.
sku
PhoneNumber sku.
Methods
(static) create(propertiesopt) → {enfonica.numbering.v1beta1.PhoneNumber}
Creates a new PhoneNumber instance using the specified properties.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
properties |
enfonica.numbering.v1beta1.IPhoneNumber |
<optional> |
Properties to set |
Returns:
Type | Description |
---|---|
enfonica.numbering.v1beta1.PhoneNumber |
PhoneNumber instance |
(static) decode(reader, lengthopt) → {enfonica.numbering.v1beta1.PhoneNumber}
Decodes a PhoneNumber message from the specified reader or buffer.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
reader |
$protobuf.Reader | Uint8Array |
Reader or buffer to decode from |
|
length |
number |
<optional> |
Message length if known beforehand |
Returns:
Type | Description |
---|---|
enfonica.numbering.v1beta1.PhoneNumber |
PhoneNumber |
Throws:
-
-
If the payload is not a reader or valid buffer
- Type
- Error
-
-
-
If required fields are missing
- Type
- $protobuf.util.ProtocolError
-
(static) decodeDelimited(reader) → {enfonica.numbering.v1beta1.PhoneNumber}
Decodes a PhoneNumber message from the specified reader or buffer, length delimited.
Parameters:
Name | Type | Description |
---|---|---|
reader |
$protobuf.Reader | Uint8Array |
Reader or buffer to decode from |
Returns:
Type | Description |
---|---|
enfonica.numbering.v1beta1.PhoneNumber |
PhoneNumber |
Throws:
-
-
If the payload is not a reader or valid buffer
- Type
- Error
-
-
-
If required fields are missing
- Type
- $protobuf.util.ProtocolError
-
(static) encode(message, writeropt) → {$protobuf.Writer}
Encodes the specified PhoneNumber message. Does not implicitly verify messages.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
enfonica.numbering.v1beta1.IPhoneNumber |
PhoneNumber message or plain object to encode |
|
writer |
$protobuf.Writer |
<optional> |
Writer to encode to |
Returns:
Type | Description |
---|---|
$protobuf.Writer |
Writer |
(static) encodeDelimited(message, writeropt) → {$protobuf.Writer}
Encodes the specified PhoneNumber message, length delimited. Does not implicitly verify messages.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
enfonica.numbering.v1beta1.IPhoneNumber |
PhoneNumber message or plain object to encode |
|
writer |
$protobuf.Writer |
<optional> |
Writer to encode to |
Returns:
Type | Description |
---|---|
$protobuf.Writer |
Writer |
(static) fromObject(object) → {enfonica.numbering.v1beta1.PhoneNumber}
Creates a PhoneNumber message from a plain object. Also converts values to their respective internal types.
Parameters:
Name | Type | Description |
---|---|---|
object |
Object.<string, *> |
Plain object |
Returns:
Type | Description |
---|---|
enfonica.numbering.v1beta1.PhoneNumber |
PhoneNumber |
(static) toObject(message, optionsopt) → {Object.<string, *>}
Creates a plain object from a PhoneNumber message. Also converts values to other types if specified.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
enfonica.numbering.v1beta1.PhoneNumber |
PhoneNumber |
|
options |
$protobuf.IConversionOptions |
<optional> |
Conversion options |
Returns:
Type | Description |
---|---|
Object.<string, *> |
Plain object |
(static) verify(message) → {string|null}
Verifies a PhoneNumber message.
Parameters:
Name | Type | Description |
---|---|---|
message |
Object.<string, *> |
Plain object to verify |
Returns:
Type | Description |
---|---|
string | null |
|
toJSON() → {Object.<string, *>}
Converts this PhoneNumber to JSON.
Returns:
Type | Description |
---|---|
Object.<string, *> |
JSON object |