Class SmartReplyData.Builder

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

    public static final class SmartReplyData.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<SmartReplyData.Builder>
    implements SmartReplyDataOrBuilder
     Agent Assist Smart Reply data.
     
    Protobuf type google.cloud.contactcenterinsights.v1.SmartReplyData
    • 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<SmartReplyData.Builder>
      • internalGetMutableMapField

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

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

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

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

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

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

        public SmartReplyData.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<SmartReplyData.Builder>
      • setField

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

        public SmartReplyData.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<SmartReplyData.Builder>
      • clearOneof

        public SmartReplyData.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<SmartReplyData.Builder>
      • setRepeatedField

        public SmartReplyData.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<SmartReplyData.Builder>
      • addRepeatedField

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

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

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

        public SmartReplyData.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<SmartReplyData.Builder>
        Throws:
        IOException
      • getReplyBytes

        public com.google.protobuf.ByteString getReplyBytes()
         The content of the reply.
         
        string reply = 1;
        Specified by:
        getReplyBytes in interface SmartReplyDataOrBuilder
        Returns:
        The bytes for reply.
      • setReply

        public SmartReplyData.Builder setReply​(String value)
         The content of the reply.
         
        string reply = 1;
        Parameters:
        value - The reply to set.
        Returns:
        This builder for chaining.
      • clearReply

        public SmartReplyData.Builder clearReply()
         The content of the reply.
         
        string reply = 1;
        Returns:
        This builder for chaining.
      • setReplyBytes

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

        public double getConfidenceScore()
         The system's confidence score that this reply 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 SmartReplyDataOrBuilder
        Returns:
        The confidenceScore.
      • setConfidenceScore

        public SmartReplyData.Builder setConfidenceScore​(double value)
         The system's confidence score that this reply 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 SmartReplyData.Builder clearConfidenceScore()
         The system's confidence score that this reply 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 Reply and the document from
         which it originates.
         
        map<string, string> metadata = 3;
        Specified by:
        containsMetadata in interface SmartReplyDataOrBuilder
      • getMetadataOrThrow

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

        public SmartReplyData.Builder removeMetadata​(String key)
         Map that contains metadata about the Smart Reply 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 SmartReplyData.Builder putMetadata​(String key,
                                                  String value)
         Map that contains metadata about the Smart Reply and the document from
         which it originates.
         
        map<string, string> metadata = 3;
      • putAllMetadata

        public SmartReplyData.Builder putAllMetadata​(Map<String,​String> values)
         Map that contains metadata about the Smart Reply 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 SmartReplyDataOrBuilder
        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 SmartReplyDataOrBuilder
        Returns:
        The bytes for queryRecord.
      • setQueryRecord

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

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