Class ConversationSummarizationSuggestionData.Builder (2.46.0)

public static final class ConversationSummarizationSuggestionData.Builder extends GeneratedMessageV3.Builder<ConversationSummarizationSuggestionData.Builder> implements ConversationSummarizationSuggestionDataOrBuilder

Conversation summarization suggestion data.

Protobuf type google.cloud.contactcenterinsights.v1.ConversationSummarizationSuggestionData

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ConversationSummarizationSuggestionData build()
Returns
Type Description
ConversationSummarizationSuggestionData

buildPartial()

public ConversationSummarizationSuggestionData buildPartial()
Returns
Type Description
ConversationSummarizationSuggestionData

clear()

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

clearAnswerRecord()

public ConversationSummarizationSuggestionData.Builder clearAnswerRecord()

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

string answer_record = 4;

Returns
Type Description
ConversationSummarizationSuggestionData.Builder

This builder for chaining.

clearConfidence()

public ConversationSummarizationSuggestionData.Builder clearConfidence()

The confidence score of the summarization.

float confidence = 2;

Returns
Type Description
ConversationSummarizationSuggestionData.Builder

This builder for chaining.

clearConversationModel()

public ConversationSummarizationSuggestionData.Builder clearConversationModel()

The name of the model that generates this summary. Format: projects/{project}/locations/{location}/conversationModels/{conversation_model}

string conversation_model = 6;

Returns
Type Description
ConversationSummarizationSuggestionData.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMetadata()

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearText()

public ConversationSummarizationSuggestionData.Builder clearText()

The summarization content that is concatenated into one string.

string text = 1;

Returns
Type Description
ConversationSummarizationSuggestionData.Builder

This builder for chaining.

clearTextSections()

public ConversationSummarizationSuggestionData.Builder clearTextSections()
Returns
Type Description
ConversationSummarizationSuggestionData.Builder

clone()

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

containsMetadata(String key)

public boolean containsMetadata(String key)

A map that contains metadata about the summarization and the document from which it originates.

map<string, string> metadata = 3;

Parameter
Name Description
key String
Returns
Type Description
boolean

containsTextSections(String key)

public boolean containsTextSections(String key)

The summarization content that is divided into sections. The key is the section's name and the value is the section's content. There is no specific format for the key or value.

map<string, string> text_sections = 5;

Parameter
Name Description
key String
Returns
Type Description
boolean

getAnswerRecord()

public String getAnswerRecord()

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

string answer_record = 4;

Returns
Type Description
String

The answerRecord.

getAnswerRecordBytes()

public ByteString getAnswerRecordBytes()

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

string answer_record = 4;

Returns
Type Description
ByteString

The bytes for answerRecord.

getConfidence()

public float getConfidence()

The confidence score of the summarization.

float confidence = 2;

Returns
Type Description
float

The confidence.

getConversationModel()

public String getConversationModel()

The name of the model that generates this summary. Format: projects/{project}/locations/{location}/conversationModels/{conversation_model}

string conversation_model = 6;

Returns
Type Description
String

The conversationModel.

getConversationModelBytes()

public ByteString getConversationModelBytes()

The name of the model that generates this summary. Format: projects/{project}/locations/{location}/conversationModels/{conversation_model}

string conversation_model = 6;

Returns
Type Description
ByteString

The bytes for conversationModel.

getDefaultInstanceForType()

public ConversationSummarizationSuggestionData getDefaultInstanceForType()
Returns
Type Description
ConversationSummarizationSuggestionData

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

A map that contains metadata about the summarization and the document from which it originates.

map<string, string> metadata = 3;

Returns
Type Description
int

getMetadataMap()

public Map<String,String> getMetadataMap()

A map that contains metadata about the summarization 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)

A map that contains metadata about the summarization 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)

A map that contains metadata about the summarization 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>

getMutableTextSections() (deprecated)

public Map<String,String> getMutableTextSections()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getText()

public String getText()

The summarization content that is concatenated into one string.

string text = 1;

Returns
Type Description
String

The text.

getTextBytes()

public ByteString getTextBytes()

The summarization content that is concatenated into one string.

string text = 1;

Returns
Type Description
ByteString

The bytes for text.

getTextSections() (deprecated)

public Map<String,String> getTextSections()

Use #getTextSectionsMap() instead.

Returns
Type Description
Map<String,String>

getTextSectionsCount()

public int getTextSectionsCount()

The summarization content that is divided into sections. The key is the section's name and the value is the section's content. There is no specific format for the key or value.

map<string, string> text_sections = 5;

Returns
Type Description
int

getTextSectionsMap()

public Map<String,String> getTextSectionsMap()

The summarization content that is divided into sections. The key is the section's name and the value is the section's content. There is no specific format for the key or value.

map<string, string> text_sections = 5;

Returns
Type Description
Map<String,String>

getTextSectionsOrDefault(String key, String defaultValue)

public String getTextSectionsOrDefault(String key, String defaultValue)

The summarization content that is divided into sections. The key is the section's name and the value is the section's content. There is no specific format for the key or value.

map<string, string> text_sections = 5;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getTextSectionsOrThrow(String key)

public String getTextSectionsOrThrow(String key)

The summarization content that is divided into sections. The key is the section's name and the value is the section's content. There is no specific format for the key or value.

map<string, string> text_sections = 5;

Parameter
Name Description
key String
Returns
Type Description
String

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllMetadata(Map<String,String> values)

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

A map that contains metadata about the summarization and the document from which it originates.

map<string, string> metadata = 3;

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

putAllTextSections(Map<String,String> values)

public ConversationSummarizationSuggestionData.Builder putAllTextSections(Map<String,String> values)

The summarization content that is divided into sections. The key is the section's name and the value is the section's content. There is no specific format for the key or value.

map<string, string> text_sections = 5;

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

putMetadata(String key, String value)

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

A map that contains metadata about the summarization and the document from which it originates.

map<string, string> metadata = 3;

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

putTextSections(String key, String value)

public ConversationSummarizationSuggestionData.Builder putTextSections(String key, String value)

The summarization content that is divided into sections. The key is the section's name and the value is the section's content. There is no specific format for the key or value.

map<string, string> text_sections = 5;

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

removeMetadata(String key)

public ConversationSummarizationSuggestionData.Builder removeMetadata(String key)

A map that contains metadata about the summarization and the document from which it originates.

map<string, string> metadata = 3;

Parameter
Name Description
key String
Returns
Type Description
ConversationSummarizationSuggestionData.Builder

removeTextSections(String key)

public ConversationSummarizationSuggestionData.Builder removeTextSections(String key)

The summarization content that is divided into sections. The key is the section's name and the value is the section's content. There is no specific format for the key or value.

map<string, string> text_sections = 5;

Parameter
Name Description
key String
Returns
Type Description
ConversationSummarizationSuggestionData.Builder

setAnswerRecord(String value)

public ConversationSummarizationSuggestionData.Builder setAnswerRecord(String value)

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

string answer_record = 4;

Parameter
Name Description
value String

The answerRecord to set.

Returns
Type Description
ConversationSummarizationSuggestionData.Builder

This builder for chaining.

setAnswerRecordBytes(ByteString value)

public ConversationSummarizationSuggestionData.Builder setAnswerRecordBytes(ByteString value)

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

string answer_record = 4;

Parameter
Name Description
value ByteString

The bytes for answerRecord to set.

Returns
Type Description
ConversationSummarizationSuggestionData.Builder

This builder for chaining.

setConfidence(float value)

public ConversationSummarizationSuggestionData.Builder setConfidence(float value)

The confidence score of the summarization.

float confidence = 2;

Parameter
Name Description
value float

The confidence to set.

Returns
Type Description
ConversationSummarizationSuggestionData.Builder

This builder for chaining.

setConversationModel(String value)

public ConversationSummarizationSuggestionData.Builder setConversationModel(String value)

The name of the model that generates this summary. Format: projects/{project}/locations/{location}/conversationModels/{conversation_model}

string conversation_model = 6;

Parameter
Name Description
value String

The conversationModel to set.

Returns
Type Description
ConversationSummarizationSuggestionData.Builder

This builder for chaining.

setConversationModelBytes(ByteString value)

public ConversationSummarizationSuggestionData.Builder setConversationModelBytes(ByteString value)

The name of the model that generates this summary. Format: projects/{project}/locations/{location}/conversationModels/{conversation_model}

string conversation_model = 6;

Parameter
Name Description
value ByteString

The bytes for conversationModel to set.

Returns
Type Description
ConversationSummarizationSuggestionData.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setText(String value)

public ConversationSummarizationSuggestionData.Builder setText(String value)

The summarization content that is concatenated into one string.

string text = 1;

Parameter
Name Description
value String

The text to set.

Returns
Type Description
ConversationSummarizationSuggestionData.Builder

This builder for chaining.

setTextBytes(ByteString value)

public ConversationSummarizationSuggestionData.Builder setTextBytes(ByteString value)

The summarization content that is concatenated into one string.

string text = 1;

Parameter
Name Description
value ByteString

The bytes for text to set.

Returns
Type Description
ConversationSummarizationSuggestionData.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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