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.documentai.v1beta1.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 |
clearDestination() |
OutputConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
OutputConfig.Builder |
clearGcsDestination()
The Google Cloud Storage location to write the output to.
|
OutputConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
OutputConfig.Builder |
clearPagesPerShard()
The max number of pages to include into each output Document shard JSON on
Google Cloud Storage.
|
OutputConfig.Builder |
clone() |
OutputConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
OutputConfig.DestinationCase |
getDestinationCase() |
GcsDestination |
getGcsDestination()
The Google Cloud Storage location to write the output to.
|
GcsDestination.Builder |
getGcsDestinationBuilder()
The Google Cloud Storage location to write the output to.
|
GcsDestinationOrBuilder |
getGcsDestinationOrBuilder()
The Google Cloud Storage location to write the output to.
|
int |
getPagesPerShard()
The max number of pages to include into each output Document shard JSON on
Google Cloud Storage.
|
boolean |
hasGcsDestination()
The Google Cloud Storage location to write the output 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 to.
|
OutputConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
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 to.
|
OutputConfig.Builder |
setGcsDestination(GcsDestination value)
The Google Cloud Storage location to write the output to.
|
OutputConfig.Builder |
setPagesPerShard(int value)
The max number of pages to include into each output Document shard JSON on
Google Cloud Storage.
|
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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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 OutputConfig.DestinationCase getDestinationCase()
getDestinationCase in interface OutputConfigOrBuilderpublic OutputConfig.Builder clearDestination()
public boolean hasGcsDestination()
The Google Cloud Storage location to write the output to.
.google.cloud.documentai.v1beta1.GcsDestination gcs_destination = 1;hasGcsDestination in interface OutputConfigOrBuilderpublic GcsDestination getGcsDestination()
The Google Cloud Storage location to write the output to.
.google.cloud.documentai.v1beta1.GcsDestination gcs_destination = 1;getGcsDestination in interface OutputConfigOrBuilderpublic OutputConfig.Builder setGcsDestination(GcsDestination value)
The Google Cloud Storage location to write the output to.
.google.cloud.documentai.v1beta1.GcsDestination gcs_destination = 1;public OutputConfig.Builder setGcsDestination(GcsDestination.Builder builderForValue)
The Google Cloud Storage location to write the output to.
.google.cloud.documentai.v1beta1.GcsDestination gcs_destination = 1;public OutputConfig.Builder mergeGcsDestination(GcsDestination value)
The Google Cloud Storage location to write the output to.
.google.cloud.documentai.v1beta1.GcsDestination gcs_destination = 1;public OutputConfig.Builder clearGcsDestination()
The Google Cloud Storage location to write the output to.
.google.cloud.documentai.v1beta1.GcsDestination gcs_destination = 1;public GcsDestination.Builder getGcsDestinationBuilder()
The Google Cloud Storage location to write the output to.
.google.cloud.documentai.v1beta1.GcsDestination gcs_destination = 1;public GcsDestinationOrBuilder getGcsDestinationOrBuilder()
The Google Cloud Storage location to write the output to.
.google.cloud.documentai.v1beta1.GcsDestination gcs_destination = 1;getGcsDestinationOrBuilder in interface OutputConfigOrBuilderpublic int getPagesPerShard()
The max number of pages to include into each output Document shard JSON 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 parsed pages will be produced. If `pages_per_shard` = 20, then 5 Document shard JSON files each containing 20 parsed pages will be written under the prefix [OutputConfig.gcs_destination.uri][] and suffix pages-x-to-y.json where x and y are 1-indexed page numbers. Example GCS outputs with 157 pages and pages_per_shard = 50: <prefix>pages-001-to-050.json <prefix>pages-051-to-100.json <prefix>pages-101-to-150.json <prefix>pages-151-to-157.json
int32 pages_per_shard = 2;getPagesPerShard in interface OutputConfigOrBuilderpublic OutputConfig.Builder setPagesPerShard(int value)
The max number of pages to include into each output Document shard JSON 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 parsed pages will be produced. If `pages_per_shard` = 20, then 5 Document shard JSON files each containing 20 parsed pages will be written under the prefix [OutputConfig.gcs_destination.uri][] and suffix pages-x-to-y.json where x and y are 1-indexed page numbers. Example GCS outputs with 157 pages and pages_per_shard = 50: <prefix>pages-001-to-050.json <prefix>pages-051-to-100.json <prefix>pages-101-to-150.json <prefix>pages-151-to-157.json
int32 pages_per_shard = 2;value - The pagesPerShard to set.public OutputConfig.Builder clearPagesPerShard()
The max number of pages to include into each output Document shard JSON 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 parsed pages will be produced. If `pages_per_shard` = 20, then 5 Document shard JSON files each containing 20 parsed pages will be written under the prefix [OutputConfig.gcs_destination.uri][] and suffix pages-x-to-y.json where x and y are 1-indexed page numbers. Example GCS outputs with 157 pages and pages_per_shard = 50: <prefix>pages-001-to-050.json <prefix>pages-051-to-100.json <prefix>pages-101-to-150.json <prefix>pages-151-to-157.json
int32 pages_per_shard = 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 © 2024 Google LLC. All rights reserved.