Send feedback
Class SummarizationContext (4.60.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 4.60.0 keyboard_arrow_down
public final class SummarizationContext extends GeneratedMessageV3 implements SummarizationContextOrBuilder
Summarization context that customer can configure.
Protobuf type google.cloud.dialogflow.v2.SummarizationContext
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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 ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static SummarizationContext . Builder newBuilder ()
newBuilder(SummarizationContext prototype)
public static SummarizationContext . Builder newBuilder ( SummarizationContext prototype )
parseDelimitedFrom(InputStream input)
public static SummarizationContext parseDelimitedFrom ( InputStream input )
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SummarizationContext parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static SummarizationContext parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SummarizationContext parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static SummarizationContext parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SummarizationContext parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
parseFrom(CodedInputStream input)
public static SummarizationContext parseFrom ( CodedInputStream input )
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SummarizationContext parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(InputStream input)
public static SummarizationContext parseFrom ( InputStream input )
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SummarizationContext parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static SummarizationContext parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SummarizationContext parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<SummarizationContext> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getDefaultInstanceForType()
public SummarizationContext getDefaultInstanceForType ()
getFewShotExamples(int index)
public FewShotExample getFewShotExamples ( int index )
Optional. List of few shot examples.
repeated .google.cloud.dialogflow.v2.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
index
int
getFewShotExamplesCount()
public int getFewShotExamplesCount ()
Optional. List of few shot examples.
repeated .google.cloud.dialogflow.v2.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.v2.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];
getFewShotExamplesOrBuilder(int index)
public FewShotExampleOrBuilder getFewShotExamplesOrBuilder ( int index )
Optional. List of few shot examples.
repeated .google.cloud.dialogflow.v2.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
index
int
getFewShotExamplesOrBuilderList()
public List <? extends FewShotExampleOrBuilder > getFewShotExamplesOrBuilderList ()
Optional. List of few shot examples.
repeated .google.cloud.dialogflow.v2.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
List <? extends com.google.cloud.dialogflow.v2.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 ()
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.v2.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
index
int
getSummarizationSectionsCount()
public int getSummarizationSectionsCount ()
Optional. List of sections. Note it contains both predefined section sand
customer defined sections.
repeated .google.cloud.dialogflow.v2.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.v2.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL];
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.v2.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
index
int
getSummarizationSectionsOrBuilderList()
public List <? extends SummarizationSectionOrBuilder > getSummarizationSectionsOrBuilderList ()
Optional. List of sections. Note it contains both predefined section sand
customer defined sections.
repeated .google.cloud.dialogflow.v2.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
List <? extends com.google.cloud.dialogflow.v2.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()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public SummarizationContext . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SummarizationContext . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public SummarizationContext . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]