Class SuggestArticlesRequest.Builder

  • All Implemented Interfaces:
    SuggestArticlesRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    SuggestArticlesRequest

    public static final class SuggestArticlesRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<SuggestArticlesRequest.Builder>
    implements SuggestArticlesRequestOrBuilder
     The request message for
     [Participants.SuggestArticles][google.cloud.dialogflow.v2.Participants.SuggestArticles].
     
    Protobuf type google.cloud.dialogflow.v2.SuggestArticlesRequest
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SuggestArticlesRequest.Builder>
      • clear

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

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

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

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

        public SuggestArticlesRequest.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<SuggestArticlesRequest.Builder>
      • clearField

        public SuggestArticlesRequest.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<SuggestArticlesRequest.Builder>
      • clearOneof

        public SuggestArticlesRequest.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SuggestArticlesRequest.Builder>
      • setRepeatedField

        public SuggestArticlesRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                               int index,
                                                               Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SuggestArticlesRequest.Builder>
      • addRepeatedField

        public SuggestArticlesRequest.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                               Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SuggestArticlesRequest.Builder>
      • isInitialized

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

        public SuggestArticlesRequest.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<SuggestArticlesRequest.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 SuggestArticlesRequestOrBuilder
        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 SuggestArticlesRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public SuggestArticlesRequest.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 SuggestArticlesRequest.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 SuggestArticlesRequest.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 SuggestArticlesRequestOrBuilder
        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 SuggestArticlesRequestOrBuilder
        Returns:
        The bytes for latestMessage.
      • setLatestMessage

        public SuggestArticlesRequest.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 SuggestArticlesRequest.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 SuggestArticlesRequest.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][google.cloud.dialogflow.v2.SuggestArticlesRequest.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 SuggestArticlesRequestOrBuilder
        Returns:
        The contextSize.
      • setContextSize

        public SuggestArticlesRequest.Builder setContextSize​(int value)
         Optional. Max number of messages prior to and including
         [latest_message][google.cloud.dialogflow.v2.SuggestArticlesRequest.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 SuggestArticlesRequest.Builder clearContextSize()
         Optional. Max number of messages prior to and including
         [latest_message][google.cloud.dialogflow.v2.SuggestArticlesRequest.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 SuggestArticlesRequestOrBuilder
        Returns:
        Whether the assistQueryParams field is set.
      • clearAssistQueryParams

        public SuggestArticlesRequest.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;
      • setUnknownFields

        public final SuggestArticlesRequest.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SuggestArticlesRequest.Builder>
      • mergeUnknownFields

        public final SuggestArticlesRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SuggestArticlesRequest.Builder>