Class GetDocumentResponse.Builder (2.50.0)

public static final class GetDocumentResponse.Builder extends GeneratedMessageV3.Builder<GetDocumentResponse.Builder> implements GetDocumentResponseOrBuilder

Protobuf type google.cloud.documentai.v1beta3.GetDocumentResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetDocumentResponse build()
Returns
Type Description
GetDocumentResponse

buildPartial()

public GetDocumentResponse buildPartial()
Returns
Type Description
GetDocumentResponse

clear()

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

clearDocument()

public GetDocumentResponse.Builder clearDocument()

.google.cloud.documentai.v1beta3.Document document = 1;

Returns
Type Description
GetDocumentResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public GetDocumentResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GetDocumentResponse.Builder
Overrides

clone()

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

getDefaultInstanceForType()

public GetDocumentResponse getDefaultInstanceForType()
Returns
Type Description
GetDocumentResponse

getDescriptorForType()

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

getDocument()

public Document getDocument()

.google.cloud.documentai.v1beta3.Document document = 1;

Returns
Type Description
Document

The document.

getDocumentBuilder()

public Document.Builder getDocumentBuilder()

.google.cloud.documentai.v1beta3.Document document = 1;

Returns
Type Description
Document.Builder

getDocumentOrBuilder()

public DocumentOrBuilder getDocumentOrBuilder()

.google.cloud.documentai.v1beta3.Document document = 1;

Returns
Type Description
DocumentOrBuilder

hasDocument()

public boolean hasDocument()

.google.cloud.documentai.v1beta3.Document document = 1;

Returns
Type Description
boolean

Whether the document field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDocument(Document value)

public GetDocumentResponse.Builder mergeDocument(Document value)

.google.cloud.documentai.v1beta3.Document document = 1;

Parameter
Name Description
value Document
Returns
Type Description
GetDocumentResponse.Builder

mergeFrom(GetDocumentResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDocument(Document value)

public GetDocumentResponse.Builder setDocument(Document value)

.google.cloud.documentai.v1beta3.Document document = 1;

Parameter
Name Description
value Document
Returns
Type Description
GetDocumentResponse.Builder

setDocument(Document.Builder builderForValue)

public GetDocumentResponse.Builder setDocument(Document.Builder builderForValue)

.google.cloud.documentai.v1beta3.Document document = 1;

Parameter
Name Description
builderForValue Document.Builder
Returns
Type Description
GetDocumentResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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