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

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

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

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

        public CompileSuggestionResponse.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<CompileSuggestionResponse.Builder>
      • isInitialized

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

        public CompileSuggestionResponse.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<CompileSuggestionResponse.Builder>
        Throws:
        IOException
      • hasSuggestion

        public boolean hasSuggestion()
         The compiled suggestion.
         
        .google.cloud.dialogflow.v2beta1.Suggestion suggestion = 1;
        Specified by:
        hasSuggestion in interface CompileSuggestionResponseOrBuilder
        Returns:
        Whether the suggestion field is set.
      • getSuggestionBuilder

        public Suggestion.Builder getSuggestionBuilder()
         The compiled suggestion.
         
        .google.cloud.dialogflow.v2beta1.Suggestion suggestion = 1;
      • getLatestMessage

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

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

        public CompileSuggestionResponse.Builder setLatestMessage​(String value)
         The name of the latest conversation message used to compile
         suggestion for.
        
         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 CompileSuggestionResponse.Builder clearLatestMessage()
         The name of the latest conversation message used to compile
         suggestion for.
        
         Format: `projects/<Project ID>/locations/<Location
         ID>/conversations/<Conversation ID>/messages/<Message ID>`.
         
        string latest_message = 2;
        Returns:
        This builder for chaining.
      • setLatestMessageBytes

        public CompileSuggestionResponse.Builder setLatestMessageBytes​(com.google.protobuf.ByteString value)
         The name of the latest conversation message used to compile
         suggestion for.
        
         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.CompileSuggestionResponse.latest_message]
         to compile the suggestion. It may be smaller than the
         [CompileSuggestionRequest.context_size][google.cloud.dialogflow.v2beta1.CompileSuggestionRequest.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 CompileSuggestionResponseOrBuilder
        Returns:
        The contextSize.
      • setContextSize

        public CompileSuggestionResponse.Builder setContextSize​(int value)
         Number of messages prior to and including
         [latest_message][google.cloud.dialogflow.v2beta1.CompileSuggestionResponse.latest_message]
         to compile the suggestion. It may be smaller than the
         [CompileSuggestionRequest.context_size][google.cloud.dialogflow.v2beta1.CompileSuggestionRequest.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 CompileSuggestionResponse.Builder clearContextSize()
         Number of messages prior to and including
         [latest_message][google.cloud.dialogflow.v2beta1.CompileSuggestionResponse.latest_message]
         to compile the suggestion. It may be smaller than the
         [CompileSuggestionRequest.context_size][google.cloud.dialogflow.v2beta1.CompileSuggestionRequest.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.
      • setUnknownFields

        public final CompileSuggestionResponse.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<CompileSuggestionResponse.Builder>
      • mergeUnknownFields

        public final CompileSuggestionResponse.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<CompileSuggestionResponse.Builder>