Class ProcessDocumentResponse.Builder (2.49.0)

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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ProcessDocumentResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ProcessDocumentResponse.Builder
Overrides

build()

public ProcessDocumentResponse build()
Returns
Type Description
ProcessDocumentResponse

buildPartial()

public ProcessDocumentResponse buildPartial()
Returns
Type Description
ProcessDocumentResponse

clear()

public ProcessDocumentResponse.Builder clear()
Returns
Type Description
ProcessDocumentResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ProcessDocumentResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ProcessDocumentResponse.Builder
Overrides

clearInputConfig()

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
Type Description
ProcessDocumentResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ProcessDocumentResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ProcessDocumentResponse.Builder
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
Type Description
ProcessDocumentResponse.Builder

clone()

public ProcessDocumentResponse.Builder clone()
Returns
Type Description
ProcessDocumentResponse.Builder
Overrides

getDefaultInstanceForType()

public ProcessDocumentResponse getDefaultInstanceForType()
Returns
Type Description
ProcessDocumentResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getInputConfig()

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
Type Description
InputConfig

The inputConfig.

getInputConfigBuilder()

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
Type Description
InputConfig.Builder

getInputConfigOrBuilder()

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
Type Description
InputConfigOrBuilder

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
Type Description
OutputConfig

The outputConfig.

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
Type Description
OutputConfig.Builder

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
Type Description
OutputConfigOrBuilder

hasInputConfig()

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
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ProcessDocumentResponse other)

public ProcessDocumentResponse.Builder mergeFrom(ProcessDocumentResponse other)
Parameter
Name Description
other ProcessDocumentResponse
Returns
Type Description
ProcessDocumentResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ProcessDocumentResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProcessDocumentResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ProcessDocumentResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ProcessDocumentResponse.Builder
Overrides

mergeInputConfig(InputConfig value)

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
Name Description
value InputConfig
Returns
Type Description
ProcessDocumentResponse.Builder

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
Name Description
value OutputConfig
Returns
Type Description
ProcessDocumentResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ProcessDocumentResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ProcessDocumentResponse.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ProcessDocumentResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ProcessDocumentResponse.Builder
Overrides

setInputConfig(InputConfig value)

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
Name Description
value InputConfig
Returns
Type Description
ProcessDocumentResponse.Builder

setInputConfig(InputConfig.Builder builderForValue)

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
Name Description
builderForValue InputConfig.Builder
Returns
Type Description
ProcessDocumentResponse.Builder

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
Name Description
value OutputConfig
Returns
Type Description
ProcessDocumentResponse.Builder

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
Name Description
builderForValue OutputConfig.Builder
Returns
Type Description
ProcessDocumentResponse.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ProcessDocumentResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ProcessDocumentResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ProcessDocumentResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ProcessDocumentResponse.Builder
Overrides