Class Connection.Builder (4.60.0)

public static final class Connection.Builder extends GeneratedMessageV3.Builder<Connection.Builder> implements ConnectionOrBuilder

Represents a connection for SIP Trunk.

Protobuf type google.cloud.dialogflow.v2beta1.Connection

Implements

ConnectionOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Connection.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Connection.Builder
Overrides

build()

public Connection build()
Returns
Type Description
Connection

buildPartial()

public Connection buildPartial()
Returns
Type Description
Connection

clear()

public Connection.Builder clear()
Returns
Type Description
Connection.Builder
Overrides

clearConnectionId()

public Connection.Builder clearConnectionId()

Output only. The unique identifier of the SIP Trunk connection.

string connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Connection.Builder

This builder for chaining.

clearErrorDetails()

public Connection.Builder clearErrorDetails()

Output only. The error details for the connection. Only populated when authentication errors occur.

optional .google.cloud.dialogflow.v2beta1.Connection.ErrorDetails error_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Connection.Builder

clearField(Descriptors.FieldDescriptor field)

public Connection.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Connection.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Connection.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Connection.Builder
Overrides

clearState()

public Connection.Builder clearState()

Output only. State of the connection.

.google.cloud.dialogflow.v2beta1.Connection.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Connection.Builder

This builder for chaining.

clearUpdateTime()

public Connection.Builder clearUpdateTime()

Output only. When the connection status changed.

optional .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Connection.Builder

clone()

public Connection.Builder clone()
Returns
Type Description
Connection.Builder
Overrides

getConnectionId()

public String getConnectionId()

Output only. The unique identifier of the SIP Trunk connection.

string connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The connectionId.

getConnectionIdBytes()

public ByteString getConnectionIdBytes()

Output only. The unique identifier of the SIP Trunk connection.

string connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for connectionId.

getDefaultInstanceForType()

public Connection getDefaultInstanceForType()
Returns
Type Description
Connection

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getErrorDetails()

public Connection.ErrorDetails getErrorDetails()

Output only. The error details for the connection. Only populated when authentication errors occur.

optional .google.cloud.dialogflow.v2beta1.Connection.ErrorDetails error_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Connection.ErrorDetails

The errorDetails.

getErrorDetailsBuilder()

public Connection.ErrorDetails.Builder getErrorDetailsBuilder()

Output only. The error details for the connection. Only populated when authentication errors occur.

optional .google.cloud.dialogflow.v2beta1.Connection.ErrorDetails error_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Connection.ErrorDetails.Builder

getErrorDetailsOrBuilder()

public Connection.ErrorDetailsOrBuilder getErrorDetailsOrBuilder()

Output only. The error details for the connection. Only populated when authentication errors occur.

optional .google.cloud.dialogflow.v2beta1.Connection.ErrorDetails error_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Connection.ErrorDetailsOrBuilder

getState()

public Connection.State getState()

Output only. State of the connection.

.google.cloud.dialogflow.v2beta1.Connection.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Connection.State

The state.

getStateValue()

public int getStateValue()

Output only. State of the connection.

.google.cloud.dialogflow.v2beta1.Connection.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. When the connection status changed.

optional .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. When the connection status changed.

optional .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. When the connection status changed.

optional .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasErrorDetails()

public boolean hasErrorDetails()

Output only. The error details for the connection. Only populated when authentication errors occur.

optional .google.cloud.dialogflow.v2beta1.Connection.ErrorDetails error_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the errorDetails field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. When the connection status changed.

optional .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeErrorDetails(Connection.ErrorDetails value)

public Connection.Builder mergeErrorDetails(Connection.ErrorDetails value)

Output only. The error details for the connection. Only populated when authentication errors occur.

optional .google.cloud.dialogflow.v2beta1.Connection.ErrorDetails error_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Connection.ErrorDetails
Returns
Type Description
Connection.Builder

mergeFrom(Connection other)

public Connection.Builder mergeFrom(Connection other)
Parameter
Name Description
other Connection
Returns
Type Description
Connection.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Connection.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Connection.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Connection.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Connection.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Connection.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Connection.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Connection.Builder mergeUpdateTime(Timestamp value)

Output only. When the connection status changed.

optional .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Connection.Builder

setConnectionId(String value)

public Connection.Builder setConnectionId(String value)

Output only. The unique identifier of the SIP Trunk connection.

string connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The connectionId to set.

Returns
Type Description
Connection.Builder

This builder for chaining.

setConnectionIdBytes(ByteString value)

public Connection.Builder setConnectionIdBytes(ByteString value)

Output only. The unique identifier of the SIP Trunk connection.

string connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for connectionId to set.

Returns
Type Description
Connection.Builder

This builder for chaining.

setErrorDetails(Connection.ErrorDetails value)

public Connection.Builder setErrorDetails(Connection.ErrorDetails value)

Output only. The error details for the connection. Only populated when authentication errors occur.

optional .google.cloud.dialogflow.v2beta1.Connection.ErrorDetails error_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Connection.ErrorDetails
Returns
Type Description
Connection.Builder

setErrorDetails(Connection.ErrorDetails.Builder builderForValue)

public Connection.Builder setErrorDetails(Connection.ErrorDetails.Builder builderForValue)

Output only. The error details for the connection. Only populated when authentication errors occur.

optional .google.cloud.dialogflow.v2beta1.Connection.ErrorDetails error_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Connection.ErrorDetails.Builder
Returns
Type Description
Connection.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Connection.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Connection.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Connection.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Connection.Builder
Overrides

setState(Connection.State value)

public Connection.Builder setState(Connection.State value)

Output only. State of the connection.

.google.cloud.dialogflow.v2beta1.Connection.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Connection.State

The state to set.

Returns
Type Description
Connection.Builder

This builder for chaining.

setStateValue(int value)

public Connection.Builder setStateValue(int value)

Output only. State of the connection.

.google.cloud.dialogflow.v2beta1.Connection.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
Connection.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Connection.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Connection.Builder
Overrides

setUpdateTime(Timestamp value)

public Connection.Builder setUpdateTime(Timestamp value)

Output only. When the connection status changed.

optional .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Connection.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Connection.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. When the connection status changed.

optional .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Connection.Builder