Class SuggestFaqAnswersRequest.Builder

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

public static final class SuggestFaqAnswersRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<SuggestFaqAnswersRequest.Builder> implements SuggestFaqAnswersRequestOrBuilder
 The request message for
 [Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2.Participants.SuggestFaqAnswers].
 
Protobuf type google.cloud.dialogflow.v2.SuggestFaqAnswersRequest
  • 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<SuggestFaqAnswersRequest.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<SuggestFaqAnswersRequest.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<SuggestFaqAnswersRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public SuggestFaqAnswersRequest.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<SuggestFaqAnswersRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The name of the participant to fetch suggestion for.
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface SuggestFaqAnswersRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The name of the participant to fetch suggestion for.
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface SuggestFaqAnswersRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public SuggestFaqAnswersRequest.Builder setParent(String value)
       Required. The name of the participant to fetch suggestion for.
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public SuggestFaqAnswersRequest.Builder clearParent()
       Required. The name of the participant to fetch suggestion for.
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public SuggestFaqAnswersRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The name of the participant to fetch suggestion for.
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • getLatestMessage

      public String getLatestMessage()
       Optional. The name of the latest conversation message to compile suggestion
       for. If empty, it will be the latest message of the conversation.
      
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversations/<Conversation ID>/messages/<Message ID>`.
       
      string latest_message = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getLatestMessage in interface SuggestFaqAnswersRequestOrBuilder
      Returns:
      The latestMessage.
    • getLatestMessageBytes

      public com.google.protobuf.ByteString getLatestMessageBytes()
       Optional. The name of the latest conversation message to compile suggestion
       for. If empty, it will be the latest message of the conversation.
      
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversations/<Conversation ID>/messages/<Message ID>`.
       
      string latest_message = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getLatestMessageBytes in interface SuggestFaqAnswersRequestOrBuilder
      Returns:
      The bytes for latestMessage.
    • setLatestMessage

      public SuggestFaqAnswersRequest.Builder setLatestMessage(String value)
       Optional. The name of the latest conversation message to compile suggestion
       for. If empty, it will be the latest message of the conversation.
      
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversations/<Conversation ID>/messages/<Message ID>`.
       
      string latest_message = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The latestMessage to set.
      Returns:
      This builder for chaining.
    • clearLatestMessage

      public SuggestFaqAnswersRequest.Builder clearLatestMessage()
       Optional. The name of the latest conversation message to compile suggestion
       for. If empty, it will be the latest message of the conversation.
      
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversations/<Conversation ID>/messages/<Message ID>`.
       
      string latest_message = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setLatestMessageBytes

      public SuggestFaqAnswersRequest.Builder setLatestMessageBytes(com.google.protobuf.ByteString value)
       Optional. The name of the latest conversation message to compile suggestion
       for. If empty, it will be the latest message of the conversation.
      
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversations/<Conversation ID>/messages/<Message ID>`.
       
      string latest_message = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for latestMessage to set.
      Returns:
      This builder for chaining.
    • getContextSize

      public int getContextSize()
       Optional. Max number of messages prior to and including
       [latest_message] to use as context when compiling the
       suggestion. By default 20 and at most 50.
       
      int32 context_size = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getContextSize in interface SuggestFaqAnswersRequestOrBuilder
      Returns:
      The contextSize.
    • setContextSize

      public SuggestFaqAnswersRequest.Builder setContextSize(int value)
       Optional. Max number of messages prior to and including
       [latest_message] to use as context when compiling the
       suggestion. By default 20 and at most 50.
       
      int32 context_size = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The contextSize to set.
      Returns:
      This builder for chaining.
    • clearContextSize

      public SuggestFaqAnswersRequest.Builder clearContextSize()
       Optional. Max number of messages prior to and including
       [latest_message] to use as context when compiling the
       suggestion. By default 20 and at most 50.
       
      int32 context_size = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasAssistQueryParams

      public boolean hasAssistQueryParams()
       Parameters for a human assist query.
       
      .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4;
      Specified by:
      hasAssistQueryParams in interface SuggestFaqAnswersRequestOrBuilder
      Returns:
      Whether the assistQueryParams field is set.
    • getAssistQueryParams

      public AssistQueryParameters getAssistQueryParams()
       Parameters for a human assist query.
       
      .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4;
      Specified by:
      getAssistQueryParams in interface SuggestFaqAnswersRequestOrBuilder
      Returns:
      The assistQueryParams.
    • setAssistQueryParams

      public SuggestFaqAnswersRequest.Builder setAssistQueryParams(AssistQueryParameters value)
       Parameters for a human assist query.
       
      .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4;
    • setAssistQueryParams

      public SuggestFaqAnswersRequest.Builder setAssistQueryParams(AssistQueryParameters.Builder builderForValue)
       Parameters for a human assist query.
       
      .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4;
    • mergeAssistQueryParams

      public SuggestFaqAnswersRequest.Builder mergeAssistQueryParams(AssistQueryParameters value)
       Parameters for a human assist query.
       
      .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4;
    • clearAssistQueryParams

      public SuggestFaqAnswersRequest.Builder clearAssistQueryParams()
       Parameters for a human assist query.
       
      .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4;
    • getAssistQueryParamsBuilder

      public AssistQueryParameters.Builder getAssistQueryParamsBuilder()
       Parameters for a human assist query.
       
      .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4;
    • getAssistQueryParamsOrBuilder

      public AssistQueryParametersOrBuilder getAssistQueryParamsOrBuilder()
       Parameters for a human assist query.
       
      .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4;
      Specified by:
      getAssistQueryParamsOrBuilder in interface SuggestFaqAnswersRequestOrBuilder