public static final class ProcessDocumentResponse.Builder extends GeneratedMessageV3.Builder<ProcessDocumentResponse.Builder> implements ProcessDocumentResponseOrBuilder
Response to a single document processing request.
Protobuf type google.cloud.documentai.v1beta1.ProcessDocumentResponse
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ProcessDocumentResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ProcessDocumentResponse build()
Returns
buildPartial()
public ProcessDocumentResponse buildPartial()
Returns
clear()
public ProcessDocumentResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ProcessDocumentResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public ProcessDocumentResponse.Builder clearInputConfig()
Information about the input file. This is the same as the corresponding
input config in the request.
.google.cloud.documentai.v1beta1.InputConfig input_config = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public ProcessDocumentResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearOutputConfig()
public ProcessDocumentResponse.Builder clearOutputConfig()
The output location of the parsed responses. The responses are written to
this location as JSON-serialized Document
objects.
.google.cloud.documentai.v1beta1.OutputConfig output_config = 2;
Returns
clone()
public ProcessDocumentResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ProcessDocumentResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public InputConfig getInputConfig()
Information about the input file. This is the same as the corresponding
input config in the request.
.google.cloud.documentai.v1beta1.InputConfig input_config = 1;
Returns
public InputConfig.Builder getInputConfigBuilder()
Information about the input file. This is the same as the corresponding
input config in the request.
.google.cloud.documentai.v1beta1.InputConfig input_config = 1;
Returns
public InputConfigOrBuilder getInputConfigOrBuilder()
Information about the input file. This is the same as the corresponding
input config in the request.
.google.cloud.documentai.v1beta1.InputConfig input_config = 1;
Returns
getOutputConfig()
public OutputConfig getOutputConfig()
The output location of the parsed responses. The responses are written to
this location as JSON-serialized Document
objects.
.google.cloud.documentai.v1beta1.OutputConfig output_config = 2;
Returns
getOutputConfigBuilder()
public OutputConfig.Builder getOutputConfigBuilder()
The output location of the parsed responses. The responses are written to
this location as JSON-serialized Document
objects.
.google.cloud.documentai.v1beta1.OutputConfig output_config = 2;
Returns
getOutputConfigOrBuilder()
public OutputConfigOrBuilder getOutputConfigOrBuilder()
The output location of the parsed responses. The responses are written to
this location as JSON-serialized Document
objects.
.google.cloud.documentai.v1beta1.OutputConfig output_config = 2;
Returns
public boolean hasInputConfig()
Information about the input file. This is the same as the corresponding
input config in the request.
.google.cloud.documentai.v1beta1.InputConfig input_config = 1;
Returns
Type | Description |
boolean | Whether the inputConfig field is set.
|
hasOutputConfig()
public boolean hasOutputConfig()
The output location of the parsed responses. The responses are written to
this location as JSON-serialized Document
objects.
.google.cloud.documentai.v1beta1.OutputConfig output_config = 2;
Returns
Type | Description |
boolean | Whether the outputConfig field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ProcessDocumentResponse other)
public ProcessDocumentResponse.Builder mergeFrom(ProcessDocumentResponse other)
Parameter
Returns
public ProcessDocumentResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ProcessDocumentResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public ProcessDocumentResponse.Builder mergeInputConfig(InputConfig value)
Information about the input file. This is the same as the corresponding
input config in the request.
.google.cloud.documentai.v1beta1.InputConfig input_config = 1;
Parameter
Returns
mergeOutputConfig(OutputConfig value)
public ProcessDocumentResponse.Builder mergeOutputConfig(OutputConfig value)
The output location of the parsed responses. The responses are written to
this location as JSON-serialized Document
objects.
.google.cloud.documentai.v1beta1.OutputConfig output_config = 2;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ProcessDocumentResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public ProcessDocumentResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public ProcessDocumentResponse.Builder setInputConfig(InputConfig value)
Information about the input file. This is the same as the corresponding
input config in the request.
.google.cloud.documentai.v1beta1.InputConfig input_config = 1;
Parameter
Returns
public ProcessDocumentResponse.Builder setInputConfig(InputConfig.Builder builderForValue)
Information about the input file. This is the same as the corresponding
input config in the request.
.google.cloud.documentai.v1beta1.InputConfig input_config = 1;
Parameter
Returns
setOutputConfig(OutputConfig value)
public ProcessDocumentResponse.Builder setOutputConfig(OutputConfig value)
The output location of the parsed responses. The responses are written to
this location as JSON-serialized Document
objects.
.google.cloud.documentai.v1beta1.OutputConfig output_config = 2;
Parameter
Returns
setOutputConfig(OutputConfig.Builder builderForValue)
public ProcessDocumentResponse.Builder setOutputConfig(OutputConfig.Builder builderForValue)
The output location of the parsed responses. The responses are written to
this location as JSON-serialized Document
objects.
.google.cloud.documentai.v1beta1.OutputConfig output_config = 2;
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ProcessDocumentResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ProcessDocumentResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides