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 Summary
Modifier and TypeMethodDescriptionbuild()clear()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).The name of the answer record.The content of the suggestion.booleancontainsMetadata(String key) Map that contains metadata about the Smart Compose suggestion and the document from which it originates.doubleThe 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).static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.intMap that contains metadata about the Smart Compose suggestion and the document from which it originates.Map that contains metadata about the Smart Compose suggestion and the document from which it originates.getMetadataOrDefault(String key, String defaultValue) Map that contains metadata about the Smart Compose suggestion and the document from which it originates.getMetadataOrThrow(String key) Map that contains metadata about the Smart Compose suggestion and the document from which it originates.Deprecated.The name of the answer record.com.google.protobuf.ByteStringThe name of the answer record.The content of the suggestion.com.google.protobuf.ByteStringThe content of the suggestion.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllMetadata(Map<String, String> values) Map that contains metadata about the Smart Compose suggestion and the document from which it originates.putMetadata(String key, String value) Map that contains metadata about the Smart Compose suggestion and the document from which it originates.removeMetadata(String key) Map that contains metadata about the Smart Compose suggestion and the document from which it originates.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).setQueryRecord(String value) The name of the answer record.setQueryRecordBytes(com.google.protobuf.ByteString value) The name of the answer record.setSuggestion(String value) The content of the suggestion.setSuggestionBytes(com.google.protobuf.ByteString value) The content of the suggestion.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<SmartComposeSuggestionData.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<SmartComposeSuggestionData.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SmartComposeSuggestionData.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SmartComposeSuggestionData.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SmartComposeSuggestionData.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SmartComposeSuggestionData.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SmartComposeSuggestionData.Builder>- Throws:
IOException
-
getSuggestion
The content of the suggestion.
string suggestion = 1;- Specified by:
getSuggestionin interfaceSmartComposeSuggestionDataOrBuilder- Returns:
- The suggestion.
-
getSuggestionBytes
public com.google.protobuf.ByteString getSuggestionBytes()The content of the suggestion.
string suggestion = 1;- Specified by:
getSuggestionBytesin interfaceSmartComposeSuggestionDataOrBuilder- Returns:
- The bytes for suggestion.
-
setSuggestion
The content of the suggestion.
string suggestion = 1;- Parameters:
value- The suggestion to set.- Returns:
- This builder for chaining.
-
clearSuggestion
The content of the suggestion.
string suggestion = 1;- Returns:
- This builder for chaining.
-
setSuggestionBytes
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:
getConfidenceScorein interfaceSmartComposeSuggestionDataOrBuilder- Returns:
- The confidenceScore.
-
setConfidenceScore
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
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:SmartComposeSuggestionDataOrBuilderMap that contains metadata about the Smart Compose suggestion and the document from which it originates.
map<string, string> metadata = 3;- Specified by:
getMetadataCountin interfaceSmartComposeSuggestionDataOrBuilder
-
containsMetadata
Map that contains metadata about the Smart Compose suggestion and the document from which it originates.
map<string, string> metadata = 3;- Specified by:
containsMetadatain interfaceSmartComposeSuggestionDataOrBuilder
-
getMetadata
Deprecated.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceSmartComposeSuggestionDataOrBuilder
-
getMetadataMap
Map that contains metadata about the Smart Compose suggestion and the document from which it originates.
map<string, string> metadata = 3;- Specified by:
getMetadataMapin interfaceSmartComposeSuggestionDataOrBuilder
-
getMetadataOrDefault
Map that contains metadata about the Smart Compose suggestion and the document from which it originates.
map<string, string> metadata = 3;- Specified by:
getMetadataOrDefaultin interfaceSmartComposeSuggestionDataOrBuilder
-
getMetadataOrThrow
Map that contains metadata about the Smart Compose suggestion and the document from which it originates.
map<string, string> metadata = 3;- Specified by:
getMetadataOrThrowin interfaceSmartComposeSuggestionDataOrBuilder
-
clearMetadata
-
removeMetadata
Map that contains metadata about the Smart Compose suggestion and the document from which it originates.
map<string, string> metadata = 3; -
getMutableMetadata
Deprecated.Use alternate mutation accessors instead. -
putMetadata
Map that contains metadata about the Smart Compose suggestion and the document from which it originates.
map<string, string> metadata = 3; -
putAllMetadata
Map that contains metadata about the Smart Compose suggestion and the document from which it originates.
map<string, string> metadata = 3; -
getQueryRecord
The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record}string query_record = 4;- Specified by:
getQueryRecordin interfaceSmartComposeSuggestionDataOrBuilder- 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:
getQueryRecordBytesin interfaceSmartComposeSuggestionDataOrBuilder- Returns:
- The bytes for queryRecord.
-
setQueryRecord
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
The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record}string query_record = 4;- Returns:
- This builder for chaining.
-
setQueryRecordBytes
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.
-