Class GenerateStatelessSummaryResponse.Summary.Builder (4.59.0)

public static final class GenerateStatelessSummaryResponse.Summary.Builder extends GeneratedMessageV3.Builder<GenerateStatelessSummaryResponse.Summary.Builder> implements GenerateStatelessSummaryResponse.SummaryOrBuilder

Generated summary for a conversation.

Protobuf type google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryResponse.Summary

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GenerateStatelessSummaryResponse.Summary build()
Returns
Type Description
GenerateStatelessSummaryResponse.Summary

buildPartial()

public GenerateStatelessSummaryResponse.Summary buildPartial()
Returns
Type Description
GenerateStatelessSummaryResponse.Summary

clear()

public GenerateStatelessSummaryResponse.Summary.Builder clear()
Returns
Type Description
GenerateStatelessSummaryResponse.Summary.Builder
Overrides

clearBaselineModelVersion()

public GenerateStatelessSummaryResponse.Summary.Builder clearBaselineModelVersion()

The baseline model version used to generate this summary. It is empty if a baseline model was not used to generate this summary.

string baseline_model_version = 4;

Returns
Type Description
GenerateStatelessSummaryResponse.Summary.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearText()

public GenerateStatelessSummaryResponse.Summary.Builder clearText()

The summary content that is concatenated into one string.

string text = 1;

Returns
Type Description
GenerateStatelessSummaryResponse.Summary.Builder

This builder for chaining.

clearTextSections()

public GenerateStatelessSummaryResponse.Summary.Builder clearTextSections()
Returns
Type Description
GenerateStatelessSummaryResponse.Summary.Builder

clone()

public GenerateStatelessSummaryResponse.Summary.Builder clone()
Returns
Type Description
GenerateStatelessSummaryResponse.Summary.Builder
Overrides

containsTextSections(String key)

public boolean containsTextSections(String key)

The summary 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 = 2;

Parameter
Name Description
key String
Returns
Type Description
boolean

getBaselineModelVersion()

public String getBaselineModelVersion()

The baseline model version used to generate this summary. It is empty if a baseline model was not used to generate this summary.

string baseline_model_version = 4;

Returns
Type Description
String

The baselineModelVersion.

getBaselineModelVersionBytes()

public ByteString getBaselineModelVersionBytes()

The baseline model version used to generate this summary. It is empty if a baseline model was not used to generate this summary.

string baseline_model_version = 4;

Returns
Type Description
ByteString

The bytes for baselineModelVersion.

getDefaultInstanceForType()

public GenerateStatelessSummaryResponse.Summary getDefaultInstanceForType()
Returns
Type Description
GenerateStatelessSummaryResponse.Summary

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMutableTextSections() (deprecated)

public Map<String,String> getMutableTextSections()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getText()

public String getText()

The summary content that is concatenated into one string.

string text = 1;

Returns
Type Description
String

The text.

getTextBytes()

public ByteString getTextBytes()

The summary 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 summary 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 = 2;

Returns
Type Description
int

getTextSectionsMap()

public Map<String,String> getTextSectionsMap()

The summary 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 = 2;

Returns
Type Description
Map<String,String>

getTextSectionsOrDefault(String key, String defaultValue)

public String getTextSectionsOrDefault(String key, String defaultValue)

The summary 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 = 2;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getTextSectionsOrThrow(String key)

public String getTextSectionsOrThrow(String key)

The summary 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 = 2;

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(GenerateStatelessSummaryResponse.Summary other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllTextSections(Map<String,String> values)

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

The summary 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 = 2;

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

putTextSections(String key, String value)

public GenerateStatelessSummaryResponse.Summary.Builder putTextSections(String key, String value)

The summary 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 = 2;

Parameters
Name Description
key String
value String
Returns
Type Description
GenerateStatelessSummaryResponse.Summary.Builder

removeTextSections(String key)

public GenerateStatelessSummaryResponse.Summary.Builder removeTextSections(String key)

The summary 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 = 2;

Parameter
Name Description
key String
Returns
Type Description
GenerateStatelessSummaryResponse.Summary.Builder

setBaselineModelVersion(String value)

public GenerateStatelessSummaryResponse.Summary.Builder setBaselineModelVersion(String value)

The baseline model version used to generate this summary. It is empty if a baseline model was not used to generate this summary.

string baseline_model_version = 4;

Parameter
Name Description
value String

The baselineModelVersion to set.

Returns
Type Description
GenerateStatelessSummaryResponse.Summary.Builder

This builder for chaining.

setBaselineModelVersionBytes(ByteString value)

public GenerateStatelessSummaryResponse.Summary.Builder setBaselineModelVersionBytes(ByteString value)

The baseline model version used to generate this summary. It is empty if a baseline model was not used to generate this summary.

string baseline_model_version = 4;

Parameter
Name Description
value ByteString

The bytes for baselineModelVersion to set.

Returns
Type Description
GenerateStatelessSummaryResponse.Summary.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setText(String value)

public GenerateStatelessSummaryResponse.Summary.Builder setText(String value)

The summary content that is concatenated into one string.

string text = 1;

Parameter
Name Description
value String

The text to set.

Returns
Type Description
GenerateStatelessSummaryResponse.Summary.Builder

This builder for chaining.

setTextBytes(ByteString value)

public GenerateStatelessSummaryResponse.Summary.Builder setTextBytes(ByteString value)

The summary content that is concatenated into one string.

string text = 1;

Parameter
Name Description
value ByteString

The bytes for text to set.

Returns
Type Description
GenerateStatelessSummaryResponse.Summary.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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