Class SmartComposeSuggestionData.Builder (2.36.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SmartComposeSuggestionData build()
Returns
TypeDescription
SmartComposeSuggestionData

buildPartial()

public SmartComposeSuggestionData buildPartial()
Returns
TypeDescription
SmartComposeSuggestionData

clear()

public SmartComposeSuggestionData.Builder clear()
Returns
TypeDescription
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
TypeDescription
SmartComposeSuggestionData.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMetadata()

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

clearOneof(Descriptors.OneofDescriptor oneof)

public SmartComposeSuggestionData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
SmartComposeSuggestionData.Builder

This builder for chaining.

clearSuggestion()

public SmartComposeSuggestionData.Builder clearSuggestion()

The content of the suggestion.

string suggestion = 1;

Returns
TypeDescription
SmartComposeSuggestionData.Builder

This builder for chaining.

clone()

public SmartComposeSuggestionData.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
double

The confidenceScore.

getDefaultInstanceForType()

public SmartComposeSuggestionData getDefaultInstanceForType()
Returns
TypeDescription
SmartComposeSuggestionData

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMetadata() (deprecated)

public Map<String,String> getMetadata()

Use #getMetadataMap() instead.

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

getMutableMetadata() (deprecated)

public Map<String,String> getMutableMetadata()

Use alternate mutation accessors instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for queryRecord.

getSuggestion()

public String getSuggestion()

The content of the suggestion.

string suggestion = 1;

Returns
TypeDescription
String

The suggestion.

getSuggestionBytes()

public ByteString getSuggestionBytes()

The content of the suggestion.

string suggestion = 1;

Returns
TypeDescription
ByteString

The bytes for suggestion.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SmartComposeSuggestionData other)

public SmartComposeSuggestionData.Builder mergeFrom(SmartComposeSuggestionData other)
Parameter
NameDescription
otherSmartComposeSuggestionData
Returns
TypeDescription
SmartComposeSuggestionData.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SmartComposeSuggestionData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
valuedouble

The confidenceScore to set.

Returns
TypeDescription
SmartComposeSuggestionData.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SmartComposeSuggestionData.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The queryRecord to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for queryRecord to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SmartComposeSuggestionData.Builder
Overrides

setSuggestion(String value)

public SmartComposeSuggestionData.Builder setSuggestion(String value)

The content of the suggestion.

string suggestion = 1;

Parameter
NameDescription
valueString

The suggestion to set.

Returns
TypeDescription
SmartComposeSuggestionData.Builder

This builder for chaining.

setSuggestionBytes(ByteString value)

public SmartComposeSuggestionData.Builder setSuggestionBytes(ByteString value)

The content of the suggestion.

string suggestion = 1;

Parameter
NameDescription
valueByteString

The bytes for suggestion to set.

Returns
TypeDescription
SmartComposeSuggestionData.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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