Constructor
new PhoneNumberInstance(propertiesopt)
Constructs a new PhoneNumberInstance.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
properties |
enfonica.numbering.v1beta1.IPhoneNumberInstance |
<optional> |
Properties to set |
- Implements:
-
- IPhoneNumberInstance
Members
LifecycleState
LifecycleState enum.
Properties:
Name | Type | Description |
---|---|---|
LIFECYCLE_STATE_UNSPECIFIED |
number |
LIFECYCLE_STATE_UNSPECIFIED value |
ACTIVE |
number |
ACTIVE value |
DELETED |
number |
DELETED value |
SUSPENDED |
number |
SUSPENDED value |
PENDING |
number |
PENDING value |
RecordingTrigger
RecordingTrigger enum.
Properties:
Name | Type | Description |
---|---|---|
RECORDING_TRIGGER_UNSPECIFIED |
number |
RECORDING_TRIGGER_UNSPECIFIED value |
DISABLED |
number |
DISABLED value |
ANSWER |
number |
ANSWER value |
BRIDGE |
number |
BRIDGE value |
activateTime
PhoneNumberInstance activateTime.
callRecordingTrigger
PhoneNumberInstance callRecordingTrigger.
createTime
PhoneNumberInstance createTime.
deleteTime
PhoneNumberInstance deleteTime.
displayName
PhoneNumberInstance displayName.
incomingCallHandlerUris
PhoneNumberInstance incomingCallHandlerUris.
incomingMessageHandlerUris
PhoneNumberInstance incomingMessageHandlerUris.
labels
PhoneNumberInstance labels.
lifecycleState
PhoneNumberInstance lifecycleState.
name
PhoneNumberInstance name.
phoneNumber
PhoneNumberInstance phoneNumber.
Methods
(static) create(propertiesopt) → {enfonica.numbering.v1beta1.PhoneNumberInstance}
Creates a new PhoneNumberInstance instance using the specified properties.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
properties |
enfonica.numbering.v1beta1.IPhoneNumberInstance |
<optional> |
Properties to set |
Returns:
Type | Description |
---|---|
enfonica.numbering.v1beta1.PhoneNumberInstance |
PhoneNumberInstance instance |
(static) decode(reader, lengthopt) → {enfonica.numbering.v1beta1.PhoneNumberInstance}
Decodes a PhoneNumberInstance 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.PhoneNumberInstance |
PhoneNumberInstance |
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.PhoneNumberInstance}
Decodes a PhoneNumberInstance 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.PhoneNumberInstance |
PhoneNumberInstance |
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 PhoneNumberInstance message. Does not implicitly verify messages.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
enfonica.numbering.v1beta1.IPhoneNumberInstance |
PhoneNumberInstance 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 PhoneNumberInstance message, length delimited. Does not implicitly verify messages.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
enfonica.numbering.v1beta1.IPhoneNumberInstance |
PhoneNumberInstance 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.PhoneNumberInstance}
Creates a PhoneNumberInstance 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.PhoneNumberInstance |
PhoneNumberInstance |
(static) toObject(message, optionsopt) → {Object.<string, *>}
Creates a plain object from a PhoneNumberInstance message. Also converts values to other types if specified.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
enfonica.numbering.v1beta1.PhoneNumberInstance |
PhoneNumberInstance |
|
options |
$protobuf.IConversionOptions |
<optional> |
Conversion options |
Returns:
Type | Description |
---|---|
Object.<string, *> |
Plain object |
(static) verify(message) → {string|null}
Verifies a PhoneNumberInstance message.
Parameters:
Name | Type | Description |
---|---|---|
message |
Object.<string, *> |
Plain object to verify |
Returns:
Type | Description |
---|---|
string | null |
|
toJSON() → {Object.<string, *>}
Converts this PhoneNumberInstance to JSON.
Returns:
Type | Description |
---|---|
Object.<string, *> |
JSON object |