Class SummarizationContext.Builder (4.58.0)

public static final class SummarizationContext.Builder extends GeneratedMessageV3.Builder<SummarizationContext.Builder> implements SummarizationContextOrBuilder

Summarization context that customer can configure.

Protobuf type google.cloud.dialogflow.v2beta1.SummarizationContext

Static Methods

getDescriptor()

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

Methods

addAllFewShotExamples(Iterable<? extends FewShotExample> values)

public SummarizationContext.Builder addAllFewShotExamples(Iterable<? extends FewShotExample> values)

Optional. List of few shot examples.

repeated .google.cloud.dialogflow.v2beta1.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.v2beta1.FewShotExample>
Returns
Type Description
SummarizationContext.Builder

addAllSummarizationSections(Iterable<? extends SummarizationSection> values)

public SummarizationContext.Builder addAllSummarizationSections(Iterable<? extends SummarizationSection> values)

Optional. List of sections. Note it contains both predefined section sand customer defined sections.

repeated .google.cloud.dialogflow.v2beta1.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.v2beta1.SummarizationSection>
Returns
Type Description
SummarizationContext.Builder

addFewShotExamples(FewShotExample value)

public SummarizationContext.Builder addFewShotExamples(FewShotExample value)

Optional. List of few shot examples.

repeated .google.cloud.dialogflow.v2beta1.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value FewShotExample
Returns
Type Description
SummarizationContext.Builder

addFewShotExamples(FewShotExample.Builder builderForValue)

public SummarizationContext.Builder addFewShotExamples(FewShotExample.Builder builderForValue)

Optional. List of few shot examples.

repeated .google.cloud.dialogflow.v2beta1.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue FewShotExample.Builder
Returns
Type Description
SummarizationContext.Builder

addFewShotExamples(int index, FewShotExample value)

public SummarizationContext.Builder addFewShotExamples(int index, FewShotExample value)

Optional. List of few shot examples.

repeated .google.cloud.dialogflow.v2beta1.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value FewShotExample
Returns
Type Description
SummarizationContext.Builder

addFewShotExamples(int index, FewShotExample.Builder builderForValue)

public SummarizationContext.Builder addFewShotExamples(int index, FewShotExample.Builder builderForValue)

Optional. List of few shot examples.

repeated .google.cloud.dialogflow.v2beta1.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue FewShotExample.Builder
Returns
Type Description
SummarizationContext.Builder

addFewShotExamplesBuilder()

public FewShotExample.Builder addFewShotExamplesBuilder()

Optional. List of few shot examples.

repeated .google.cloud.dialogflow.v2beta1.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FewShotExample.Builder

addFewShotExamplesBuilder(int index)

public FewShotExample.Builder addFewShotExamplesBuilder(int index)

Optional. List of few shot examples.

repeated .google.cloud.dialogflow.v2beta1.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
FewShotExample.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSummarizationSections(SummarizationSection value)

public SummarizationContext.Builder addSummarizationSections(SummarizationSection value)

Optional. List of sections. Note it contains both predefined section sand customer defined sections.

repeated .google.cloud.dialogflow.v2beta1.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SummarizationSection
Returns
Type Description
SummarizationContext.Builder

addSummarizationSections(SummarizationSection.Builder builderForValue)

public SummarizationContext.Builder addSummarizationSections(SummarizationSection.Builder builderForValue)

Optional. List of sections. Note it contains both predefined section sand customer defined sections.

repeated .google.cloud.dialogflow.v2beta1.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue SummarizationSection.Builder
Returns
Type Description
SummarizationContext.Builder

addSummarizationSections(int index, SummarizationSection value)

public SummarizationContext.Builder addSummarizationSections(int index, SummarizationSection value)

Optional. List of sections. Note it contains both predefined section sand customer defined sections.

repeated .google.cloud.dialogflow.v2beta1.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value SummarizationSection
Returns
Type Description
SummarizationContext.Builder

addSummarizationSections(int index, SummarizationSection.Builder builderForValue)

public SummarizationContext.Builder addSummarizationSections(int index, SummarizationSection.Builder builderForValue)

Optional. List of sections. Note it contains both predefined section sand customer defined sections.

repeated .google.cloud.dialogflow.v2beta1.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue SummarizationSection.Builder
Returns
Type Description
SummarizationContext.Builder

addSummarizationSectionsBuilder()

public SummarizationSection.Builder addSummarizationSectionsBuilder()

Optional. List of sections. Note it contains both predefined section sand customer defined sections.

repeated .google.cloud.dialogflow.v2beta1.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SummarizationSection.Builder

addSummarizationSectionsBuilder(int index)

public SummarizationSection.Builder addSummarizationSectionsBuilder(int index)

Optional. List of sections. Note it contains both predefined section sand customer defined sections.

repeated .google.cloud.dialogflow.v2beta1.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SummarizationSection.Builder

build()

public SummarizationContext build()
Returns
Type Description
SummarizationContext

buildPartial()

public SummarizationContext buildPartial()
Returns
Type Description
SummarizationContext

clear()

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

clearFewShotExamples()

public SummarizationContext.Builder clearFewShotExamples()

Optional. List of few shot examples.

repeated .google.cloud.dialogflow.v2beta1.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SummarizationContext.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOutputLanguageCode()

public SummarizationContext.Builder clearOutputLanguageCode()

Optional. The target language of the generated summary. The language code for conversation will be used if this field is empty. Supported 2.0 and later versions.

string output_language_code = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SummarizationContext.Builder

This builder for chaining.

clearSummarizationSections()

public SummarizationContext.Builder clearSummarizationSections()

Optional. List of sections. Note it contains both predefined section sand customer defined sections.

repeated .google.cloud.dialogflow.v2beta1.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SummarizationContext.Builder

clearVersion()

public SummarizationContext.Builder clearVersion()

Optional. Version of the feature. If not set, default to latest version. Current candidates are ["1.0"].

string version = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SummarizationContext.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public SummarizationContext getDefaultInstanceForType()
Returns
Type Description
SummarizationContext

getDescriptorForType()

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

getFewShotExamples(int index)

public FewShotExample getFewShotExamples(int index)

Optional. List of few shot examples.

repeated .google.cloud.dialogflow.v2beta1.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
FewShotExample

getFewShotExamplesBuilder(int index)

public FewShotExample.Builder getFewShotExamplesBuilder(int index)

Optional. List of few shot examples.

repeated .google.cloud.dialogflow.v2beta1.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
FewShotExample.Builder

getFewShotExamplesBuilderList()

public List<FewShotExample.Builder> getFewShotExamplesBuilderList()

Optional. List of few shot examples.

repeated .google.cloud.dialogflow.v2beta1.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getFewShotExamplesCount()

public int getFewShotExamplesCount()

Optional. List of few shot examples.

repeated .google.cloud.dialogflow.v2beta1.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getFewShotExamplesList()

public List<FewShotExample> getFewShotExamplesList()

Optional. List of few shot examples.

repeated .google.cloud.dialogflow.v2beta1.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<FewShotExample>

getFewShotExamplesOrBuilder(int index)

public FewShotExampleOrBuilder getFewShotExamplesOrBuilder(int index)

Optional. List of few shot examples.

repeated .google.cloud.dialogflow.v2beta1.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
FewShotExampleOrBuilder

getFewShotExamplesOrBuilderList()

public List<? extends FewShotExampleOrBuilder> getFewShotExamplesOrBuilderList()

Optional. List of few shot examples.

repeated .google.cloud.dialogflow.v2beta1.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.dialogflow.v2beta1.FewShotExampleOrBuilder>

getOutputLanguageCode()

public String getOutputLanguageCode()

Optional. The target language of the generated summary. The language code for conversation will be used if this field is empty. Supported 2.0 and later versions.

string output_language_code = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The outputLanguageCode.

getOutputLanguageCodeBytes()

public ByteString getOutputLanguageCodeBytes()

Optional. The target language of the generated summary. The language code for conversation will be used if this field is empty. Supported 2.0 and later versions.

string output_language_code = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for outputLanguageCode.

getSummarizationSections(int index)

public SummarizationSection getSummarizationSections(int index)

Optional. List of sections. Note it contains both predefined section sand customer defined sections.

repeated .google.cloud.dialogflow.v2beta1.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SummarizationSection

getSummarizationSectionsBuilder(int index)

public SummarizationSection.Builder getSummarizationSectionsBuilder(int index)

Optional. List of sections. Note it contains both predefined section sand customer defined sections.

repeated .google.cloud.dialogflow.v2beta1.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SummarizationSection.Builder

getSummarizationSectionsBuilderList()

public List<SummarizationSection.Builder> getSummarizationSectionsBuilderList()

Optional. List of sections. Note it contains both predefined section sand customer defined sections.

repeated .google.cloud.dialogflow.v2beta1.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getSummarizationSectionsCount()

public int getSummarizationSectionsCount()

Optional. List of sections. Note it contains both predefined section sand customer defined sections.

repeated .google.cloud.dialogflow.v2beta1.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getSummarizationSectionsList()

public List<SummarizationSection> getSummarizationSectionsList()

Optional. List of sections. Note it contains both predefined section sand customer defined sections.

repeated .google.cloud.dialogflow.v2beta1.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<SummarizationSection>

getSummarizationSectionsOrBuilder(int index)

public SummarizationSectionOrBuilder getSummarizationSectionsOrBuilder(int index)

Optional. List of sections. Note it contains both predefined section sand customer defined sections.

repeated .google.cloud.dialogflow.v2beta1.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SummarizationSectionOrBuilder

getSummarizationSectionsOrBuilderList()

public List<? extends SummarizationSectionOrBuilder> getSummarizationSectionsOrBuilderList()

Optional. List of sections. Note it contains both predefined section sand customer defined sections.

repeated .google.cloud.dialogflow.v2beta1.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.dialogflow.v2beta1.SummarizationSectionOrBuilder>

getVersion()

public String getVersion()

Optional. Version of the feature. If not set, default to latest version. Current candidates are ["1.0"].

string version = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Optional. Version of the feature. If not set, default to latest version. Current candidates are ["1.0"].

string version = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for version.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SummarizationContext other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeFewShotExamples(int index)

public SummarizationContext.Builder removeFewShotExamples(int index)

Optional. List of few shot examples.

repeated .google.cloud.dialogflow.v2beta1.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SummarizationContext.Builder

removeSummarizationSections(int index)

public SummarizationContext.Builder removeSummarizationSections(int index)

Optional. List of sections. Note it contains both predefined section sand customer defined sections.

repeated .google.cloud.dialogflow.v2beta1.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SummarizationContext.Builder

setFewShotExamples(int index, FewShotExample value)

public SummarizationContext.Builder setFewShotExamples(int index, FewShotExample value)

Optional. List of few shot examples.

repeated .google.cloud.dialogflow.v2beta1.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value FewShotExample
Returns
Type Description
SummarizationContext.Builder

setFewShotExamples(int index, FewShotExample.Builder builderForValue)

public SummarizationContext.Builder setFewShotExamples(int index, FewShotExample.Builder builderForValue)

Optional. List of few shot examples.

repeated .google.cloud.dialogflow.v2beta1.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue FewShotExample.Builder
Returns
Type Description
SummarizationContext.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setOutputLanguageCode(String value)

public SummarizationContext.Builder setOutputLanguageCode(String value)

Optional. The target language of the generated summary. The language code for conversation will be used if this field is empty. Supported 2.0 and later versions.

string output_language_code = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The outputLanguageCode to set.

Returns
Type Description
SummarizationContext.Builder

This builder for chaining.

setOutputLanguageCodeBytes(ByteString value)

public SummarizationContext.Builder setOutputLanguageCodeBytes(ByteString value)

Optional. The target language of the generated summary. The language code for conversation will be used if this field is empty. Supported 2.0 and later versions.

string output_language_code = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for outputLanguageCode to set.

Returns
Type Description
SummarizationContext.Builder

This builder for chaining.

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

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

setSummarizationSections(int index, SummarizationSection value)

public SummarizationContext.Builder setSummarizationSections(int index, SummarizationSection value)

Optional. List of sections. Note it contains both predefined section sand customer defined sections.

repeated .google.cloud.dialogflow.v2beta1.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value SummarizationSection
Returns
Type Description
SummarizationContext.Builder

setSummarizationSections(int index, SummarizationSection.Builder builderForValue)

public SummarizationContext.Builder setSummarizationSections(int index, SummarizationSection.Builder builderForValue)

Optional. List of sections. Note it contains both predefined section sand customer defined sections.

repeated .google.cloud.dialogflow.v2beta1.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue SummarizationSection.Builder
Returns
Type Description
SummarizationContext.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersion(String value)

public SummarizationContext.Builder setVersion(String value)

Optional. Version of the feature. If not set, default to latest version. Current candidates are ["1.0"].

string version = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The version to set.

Returns
Type Description
SummarizationContext.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public SummarizationContext.Builder setVersionBytes(ByteString value)

Optional. Version of the feature. If not set, default to latest version. Current candidates are ["1.0"].

string version = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for version to set.

Returns
Type Description
SummarizationContext.Builder

This builder for chaining.