Class SummaryOptions.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SummaryOptions.Builder>
com.google.cloud.documentai.v1beta3.SummaryOptions.Builder
All Implemented Interfaces:
SummaryOptionsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SummaryOptions

public static final class SummaryOptions.Builder extends com.google.protobuf.GeneratedMessage.Builder<SummaryOptions.Builder> implements SummaryOptionsOrBuilder
 Metadata for document summarization.
 
Protobuf type google.cloud.documentai.v1beta3.SummaryOptions
  • 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<SummaryOptions.Builder>
    • clear

      public SummaryOptions.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<SummaryOptions.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<SummaryOptions.Builder>
    • getDefaultInstanceForType

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

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

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

      public SummaryOptions.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<SummaryOptions.Builder>
    • mergeFrom

      public SummaryOptions.Builder mergeFrom(SummaryOptions other)
    • isInitialized

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

      public SummaryOptions.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<SummaryOptions.Builder>
      Throws:
      IOException
    • getLengthValue

      public int getLengthValue()
       How long the summary should be.
       
      .google.cloud.documentai.v1beta3.SummaryOptions.Length length = 1;
      Specified by:
      getLengthValue in interface SummaryOptionsOrBuilder
      Returns:
      The enum numeric value on the wire for length.
    • setLengthValue

      public SummaryOptions.Builder setLengthValue(int value)
       How long the summary should be.
       
      .google.cloud.documentai.v1beta3.SummaryOptions.Length length = 1;
      Parameters:
      value - The enum numeric value on the wire for length to set.
      Returns:
      This builder for chaining.
    • getLength

      public SummaryOptions.Length getLength()
       How long the summary should be.
       
      .google.cloud.documentai.v1beta3.SummaryOptions.Length length = 1;
      Specified by:
      getLength in interface SummaryOptionsOrBuilder
      Returns:
      The length.
    • setLength

       How long the summary should be.
       
      .google.cloud.documentai.v1beta3.SummaryOptions.Length length = 1;
      Parameters:
      value - The length to set.
      Returns:
      This builder for chaining.
    • clearLength

      public SummaryOptions.Builder clearLength()
       How long the summary should be.
       
      .google.cloud.documentai.v1beta3.SummaryOptions.Length length = 1;
      Returns:
      This builder for chaining.
    • getFormatValue

      public int getFormatValue()
       The format the summary should be in.
       
      .google.cloud.documentai.v1beta3.SummaryOptions.Format format = 2;
      Specified by:
      getFormatValue in interface SummaryOptionsOrBuilder
      Returns:
      The enum numeric value on the wire for format.
    • setFormatValue

      public SummaryOptions.Builder setFormatValue(int value)
       The format the summary should be in.
       
      .google.cloud.documentai.v1beta3.SummaryOptions.Format format = 2;
      Parameters:
      value - The enum numeric value on the wire for format to set.
      Returns:
      This builder for chaining.
    • getFormat

      public SummaryOptions.Format getFormat()
       The format the summary should be in.
       
      .google.cloud.documentai.v1beta3.SummaryOptions.Format format = 2;
      Specified by:
      getFormat in interface SummaryOptionsOrBuilder
      Returns:
      The format.
    • setFormat

       The format the summary should be in.
       
      .google.cloud.documentai.v1beta3.SummaryOptions.Format format = 2;
      Parameters:
      value - The format to set.
      Returns:
      This builder for chaining.
    • clearFormat

      public SummaryOptions.Builder clearFormat()
       The format the summary should be in.
       
      .google.cloud.documentai.v1beta3.SummaryOptions.Format format = 2;
      Returns:
      This builder for chaining.