Class SmartComposeSuggestionData.Builder (2.44.0)

public static final class SmartComposeSuggestionData.Builder extends GeneratedMessageV3.Builder<SmartComposeSuggestionData.Builder> implements SmartComposeSuggestionDataOrBuilder

Agent Assist Smart Compose suggestion data.

Protobuf type google.cloud.contactcenterinsights.v1.SmartComposeSuggestionData

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SmartComposeSuggestionData build()
Returns
Type Description
SmartComposeSuggestionData

buildPartial()

public SmartComposeSuggestionData buildPartial()
Returns
Type Description
SmartComposeSuggestionData

clear()

public SmartComposeSuggestionData.Builder clear()
Returns
Type Description
SmartComposeSuggestionData.Builder
Overrides

clearConfidenceScore()

public SmartComposeSuggestionData.Builder clearConfidenceScore()

The system's confidence score that this suggestion 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
SmartComposeSuggestionData.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMetadata()

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearQueryRecord()

public SmartComposeSuggestionData.Builder clearQueryRecord()

The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record}

string query_record = 4;

Returns
Type Description
SmartComposeSuggestionData.Builder

This builder for chaining.

clearSuggestion()

public SmartComposeSuggestionData.Builder clearSuggestion()

The content of the suggestion.

string suggestion = 1;

Returns
Type Description
SmartComposeSuggestionData.Builder

This builder for chaining.

clone()

public SmartComposeSuggestionData.Builder clone()
Returns
Type Description
SmartComposeSuggestionData.Builder
Overrides

containsMetadata(String key)

public boolean containsMetadata(String key)

Map that contains metadata about the Smart Compose suggestion 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 suggestion 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 SmartComposeSuggestionData getDefaultInstanceForType()
Returns
Type Description
SmartComposeSuggestionData

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 Compose suggestion 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 Compose suggestion 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 Compose suggestion 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 Compose suggestion 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.

getSuggestion()

public String getSuggestion()

The content of the suggestion.

string suggestion = 1;

Returns
Type Description
String

The suggestion.

getSuggestionBytes()

public ByteString getSuggestionBytes()

The content of the suggestion.

string suggestion = 1;

Returns
Type Description
ByteString

The bytes for suggestion.

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(SmartComposeSuggestionData other)

public SmartComposeSuggestionData.Builder mergeFrom(SmartComposeSuggestionData other)
Parameter
Name Description
other SmartComposeSuggestionData
Returns
Type Description
SmartComposeSuggestionData.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SmartComposeSuggestionData.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SmartComposeSuggestionData.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SmartComposeSuggestionData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SmartComposeSuggestionData.Builder
Overrides

putAllMetadata(Map<String,String> values)

public SmartComposeSuggestionData.Builder putAllMetadata(Map<String,String> values)

Map that contains metadata about the Smart Compose suggestion and the document from which it originates.

map<string, string> metadata = 3;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
SmartComposeSuggestionData.Builder

putMetadata(String key, String value)

public SmartComposeSuggestionData.Builder putMetadata(String key, String value)

Map that contains metadata about the Smart Compose suggestion and the document from which it originates.

map<string, string> metadata = 3;

Parameters
Name Description
key String
value String
Returns
Type Description
SmartComposeSuggestionData.Builder

removeMetadata(String key)

public SmartComposeSuggestionData.Builder removeMetadata(String key)

Map that contains metadata about the Smart Compose suggestion and the document from which it originates.

map<string, string> metadata = 3;

Parameter
Name Description
key String
Returns
Type Description
SmartComposeSuggestionData.Builder

setConfidenceScore(double value)

public SmartComposeSuggestionData.Builder setConfidenceScore(double value)

The system's confidence score that this suggestion 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
SmartComposeSuggestionData.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setQueryRecord(String value)

public SmartComposeSuggestionData.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
SmartComposeSuggestionData.Builder

This builder for chaining.

setQueryRecordBytes(ByteString value)

public SmartComposeSuggestionData.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
SmartComposeSuggestionData.Builder

This builder for chaining.

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

public SmartComposeSuggestionData.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SmartComposeSuggestionData.Builder
Overrides

setSuggestion(String value)

public SmartComposeSuggestionData.Builder setSuggestion(String value)

The content of the suggestion.

string suggestion = 1;

Parameter
Name Description
value String

The suggestion to set.

Returns
Type Description
SmartComposeSuggestionData.Builder

This builder for chaining.

setSuggestionBytes(ByteString value)

public SmartComposeSuggestionData.Builder setSuggestionBytes(ByteString value)

The content of the suggestion.

string suggestion = 1;

Parameter
Name Description
value ByteString

The bytes for suggestion to set.

Returns
Type Description
SmartComposeSuggestionData.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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