public static final class OutputConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<OutputConfig.Builder> implements OutputConfigOrBuilder
The desired output location and metadata.Protobuf type
google.cloud.vision.v1p4beta1.OutputConfig| Modifier and Type | Method and Description |
|---|---|
OutputConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
OutputConfig |
build() |
OutputConfig |
buildPartial() |
OutputConfig.Builder |
clear() |
OutputConfig.Builder |
clearBatchSize()
The max number of response protos to put into each output JSON file on
Google Cloud Storage.
|
OutputConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
OutputConfig.Builder |
clearGcsDestination()
The Google Cloud Storage location to write the output(s) to.
|
OutputConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
OutputConfig.Builder |
clone() |
int |
getBatchSize()
The max number of response protos to put into each output JSON file on
Google Cloud Storage.
|
OutputConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
GcsDestination |
getGcsDestination()
The Google Cloud Storage location to write the output(s) to.
|
GcsDestination.Builder |
getGcsDestinationBuilder()
The Google Cloud Storage location to write the output(s) to.
|
GcsDestinationOrBuilder |
getGcsDestinationOrBuilder()
The Google Cloud Storage location to write the output(s) to.
|
boolean |
hasGcsDestination()
The Google Cloud Storage location to write the output(s) to.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
OutputConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
OutputConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
OutputConfig.Builder |
mergeFrom(OutputConfig other) |
OutputConfig.Builder |
mergeGcsDestination(GcsDestination value)
The Google Cloud Storage location to write the output(s) to.
|
OutputConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
OutputConfig.Builder |
setBatchSize(int value)
The max number of response protos to put into each output JSON file on
Google Cloud Storage.
|
OutputConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
OutputConfig.Builder |
setGcsDestination(GcsDestination.Builder builderForValue)
The Google Cloud Storage location to write the output(s) to.
|
OutputConfig.Builder |
setGcsDestination(GcsDestination value)
The Google Cloud Storage location to write the output(s) to.
|
OutputConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
OutputConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<OutputConfig.Builder>public OutputConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<OutputConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<OutputConfig.Builder>public OutputConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic OutputConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic OutputConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic OutputConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<OutputConfig.Builder>public OutputConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<OutputConfig.Builder>public OutputConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<OutputConfig.Builder>public OutputConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<OutputConfig.Builder>public OutputConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OutputConfig.Builder>public OutputConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OutputConfig.Builder>public OutputConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<OutputConfig.Builder>public OutputConfig.Builder mergeFrom(OutputConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<OutputConfig.Builder>public OutputConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<OutputConfig.Builder>IOExceptionpublic boolean hasGcsDestination()
The Google Cloud Storage location to write the output(s) to.
.google.cloud.vision.v1p4beta1.GcsDestination gcs_destination = 1;hasGcsDestination in interface OutputConfigOrBuilderpublic GcsDestination getGcsDestination()
The Google Cloud Storage location to write the output(s) to.
.google.cloud.vision.v1p4beta1.GcsDestination gcs_destination = 1;getGcsDestination in interface OutputConfigOrBuilderpublic OutputConfig.Builder setGcsDestination(GcsDestination value)
The Google Cloud Storage location to write the output(s) to.
.google.cloud.vision.v1p4beta1.GcsDestination gcs_destination = 1;public OutputConfig.Builder setGcsDestination(GcsDestination.Builder builderForValue)
The Google Cloud Storage location to write the output(s) to.
.google.cloud.vision.v1p4beta1.GcsDestination gcs_destination = 1;public OutputConfig.Builder mergeGcsDestination(GcsDestination value)
The Google Cloud Storage location to write the output(s) to.
.google.cloud.vision.v1p4beta1.GcsDestination gcs_destination = 1;public OutputConfig.Builder clearGcsDestination()
The Google Cloud Storage location to write the output(s) to.
.google.cloud.vision.v1p4beta1.GcsDestination gcs_destination = 1;public GcsDestination.Builder getGcsDestinationBuilder()
The Google Cloud Storage location to write the output(s) to.
.google.cloud.vision.v1p4beta1.GcsDestination gcs_destination = 1;public GcsDestinationOrBuilder getGcsDestinationOrBuilder()
The Google Cloud Storage location to write the output(s) to.
.google.cloud.vision.v1p4beta1.GcsDestination gcs_destination = 1;getGcsDestinationOrBuilder in interface OutputConfigOrBuilderpublic int getBatchSize()
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;getBatchSize in interface OutputConfigOrBuilderpublic OutputConfig.Builder setBatchSize(int value)
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;value - The batchSize to set.public OutputConfig.Builder clearBatchSize()
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;public final OutputConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<OutputConfig.Builder>public final OutputConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<OutputConfig.Builder>Copyright © 2023 Google LLC. All rights reserved.