Class SmartReplyData.Builder (2.54.0)

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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SmartReplyData.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SmartReplyData.Builder
Overrides

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
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
Type Description
SmartReplyData.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SmartReplyData.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SmartReplyData.Builder
Overrides

clearMetadata()

public SmartReplyData.Builder clearMetadata()
Returns
Type Description
SmartReplyData.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public SmartReplyData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SmartReplyData.Builder
Overrides

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.

clone()

public SmartReplyData.Builder clone()
Returns
Type Description
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
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
Overrides

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SmartReplyData.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SmartReplyData.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SmartReplyData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
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 double

The confidenceScore to set.

Returns
Type Description
SmartReplyData.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SmartReplyData.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SmartReplyData.Builder
Overrides

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 String

The 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 ByteString

The bytes for queryRecord to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SmartReplyData.Builder
Overrides

setReply(String value)

public SmartReplyData.Builder setReply(String value)

The content of the reply.

string reply = 1;

Parameter
Name Description
value String

The 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 ByteString

The bytes for reply to set.

Returns
Type Description
SmartReplyData.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SmartReplyData.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SmartReplyData.Builder
Overrides