Class SuggestKnowledgeAssistRequest.Builder

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

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

      public SuggestKnowledgeAssistRequest 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 SuggestKnowledgeAssistRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

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

      public String getParent()
       Required. The name of the participant to fetch suggestions 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 SuggestKnowledgeAssistRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The name of the participant to fetch suggestions 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 SuggestKnowledgeAssistRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

       Required. The name of the participant to fetch suggestions 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

       Required. The name of the participant to fetch suggestions 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 SuggestKnowledgeAssistRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The name of the participant to fetch suggestions 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
       suggestions 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 SuggestKnowledgeAssistRequestOrBuilder
      Returns:
      The latestMessage.
    • getLatestMessageBytes

      public com.google.protobuf.ByteString getLatestMessageBytes()
       Optional. The name of the latest conversation message to compile
       suggestions 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 SuggestKnowledgeAssistRequestOrBuilder
      Returns:
      The bytes for latestMessage.
    • setLatestMessage

      public SuggestKnowledgeAssistRequest.Builder setLatestMessage(String value)
       Optional. The name of the latest conversation message to compile
       suggestions 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 SuggestKnowledgeAssistRequest.Builder clearLatestMessage()
       Optional. The name of the latest conversation message to compile
       suggestions 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 SuggestKnowledgeAssistRequest.Builder setLatestMessageBytes(com.google.protobuf.ByteString value)
       Optional. The name of the latest conversation message to compile
       suggestions 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][google.cloud.dialogflow.v2.SuggestKnowledgeAssistRequest.latest_message]
       to use as context when compiling the suggestion. The context size is by
       default 100 and at most 100.
       
      int32 context_size = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getContextSize in interface SuggestKnowledgeAssistRequestOrBuilder
      Returns:
      The contextSize.
    • setContextSize

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

      public SuggestKnowledgeAssistRequest.Builder clearContextSize()
       Optional. Max number of messages prior to and including
       [latest_message][google.cloud.dialogflow.v2.SuggestKnowledgeAssistRequest.latest_message]
       to use as context when compiling the suggestion. The context size is by
       default 100 and at most 100.
       
      int32 context_size = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getPreviousSuggestedQuery

      public String getPreviousSuggestedQuery()
       Optional. The previously suggested query for the given conversation. This
       helps identify whether the next suggestion we generate is reasonably
       different from the previous one. This is useful to avoid similar
       suggestions within the conversation.
       
      string previous_suggested_query = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPreviousSuggestedQuery in interface SuggestKnowledgeAssistRequestOrBuilder
      Returns:
      The previousSuggestedQuery.
    • getPreviousSuggestedQueryBytes

      public com.google.protobuf.ByteString getPreviousSuggestedQueryBytes()
       Optional. The previously suggested query for the given conversation. This
       helps identify whether the next suggestion we generate is reasonably
       different from the previous one. This is useful to avoid similar
       suggestions within the conversation.
       
      string previous_suggested_query = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPreviousSuggestedQueryBytes in interface SuggestKnowledgeAssistRequestOrBuilder
      Returns:
      The bytes for previousSuggestedQuery.
    • setPreviousSuggestedQuery

      public SuggestKnowledgeAssistRequest.Builder setPreviousSuggestedQuery(String value)
       Optional. The previously suggested query for the given conversation. This
       helps identify whether the next suggestion we generate is reasonably
       different from the previous one. This is useful to avoid similar
       suggestions within the conversation.
       
      string previous_suggested_query = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The previousSuggestedQuery to set.
      Returns:
      This builder for chaining.
    • clearPreviousSuggestedQuery

      public SuggestKnowledgeAssistRequest.Builder clearPreviousSuggestedQuery()
       Optional. The previously suggested query for the given conversation. This
       helps identify whether the next suggestion we generate is reasonably
       different from the previous one. This is useful to avoid similar
       suggestions within the conversation.
       
      string previous_suggested_query = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setPreviousSuggestedQueryBytes

      public SuggestKnowledgeAssistRequest.Builder setPreviousSuggestedQueryBytes(com.google.protobuf.ByteString value)
       Optional. The previously suggested query for the given conversation. This
       helps identify whether the next suggestion we generate is reasonably
       different from the previous one. This is useful to avoid similar
       suggestions within the conversation.
       
      string previous_suggested_query = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for previousSuggestedQuery to set.
      Returns:
      This builder for chaining.