public static final class SmartReplyData.Builder extends GeneratedMessage.Builder<SmartReplyData.Builder> implements SmartReplyDataOrBuilderAgent Assist Smart Reply data.
Protobuf type google.cloud.contactcenterinsights.v1.SmartReplyData
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SmartReplyData.BuilderImplements
SmartReplyDataOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public SmartReplyData build()| Returns | |
|---|---|
| Type | Description |
SmartReplyData |
|
buildPartial()
public SmartReplyData buildPartial()| Returns | |
|---|---|
| Type | Description |
SmartReplyData |
|
clear()
public SmartReplyData.Builder clear()| Returns | |
|---|---|
| Type | Description |
SmartReplyData.Builder |
|
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 | |
|---|---|
| Type | Description |
SmartReplyData.Builder |
This builder for chaining. |
clearMetadata()
public SmartReplyData.Builder clearMetadata()| Returns | |
|---|---|
| Type | Description |
SmartReplyData.Builder |
|
clearQueryRecord()
public SmartReplyData.Builder clearQueryRecord()The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record}
string query_record = 4;
| Returns | |
|---|---|
| Type | Description |
SmartReplyData.Builder |
This builder for chaining. |
clearReply()
public SmartReplyData.Builder clearReply()The content of the reply.
string reply = 1;
| Returns | |
|---|---|
| Type | Description |
SmartReplyData.Builder |
This builder for chaining. |
containsMetadata(String key)
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;
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
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;
| Returns | |
|---|---|
| Type | Description |
double |
The confidenceScore. |
getDefaultInstanceForType()
public SmartReplyData getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SmartReplyData |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getMetadata() (deprecated)
public Map<String,String> getMetadata()Use #getMetadataMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getMetadataCount()
public int getMetadataCount()Map that contains metadata about the Smart Reply and the document from which it originates.
map<string, string> metadata = 3;
| Returns | |
|---|---|
| Type | Description |
int |
|
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;
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getMetadataOrDefault(String key, String defaultValue)
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;
| Parameters | |
|---|---|
| Name | Description |
key |
String |
defaultValue |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getMetadataOrThrow(String key)
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;
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getMutableMetadata() (deprecated)
public Map<String,String> getMutableMetadata()Use alternate mutation accessors instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getQueryRecord()
public String getQueryRecord()The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record}
string query_record = 4;
| Returns | |
|---|---|
| Type | Description |
String |
The queryRecord. |
getQueryRecordBytes()
public ByteString getQueryRecordBytes()The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record}
string query_record = 4;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for queryRecord. |
getReply()
public String getReply()The content of the reply.
string reply = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The reply. |
getReplyBytes()
public ByteString getReplyBytes()The content of the reply.
string reply = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for reply. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(SmartReplyData other)
public SmartReplyData.Builder mergeFrom(SmartReplyData other)| Parameter | |
|---|---|
| Name | Description |
other |
SmartReplyData |
| Returns | |
|---|---|
| Type | Description |
SmartReplyData.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SmartReplyData.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SmartReplyData.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SmartReplyData.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SmartReplyData.Builder |
|
putAllMetadata(Map<String,String> values)
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;
| Parameter | |
|---|---|
| Name | Description |
values |
Map<String,String> |
| Returns | |
|---|---|
| Type | Description |
SmartReplyData.Builder |
|
putMetadata(String key, String value)
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;
| Parameters | |
|---|---|
| Name | Description |
key |
String |
value |
String |
| Returns | |
|---|---|
| Type | Description |
SmartReplyData.Builder |
|
removeMetadata(String key)
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;
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
SmartReplyData.Builder |
|
setConfidenceScore(double value)
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;
| Parameter | |
|---|---|
| Name | Description |
value |
doubleThe confidenceScore to set. |
| Returns | |
|---|---|
| Type | Description |
SmartReplyData.Builder |
This builder for chaining. |
setQueryRecord(String value)
public SmartReplyData.Builder setQueryRecord(String value)The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record}
string query_record = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe queryRecord to set. |
| Returns | |
|---|---|
| Type | Description |
SmartReplyData.Builder |
This builder for chaining. |
setQueryRecordBytes(ByteString value)
public SmartReplyData.Builder setQueryRecordBytes(ByteString value)The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record}
string query_record = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for queryRecord to set. |
| Returns | |
|---|---|
| Type | Description |
SmartReplyData.Builder |
This builder for chaining. |
setReply(String value)
public SmartReplyData.Builder setReply(String value)The content of the reply.
string reply = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe reply to set. |
| Returns | |
|---|---|
| Type | Description |
SmartReplyData.Builder |
This builder for chaining. |
setReplyBytes(ByteString value)
public SmartReplyData.Builder setReplyBytes(ByteString value)The content of the reply.
string reply = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for reply to set. |
| Returns | |
|---|---|
| Type | Description |
SmartReplyData.Builder |
This builder for chaining. |