public final class SmartReplyData extends GeneratedMessageV3 implements SmartReplyDataOrBuilder
Agent Assist Smart Reply data.
Protobuf type google.cloud.contactcenterinsights.v1.SmartReplyData
Static Fields
public static final int CONFIDENCE_SCORE_FIELD_NUMBER
Field Value
public static final int METADATA_FIELD_NUMBER
Field Value
public static final int QUERY_RECORD_FIELD_NUMBER
Field Value
public static final int REPLY_FIELD_NUMBER
Field Value
Static Methods
public static SmartReplyData getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static SmartReplyData.Builder newBuilder()
Returns
public static SmartReplyData.Builder newBuilder(SmartReplyData prototype)
Parameter
Returns
public static SmartReplyData parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static SmartReplyData parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SmartReplyData parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static SmartReplyData parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SmartReplyData parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static SmartReplyData parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SmartReplyData parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static SmartReplyData parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SmartReplyData parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static SmartReplyData parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SmartReplyData parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static SmartReplyData parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<SmartReplyData> parser()
Returns
Methods
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 boolean equals(Object obj)
Parameter
Returns
Overrides
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 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 Parser<SmartReplyData> getParserForType()
Returns
Overrides
public String getQueryRecord()
Name of the query record.
Format:
projects/{project}/locations/{location}/queryRecords/{query_record}
string query_record = 4;
Returns
Type | Description |
String | The queryRecord.
|
public ByteString getQueryRecordBytes()
Name of the query record.
Format:
projects/{project}/locations/{location}/queryRecords/{query_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
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public SmartReplyData.Builder newBuilderForType()
Returns
protected SmartReplyData.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public SmartReplyData.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions