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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SmartReplyData
build()
SmartReplyData
buildPartial()
SmartReplyData.Builder
clear()
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).SmartReplyData.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
SmartReplyData.Builder
clearMetadata()
SmartReplyData.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
SmartReplyData.Builder
clearQueryRecord()
The name of the answer record.SmartReplyData.Builder
clearReply()
The content of the reply.SmartReplyData.Builder
clone()
boolean
containsMetadata(String key)
Map that contains metadata about the Smart Reply and the document from which it originates.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).SmartReplyData
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Map<String,String>
getMetadata()
Deprecated.int
getMetadataCount()
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.String
getMetadataOrDefault(String key, String defaultValue)
Map that contains metadata about the Smart Reply and the document from which it originates.String
getMetadataOrThrow(String key)
Map that contains metadata about the Smart Reply and the document from which it originates.Map<String,String>
getMutableMetadata()
Deprecated.String
getQueryRecord()
The name of the answer record.com.google.protobuf.ByteString
getQueryRecordBytes()
The name of the answer record.String
getReply()
The content of the reply.com.google.protobuf.ByteString
getReplyBytes()
The content of the reply.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
SmartReplyData.Builder
mergeFrom(SmartReplyData other)
SmartReplyData.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SmartReplyData.Builder
mergeFrom(com.google.protobuf.Message other)
SmartReplyData.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
SmartReplyData.Builder
putAllMetadata(Map<String,String> values)
Map that contains metadata about the Smart Reply and the document from which it originates.SmartReplyData.Builder
putMetadata(String key, String value)
Map that contains metadata about the Smart Reply and the document from which it originates.SmartReplyData.Builder
removeMetadata(String key)
Map that contains metadata about the Smart Reply and the document from which it originates.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).SmartReplyData.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SmartReplyData.Builder
setQueryRecord(String value)
The name of the answer record.SmartReplyData.Builder
setQueryRecordBytes(com.google.protobuf.ByteString value)
The name of the answer record.SmartReplyData.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
SmartReplyData.Builder
setReply(String value)
The content of the reply.SmartReplyData.Builder
setReplyBytes(com.google.protobuf.ByteString value)
The content of the reply.SmartReplyData.Builder
setUnknownFields(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:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SmartReplyData.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SmartReplyData.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<SmartReplyData.Builder>
-
clear
public SmartReplyData.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<SmartReplyData.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<SmartReplyData.Builder>
-
getDefaultInstanceForType
public SmartReplyData getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public SmartReplyData build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SmartReplyData buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SmartReplyData.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<SmartReplyData.Builder>
-
setField
public SmartReplyData.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SmartReplyData.Builder>
-
clearField
public SmartReplyData.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SmartReplyData.Builder>
-
clearOneof
public SmartReplyData.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<SmartReplyData.Builder>
-
setRepeatedField
public SmartReplyData.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SmartReplyData.Builder>
-
addRepeatedField
public SmartReplyData.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SmartReplyData.Builder>
-
mergeFrom
public SmartReplyData.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SmartReplyData.Builder>
-
mergeFrom
public SmartReplyData.Builder mergeFrom(SmartReplyData other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SmartReplyData.Builder>
- Throws:
IOException
-
getReply
public String getReply()
The content of the reply.
string reply = 1;
- Specified by:
getReply
in interfaceSmartReplyDataOrBuilder
- Returns:
- The reply.
-
getReplyBytes
public com.google.protobuf.ByteString getReplyBytes()
The content of the reply.
string reply = 1;
- Specified by:
getReplyBytes
in 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:
getConfidenceScore
in 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:SmartReplyDataOrBuilder
Map that contains metadata about the Smart Reply and the document from which it originates.
map<string, string> metadata = 3;
- Specified by:
getMetadataCount
in 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:
containsMetadata
in interfaceSmartReplyDataOrBuilder
-
getMetadata
@Deprecated public Map<String,String> getMetadata()
Deprecated.UsegetMetadataMap()
instead.- Specified by:
getMetadata
in 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:
getMetadataMap
in 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:
getMetadataOrDefault
in 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:
getMetadataOrThrow
in 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:
getQueryRecord
in 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:
getQueryRecordBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SmartReplyData.Builder>
-
mergeUnknownFields
public final SmartReplyData.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SmartReplyData.Builder>
-
-