Class SmartReplyData.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SmartReplyData.Builder>
com.google.cloud.contactcenterinsights.v1.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.GeneratedMessage.Builder<SmartReplyData.Builder>
implements SmartReplyDataOrBuilder
Agent Assist Smart Reply data.Protobuf type
google.cloud.contactcenterinsights.v1.SmartReplyData-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()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).The name of the answer record.The content of the reply.booleancontainsMetadata(String key) Map that contains metadata about the Smart Reply and the document from which it originates.doubleThe 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).static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.intMap that contains metadata about the Smart Reply and the document from which it originates.Map that contains metadata about the Smart Reply and the document from which it originates.getMetadataOrDefault(String key, String defaultValue) Map that contains metadata about the Smart Reply and the document from which it originates.getMetadataOrThrow(String key) Map that contains metadata about the Smart Reply and the document from which it originates.Deprecated.The name of the answer record.com.google.protobuf.ByteStringThe name of the answer record.getReply()The content of the reply.com.google.protobuf.ByteStringThe content of the reply.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(SmartReplyData other) mergeFrom(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 Reply and the document from which it originates.putMetadata(String key, String value) Map that contains metadata about the Smart Reply and the document from which it originates.removeMetadata(String key) Map that contains metadata about the Smart Reply and the document from which it originates.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).setQueryRecord(String value) The name of the answer record.setQueryRecordBytes(com.google.protobuf.ByteString value) The name of the answer record.The content of the reply.setReplyBytes(com.google.protobuf.ByteString value) The content of the reply.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<SmartReplyData.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<SmartReplyData.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SmartReplyData.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<SmartReplyData.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<SmartReplyData.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<SmartReplyData.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SmartReplyData.Builder>
-
mergeFrom
public SmartReplyData.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<SmartReplyData.Builder>- Throws:
IOException
-
getReply
The content of the reply.
string reply = 1;- Specified by:
getReplyin interfaceSmartReplyDataOrBuilder- Returns:
- The reply.
-
getReplyBytes
public com.google.protobuf.ByteString getReplyBytes()The content of the reply.
string reply = 1;- Specified by:
getReplyBytesin interfaceSmartReplyDataOrBuilder- Returns:
- The bytes for reply.
-
setReply
The content of the reply.
string reply = 1;- Parameters:
value- The reply to set.- Returns:
- This builder for chaining.
-
clearReply
The content of the reply.
string reply = 1;- Returns:
- This builder for chaining.
-
setReplyBytes
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:
getConfidenceScorein interfaceSmartReplyDataOrBuilder- Returns:
- The confidenceScore.
-
setConfidenceScore
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
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.
-
getMetadataCount
public int getMetadataCount()Description copied from interface:SmartReplyDataOrBuilderMap that contains metadata about the Smart Reply and the document from which it originates.
map<string, string> metadata = 3;- Specified by:
getMetadataCountin interfaceSmartReplyDataOrBuilder
-
containsMetadata
Map that contains metadata about the Smart Reply and the document from which it originates.
map<string, string> metadata = 3;- Specified by:
containsMetadatain interfaceSmartReplyDataOrBuilder
-
getMetadata
Deprecated.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceSmartReplyDataOrBuilder
-
getMetadataMap
Map that contains metadata about the Smart Reply and the document from which it originates.
map<string, string> metadata = 3;- Specified by:
getMetadataMapin interfaceSmartReplyDataOrBuilder
-
getMetadataOrDefault
Map that contains metadata about the Smart Reply and the document from which it originates.
map<string, string> metadata = 3;- Specified by:
getMetadataOrDefaultin interfaceSmartReplyDataOrBuilder
-
getMetadataOrThrow
Map that contains metadata about the Smart Reply and the document from which it originates.
map<string, string> metadata = 3;- Specified by:
getMetadataOrThrowin interfaceSmartReplyDataOrBuilder
-
clearMetadata
-
removeMetadata
Map that contains metadata about the Smart Reply 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 Reply and the document from which it originates.
map<string, string> metadata = 3; -
putAllMetadata
Map that contains metadata about the Smart Reply 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 interfaceSmartReplyDataOrBuilder- 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 interfaceSmartReplyDataOrBuilder- 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.
-