Send feedback
Class SmartReplyData.Builder (2.2.7)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.2.7 keyboard_arrow_down
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 ()
Name of the query record.
Format:
projects/{project}/locations/{location}/queryRecords/{query_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 ()
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
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 )
Name of the query record.
Format:
projects/{project}/locations/{location}/queryRecords/{query_record}
string query_record = 4;
Parameter
Name Description value String
The queryRecord to set.
Returns
public SmartReplyData . Builder setQueryRecordBytes ( ByteString value )
Name of the query record.
Format:
projects/{project}/locations/{location}/queryRecords/{query_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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-06 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-06 UTC."],[],[]]