Class UpdatePhoneNumberRequest
UpdatePhoneNumberRequest - Request to update a phone number
public sealed class UpdatePhoneNumberRequest : IMessage<UpdatePhoneNumberRequest>, IEquatable<UpdatePhoneNumberRequest>, IDeepCloneable<UpdatePhoneNumberRequest>, IBufferMessage, IMessage
- Inheritance
-
UpdatePhoneNumberRequest
- Implements
-
IMessage<UpdatePhoneNumberRequest>IDeepCloneable<UpdatePhoneNumberRequest>IBufferMessageIMessage
- Inherited Members
Constructors
UpdatePhoneNumberRequest()
public UpdatePhoneNumberRequest()
UpdatePhoneNumberRequest(UpdatePhoneNumberRequest)
public UpdatePhoneNumberRequest(UpdatePhoneNumberRequest other)
Parameters
otherUpdatePhoneNumberRequest
Fields
IdFieldNumber
Field number for the "id" field.
public const int IdFieldNumber = 1
Field Value
PhoneNumberFieldNumber
Field number for the "phone_number" field.
public const int PhoneNumberFieldNumber = 2
Field Value
SipDispatchRuleIdFieldNumber
Field number for the "sip_dispatch_rule_id" field.
public const int SipDispatchRuleIdFieldNumber = 3
Field Value
Properties
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
HasId
Gets whether the "id" field is set
public bool HasId { get; }
Property Value
HasPhoneNumber
Gets whether the "phone_number" field is set
public bool HasPhoneNumber { get; }
Property Value
HasSipDispatchRuleId
Gets whether the "sip_dispatch_rule_id" field is set
public bool HasSipDispatchRuleId { get; }
Property Value
Id
Use phone number ID for direct lookup
public string Id { get; set; }
Property Value
Parser
public static MessageParser<UpdatePhoneNumberRequest> Parser { get; }
Property Value
- MessageParser<UpdatePhoneNumberRequest>
PhoneNumber
Use phone number string for lookup
public string PhoneNumber { get; set; }
Property Value
SipDispatchRuleId
SIP dispatch rule ID to assign to the phone number
public string SipDispatchRuleId { get; set; }
Property Value
Methods
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
public int CalculateSize()
Returns
- int
The number of bytes required to write this message to a coded output stream.
ClearId()
Clears the value of the "id" field
public void ClearId()
ClearPhoneNumber()
Clears the value of the "phone_number" field
public void ClearPhoneNumber()
ClearSipDispatchRuleId()
Clears the value of the "sip_dispatch_rule_id" field
public void ClearSipDispatchRuleId()
Clone()
Creates a deep clone of this object.
public UpdatePhoneNumberRequest Clone()
Returns
- UpdatePhoneNumberRequest
A deep clone of this object.
Equals(UpdatePhoneNumberRequest)
public bool Equals(UpdatePhoneNumberRequest other)
Parameters
otherUpdatePhoneNumberRequest
Returns
Equals(object)
public override bool Equals(object other)
Parameters
otherobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
MergeFrom(CodedInputStream)
Merges the data from the specified coded input stream with the current message.
public void MergeFrom(CodedInputStream input)
Parameters
inputCodedInputStream
Remarks
See the user guide for precise merge semantics.
MergeFrom(UpdatePhoneNumberRequest)
Merges the given message into this one.
public void MergeFrom(UpdatePhoneNumberRequest other)
Parameters
otherUpdatePhoneNumberRequest
Remarks
See the user guide for precise merge semantics.
ToString()
public override string ToString()
Returns
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
public void WriteTo(CodedOutputStream output)
Parameters
outputCodedOutputStreamCoded output stream to write the data to. Must not be null.