Class SuggestionInput.Builder

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

public static final class SuggestionInput.Builder extends com.google.protobuf.GeneratedMessage.Builder<SuggestionInput.Builder> implements SuggestionInputOrBuilder
 Represents the action to take for a tool call that requires confirmation.
 
Protobuf type google.cloud.dialogflow.v2.SuggestionInput
  • 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<SuggestionInput.Builder>
    • clear

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

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

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

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

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

      public SuggestionInput.Builder mergeFrom(SuggestionInput other)
    • isInitialized

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

      public SuggestionInput.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<SuggestionInput.Builder>
      Throws:
      IOException
    • getAnswerRecord

      public String getAnswerRecord()
       Required. Format: `projects/<Project ID>/locations/<Location
       ID>/answerRecords/<Answer Record ID>`
       The answer record associated with the tool call.
       
      string answer_record = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAnswerRecord in interface SuggestionInputOrBuilder
      Returns:
      The answerRecord.
    • getAnswerRecordBytes

      public com.google.protobuf.ByteString getAnswerRecordBytes()
       Required. Format: `projects/<Project ID>/locations/<Location
       ID>/answerRecords/<Answer Record ID>`
       The answer record associated with the tool call.
       
      string answer_record = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAnswerRecordBytes in interface SuggestionInputOrBuilder
      Returns:
      The bytes for answerRecord.
    • setAnswerRecord

      public SuggestionInput.Builder setAnswerRecord(String value)
       Required. Format: `projects/<Project ID>/locations/<Location
       ID>/answerRecords/<Answer Record ID>`
       The answer record associated with the tool call.
       
      string answer_record = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The answerRecord to set.
      Returns:
      This builder for chaining.
    • clearAnswerRecord

      public SuggestionInput.Builder clearAnswerRecord()
       Required. Format: `projects/<Project ID>/locations/<Location
       ID>/answerRecords/<Answer Record ID>`
       The answer record associated with the tool call.
       
      string answer_record = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setAnswerRecordBytes

      public SuggestionInput.Builder setAnswerRecordBytes(com.google.protobuf.ByteString value)
       Required. Format: `projects/<Project ID>/locations/<Location
       ID>/answerRecords/<Answer Record ID>`
       The answer record associated with the tool call.
       
      string answer_record = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for answerRecord to set.
      Returns:
      This builder for chaining.
    • hasParameters

      public boolean hasParameters()
       Optional. Parameters to be used for the tool call.  If not provided, the
       tool will be called without any parameters.
       
      .google.protobuf.Struct parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasParameters in interface SuggestionInputOrBuilder
      Returns:
      Whether the parameters field is set.
    • getParameters

      public com.google.protobuf.Struct getParameters()
       Optional. Parameters to be used for the tool call.  If not provided, the
       tool will be called without any parameters.
       
      .google.protobuf.Struct parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getParameters in interface SuggestionInputOrBuilder
      Returns:
      The parameters.
    • setParameters

      public SuggestionInput.Builder setParameters(com.google.protobuf.Struct value)
       Optional. Parameters to be used for the tool call.  If not provided, the
       tool will be called without any parameters.
       
      .google.protobuf.Struct parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
    • setParameters

      public SuggestionInput.Builder setParameters(com.google.protobuf.Struct.Builder builderForValue)
       Optional. Parameters to be used for the tool call.  If not provided, the
       tool will be called without any parameters.
       
      .google.protobuf.Struct parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
    • mergeParameters

      public SuggestionInput.Builder mergeParameters(com.google.protobuf.Struct value)
       Optional. Parameters to be used for the tool call.  If not provided, the
       tool will be called without any parameters.
       
      .google.protobuf.Struct parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
    • clearParameters

      public SuggestionInput.Builder clearParameters()
       Optional. Parameters to be used for the tool call.  If not provided, the
       tool will be called without any parameters.
       
      .google.protobuf.Struct parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getParametersBuilder

      public com.google.protobuf.Struct.Builder getParametersBuilder()
       Optional. Parameters to be used for the tool call.  If not provided, the
       tool will be called without any parameters.
       
      .google.protobuf.Struct parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getParametersOrBuilder

      public com.google.protobuf.StructOrBuilder getParametersOrBuilder()
       Optional. Parameters to be used for the tool call.  If not provided, the
       tool will be called without any parameters.
       
      .google.protobuf.Struct parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getParametersOrBuilder in interface SuggestionInputOrBuilder
    • getActionValue

      public int getActionValue()
       Optional. The type of action to take with the tool.
       
      .google.cloud.dialogflow.v2.SuggestionInput.Action action = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getActionValue in interface SuggestionInputOrBuilder
      Returns:
      The enum numeric value on the wire for action.
    • setActionValue

      public SuggestionInput.Builder setActionValue(int value)
       Optional. The type of action to take with the tool.
       
      .google.cloud.dialogflow.v2.SuggestionInput.Action action = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for action to set.
      Returns:
      This builder for chaining.
    • getAction

      public SuggestionInput.Action getAction()
       Optional. The type of action to take with the tool.
       
      .google.cloud.dialogflow.v2.SuggestionInput.Action action = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAction in interface SuggestionInputOrBuilder
      Returns:
      The action.
    • setAction

       Optional. The type of action to take with the tool.
       
      .google.cloud.dialogflow.v2.SuggestionInput.Action action = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The action to set.
      Returns:
      This builder for chaining.
    • clearAction

      public SuggestionInput.Builder clearAction()
       Optional. The type of action to take with the tool.
       
      .google.cloud.dialogflow.v2.SuggestionInput.Action action = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasSendTime

      public boolean hasSendTime()
       Optional. Time when the current suggest input is sent. For tool calls, this
       timestamp (along with the answer record) will be included in the
       corresponding tool call result so that it can be identified.
       
      .google.protobuf.Timestamp send_time = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasSendTime in interface SuggestionInputOrBuilder
      Returns:
      Whether the sendTime field is set.
    • getSendTime

      public com.google.protobuf.Timestamp getSendTime()
       Optional. Time when the current suggest input is sent. For tool calls, this
       timestamp (along with the answer record) will be included in the
       corresponding tool call result so that it can be identified.
       
      .google.protobuf.Timestamp send_time = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSendTime in interface SuggestionInputOrBuilder
      Returns:
      The sendTime.
    • setSendTime

      public SuggestionInput.Builder setSendTime(com.google.protobuf.Timestamp value)
       Optional. Time when the current suggest input is sent. For tool calls, this
       timestamp (along with the answer record) will be included in the
       corresponding tool call result so that it can be identified.
       
      .google.protobuf.Timestamp send_time = 7 [(.google.api.field_behavior) = OPTIONAL];
    • setSendTime

      public SuggestionInput.Builder setSendTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Optional. Time when the current suggest input is sent. For tool calls, this
       timestamp (along with the answer record) will be included in the
       corresponding tool call result so that it can be identified.
       
      .google.protobuf.Timestamp send_time = 7 [(.google.api.field_behavior) = OPTIONAL];
    • mergeSendTime

      public SuggestionInput.Builder mergeSendTime(com.google.protobuf.Timestamp value)
       Optional. Time when the current suggest input is sent. For tool calls, this
       timestamp (along with the answer record) will be included in the
       corresponding tool call result so that it can be identified.
       
      .google.protobuf.Timestamp send_time = 7 [(.google.api.field_behavior) = OPTIONAL];
    • clearSendTime

      public SuggestionInput.Builder clearSendTime()
       Optional. Time when the current suggest input is sent. For tool calls, this
       timestamp (along with the answer record) will be included in the
       corresponding tool call result so that it can be identified.
       
      .google.protobuf.Timestamp send_time = 7 [(.google.api.field_behavior) = OPTIONAL];
    • getSendTimeBuilder

      public com.google.protobuf.Timestamp.Builder getSendTimeBuilder()
       Optional. Time when the current suggest input is sent. For tool calls, this
       timestamp (along with the answer record) will be included in the
       corresponding tool call result so that it can be identified.
       
      .google.protobuf.Timestamp send_time = 7 [(.google.api.field_behavior) = OPTIONAL];
    • getSendTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getSendTimeOrBuilder()
       Optional. Time when the current suggest input is sent. For tool calls, this
       timestamp (along with the answer record) will be included in the
       corresponding tool call result so that it can be identified.
       
      .google.protobuf.Timestamp send_time = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSendTimeOrBuilder in interface SuggestionInputOrBuilder