Class SipTrunk.Builder

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

public static final class SipTrunk.Builder extends com.google.protobuf.GeneratedMessage.Builder<SipTrunk.Builder> implements SipTrunkOrBuilder
 SipTrunk is the resource that represents a SIP trunk to connect to Google
 Telephony platform SIP trunking service.
 
Protobuf type google.cloud.dialogflow.v2.SipTrunk
  • 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<SipTrunk.Builder>
    • clear

      public SipTrunk.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<SipTrunk.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<SipTrunk.Builder>
    • getDefaultInstanceForType

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

      public SipTrunk build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public SipTrunk.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<SipTrunk.Builder>
    • mergeFrom

      public SipTrunk.Builder mergeFrom(SipTrunk other)
    • isInitialized

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

      public SipTrunk.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<SipTrunk.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Identifier. The unique identifier of the SIP trunk.
       Format: `projects/<Project ID>/locations/<Location ID>/sipTrunks/<SipTrunk
       ID>`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface SipTrunkOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. The unique identifier of the SIP trunk.
       Format: `projects/<Project ID>/locations/<Location ID>/sipTrunks/<SipTrunk
       ID>`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface SipTrunkOrBuilder
      Returns:
      The bytes for name.
    • setName

      public SipTrunk.Builder setName(String value)
       Identifier. The unique identifier of the SIP trunk.
       Format: `projects/<Project ID>/locations/<Location ID>/sipTrunks/<SipTrunk
       ID>`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public SipTrunk.Builder clearName()
       Identifier. The unique identifier of the SIP trunk.
       Format: `projects/<Project ID>/locations/<Location ID>/sipTrunks/<SipTrunk
       ID>`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public SipTrunk.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. The unique identifier of the SIP trunk.
       Format: `projects/<Project ID>/locations/<Location ID>/sipTrunks/<SipTrunk
       ID>`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getExpectedHostnameList

      public com.google.protobuf.ProtocolStringList getExpectedHostnameList()
       Required. The expected hostnames in the peer certificate from partner that
       is used for TLS authentication.
       
      repeated string expected_hostname = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getExpectedHostnameList in interface SipTrunkOrBuilder
      Returns:
      A list containing the expectedHostname.
    • getExpectedHostnameCount

      public int getExpectedHostnameCount()
       Required. The expected hostnames in the peer certificate from partner that
       is used for TLS authentication.
       
      repeated string expected_hostname = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getExpectedHostnameCount in interface SipTrunkOrBuilder
      Returns:
      The count of expectedHostname.
    • getExpectedHostname

      public String getExpectedHostname(int index)
       Required. The expected hostnames in the peer certificate from partner that
       is used for TLS authentication.
       
      repeated string expected_hostname = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getExpectedHostname in interface SipTrunkOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The expectedHostname at the given index.
    • getExpectedHostnameBytes

      public com.google.protobuf.ByteString getExpectedHostnameBytes(int index)
       Required. The expected hostnames in the peer certificate from partner that
       is used for TLS authentication.
       
      repeated string expected_hostname = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getExpectedHostnameBytes in interface SipTrunkOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the expectedHostname at the given index.
    • setExpectedHostname

      public SipTrunk.Builder setExpectedHostname(int index, String value)
       Required. The expected hostnames in the peer certificate from partner that
       is used for TLS authentication.
       
      repeated string expected_hostname = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      index - The index to set the value at.
      value - The expectedHostname to set.
      Returns:
      This builder for chaining.
    • addExpectedHostname

      public SipTrunk.Builder addExpectedHostname(String value)
       Required. The expected hostnames in the peer certificate from partner that
       is used for TLS authentication.
       
      repeated string expected_hostname = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The expectedHostname to add.
      Returns:
      This builder for chaining.
    • addAllExpectedHostname

      public SipTrunk.Builder addAllExpectedHostname(Iterable<String> values)
       Required. The expected hostnames in the peer certificate from partner that
       is used for TLS authentication.
       
      repeated string expected_hostname = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      values - The expectedHostname to add.
      Returns:
      This builder for chaining.
    • clearExpectedHostname

      public SipTrunk.Builder clearExpectedHostname()
       Required. The expected hostnames in the peer certificate from partner that
       is used for TLS authentication.
       
      repeated string expected_hostname = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • addExpectedHostnameBytes

      public SipTrunk.Builder addExpectedHostnameBytes(com.google.protobuf.ByteString value)
       Required. The expected hostnames in the peer certificate from partner that
       is used for TLS authentication.
       
      repeated string expected_hostname = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes of the expectedHostname to add.
      Returns:
      This builder for chaining.
    • getConnectionsList

      public List<Connection> getConnectionsList()
       Output only. Connections of the SIP trunk.
       
      repeated .google.cloud.dialogflow.v2.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getConnectionsList in interface SipTrunkOrBuilder
    • getConnectionsCount

      public int getConnectionsCount()
       Output only. Connections of the SIP trunk.
       
      repeated .google.cloud.dialogflow.v2.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getConnectionsCount in interface SipTrunkOrBuilder
    • getConnections

      public Connection getConnections(int index)
       Output only. Connections of the SIP trunk.
       
      repeated .google.cloud.dialogflow.v2.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getConnections in interface SipTrunkOrBuilder
    • setConnections

      public SipTrunk.Builder setConnections(int index, Connection value)
       Output only. Connections of the SIP trunk.
       
      repeated .google.cloud.dialogflow.v2.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setConnections

      public SipTrunk.Builder setConnections(int index, Connection.Builder builderForValue)
       Output only. Connections of the SIP trunk.
       
      repeated .google.cloud.dialogflow.v2.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addConnections

      public SipTrunk.Builder addConnections(Connection value)
       Output only. Connections of the SIP trunk.
       
      repeated .google.cloud.dialogflow.v2.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addConnections

      public SipTrunk.Builder addConnections(int index, Connection value)
       Output only. Connections of the SIP trunk.
       
      repeated .google.cloud.dialogflow.v2.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addConnections

      public SipTrunk.Builder addConnections(Connection.Builder builderForValue)
       Output only. Connections of the SIP trunk.
       
      repeated .google.cloud.dialogflow.v2.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addConnections

      public SipTrunk.Builder addConnections(int index, Connection.Builder builderForValue)
       Output only. Connections of the SIP trunk.
       
      repeated .google.cloud.dialogflow.v2.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAllConnections

      public SipTrunk.Builder addAllConnections(Iterable<? extends Connection> values)
       Output only. Connections of the SIP trunk.
       
      repeated .google.cloud.dialogflow.v2.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearConnections

      public SipTrunk.Builder clearConnections()
       Output only. Connections of the SIP trunk.
       
      repeated .google.cloud.dialogflow.v2.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • removeConnections

      public SipTrunk.Builder removeConnections(int index)
       Output only. Connections of the SIP trunk.
       
      repeated .google.cloud.dialogflow.v2.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getConnectionsBuilder

      public Connection.Builder getConnectionsBuilder(int index)
       Output only. Connections of the SIP trunk.
       
      repeated .google.cloud.dialogflow.v2.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getConnectionsOrBuilder

      public ConnectionOrBuilder getConnectionsOrBuilder(int index)
       Output only. Connections of the SIP trunk.
       
      repeated .google.cloud.dialogflow.v2.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getConnectionsOrBuilder in interface SipTrunkOrBuilder
    • getConnectionsOrBuilderList

      public List<? extends ConnectionOrBuilder> getConnectionsOrBuilderList()
       Output only. Connections of the SIP trunk.
       
      repeated .google.cloud.dialogflow.v2.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getConnectionsOrBuilderList in interface SipTrunkOrBuilder
    • addConnectionsBuilder

      public Connection.Builder addConnectionsBuilder()
       Output only. Connections of the SIP trunk.
       
      repeated .google.cloud.dialogflow.v2.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addConnectionsBuilder

      public Connection.Builder addConnectionsBuilder(int index)
       Output only. Connections of the SIP trunk.
       
      repeated .google.cloud.dialogflow.v2.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getConnectionsBuilderList

      public List<Connection.Builder> getConnectionsBuilderList()
       Output only. Connections of the SIP trunk.
       
      repeated .google.cloud.dialogflow.v2.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getDisplayName

      public String getDisplayName()
       Optional. Human readable alias for this trunk.
       
      string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayName in interface SipTrunkOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Optional. Human readable alias for this trunk.
       
      string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayNameBytes in interface SipTrunkOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public SipTrunk.Builder setDisplayName(String value)
       Optional. Human readable alias for this trunk.
       
      string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public SipTrunk.Builder clearDisplayName()
       Optional. Human readable alias for this trunk.
       
      string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public SipTrunk.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Optional. Human readable alias for this trunk.
       
      string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.