Class SmartComposeSuggestionData.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<SmartComposeSuggestionData.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<SmartComposeSuggestionData.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SmartComposeSuggestionData.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<SmartComposeSuggestionData.Builder>
      • getDefaultInstanceForType

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

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

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

        public SmartComposeSuggestionData.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<SmartComposeSuggestionData.Builder>
        Throws:
        IOException
      • setSuggestion

        public SmartComposeSuggestionData.Builder setSuggestion​(String value)
         The content of the suggestion.
         
        string suggestion = 1;
        Parameters:
        value - The suggestion to set.
        Returns:
        This builder for chaining.
      • setSuggestionBytes

        public SmartComposeSuggestionData.Builder setSuggestionBytes​(com.google.protobuf.ByteString value)
         The content of the suggestion.
         
        string suggestion = 1;
        Parameters:
        value - The bytes for suggestion to set.
        Returns:
        This builder for chaining.
      • getConfidenceScore

        public double getConfidenceScore()
         The system's confidence score that this suggestion is a good match for this
         conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely
         certain).
         
        double confidence_score = 2;
        Specified by:
        getConfidenceScore in interface SmartComposeSuggestionDataOrBuilder
        Returns:
        The confidenceScore.
      • setConfidenceScore

        public SmartComposeSuggestionData.Builder setConfidenceScore​(double value)
         The system's confidence score that this suggestion is a good match for this
         conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely
         certain).
         
        double confidence_score = 2;
        Parameters:
        value - The confidenceScore to set.
        Returns:
        This builder for chaining.
      • clearConfidenceScore

        public SmartComposeSuggestionData.Builder clearConfidenceScore()
         The system's confidence score that this suggestion is a good match for this
         conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely
         certain).
         
        double confidence_score = 2;
        Returns:
        This builder for chaining.
      • containsMetadata

        public boolean containsMetadata​(String key)
         Map that contains metadata about the Smart Compose suggestion and the
         document from which it originates.
         
        map<string, string> metadata = 3;
        Specified by:
        containsMetadata in interface SmartComposeSuggestionDataOrBuilder
      • removeMetadata

        public SmartComposeSuggestionData.Builder removeMetadata​(String key)
         Map that contains metadata about the Smart Compose suggestion and the
         document from which it originates.
         
        map<string, string> metadata = 3;
      • getMutableMetadata

        @Deprecated
        public Map<String,​String> getMutableMetadata()
        Deprecated.
        Use alternate mutation accessors instead.
      • putMetadata

        public SmartComposeSuggestionData.Builder putMetadata​(String key,
                                                              String value)
         Map that contains metadata about the Smart Compose suggestion and the
         document from which it originates.
         
        map<string, string> metadata = 3;
      • putAllMetadata

        public SmartComposeSuggestionData.Builder putAllMetadata​(Map<String,​String> values)
         Map that contains metadata about the Smart Compose suggestion and the
         document from which it originates.
         
        map<string, string> metadata = 3;
      • getQueryRecord

        public String getQueryRecord()
         The name of the answer record.
         Format:
         projects/{project}/locations/{location}/answerRecords/{answer_record}
         
        string query_record = 4;
        Specified by:
        getQueryRecord in interface SmartComposeSuggestionDataOrBuilder
        Returns:
        The queryRecord.
      • getQueryRecordBytes

        public com.google.protobuf.ByteString getQueryRecordBytes()
         The name of the answer record.
         Format:
         projects/{project}/locations/{location}/answerRecords/{answer_record}
         
        string query_record = 4;
        Specified by:
        getQueryRecordBytes in interface SmartComposeSuggestionDataOrBuilder
        Returns:
        The bytes for queryRecord.
      • setQueryRecord

        public SmartComposeSuggestionData.Builder setQueryRecord​(String value)
         The name of the answer record.
         Format:
         projects/{project}/locations/{location}/answerRecords/{answer_record}
         
        string query_record = 4;
        Parameters:
        value - The queryRecord to set.
        Returns:
        This builder for chaining.
      • clearQueryRecord

        public SmartComposeSuggestionData.Builder clearQueryRecord()
         The name of the answer record.
         Format:
         projects/{project}/locations/{location}/answerRecords/{answer_record}
         
        string query_record = 4;
        Returns:
        This builder for chaining.
      • setQueryRecordBytes

        public SmartComposeSuggestionData.Builder setQueryRecordBytes​(com.google.protobuf.ByteString value)
         The name of the answer record.
         Format:
         projects/{project}/locations/{location}/answerRecords/{answer_record}
         
        string query_record = 4;
        Parameters:
        value - The bytes for queryRecord to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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