Class PhoneNumber.AllowedSipTrunks

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks
All Implemented Interfaces:
PhoneNumber.AllowedSipTrunksOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
PhoneNumber

public static final class PhoneNumber.AllowedSipTrunks extends com.google.protobuf.GeneratedMessage implements PhoneNumber.AllowedSipTrunksOrBuilder
 List of SIP trunks that are allowed to make calls to this phone number.
 
Protobuf type google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks
See Also:
  • Field Details

    • SIP_TRUNKS_FIELD_NUMBER

      public static final int SIP_TRUNKS_FIELD_NUMBER
      See Also:
    • CARRIER_IDS_FIELD_NUMBER

      public static final int CARRIER_IDS_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getSipTrunksList

      public com.google.protobuf.ProtocolStringList getSipTrunksList()
       List of SIP trunks that are allowed to make calls to this phone number.
       If empty, any SIP trunk is allowed.
       
      repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getSipTrunksList in interface PhoneNumber.AllowedSipTrunksOrBuilder
      Returns:
      A list containing the sipTrunks.
    • getSipTrunksCount

      public int getSipTrunksCount()
       List of SIP trunks that are allowed to make calls to this phone number.
       If empty, any SIP trunk is allowed.
       
      repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getSipTrunksCount in interface PhoneNumber.AllowedSipTrunksOrBuilder
      Returns:
      The count of sipTrunks.
    • getSipTrunks

      public String getSipTrunks(int index)
       List of SIP trunks that are allowed to make calls to this phone number.
       If empty, any SIP trunk is allowed.
       
      repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getSipTrunks in interface PhoneNumber.AllowedSipTrunksOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The sipTrunks at the given index.
    • getSipTrunksBytes

      public com.google.protobuf.ByteString getSipTrunksBytes(int index)
       List of SIP trunks that are allowed to make calls to this phone number.
       If empty, any SIP trunk is allowed.
       
      repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getSipTrunksBytes in interface PhoneNumber.AllowedSipTrunksOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the sipTrunks at the given index.
    • getCarrierIdsList

      public com.google.protobuf.ProtocolStringList getCarrierIdsList()
       Optional. List of GTP carrier IDs allowed to make calls to this phone
       number. Used for private interconnects where standard SIP trunks aren't
       applicable.
       
      repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCarrierIdsList in interface PhoneNumber.AllowedSipTrunksOrBuilder
      Returns:
      A list containing the carrierIds.
    • getCarrierIdsCount

      public int getCarrierIdsCount()
       Optional. List of GTP carrier IDs allowed to make calls to this phone
       number. Used for private interconnects where standard SIP trunks aren't
       applicable.
       
      repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCarrierIdsCount in interface PhoneNumber.AllowedSipTrunksOrBuilder
      Returns:
      The count of carrierIds.
    • getCarrierIds

      public String getCarrierIds(int index)
       Optional. List of GTP carrier IDs allowed to make calls to this phone
       number. Used for private interconnects where standard SIP trunks aren't
       applicable.
       
      repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCarrierIds in interface PhoneNumber.AllowedSipTrunksOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The carrierIds at the given index.
    • getCarrierIdsBytes

      public com.google.protobuf.ByteString getCarrierIdsBytes(int index)
       Optional. List of GTP carrier IDs allowed to make calls to this phone
       number. Used for private interconnects where standard SIP trunks aren't
       applicable.
       
      repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCarrierIdsBytes in interface PhoneNumber.AllowedSipTrunksOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the carrierIds at the given index.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static PhoneNumber.AllowedSipTrunks parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PhoneNumber.AllowedSipTrunks parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PhoneNumber.AllowedSipTrunks parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PhoneNumber.AllowedSipTrunks parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PhoneNumber.AllowedSipTrunks parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PhoneNumber.AllowedSipTrunks parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PhoneNumber.AllowedSipTrunks parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PhoneNumber.AllowedSipTrunks parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static PhoneNumber.AllowedSipTrunks parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static PhoneNumber.AllowedSipTrunks parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PhoneNumber.AllowedSipTrunks parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PhoneNumber.AllowedSipTrunks parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public PhoneNumber.AllowedSipTrunks.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static PhoneNumber.AllowedSipTrunks.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected PhoneNumber.AllowedSipTrunks.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static PhoneNumber.AllowedSipTrunks getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<PhoneNumber.AllowedSipTrunks> parser()
    • getParserForType

      public com.google.protobuf.Parser<PhoneNumber.AllowedSipTrunks> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public PhoneNumber.AllowedSipTrunks getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder