Class SmartReplyData.Builder (2.3.1)

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

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SmartReplyData.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SmartReplyData.Builder
Overrides

build()

public SmartReplyData build()
Returns
TypeDescription
SmartReplyData

buildPartial()

public SmartReplyData buildPartial()
Returns
TypeDescription
SmartReplyData

clear()

public SmartReplyData.Builder clear()
Returns
TypeDescription
SmartReplyData.Builder
Overrides

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
TypeDescription
SmartReplyData.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SmartReplyData.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SmartReplyData.Builder
Overrides

clearMetadata()

public SmartReplyData.Builder clearMetadata()
Returns
TypeDescription
SmartReplyData.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public SmartReplyData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SmartReplyData.Builder
Overrides

clearQueryRecord()

public SmartReplyData.Builder clearQueryRecord()

Name of the query record. Format: projects/{project}/locations/{location}/queryRecords/{query_record}

string query_record = 4;

Returns
TypeDescription
SmartReplyData.Builder

This builder for chaining.

clearReply()

public SmartReplyData.Builder clearReply()

The content of the reply.

string reply = 1;

Returns
TypeDescription
SmartReplyData.Builder

This builder for chaining.

clone()

public SmartReplyData.Builder clone()
Returns
TypeDescription
SmartReplyData.Builder
Overrides

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
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
double

The confidenceScore.

getDefaultInstanceForType()

public SmartReplyData getDefaultInstanceForType()
Returns
TypeDescription
SmartReplyData

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMetadata()

public Map<String,String> getMetadata()

Use #getMetadataMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
String

getMutableMetadata()

public Map<String,String> getMutableMetadata()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getQueryRecord()

public String getQueryRecord()

Name of the query record. Format: projects/{project}/locations/{location}/queryRecords/{query_record}

string query_record = 4;

Returns
TypeDescription
String

The queryRecord.

getQueryRecordBytes()

public ByteString getQueryRecordBytes()

Name of the query record. Format: projects/{project}/locations/{location}/queryRecords/{query_record}

string query_record = 4;

Returns
TypeDescription
ByteString

The bytes for queryRecord.

getReply()

public String getReply()

The content of the reply.

string reply = 1;

Returns
TypeDescription
String

The reply.

getReplyBytes()

public ByteString getReplyBytes()

The content of the reply.

string reply = 1;

Returns
TypeDescription
ByteString

The bytes for reply.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SmartReplyData other)

public SmartReplyData.Builder mergeFrom(SmartReplyData other)
Parameter
NameDescription
otherSmartReplyData
Returns
TypeDescription
SmartReplyData.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SmartReplyData.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SmartReplyData.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SmartReplyData.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SmartReplyData.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SmartReplyData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SmartReplyData.Builder
Overrides

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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
valuedouble

The confidenceScore to set.

Returns
TypeDescription
SmartReplyData.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SmartReplyData.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SmartReplyData.Builder
Overrides

setQueryRecord(String value)

public SmartReplyData.Builder setQueryRecord(String value)

Name of the query record. Format: projects/{project}/locations/{location}/queryRecords/{query_record}

string query_record = 4;

Parameter
NameDescription
valueString

The queryRecord to set.

Returns
TypeDescription
SmartReplyData.Builder

This builder for chaining.

setQueryRecordBytes(ByteString value)

public SmartReplyData.Builder setQueryRecordBytes(ByteString value)

Name of the query record. Format: projects/{project}/locations/{location}/queryRecords/{query_record}

string query_record = 4;

Parameter
NameDescription
valueByteString

The bytes for queryRecord to set.

Returns
TypeDescription
SmartReplyData.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SmartReplyData.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SmartReplyData.Builder
Overrides

setReply(String value)

public SmartReplyData.Builder setReply(String value)

The content of the reply.

string reply = 1;

Parameter
NameDescription
valueString

The reply to set.

Returns
TypeDescription
SmartReplyData.Builder

This builder for chaining.

setReplyBytes(ByteString value)

public SmartReplyData.Builder setReplyBytes(ByteString value)

The content of the reply.

string reply = 1;

Parameter
NameDescription
valueByteString

The bytes for reply to set.

Returns
TypeDescription
SmartReplyData.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SmartReplyData.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SmartReplyData.Builder
Overrides