Class SummarizationContext

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dialogflow.v2.SummarizationContext
All Implemented Interfaces:
SummarizationContextOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class SummarizationContext extends com.google.protobuf.GeneratedMessage implements SummarizationContextOrBuilder
 Summarization context that customer can configure.
 
Protobuf type google.cloud.dialogflow.v2.SummarizationContext
See Also:
  • Field Details

    • SUMMARIZATION_SECTIONS_FIELD_NUMBER

      public static final int SUMMARIZATION_SECTIONS_FIELD_NUMBER
      See Also:
    • FEW_SHOT_EXAMPLES_FIELD_NUMBER

      public static final int FEW_SHOT_EXAMPLES_FIELD_NUMBER
      See Also:
    • VERSION_FIELD_NUMBER

      public static final int VERSION_FIELD_NUMBER
      See Also:
    • OUTPUT_LANGUAGE_CODE_FIELD_NUMBER

      public static final int OUTPUT_LANGUAGE_CODE_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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];
      Specified by:
      getSummarizationSectionsList in interface SummarizationContextOrBuilder
    • 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];
      Specified by:
      getSummarizationSectionsOrBuilderList in interface SummarizationContextOrBuilder
    • 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];
      Specified by:
      getSummarizationSectionsCount in interface SummarizationContextOrBuilder
    • getSummarizationSections

      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];
      Specified by:
      getSummarizationSections in interface SummarizationContextOrBuilder
    • getSummarizationSectionsOrBuilder

      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];
      Specified by:
      getSummarizationSectionsOrBuilder in interface SummarizationContextOrBuilder
    • 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];
      Specified by:
      getFewShotExamplesList in interface SummarizationContextOrBuilder
    • 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];
      Specified by:
      getFewShotExamplesOrBuilderList in interface SummarizationContextOrBuilder
    • 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];
      Specified by:
      getFewShotExamplesCount in interface SummarizationContextOrBuilder
    • getFewShotExamples

      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];
      Specified by:
      getFewShotExamples in interface SummarizationContextOrBuilder
    • getFewShotExamplesOrBuilder

      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];
      Specified by:
      getFewShotExamplesOrBuilder in interface SummarizationContextOrBuilder
    • 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];
      Specified by:
      getVersion in interface SummarizationContextOrBuilder
      Returns:
      The version.
    • getVersionBytes

      public com.google.protobuf.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];
      Specified by:
      getVersionBytes in interface SummarizationContextOrBuilder
      Returns:
      The bytes for version.
    • 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];
      Specified by:
      getOutputLanguageCode in interface SummarizationContextOrBuilder
      Returns:
      The outputLanguageCode.
    • getOutputLanguageCodeBytes

      public com.google.protobuf.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];
      Specified by:
      getOutputLanguageCodeBytes in interface SummarizationContextOrBuilder
      Returns:
      The bytes for outputLanguageCode.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static SummarizationContext parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SummarizationContext parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SummarizationContext parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SummarizationContext parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SummarizationContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SummarizationContext parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SummarizationContext parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SummarizationContext parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SummarizationContext parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SummarizationContext parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SummarizationContext parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SummarizationContext parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public SummarizationContext.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static SummarizationContext.Builder newBuilder()
    • newBuilder

      public static SummarizationContext.Builder newBuilder(SummarizationContext prototype)
    • toBuilder

      public SummarizationContext.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected SummarizationContext.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static SummarizationContext getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<SummarizationContext> parser()
    • getParserForType

      public com.google.protobuf.Parser<SummarizationContext> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public SummarizationContext getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder