Class SummarizationContext (4.55.0)

public final class SummarizationContext extends GeneratedMessageV3 implements SummarizationContextOrBuilder

Summarization context that customer can configure.

Protobuf type google.cloud.dialogflow.v2beta1.SummarizationContext

Static Fields

FEW_SHOT_EXAMPLES_FIELD_NUMBER

public static final int FEW_SHOT_EXAMPLES_FIELD_NUMBER
Field Value
Type Description
int

OUTPUT_LANGUAGE_CODE_FIELD_NUMBER

public static final int OUTPUT_LANGUAGE_CODE_FIELD_NUMBER
Field Value
Type Description
int

SUMMARIZATION_SECTIONS_FIELD_NUMBER

public static final int SUMMARIZATION_SECTIONS_FIELD_NUMBER
Field Value
Type Description
int

VERSION_FIELD_NUMBER

public static final int VERSION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SummarizationContext getDefaultInstance()
Returns
Type Description
SummarizationContext

getDescriptor()

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

newBuilder()

public static SummarizationContext.Builder newBuilder()
Returns
Type Description
SummarizationContext.Builder

newBuilder(SummarizationContext prototype)

public static SummarizationContext.Builder newBuilder(SummarizationContext prototype)
Parameter
Name Description
prototype SummarizationContext
Returns
Type Description
SummarizationContext.Builder

parseDelimitedFrom(InputStream input)

public static SummarizationContext parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SummarizationContext
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SummarizationContext parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SummarizationContext
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static SummarizationContext parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
SummarizationContext
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SummarizationContext parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SummarizationContext
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SummarizationContext parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SummarizationContext
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SummarizationContext parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SummarizationContext
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SummarizationContext parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SummarizationContext
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SummarizationContext parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SummarizationContext
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static SummarizationContext parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SummarizationContext
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SummarizationContext parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SummarizationContext
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static SummarizationContext parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SummarizationContext
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SummarizationContext parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SummarizationContext
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<SummarizationContext> parser()
Returns
Type Description
Parser<SummarizationContext>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public SummarizationContext getDefaultInstanceForType()
Returns
Type Description
SummarizationContext

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

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.

getParserForType()

public Parser<SummarizationContext> getParserForType()
Returns
Type Description
Parser<SummarizationContext>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SummarizationContext.Builder newBuilderForType()
Returns
Type Description
SummarizationContext.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SummarizationContext.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SummarizationContext.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public SummarizationContext.Builder toBuilder()
Returns
Type Description
SummarizationContext.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException