Class SuggestDialogflowAssistsResponse.Builder

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

public static final class SuggestDialogflowAssistsResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<SuggestDialogflowAssistsResponse.Builder> implements SuggestDialogflowAssistsResponseOrBuilder
 The response message for
 [Participants.SuggestDialogflowAssists][google.cloud.dialogflow.v2beta1.Participants.SuggestDialogflowAssists].
 
Protobuf type google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse
  • 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<SuggestDialogflowAssistsResponse.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<SuggestDialogflowAssistsResponse.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<SuggestDialogflowAssistsResponse.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

    • isInitialized

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

      public SuggestDialogflowAssistsResponse.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<SuggestDialogflowAssistsResponse.Builder>
      Throws:
      IOException
    • getDialogflowAssistAnswersList

      public List<DialogflowAssistAnswer> getDialogflowAssistAnswersList()
       Output only. Multiple reply options provided by Dialogflow assist
       service. The order is based on the rank of the model prediction.
       
      repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1;
      Specified by:
      getDialogflowAssistAnswersList in interface SuggestDialogflowAssistsResponseOrBuilder
    • getDialogflowAssistAnswersCount

      public int getDialogflowAssistAnswersCount()
       Output only. Multiple reply options provided by Dialogflow assist
       service. The order is based on the rank of the model prediction.
       
      repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1;
      Specified by:
      getDialogflowAssistAnswersCount in interface SuggestDialogflowAssistsResponseOrBuilder
    • getDialogflowAssistAnswers

      public DialogflowAssistAnswer getDialogflowAssistAnswers(int index)
       Output only. Multiple reply options provided by Dialogflow assist
       service. The order is based on the rank of the model prediction.
       
      repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1;
      Specified by:
      getDialogflowAssistAnswers in interface SuggestDialogflowAssistsResponseOrBuilder
    • setDialogflowAssistAnswers

      public SuggestDialogflowAssistsResponse.Builder setDialogflowAssistAnswers(int index, DialogflowAssistAnswer value)
       Output only. Multiple reply options provided by Dialogflow assist
       service. The order is based on the rank of the model prediction.
       
      repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1;
    • setDialogflowAssistAnswers

      public SuggestDialogflowAssistsResponse.Builder setDialogflowAssistAnswers(int index, DialogflowAssistAnswer.Builder builderForValue)
       Output only. Multiple reply options provided by Dialogflow assist
       service. The order is based on the rank of the model prediction.
       
      repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1;
    • addDialogflowAssistAnswers

      public SuggestDialogflowAssistsResponse.Builder addDialogflowAssistAnswers(DialogflowAssistAnswer value)
       Output only. Multiple reply options provided by Dialogflow assist
       service. The order is based on the rank of the model prediction.
       
      repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1;
    • addDialogflowAssistAnswers

      public SuggestDialogflowAssistsResponse.Builder addDialogflowAssistAnswers(int index, DialogflowAssistAnswer value)
       Output only. Multiple reply options provided by Dialogflow assist
       service. The order is based on the rank of the model prediction.
       
      repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1;
    • addDialogflowAssistAnswers

      public SuggestDialogflowAssistsResponse.Builder addDialogflowAssistAnswers(DialogflowAssistAnswer.Builder builderForValue)
       Output only. Multiple reply options provided by Dialogflow assist
       service. The order is based on the rank of the model prediction.
       
      repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1;
    • addDialogflowAssistAnswers

      public SuggestDialogflowAssistsResponse.Builder addDialogflowAssistAnswers(int index, DialogflowAssistAnswer.Builder builderForValue)
       Output only. Multiple reply options provided by Dialogflow assist
       service. The order is based on the rank of the model prediction.
       
      repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1;
    • addAllDialogflowAssistAnswers

      public SuggestDialogflowAssistsResponse.Builder addAllDialogflowAssistAnswers(Iterable<? extends DialogflowAssistAnswer> values)
       Output only. Multiple reply options provided by Dialogflow assist
       service. The order is based on the rank of the model prediction.
       
      repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1;
    • clearDialogflowAssistAnswers

      public SuggestDialogflowAssistsResponse.Builder clearDialogflowAssistAnswers()
       Output only. Multiple reply options provided by Dialogflow assist
       service. The order is based on the rank of the model prediction.
       
      repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1;
    • removeDialogflowAssistAnswers

      public SuggestDialogflowAssistsResponse.Builder removeDialogflowAssistAnswers(int index)
       Output only. Multiple reply options provided by Dialogflow assist
       service. The order is based on the rank of the model prediction.
       
      repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1;
    • getDialogflowAssistAnswersBuilder

      public DialogflowAssistAnswer.Builder getDialogflowAssistAnswersBuilder(int index)
       Output only. Multiple reply options provided by Dialogflow assist
       service. The order is based on the rank of the model prediction.
       
      repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1;
    • getDialogflowAssistAnswersOrBuilder

      public DialogflowAssistAnswerOrBuilder getDialogflowAssistAnswersOrBuilder(int index)
       Output only. Multiple reply options provided by Dialogflow assist
       service. The order is based on the rank of the model prediction.
       
      repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1;
      Specified by:
      getDialogflowAssistAnswersOrBuilder in interface SuggestDialogflowAssistsResponseOrBuilder
    • getDialogflowAssistAnswersOrBuilderList

      public List<? extends DialogflowAssistAnswerOrBuilder> getDialogflowAssistAnswersOrBuilderList()
       Output only. Multiple reply options provided by Dialogflow assist
       service. The order is based on the rank of the model prediction.
       
      repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1;
      Specified by:
      getDialogflowAssistAnswersOrBuilderList in interface SuggestDialogflowAssistsResponseOrBuilder
    • addDialogflowAssistAnswersBuilder

      public DialogflowAssistAnswer.Builder addDialogflowAssistAnswersBuilder()
       Output only. Multiple reply options provided by Dialogflow assist
       service. The order is based on the rank of the model prediction.
       
      repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1;
    • addDialogflowAssistAnswersBuilder

      public DialogflowAssistAnswer.Builder addDialogflowAssistAnswersBuilder(int index)
       Output only. Multiple reply options provided by Dialogflow assist
       service. The order is based on the rank of the model prediction.
       
      repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1;
    • getDialogflowAssistAnswersBuilderList

      public List<DialogflowAssistAnswer.Builder> getDialogflowAssistAnswersBuilderList()
       Output only. Multiple reply options provided by Dialogflow assist
       service. The order is based on the rank of the model prediction.
       
      repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1;
    • getLatestMessage

      public String getLatestMessage()
       The name of the latest conversation message used to suggest answer.
      
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversations/<Conversation ID>/messages/<Message ID>`.
       
      string latest_message = 2;
      Specified by:
      getLatestMessage in interface SuggestDialogflowAssistsResponseOrBuilder
      Returns:
      The latestMessage.
    • getLatestMessageBytes

      public com.google.protobuf.ByteString getLatestMessageBytes()
       The name of the latest conversation message used to suggest answer.
      
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversations/<Conversation ID>/messages/<Message ID>`.
       
      string latest_message = 2;
      Specified by:
      getLatestMessageBytes in interface SuggestDialogflowAssistsResponseOrBuilder
      Returns:
      The bytes for latestMessage.
    • setLatestMessage

      public SuggestDialogflowAssistsResponse.Builder setLatestMessage(String value)
       The name of the latest conversation message used to suggest answer.
      
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversations/<Conversation ID>/messages/<Message ID>`.
       
      string latest_message = 2;
      Parameters:
      value - The latestMessage to set.
      Returns:
      This builder for chaining.
    • clearLatestMessage

      public SuggestDialogflowAssistsResponse.Builder clearLatestMessage()
       The name of the latest conversation message used to suggest answer.
      
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversations/<Conversation ID>/messages/<Message ID>`.
       
      string latest_message = 2;
      Returns:
      This builder for chaining.
    • setLatestMessageBytes

      public SuggestDialogflowAssistsResponse.Builder setLatestMessageBytes(com.google.protobuf.ByteString value)
       The name of the latest conversation message used to suggest answer.
      
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversations/<Conversation ID>/messages/<Message ID>`.
       
      string latest_message = 2;
      Parameters:
      value - The bytes for latestMessage to set.
      Returns:
      This builder for chaining.
    • getContextSize

      public int getContextSize()
       Number of messages prior to and including
       [latest_message][google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse.latest_message]
       to compile the suggestion. It may be smaller than the
       [SuggestDialogflowAssistsRequest.context_size][google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsRequest.context_size]
       field in the request if there aren't that many messages in the
       conversation.
       
      int32 context_size = 3;
      Specified by:
      getContextSize in interface SuggestDialogflowAssistsResponseOrBuilder
      Returns:
      The contextSize.
    • setContextSize

      public SuggestDialogflowAssistsResponse.Builder setContextSize(int value)
       Number of messages prior to and including
       [latest_message][google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse.latest_message]
       to compile the suggestion. It may be smaller than the
       [SuggestDialogflowAssistsRequest.context_size][google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsRequest.context_size]
       field in the request if there aren't that many messages in the
       conversation.
       
      int32 context_size = 3;
      Parameters:
      value - The contextSize to set.
      Returns:
      This builder for chaining.
    • clearContextSize

      public SuggestDialogflowAssistsResponse.Builder clearContextSize()
       Number of messages prior to and including
       [latest_message][google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse.latest_message]
       to compile the suggestion. It may be smaller than the
       [SuggestDialogflowAssistsRequest.context_size][google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsRequest.context_size]
       field in the request if there aren't that many messages in the
       conversation.
       
      int32 context_size = 3;
      Returns:
      This builder for chaining.