Class SmartComposeSuggestionData.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<SmartComposeSuggestionData.Builder> implements SmartComposeSuggestionDataOrBuilder
Agent Assist Smart Compose suggestion data.
Protobuf typegoogle.cloud.contactcenterinsights.v1.SmartComposeSuggestionData
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SmartComposeSuggestionData.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SmartComposeSuggestionDatabuild()SmartComposeSuggestionDatabuildPartial()SmartComposeSuggestionData.Builderclear()SmartComposeSuggestionData.BuilderclearConfidenceScore()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).SmartComposeSuggestionData.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)SmartComposeSuggestionData.BuilderclearMetadata()SmartComposeSuggestionData.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)SmartComposeSuggestionData.BuilderclearQueryRecord()The name of the answer record.SmartComposeSuggestionData.BuilderclearSuggestion()The content of the suggestion.SmartComposeSuggestionData.Builderclone()booleancontainsMetadata(String key)Map that contains metadata about the Smart Compose suggestion and the document from which it originates.doublegetConfidenceScore()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).SmartComposeSuggestionDatagetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Map<String,String>getMetadata()Deprecated.intgetMetadataCount()Map that contains metadata about the Smart Compose suggestion and the document from which it originates.Map<String,String>getMetadataMap()Map that contains metadata about the Smart Compose suggestion and the document from which it originates.StringgetMetadataOrDefault(String key, String defaultValue)Map that contains metadata about the Smart Compose suggestion and the document from which it originates.StringgetMetadataOrThrow(String key)Map that contains metadata about the Smart Compose suggestion and the document from which it originates.Map<String,String>getMutableMetadata()Deprecated.StringgetQueryRecord()The name of the answer record.com.google.protobuf.ByteStringgetQueryRecordBytes()The name of the answer record.StringgetSuggestion()The content of the suggestion.com.google.protobuf.ByteStringgetSuggestionBytes()The content of the suggestion.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()SmartComposeSuggestionData.BuildermergeFrom(SmartComposeSuggestionData other)SmartComposeSuggestionData.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)SmartComposeSuggestionData.BuildermergeFrom(com.google.protobuf.Message other)SmartComposeSuggestionData.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)SmartComposeSuggestionData.BuilderputAllMetadata(Map<String,String> values)Map that contains metadata about the Smart Compose suggestion and the document from which it originates.SmartComposeSuggestionData.BuilderputMetadata(String key, String value)Map that contains metadata about the Smart Compose suggestion and the document from which it originates.SmartComposeSuggestionData.BuilderremoveMetadata(String key)Map that contains metadata about the Smart Compose suggestion and the document from which it originates.SmartComposeSuggestionData.BuildersetConfidenceScore(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).SmartComposeSuggestionData.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SmartComposeSuggestionData.BuildersetQueryRecord(String value)The name of the answer record.SmartComposeSuggestionData.BuildersetQueryRecordBytes(com.google.protobuf.ByteString value)The name of the answer record.SmartComposeSuggestionData.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)SmartComposeSuggestionData.BuildersetSuggestion(String value)The content of the suggestion.SmartComposeSuggestionData.BuildersetSuggestionBytes(com.google.protobuf.ByteString value)The content of the suggestion.SmartComposeSuggestionData.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SmartComposeSuggestionData.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SmartComposeSuggestionData.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<SmartComposeSuggestionData.Builder>
-
clear
public SmartComposeSuggestionData.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<SmartComposeSuggestionData.Builder>
-
getDefaultInstanceForType
public SmartComposeSuggestionData getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public SmartComposeSuggestionData build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SmartComposeSuggestionData buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SmartComposeSuggestionData.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<SmartComposeSuggestionData.Builder>
-
setField
public SmartComposeSuggestionData.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SmartComposeSuggestionData.Builder>
-
clearField
public SmartComposeSuggestionData.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SmartComposeSuggestionData.Builder>
-
clearOneof
public SmartComposeSuggestionData.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<SmartComposeSuggestionData.Builder>
-
setRepeatedField
public SmartComposeSuggestionData.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SmartComposeSuggestionData.Builder>
-
addRepeatedField
public SmartComposeSuggestionData.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SmartComposeSuggestionData.Builder>
-
mergeFrom
public SmartComposeSuggestionData.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SmartComposeSuggestionData.Builder>
-
mergeFrom
public SmartComposeSuggestionData.Builder mergeFrom(SmartComposeSuggestionData other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
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
public String 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
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:
getConfidenceScorein interfaceSmartComposeSuggestionDataOrBuilder- 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: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
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:
containsMetadatain interfaceSmartComposeSuggestionDataOrBuilder
-
getMetadata
@Deprecated public Map<String,String> getMetadata()
Deprecated.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceSmartComposeSuggestionDataOrBuilder
-
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:
getMetadataMapin interfaceSmartComposeSuggestionDataOrBuilder
-
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:
getMetadataOrDefaultin interfaceSmartComposeSuggestionDataOrBuilder
-
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:
getMetadataOrThrowin interfaceSmartComposeSuggestionDataOrBuilder
-
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:
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
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SmartComposeSuggestionData.Builder>
-
mergeUnknownFields
public final SmartComposeSuggestionData.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SmartComposeSuggestionData.Builder>
-
-