public static final class SmartReplyData.Builder extends GeneratedMessageV3.Builder<SmartReplyData.Builder> implements SmartReplyDataOrBuilder
Agent Assist Smart Reply data.
Protobuf type google.cloud.contactcenterinsights.v1.SmartReplyData
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public SmartReplyData.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public SmartReplyData build()
Returns
public SmartReplyData buildPartial()
Returns
public SmartReplyData.Builder clear()
Returns
Overrides
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
public SmartReplyData.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public SmartReplyData.Builder clearMetadata()
Returns
public SmartReplyData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public SmartReplyData.Builder clearQueryRecord()
The name of the answer record.
Format:
projects/{project}/locations/{location}/answerRecords/{answer_record}
string query_record = 4;
Returns
public SmartReplyData.Builder clearReply()
The content of the reply.
string reply = 1;
Returns
public SmartReplyData.Builder clone()
Returns
Overrides
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
Returns
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.
|
public SmartReplyData getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public Map<String,String> getMetadata()
Returns
public int getMetadataCount()
Map that contains metadata about the Smart Reply and the document from
which it originates.
map<string, string> metadata = 3;
Returns
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
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
Returns
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
Returns
public Map<String,String> getMutableMetadata()
Use alternate mutation accessors instead.
Returns
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.
|
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.
|
The content of the reply.
string reply = 1;
Returns
Type | Description |
String | The reply.
|
public ByteString getReplyBytes()
The content of the reply.
string reply = 1;
Returns
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
protected MapField internalGetMutableMapField(int number)
Parameter
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public SmartReplyData.Builder mergeFrom(SmartReplyData other)
Parameter
Returns
public SmartReplyData.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public SmartReplyData.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final SmartReplyData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
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
Returns
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
Returns
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
Returns
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 | double
The confidenceScore to set.
|
Returns
public SmartReplyData.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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 | String
The queryRecord to set.
|
Returns
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 | ByteString
The bytes for queryRecord to set.
|
Returns
public SmartReplyData.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public SmartReplyData.Builder setReply(String value)
The content of the reply.
string reply = 1;
Parameter
Name | Description |
value | String
The reply to set.
|
Returns
public SmartReplyData.Builder setReplyBytes(ByteString value)
The content of the reply.
string reply = 1;
Parameter
Name | Description |
value | ByteString
The bytes for reply to set.
|
Returns
public final SmartReplyData.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides