Class SummaryOptions.Builder (2.36.0)

public static final class SummaryOptions.Builder extends GeneratedMessageV3.Builder<SummaryOptions.Builder> implements SummaryOptionsOrBuilder

Metadata for document summarization.

Protobuf type google.cloud.documentai.v1beta3.SummaryOptions

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SummaryOptions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SummaryOptions.Builder
Overrides

build()

public SummaryOptions build()
Returns
TypeDescription
SummaryOptions

buildPartial()

public SummaryOptions buildPartial()
Returns
TypeDescription
SummaryOptions

clear()

public SummaryOptions.Builder clear()
Returns
TypeDescription
SummaryOptions.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SummaryOptions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SummaryOptions.Builder
Overrides

clearFormat()

public SummaryOptions.Builder clearFormat()

The format the summary should be in.

.google.cloud.documentai.v1beta3.SummaryOptions.Format format = 2;

Returns
TypeDescription
SummaryOptions.Builder

This builder for chaining.

clearLength()

public SummaryOptions.Builder clearLength()

How long the summary should be.

.google.cloud.documentai.v1beta3.SummaryOptions.Length length = 1;

Returns
TypeDescription
SummaryOptions.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SummaryOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SummaryOptions.Builder
Overrides

clone()

public SummaryOptions.Builder clone()
Returns
TypeDescription
SummaryOptions.Builder
Overrides

getDefaultInstanceForType()

public SummaryOptions getDefaultInstanceForType()
Returns
TypeDescription
SummaryOptions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFormat()

public SummaryOptions.Format getFormat()

The format the summary should be in.

.google.cloud.documentai.v1beta3.SummaryOptions.Format format = 2;

Returns
TypeDescription
SummaryOptions.Format

The format.

getFormatValue()

public int getFormatValue()

The format the summary should be in.

.google.cloud.documentai.v1beta3.SummaryOptions.Format format = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for format.

getLength()

public SummaryOptions.Length getLength()

How long the summary should be.

.google.cloud.documentai.v1beta3.SummaryOptions.Length length = 1;

Returns
TypeDescription
SummaryOptions.Length

The length.

getLengthValue()

public int getLengthValue()

How long the summary should be.

.google.cloud.documentai.v1beta3.SummaryOptions.Length length = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for length.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SummaryOptions other)

public SummaryOptions.Builder mergeFrom(SummaryOptions other)
Parameter
NameDescription
otherSummaryOptions
Returns
TypeDescription
SummaryOptions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SummaryOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SummaryOptions.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SummaryOptions.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SummaryOptions.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SummaryOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SummaryOptions.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public SummaryOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SummaryOptions.Builder
Overrides

setFormat(SummaryOptions.Format value)

public SummaryOptions.Builder setFormat(SummaryOptions.Format value)

The format the summary should be in.

.google.cloud.documentai.v1beta3.SummaryOptions.Format format = 2;

Parameter
NameDescription
valueSummaryOptions.Format

The format to set.

Returns
TypeDescription
SummaryOptions.Builder

This builder for chaining.

setFormatValue(int value)

public SummaryOptions.Builder setFormatValue(int value)

The format the summary should be in.

.google.cloud.documentai.v1beta3.SummaryOptions.Format format = 2;

Parameter
NameDescription
valueint

The enum numeric value on the wire for format to set.

Returns
TypeDescription
SummaryOptions.Builder

This builder for chaining.

setLength(SummaryOptions.Length value)

public SummaryOptions.Builder setLength(SummaryOptions.Length value)

How long the summary should be.

.google.cloud.documentai.v1beta3.SummaryOptions.Length length = 1;

Parameter
NameDescription
valueSummaryOptions.Length

The length to set.

Returns
TypeDescription
SummaryOptions.Builder

This builder for chaining.

setLengthValue(int value)

public SummaryOptions.Builder setLengthValue(int value)

How long the summary should be.

.google.cloud.documentai.v1beta3.SummaryOptions.Length length = 1;

Parameter
NameDescription
valueint

The enum numeric value on the wire for length to set.

Returns
TypeDescription
SummaryOptions.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SummaryOptions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SummaryOptions.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SummaryOptions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SummaryOptions.Builder
Overrides