Class PhoneNumber.AllowedSipTrunks.Builder

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

public static final class PhoneNumber.AllowedSipTrunks.Builder extends com.google.protobuf.GeneratedMessage.Builder<PhoneNumber.AllowedSipTrunks.Builder> 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
  • 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.Builder<PhoneNumber.AllowedSipTrunks.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<PhoneNumber.AllowedSipTrunks.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<PhoneNumber.AllowedSipTrunks.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public PhoneNumber.AllowedSipTrunks.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PhoneNumber.AllowedSipTrunks.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<PhoneNumber.AllowedSipTrunks.Builder>
    • mergeFrom

      public PhoneNumber.AllowedSipTrunks.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PhoneNumber.AllowedSipTrunks.Builder>
      Throws:
      IOException
    • 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.
    • setSipTrunks

      public PhoneNumber.AllowedSipTrunks.Builder setSipTrunks(int index, String value)
       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) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The sipTrunks to set.
      Returns:
      This builder for chaining.
    • addSipTrunks

      public PhoneNumber.AllowedSipTrunks.Builder addSipTrunks(String value)
       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) = { ... }
      Parameters:
      value - The sipTrunks to add.
      Returns:
      This builder for chaining.
    • addAllSipTrunks

      public PhoneNumber.AllowedSipTrunks.Builder addAllSipTrunks(Iterable<String> values)
       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) = { ... }
      Parameters:
      values - The sipTrunks to add.
      Returns:
      This builder for chaining.
    • clearSipTrunks

      public PhoneNumber.AllowedSipTrunks.Builder clearSipTrunks()
       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) = { ... }
      Returns:
      This builder for chaining.
    • addSipTrunksBytes

      public PhoneNumber.AllowedSipTrunks.Builder addSipTrunksBytes(com.google.protobuf.ByteString value)
       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) = { ... }
      Parameters:
      value - The bytes of the sipTrunks to add.
      Returns:
      This builder for chaining.
    • 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.
    • setCarrierIds

      public PhoneNumber.AllowedSipTrunks.Builder setCarrierIds(int index, String value)
       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];
      Parameters:
      index - The index to set the value at.
      value - The carrierIds to set.
      Returns:
      This builder for chaining.
    • addCarrierIds

      public PhoneNumber.AllowedSipTrunks.Builder addCarrierIds(String value)
       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];
      Parameters:
      value - The carrierIds to add.
      Returns:
      This builder for chaining.
    • addAllCarrierIds

      public PhoneNumber.AllowedSipTrunks.Builder addAllCarrierIds(Iterable<String> values)
       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];
      Parameters:
      values - The carrierIds to add.
      Returns:
      This builder for chaining.
    • clearCarrierIds

      public PhoneNumber.AllowedSipTrunks.Builder clearCarrierIds()
       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];
      Returns:
      This builder for chaining.
    • addCarrierIdsBytes

      public PhoneNumber.AllowedSipTrunks.Builder addCarrierIdsBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes of the carrierIds to add.
      Returns:
      This builder for chaining.