public static final class OutputConfig.Builder extends GeneratedMessageV3.Builder<OutputConfig.Builder> implements OutputConfigOrBuilder
The desired output location and metadata.Protobuf type
google.cloud.vision.v1p2beta1.OutputConfig
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<OutputConfig.Builder>
public OutputConfig.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<OutputConfig.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<OutputConfig.Builder>
public OutputConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public OutputConfig build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public OutputConfig buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public OutputConfig.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<OutputConfig.Builder>
public OutputConfig.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<OutputConfig.Builder>
public OutputConfig.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<OutputConfig.Builder>
public OutputConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<OutputConfig.Builder>
public OutputConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<OutputConfig.Builder>
public OutputConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<OutputConfig.Builder>
public OutputConfig.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<OutputConfig.Builder>
public OutputConfig.Builder mergeFrom(OutputConfig other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<OutputConfig.Builder>
public OutputConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<OutputConfig.Builder>
java.io.IOException
public boolean hasGcsDestination()
The Google Cloud Storage location to write the output(s) to.
.google.cloud.vision.v1p2beta1.GcsDestination gcs_destination = 1;
hasGcsDestination
in interface OutputConfigOrBuilder
public GcsDestination getGcsDestination()
The Google Cloud Storage location to write the output(s) to.
.google.cloud.vision.v1p2beta1.GcsDestination gcs_destination = 1;
getGcsDestination
in interface OutputConfigOrBuilder
public OutputConfig.Builder setGcsDestination(GcsDestination value)
The Google Cloud Storage location to write the output(s) to.
.google.cloud.vision.v1p2beta1.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.v1p2beta1.GcsDestination gcs_destination = 1;
public OutputConfig.Builder mergeGcsDestination(GcsDestination value)
The Google Cloud Storage location to write the output(s) to.
.google.cloud.vision.v1p2beta1.GcsDestination gcs_destination = 1;
public OutputConfig.Builder clearGcsDestination()
The Google Cloud Storage location to write the output(s) to.
.google.cloud.vision.v1p2beta1.GcsDestination gcs_destination = 1;
public GcsDestination.Builder getGcsDestinationBuilder()
The Google Cloud Storage location to write the output(s) to.
.google.cloud.vision.v1p2beta1.GcsDestination gcs_destination = 1;
public GcsDestinationOrBuilder getGcsDestinationOrBuilder()
The Google Cloud Storage location to write the output(s) to.
.google.cloud.vision.v1p2beta1.GcsDestination gcs_destination = 1;
getGcsDestinationOrBuilder
in interface OutputConfigOrBuilder
public int getBatchSize()
The max number of response protos to put into each output JSON file on GCS. 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 OutputConfigOrBuilder
public OutputConfig.Builder setBatchSize(int value)
The max number of response protos to put into each output JSON file on GCS. 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 OutputConfig.Builder clearBatchSize()
The max number of response protos to put into each output JSON file on GCS. 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(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<OutputConfig.Builder>
public final OutputConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<OutputConfig.Builder>