Class GetDocumentResponse.Builder (2.35.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GetDocumentResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GetDocumentResponse.Builder
Overrides

build()

public GetDocumentResponse build()
Returns
TypeDescription
GetDocumentResponse

buildPartial()

public GetDocumentResponse buildPartial()
Returns
TypeDescription
GetDocumentResponse

clear()

public GetDocumentResponse.Builder clear()
Returns
TypeDescription
GetDocumentResponse.Builder
Overrides

clearDocument()

public GetDocumentResponse.Builder clearDocument()

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

Returns
TypeDescription
GetDocumentResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public GetDocumentResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
GetDocumentResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public GetDocumentResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
GetDocumentResponse.Builder
Overrides

clone()

public GetDocumentResponse.Builder clone()
Returns
TypeDescription
GetDocumentResponse.Builder
Overrides

getDefaultInstanceForType()

public GetDocumentResponse getDefaultInstanceForType()
Returns
TypeDescription
GetDocumentResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDocument()

public Document getDocument()

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

Returns
TypeDescription
Document

The document.

getDocumentBuilder()

public Document.Builder getDocumentBuilder()

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

Returns
TypeDescription
Document.Builder

getDocumentOrBuilder()

public DocumentOrBuilder getDocumentOrBuilder()

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

Returns
TypeDescription
DocumentOrBuilder

hasDocument()

public boolean hasDocument()

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

Returns
TypeDescription
boolean

Whether the document field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDocument(Document value)

public GetDocumentResponse.Builder mergeDocument(Document value)

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

Parameter
NameDescription
valueDocument
Returns
TypeDescription
GetDocumentResponse.Builder

mergeFrom(GetDocumentResponse other)

public GetDocumentResponse.Builder mergeFrom(GetDocumentResponse other)
Parameter
NameDescription
otherGetDocumentResponse
Returns
TypeDescription
GetDocumentResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GetDocumentResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GetDocumentResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public GetDocumentResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
GetDocumentResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GetDocumentResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GetDocumentResponse.Builder
Overrides

setDocument(Document value)

public GetDocumentResponse.Builder setDocument(Document value)

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

Parameter
NameDescription
valueDocument
Returns
TypeDescription
GetDocumentResponse.Builder

setDocument(Document.Builder builderForValue)

public GetDocumentResponse.Builder setDocument(Document.Builder builderForValue)

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

Parameter
NameDescription
builderForValueDocument.Builder
Returns
TypeDescription
GetDocumentResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public GetDocumentResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GetDocumentResponse.Builder
Overrides

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

public GetDocumentResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GetDocumentResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GetDocumentResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GetDocumentResponse.Builder
Overrides