Package com.google.cloud.dialogflow.v2
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 Summary
Modifier and TypeMethodDescriptionaddAllConnections(Iterable<? extends Connection> values) Output only.addAllExpectedHostname(Iterable<String> values) Required.addConnections(int index, Connection value) Output only.addConnections(int index, Connection.Builder builderForValue) Output only.addConnections(Connection value) Output only.addConnections(Connection.Builder builderForValue) Output only.Output only.addConnectionsBuilder(int index) Output only.addExpectedHostname(String value) Required.addExpectedHostnameBytes(com.google.protobuf.ByteString value) Required.build()clear()Output only.Optional.Required.Identifier.getConnections(int index) Output only.getConnectionsBuilder(int index) Output only.Output only.intOutput only.Output only.getConnectionsOrBuilder(int index) Output only.List<? extends ConnectionOrBuilder>Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.getExpectedHostname(int index) Required.com.google.protobuf.ByteStringgetExpectedHostnameBytes(int index) Required.intRequired.com.google.protobuf.ProtocolStringListRequired.getName()Identifier.com.google.protobuf.ByteStringIdentifier.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeConnections(int index) Output only.setConnections(int index, Connection value) Output only.setConnections(int index, Connection.Builder builderForValue) Output only.setDisplayName(String value) Optional.setDisplayNameBytes(com.google.protobuf.ByteString value) Optional.setExpectedHostname(int index, String value) Required.Identifier.setNameBytes(com.google.protobuf.ByteString value) Identifier.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SipTrunk.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SipTrunk.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SipTrunk.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SipTrunk.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SipTrunk.Builder>- Throws:
IOException
-
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:
getNamein interfaceSipTrunkOrBuilder- 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:
getNameBytesin interfaceSipTrunkOrBuilder- Returns:
- The bytes for name.
-
setName
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
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
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:
getExpectedHostnameListin interfaceSipTrunkOrBuilder- 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:
getExpectedHostnameCountin interfaceSipTrunkOrBuilder- Returns:
- The count of expectedHostname.
-
getExpectedHostname
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:
getExpectedHostnamein interfaceSipTrunkOrBuilder- 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:
getExpectedHostnameBytesin interfaceSipTrunkOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the expectedHostname at the given index.
-
setExpectedHostname
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
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
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
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
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
Output only. Connections of the SIP trunk.
repeated .google.cloud.dialogflow.v2.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getConnectionsListin interfaceSipTrunkOrBuilder
-
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:
getConnectionsCountin interfaceSipTrunkOrBuilder
-
getConnections
Output only. Connections of the SIP trunk.
repeated .google.cloud.dialogflow.v2.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getConnectionsin interfaceSipTrunkOrBuilder
-
setConnections
Output only. Connections of the SIP trunk.
repeated .google.cloud.dialogflow.v2.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setConnections
Output only. Connections of the SIP trunk.
repeated .google.cloud.dialogflow.v2.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addConnections
Output only. Connections of the SIP trunk.
repeated .google.cloud.dialogflow.v2.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addConnections
Output only. Connections of the SIP trunk.
repeated .google.cloud.dialogflow.v2.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addConnections
Output only. Connections of the SIP trunk.
repeated .google.cloud.dialogflow.v2.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addConnections
Output only. Connections of the SIP trunk.
repeated .google.cloud.dialogflow.v2.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addAllConnections
Output only. Connections of the SIP trunk.
repeated .google.cloud.dialogflow.v2.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearConnections
Output only. Connections of the SIP trunk.
repeated .google.cloud.dialogflow.v2.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
removeConnections
Output only. Connections of the SIP trunk.
repeated .google.cloud.dialogflow.v2.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getConnectionsBuilder
Output only. Connections of the SIP trunk.
repeated .google.cloud.dialogflow.v2.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getConnectionsOrBuilder
Output only. Connections of the SIP trunk.
repeated .google.cloud.dialogflow.v2.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getConnectionsOrBuilderin interfaceSipTrunkOrBuilder
-
getConnectionsOrBuilderList
Output only. Connections of the SIP trunk.
repeated .google.cloud.dialogflow.v2.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getConnectionsOrBuilderListin interfaceSipTrunkOrBuilder
-
addConnectionsBuilder
Output only. Connections of the SIP trunk.
repeated .google.cloud.dialogflow.v2.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addConnectionsBuilder
Output only. Connections of the SIP trunk.
repeated .google.cloud.dialogflow.v2.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getConnectionsBuilderList
Output only. Connections of the SIP trunk.
repeated .google.cloud.dialogflow.v2.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getDisplayName
Optional. Human readable alias for this trunk.
string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDisplayNamein interfaceSipTrunkOrBuilder- 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:
getDisplayNameBytesin interfaceSipTrunkOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
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
Optional. Human readable alias for this trunk.
string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDisplayNameBytes
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.
-