public static final class ProcessOptions.Builder extends GeneratedMessageV3.Builder<ProcessOptions.Builder> implements ProcessOptionsOrBuilder
Options for Process API
Protobuf type google.cloud.documentai.v1.ProcessOptions
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ProcessOptions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ProcessOptions build()
buildPartial()
public ProcessOptions buildPartial()
clear()
public ProcessOptions.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ProcessOptions.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOcrConfig()
public ProcessOptions.Builder clearOcrConfig()
Only applicable to OCR_PROCESSOR
. Returns error if set on other
processor types.
.google.cloud.documentai.v1.OcrConfig ocr_config = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public ProcessOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public ProcessOptions.Builder clone()
Overrides
getDefaultInstanceForType()
public ProcessOptions getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getOcrConfig()
public OcrConfig getOcrConfig()
Only applicable to OCR_PROCESSOR
. Returns error if set on other
processor types.
.google.cloud.documentai.v1.OcrConfig ocr_config = 1;
Returns |
---|
Type | Description |
OcrConfig | The ocrConfig.
|
getOcrConfigBuilder()
public OcrConfig.Builder getOcrConfigBuilder()
Only applicable to OCR_PROCESSOR
. Returns error if set on other
processor types.
.google.cloud.documentai.v1.OcrConfig ocr_config = 1;
getOcrConfigOrBuilder()
public OcrConfigOrBuilder getOcrConfigOrBuilder()
Only applicable to OCR_PROCESSOR
. Returns error if set on other
processor types.
.google.cloud.documentai.v1.OcrConfig ocr_config = 1;
hasOcrConfig()
public boolean hasOcrConfig()
Only applicable to OCR_PROCESSOR
. Returns error if set on other
processor types.
.google.cloud.documentai.v1.OcrConfig ocr_config = 1;
Returns |
---|
Type | Description |
boolean | Whether the ocrConfig field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ProcessOptions other)
public ProcessOptions.Builder mergeFrom(ProcessOptions other)
public ProcessOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ProcessOptions.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeOcrConfig(OcrConfig value)
public ProcessOptions.Builder mergeOcrConfig(OcrConfig value)
Only applicable to OCR_PROCESSOR
. Returns error if set on other
processor types.
.google.cloud.documentai.v1.OcrConfig ocr_config = 1;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ProcessOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public ProcessOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setOcrConfig(OcrConfig value)
public ProcessOptions.Builder setOcrConfig(OcrConfig value)
Only applicable to OCR_PROCESSOR
. Returns error if set on other
processor types.
.google.cloud.documentai.v1.OcrConfig ocr_config = 1;
setOcrConfig(OcrConfig.Builder builderForValue)
public ProcessOptions.Builder setOcrConfig(OcrConfig.Builder builderForValue)
Only applicable to OCR_PROCESSOR
. Returns error if set on other
processor types.
.google.cloud.documentai.v1.OcrConfig ocr_config = 1;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ProcessOptions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ProcessOptions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides