Class SummarizationContext (4.54.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 4.54.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  SummarizationContext   extends   GeneratedMessageV3   implements   SummarizationContextOrBuilder  
   Summarization context that customer can configure.
 Protobuf type google.cloud.dialogflow.v2beta1.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  
      
        databyte [] 
     
  
  
  
  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  
      
        objObject  
     
  
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   SummarizationContext   getDefaultInstanceForType ()  
  
  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  
      
        indexint  
     
  
  
  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];
 
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  
      
        indexint  
     
  
  
  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 ()  
  
  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  
      
        indexint  
     
  
  
  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];
 
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  
      
        indexint  
     
  
  
  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() 
  
  
    
      
        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 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  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-10-29 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]