Class SmartComposeSuggestionData.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SmartComposeSuggestionData.Builder>
com.google.cloud.contactcenterinsights.v1.SmartComposeSuggestionData.Builder
All Implemented Interfaces:
SmartComposeSuggestionDataOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SmartComposeSuggestionData

public static final class SmartComposeSuggestionData.Builder extends com.google.protobuf.GeneratedMessage.Builder<SmartComposeSuggestionData.Builder> implements SmartComposeSuggestionDataOrBuilder
 Agent Assist Smart Compose suggestion data.
 
Protobuf type google.cloud.contactcenterinsights.v1.SmartComposeSuggestionData
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<SmartComposeSuggestionData.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<SmartComposeSuggestionData.Builder>
    • internalGetFieldAccessorTable

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

      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
    • mergeFrom

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

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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
    • getSuggestion

      public String getSuggestion()
       The content of the suggestion.
       
      string suggestion = 1;
      Specified by:
      getSuggestion in interface SmartComposeSuggestionDataOrBuilder
      Returns:
      The suggestion.
    • getSuggestionBytes

      public com.google.protobuf.ByteString getSuggestionBytes()
       The content of the suggestion.
       
      string suggestion = 1;
      Specified by:
      getSuggestionBytes in interface SmartComposeSuggestionDataOrBuilder
      Returns:
      The bytes for suggestion.
    • 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.
    • clearSuggestion

      public SmartComposeSuggestionData.Builder clearSuggestion()
       The content of the suggestion.
       
      string suggestion = 1;
      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.
    • getMetadataCount

      public int getMetadataCount()
      Description copied from interface: SmartComposeSuggestionDataOrBuilder
       Map that contains metadata about the Smart Compose suggestion and the
       document from which it originates.
       
      map<string, string> metadata = 3;
      Specified by:
      getMetadataCount in interface SmartComposeSuggestionDataOrBuilder
    • 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
    • getMetadata

      @Deprecated public Map<String,String> getMetadata()
      Deprecated.
      Use getMetadataMap() instead.
      Specified by:
      getMetadata in interface SmartComposeSuggestionDataOrBuilder
    • getMetadataMap

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

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

      public String getMetadataOrThrow(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:
      getMetadataOrThrow in interface SmartComposeSuggestionDataOrBuilder
    • clearMetadata

      public SmartComposeSuggestionData.Builder clearMetadata()
    • 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.