Class SmartReplyData.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<SmartReplyData.Builder> implements SmartReplyDataOrBuilder
Agent Assist Smart Reply data.
Protobuf typegoogle.cloud.contactcenterinsights.v1.SmartReplyData
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SmartReplyData.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SmartReplyDatabuild()SmartReplyDatabuildPartial()SmartReplyData.Builderclear()SmartReplyData.BuilderclearConfidenceScore()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).SmartReplyData.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)SmartReplyData.BuilderclearMetadata()SmartReplyData.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)SmartReplyData.BuilderclearQueryRecord()The name of the answer record.SmartReplyData.BuilderclearReply()The content of the reply.SmartReplyData.Builderclone()booleancontainsMetadata(String key)Map that contains metadata about the Smart Reply and the document from which it originates.doublegetConfidenceScore()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).SmartReplyDatagetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Map<String,String>getMetadata()Deprecated.intgetMetadataCount()Map that contains metadata about the Smart Reply and the document from which it originates.Map<String,String>getMetadataMap()Map that contains metadata about the Smart Reply and the document from which it originates.StringgetMetadataOrDefault(String key, String defaultValue)Map that contains metadata about the Smart Reply and the document from which it originates.StringgetMetadataOrThrow(String key)Map that contains metadata about the Smart Reply 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.StringgetReply()The content of the reply.com.google.protobuf.ByteStringgetReplyBytes()The content of the reply.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()SmartReplyData.BuildermergeFrom(SmartReplyData other)SmartReplyData.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)SmartReplyData.BuildermergeFrom(com.google.protobuf.Message other)SmartReplyData.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)SmartReplyData.BuilderputAllMetadata(Map<String,String> values)Map that contains metadata about the Smart Reply and the document from which it originates.SmartReplyData.BuilderputMetadata(String key, String value)Map that contains metadata about the Smart Reply and the document from which it originates.SmartReplyData.BuilderremoveMetadata(String key)Map that contains metadata about the Smart Reply and the document from which it originates.SmartReplyData.BuildersetConfidenceScore(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).SmartReplyData.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SmartReplyData.BuildersetQueryRecord(String value)The name of the answer record.SmartReplyData.BuildersetQueryRecordBytes(com.google.protobuf.ByteString value)The name of the answer record.SmartReplyData.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)SmartReplyData.BuildersetReply(String value)The content of the reply.SmartReplyData.BuildersetReplyBytes(com.google.protobuf.ByteString value)The content of the reply.SmartReplyData.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<SmartReplyData.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SmartReplyData.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<SmartReplyData.Builder>
-
clear
public SmartReplyData.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<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.GeneratedMessageV3.Builder<SmartReplyData.Builder>
-
getDefaultInstanceForType
public SmartReplyData getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public SmartReplyData build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SmartReplyData buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SmartReplyData.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<SmartReplyData.Builder>
-
setField
public SmartReplyData.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<SmartReplyData.Builder>
-
clearField
public SmartReplyData.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SmartReplyData.Builder>
-
clearOneof
public SmartReplyData.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<SmartReplyData.Builder>
-
setRepeatedField
public SmartReplyData.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<SmartReplyData.Builder>
-
addRepeatedField
public SmartReplyData.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<SmartReplyData.Builder>
-
mergeFrom
public SmartReplyData.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SmartReplyData.Builder>
-
mergeFrom
public SmartReplyData.Builder mergeFrom(SmartReplyData other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
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
public String 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
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:
getConfidenceScorein interfaceSmartReplyDataOrBuilder- 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.
-
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
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:
containsMetadatain interfaceSmartReplyDataOrBuilder
-
getMetadata
@Deprecated public Map<String,String> getMetadata()
Deprecated.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceSmartReplyDataOrBuilder
-
getMetadataMap
public Map<String,String> 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
public String getMetadataOrDefault(String key, String defaultValue)
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
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:
getMetadataOrThrowin interfaceSmartReplyDataOrBuilder
-
clearMetadata
public SmartReplyData.Builder clearMetadata()
-
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:
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
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SmartReplyData.Builder>
-
mergeUnknownFields
public final SmartReplyData.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SmartReplyData.Builder>
-
-