Class GenerateStatelessSummaryResponse.Builder

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

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

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

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

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

        public boolean hasSummary()
         Generated summary.
         
        .google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryResponse.Summary summary = 1;
        Specified by:
        hasSummary in interface GenerateStatelessSummaryResponseOrBuilder
        Returns:
        Whether the summary field is set.
      • getLatestMessage

        public String getLatestMessage()
         The name of the latest conversation message used as context for
         compiling suggestion. The format is specific to the user and the names of
         the messages provided.
         
        string latest_message = 2 [(.google.api.resource_reference) = { ... }
        Specified by:
        getLatestMessage in interface GenerateStatelessSummaryResponseOrBuilder
        Returns:
        The latestMessage.
      • getLatestMessageBytes

        public com.google.protobuf.ByteString getLatestMessageBytes()
         The name of the latest conversation message used as context for
         compiling suggestion. The format is specific to the user and the names of
         the messages provided.
         
        string latest_message = 2 [(.google.api.resource_reference) = { ... }
        Specified by:
        getLatestMessageBytes in interface GenerateStatelessSummaryResponseOrBuilder
        Returns:
        The bytes for latestMessage.
      • setLatestMessage

        public GenerateStatelessSummaryResponse.Builder setLatestMessage​(String value)
         The name of the latest conversation message used as context for
         compiling suggestion. The format is specific to the user and the names of
         the messages provided.
         
        string latest_message = 2 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The latestMessage to set.
        Returns:
        This builder for chaining.
      • clearLatestMessage

        public GenerateStatelessSummaryResponse.Builder clearLatestMessage()
         The name of the latest conversation message used as context for
         compiling suggestion. The format is specific to the user and the names of
         the messages provided.
         
        string latest_message = 2 [(.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setLatestMessageBytes

        public GenerateStatelessSummaryResponse.Builder setLatestMessageBytes​(com.google.protobuf.ByteString value)
         The name of the latest conversation message used as context for
         compiling suggestion. The format is specific to the user and the names of
         the messages provided.
         
        string latest_message = 2 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for latestMessage to set.
        Returns:
        This builder for chaining.
      • getContextSize

        public int getContextSize()
         Number of messages prior to and including
         [last_conversation_message][] used to compile the suggestion. It may be
         smaller than the [GenerateStatelessSummaryRequest.context_size][] field in
         the request if there weren't that many messages in the conversation.
         
        int32 context_size = 3;
        Specified by:
        getContextSize in interface GenerateStatelessSummaryResponseOrBuilder
        Returns:
        The contextSize.
      • setContextSize

        public GenerateStatelessSummaryResponse.Builder setContextSize​(int value)
         Number of messages prior to and including
         [last_conversation_message][] used to compile the suggestion. It may be
         smaller than the [GenerateStatelessSummaryRequest.context_size][] field in
         the request if there weren't that many messages in the conversation.
         
        int32 context_size = 3;
        Parameters:
        value - The contextSize to set.
        Returns:
        This builder for chaining.
      • clearContextSize

        public GenerateStatelessSummaryResponse.Builder clearContextSize()
         Number of messages prior to and including
         [last_conversation_message][] used to compile the suggestion. It may be
         smaller than the [GenerateStatelessSummaryRequest.context_size][] field in
         the request if there weren't that many messages in the conversation.
         
        int32 context_size = 3;
        Returns:
        This builder for chaining.