Class SummarizationContext.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SummarizationContext.Builder>
com.google.cloud.dialogflow.v2.SummarizationContext.Builder
All Implemented Interfaces:
SummarizationContextOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SummarizationContext

public static final class SummarizationContext.Builder extends com.google.protobuf.GeneratedMessage.Builder<SummarizationContext.Builder> implements SummarizationContextOrBuilder
 Summarization context that customer can configure.
 
Protobuf type google.cloud.dialogflow.v2.SummarizationContext
  • 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.Builder<SummarizationContext.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<SummarizationContext.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<SummarizationContext.Builder>
    • getDefaultInstanceForType

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

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

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

      public SummarizationContext.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SummarizationContext.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<SummarizationContext.Builder>
    • mergeFrom

      public SummarizationContext.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SummarizationContext.Builder>
      Throws:
      IOException
    • 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
    • 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
    • setSummarizationSections

      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.v2.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL];
    • setSummarizationSections

      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.v2.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addSummarizationSections

      public SummarizationContext.Builder addSummarizationSections(SummarizationSection value)
       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];
    • addSummarizationSections

      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.v2.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addSummarizationSections

      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.v2.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addSummarizationSections

      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.v2.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addAllSummarizationSections

      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.v2.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL];
    • clearSummarizationSections

      public SummarizationContext.Builder clearSummarizationSections()
       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];
    • removeSummarizationSections

      public SummarizationContext.Builder removeSummarizationSections(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];
    • getSummarizationSectionsBuilder

      public SummarizationSection.Builder getSummarizationSectionsBuilder(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];
    • 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
    • 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
    • addSummarizationSectionsBuilder

      public SummarizationSection.Builder addSummarizationSectionsBuilder()
       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];
    • addSummarizationSectionsBuilder

      public SummarizationSection.Builder addSummarizationSectionsBuilder(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];
    • getSummarizationSectionsBuilderList

      public List<SummarizationSection.Builder> getSummarizationSectionsBuilderList()
       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];
    • 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
    • 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
    • setFewShotExamples

      public SummarizationContext.Builder setFewShotExamples(int index, FewShotExample value)
       Optional. List of few shot examples.
       
      repeated .google.cloud.dialogflow.v2.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setFewShotExamples

      public SummarizationContext.Builder setFewShotExamples(int index, FewShotExample.Builder builderForValue)
       Optional. List of few shot examples.
       
      repeated .google.cloud.dialogflow.v2.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addFewShotExamples

      public SummarizationContext.Builder addFewShotExamples(FewShotExample value)
       Optional. List of few shot examples.
       
      repeated .google.cloud.dialogflow.v2.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addFewShotExamples

      public SummarizationContext.Builder addFewShotExamples(int index, FewShotExample value)
       Optional. List of few shot examples.
       
      repeated .google.cloud.dialogflow.v2.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addFewShotExamples

      public SummarizationContext.Builder addFewShotExamples(FewShotExample.Builder builderForValue)
       Optional. List of few shot examples.
       
      repeated .google.cloud.dialogflow.v2.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addFewShotExamples

      public SummarizationContext.Builder addFewShotExamples(int index, FewShotExample.Builder builderForValue)
       Optional. List of few shot examples.
       
      repeated .google.cloud.dialogflow.v2.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addAllFewShotExamples

      public SummarizationContext.Builder addAllFewShotExamples(Iterable<? extends FewShotExample> values)
       Optional. List of few shot examples.
       
      repeated .google.cloud.dialogflow.v2.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearFewShotExamples

      public SummarizationContext.Builder clearFewShotExamples()
       Optional. List of few shot examples.
       
      repeated .google.cloud.dialogflow.v2.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];
    • removeFewShotExamples

      public SummarizationContext.Builder removeFewShotExamples(int index)
       Optional. List of few shot examples.
       
      repeated .google.cloud.dialogflow.v2.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getFewShotExamplesBuilder

      public FewShotExample.Builder getFewShotExamplesBuilder(int index)
       Optional. List of few shot examples.
       
      repeated .google.cloud.dialogflow.v2.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];
    • 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
    • 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
    • addFewShotExamplesBuilder

      public FewShotExample.Builder addFewShotExamplesBuilder()
       Optional. List of few shot examples.
       
      repeated .google.cloud.dialogflow.v2.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addFewShotExamplesBuilder

      public FewShotExample.Builder addFewShotExamplesBuilder(int index)
       Optional. List of few shot examples.
       
      repeated .google.cloud.dialogflow.v2.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getFewShotExamplesBuilderList

      public List<FewShotExample.Builder> getFewShotExamplesBuilderList()
       Optional. List of few shot examples.
       
      repeated .google.cloud.dialogflow.v2.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];
    • 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.
    • setVersion

      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];
      Parameters:
      value - The version to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setVersionBytes

      public SummarizationContext.Builder setVersionBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for version to set.
      Returns:
      This builder for chaining.
    • 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.
    • setOutputLanguageCode

      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];
      Parameters:
      value - The outputLanguageCode to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setOutputLanguageCodeBytes

      public SummarizationContext.Builder setOutputLanguageCodeBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for outputLanguageCode to set.
      Returns:
      This builder for chaining.