Class OutputConfig.Builder (3.78.0)

publicstaticfinalclass OutputConfig.BuilderextendsGeneratedMessageV3.Builder<OutputConfig.Builder>implementsOutputConfigOrBuilder

The desired output location and metadata.

Protobuf type google.cloud.vision.v1.OutputConfig

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicOutputConfig.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OutputConfig.Builder
Overrides

build()

publicOutputConfigbuild()
Returns
Type Description
OutputConfig

buildPartial()

publicOutputConfigbuildPartial()
Returns
Type Description
OutputConfig

clear()

publicOutputConfig.Builderclear()
Returns
Type Description
OutputConfig.Builder
Overrides

clearBatchSize()

publicOutputConfig.BuilderclearBatchSize()

The max number of response protos to put into each output JSON file on Google Cloud Storage. The valid range is [1, 100]. If not specified, the default value is 20.

For example, for one pdf file with 100 pages, 100 response protos will be generated. If batch_size = 20, then 5 json files each containing 20 response protos will be written under the prefix gcs_destination.uri.

Currently, batch_size only applies to GcsDestination, with potential future support for other output configurations.

int32 batch_size = 2;

Returns
Type Description
OutputConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicOutputConfig.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
OutputConfig.Builder
Overrides

clearGcsDestination()

publicOutputConfig.BuilderclearGcsDestination()

The Google Cloud Storage location to write the output(s) to.

.google.cloud.vision.v1.GcsDestination gcs_destination = 1;

Returns
Type Description
OutputConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

publicOutputConfig.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
OutputConfig.Builder
Overrides

clone()

publicOutputConfig.Builderclone()
Returns
Type Description
OutputConfig.Builder
Overrides

getBatchSize()

publicintgetBatchSize()

The max number of response protos to put into each output JSON file on Google Cloud Storage. The valid range is [1, 100]. If not specified, the default value is 20.

For example, for one pdf file with 100 pages, 100 response protos will be generated. If batch_size = 20, then 5 json files each containing 20 response protos will be written under the prefix gcs_destination.uri.

Currently, batch_size only applies to GcsDestination, with potential future support for other output configurations.

int32 batch_size = 2;

Returns
Type Description
int

The batchSize.

getDefaultInstanceForType()

publicOutputConfiggetDefaultInstanceForType()
Returns
Type Description
OutputConfig

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGcsDestination()

publicGcsDestinationgetGcsDestination()

The Google Cloud Storage location to write the output(s) to.

.google.cloud.vision.v1.GcsDestination gcs_destination = 1;

Returns
Type Description
GcsDestination

The gcsDestination.

getGcsDestinationBuilder()

publicGcsDestination.BuildergetGcsDestinationBuilder()

The Google Cloud Storage location to write the output(s) to.

.google.cloud.vision.v1.GcsDestination gcs_destination = 1;

Returns
Type Description
GcsDestination.Builder

getGcsDestinationOrBuilder()

publicGcsDestinationOrBuildergetGcsDestinationOrBuilder()

The Google Cloud Storage location to write the output(s) to.

.google.cloud.vision.v1.GcsDestination gcs_destination = 1;

Returns
Type Description
GcsDestinationOrBuilder

hasGcsDestination()

publicbooleanhasGcsDestination()

The Google Cloud Storage location to write the output(s) to.

.google.cloud.vision.v1.GcsDestination gcs_destination = 1;

Returns
Type Description
boolean

Whether the gcsDestination field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(OutputConfig other)

publicOutputConfig.BuildermergeFrom(OutputConfigother)
Parameter
Name Description
other OutputConfig
Returns
Type Description
OutputConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicOutputConfig.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OutputConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicOutputConfig.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
OutputConfig.Builder
Overrides

mergeGcsDestination(GcsDestination value)

publicOutputConfig.BuildermergeGcsDestination(GcsDestinationvalue)

The Google Cloud Storage location to write the output(s) to.

.google.cloud.vision.v1.GcsDestination gcs_destination = 1;

Parameter
Name Description
value GcsDestination
Returns
Type Description
OutputConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalOutputConfig.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OutputConfig.Builder
Overrides

setBatchSize(int value)

publicOutputConfig.BuildersetBatchSize(intvalue)

The max number of response protos to put into each output JSON file on Google Cloud Storage. The valid range is [1, 100]. If not specified, the default value is 20.

For example, for one pdf file with 100 pages, 100 response protos will be generated. If batch_size = 20, then 5 json files each containing 20 response protos will be written under the prefix gcs_destination.uri.

Currently, batch_size only applies to GcsDestination, with potential future support for other output configurations.

int32 batch_size = 2;

Parameter
Name Description
value int

The batchSize to set.

Returns
Type Description
OutputConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicOutputConfig.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OutputConfig.Builder
Overrides

setGcsDestination(GcsDestination value)

publicOutputConfig.BuildersetGcsDestination(GcsDestinationvalue)

The Google Cloud Storage location to write the output(s) to.

.google.cloud.vision.v1.GcsDestination gcs_destination = 1;

Parameter
Name Description
value GcsDestination
Returns
Type Description
OutputConfig.Builder

setGcsDestination(GcsDestination.Builder builderForValue)

publicOutputConfig.BuildersetGcsDestination(GcsDestination.BuilderbuilderForValue)

The Google Cloud Storage location to write the output(s) to.

.google.cloud.vision.v1.GcsDestination gcs_destination = 1;

Parameter
Name Description
builderForValue GcsDestination.Builder
Returns
Type Description
OutputConfig.Builder

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

publicOutputConfig.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
OutputConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalOutputConfig.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OutputConfig.Builder
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年11月19日 UTC.