Class Connection.Builder

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

public static final class Connection.Builder extends com.google.protobuf.GeneratedMessage.Builder<Connection.Builder> implements ConnectionOrBuilder
 Represents a connection for SIP Trunk.
 
Protobuf type google.cloud.dialogflow.v2.Connection
  • 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<Connection.Builder>
    • clear

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

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

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

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

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

      public Connection.Builder mergeFrom(Connection other)
    • isInitialized

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

      public Connection.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<Connection.Builder>
      Throws:
      IOException
    • getConnectionId

      public String getConnectionId()
       Output only. The unique identifier of the SIP Trunk connection.
       
      string connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getConnectionId in interface ConnectionOrBuilder
      Returns:
      The connectionId.
    • getConnectionIdBytes

      public com.google.protobuf.ByteString getConnectionIdBytes()
       Output only. The unique identifier of the SIP Trunk connection.
       
      string connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getConnectionIdBytes in interface ConnectionOrBuilder
      Returns:
      The bytes for connectionId.
    • setConnectionId

      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];
      Parameters:
      value - The connectionId to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setConnectionIdBytes

      public Connection.Builder setConnectionIdBytes(com.google.protobuf.ByteString value)
       Output only. The unique identifier of the SIP Trunk connection.
       
      string connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for connectionId to set.
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       Output only. State of the connection.
       
      .google.cloud.dialogflow.v2.Connection.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface ConnectionOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public Connection.Builder setStateValue(int value)
       Output only. State of the connection.
       
      .google.cloud.dialogflow.v2.Connection.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public Connection.State getState()
       Output only. State of the connection.
       
      .google.cloud.dialogflow.v2.Connection.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface ConnectionOrBuilder
      Returns:
      The state.
    • setState

      public Connection.Builder setState(Connection.State value)
       Output only. State of the connection.
       
      .google.cloud.dialogflow.v2.Connection.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public Connection.Builder clearState()
       Output only. State of the connection.
       
      .google.cloud.dialogflow.v2.Connection.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. When the connection status changed.
       
      optional .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface ConnectionOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. When the connection status changed.
       
      optional .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface ConnectionOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Connection.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. When the connection status changed.
       
      optional .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Connection.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. When the connection status changed.
       
      optional .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Connection.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. When the connection status changed.
       
      optional .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. When the connection status changed.
       
      optional .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. When the connection status changed.
       
      optional .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface ConnectionOrBuilder
    • hasErrorDetails

      public boolean hasErrorDetails()
       Output only. The error details for the connection. Only populated when
       authentication errors occur.
       
      optional .google.cloud.dialogflow.v2.Connection.ErrorDetails error_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasErrorDetails in interface ConnectionOrBuilder
      Returns:
      Whether the errorDetails field is set.
    • getErrorDetails

      public Connection.ErrorDetails getErrorDetails()
       Output only. The error details for the connection. Only populated when
       authentication errors occur.
       
      optional .google.cloud.dialogflow.v2.Connection.ErrorDetails error_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getErrorDetails in interface ConnectionOrBuilder
      Returns:
      The errorDetails.
    • setErrorDetails

      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.v2.Connection.ErrorDetails error_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setErrorDetails

      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.v2.Connection.ErrorDetails error_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeErrorDetails

      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.v2.Connection.ErrorDetails error_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearErrorDetails

      public Connection.Builder clearErrorDetails()
       Output only. The error details for the connection. Only populated when
       authentication errors occur.
       
      optional .google.cloud.dialogflow.v2.Connection.ErrorDetails error_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getErrorDetailsBuilder

      public Connection.ErrorDetails.Builder getErrorDetailsBuilder()
       Output only. The error details for the connection. Only populated when
       authentication errors occur.
       
      optional .google.cloud.dialogflow.v2.Connection.ErrorDetails error_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getErrorDetailsOrBuilder

      public Connection.ErrorDetailsOrBuilder getErrorDetailsOrBuilder()
       Output only. The error details for the connection. Only populated when
       authentication errors occur.
       
      optional .google.cloud.dialogflow.v2.Connection.ErrorDetails error_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getErrorDetailsOrBuilder in interface ConnectionOrBuilder