Class DocumentId.Builder (2.48.0)

public static final class DocumentId.Builder extends GeneratedMessageV3.Builder<DocumentId.Builder> implements DocumentIdOrBuilder

Document Identifier.

Protobuf type google.cloud.documentai.v1beta3.DocumentId

Implements

DocumentIdOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DocumentId build()
Returns
Type Description
DocumentId

buildPartial()

public DocumentId buildPartial()
Returns
Type Description
DocumentId

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearGcsManagedDocId()

public DocumentId.Builder clearGcsManagedDocId()

A document id within user-managed Cloud Storage.

.google.cloud.documentai.v1beta3.DocumentId.GCSManagedDocumentId gcs_managed_doc_id = 1;

Returns
Type Description
DocumentId.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRevisionRef()

public DocumentId.Builder clearRevisionRef()

Points to a specific revision of the document if set.

.google.cloud.documentai.v1beta3.RevisionRef revision_ref = 3;

Returns
Type Description
DocumentId.Builder

clearType()

public DocumentId.Builder clearType()
Returns
Type Description
DocumentId.Builder

clearUnmanagedDocId()

public DocumentId.Builder clearUnmanagedDocId()

A document id within unmanaged dataset.

.google.cloud.documentai.v1beta3.DocumentId.UnmanagedDocumentId unmanaged_doc_id = 4;

Returns
Type Description
DocumentId.Builder

clone()

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

getDefaultInstanceForType()

public DocumentId getDefaultInstanceForType()
Returns
Type Description
DocumentId

getDescriptorForType()

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

getGcsManagedDocId()

public DocumentId.GCSManagedDocumentId getGcsManagedDocId()

A document id within user-managed Cloud Storage.

.google.cloud.documentai.v1beta3.DocumentId.GCSManagedDocumentId gcs_managed_doc_id = 1;

Returns
Type Description
DocumentId.GCSManagedDocumentId

The gcsManagedDocId.

getGcsManagedDocIdBuilder()

public DocumentId.GCSManagedDocumentId.Builder getGcsManagedDocIdBuilder()

A document id within user-managed Cloud Storage.

.google.cloud.documentai.v1beta3.DocumentId.GCSManagedDocumentId gcs_managed_doc_id = 1;

Returns
Type Description
DocumentId.GCSManagedDocumentId.Builder

getGcsManagedDocIdOrBuilder()

public DocumentId.GCSManagedDocumentIdOrBuilder getGcsManagedDocIdOrBuilder()

A document id within user-managed Cloud Storage.

.google.cloud.documentai.v1beta3.DocumentId.GCSManagedDocumentId gcs_managed_doc_id = 1;

Returns
Type Description
DocumentId.GCSManagedDocumentIdOrBuilder

getRevisionRef()

public RevisionRef getRevisionRef()

Points to a specific revision of the document if set.

.google.cloud.documentai.v1beta3.RevisionRef revision_ref = 3;

Returns
Type Description
RevisionRef

The revisionRef.

getRevisionRefBuilder()

public RevisionRef.Builder getRevisionRefBuilder()

Points to a specific revision of the document if set.

.google.cloud.documentai.v1beta3.RevisionRef revision_ref = 3;

Returns
Type Description
RevisionRef.Builder

getRevisionRefOrBuilder()

public RevisionRefOrBuilder getRevisionRefOrBuilder()

Points to a specific revision of the document if set.

.google.cloud.documentai.v1beta3.RevisionRef revision_ref = 3;

Returns
Type Description
RevisionRefOrBuilder

getTypeCase()

public DocumentId.TypeCase getTypeCase()
Returns
Type Description
DocumentId.TypeCase

getUnmanagedDocId()

public DocumentId.UnmanagedDocumentId getUnmanagedDocId()

A document id within unmanaged dataset.

.google.cloud.documentai.v1beta3.DocumentId.UnmanagedDocumentId unmanaged_doc_id = 4;

Returns
Type Description
DocumentId.UnmanagedDocumentId

The unmanagedDocId.

getUnmanagedDocIdBuilder()

public DocumentId.UnmanagedDocumentId.Builder getUnmanagedDocIdBuilder()

A document id within unmanaged dataset.

.google.cloud.documentai.v1beta3.DocumentId.UnmanagedDocumentId unmanaged_doc_id = 4;

Returns
Type Description
DocumentId.UnmanagedDocumentId.Builder

getUnmanagedDocIdOrBuilder()

public DocumentId.UnmanagedDocumentIdOrBuilder getUnmanagedDocIdOrBuilder()

A document id within unmanaged dataset.

.google.cloud.documentai.v1beta3.DocumentId.UnmanagedDocumentId unmanaged_doc_id = 4;

Returns
Type Description
DocumentId.UnmanagedDocumentIdOrBuilder

hasGcsManagedDocId()

public boolean hasGcsManagedDocId()

A document id within user-managed Cloud Storage.

.google.cloud.documentai.v1beta3.DocumentId.GCSManagedDocumentId gcs_managed_doc_id = 1;

Returns
Type Description
boolean

Whether the gcsManagedDocId field is set.

hasRevisionRef()

public boolean hasRevisionRef()

Points to a specific revision of the document if set.

.google.cloud.documentai.v1beta3.RevisionRef revision_ref = 3;

Returns
Type Description
boolean

Whether the revisionRef field is set.

hasUnmanagedDocId()

public boolean hasUnmanagedDocId()

A document id within unmanaged dataset.

.google.cloud.documentai.v1beta3.DocumentId.UnmanagedDocumentId unmanaged_doc_id = 4;

Returns
Type Description
boolean

Whether the unmanagedDocId field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DocumentId other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGcsManagedDocId(DocumentId.GCSManagedDocumentId value)

public DocumentId.Builder mergeGcsManagedDocId(DocumentId.GCSManagedDocumentId value)

A document id within user-managed Cloud Storage.

.google.cloud.documentai.v1beta3.DocumentId.GCSManagedDocumentId gcs_managed_doc_id = 1;

Parameter
Name Description
value DocumentId.GCSManagedDocumentId
Returns
Type Description
DocumentId.Builder

mergeRevisionRef(RevisionRef value)

public DocumentId.Builder mergeRevisionRef(RevisionRef value)

Points to a specific revision of the document if set.

.google.cloud.documentai.v1beta3.RevisionRef revision_ref = 3;

Parameter
Name Description
value RevisionRef
Returns
Type Description
DocumentId.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUnmanagedDocId(DocumentId.UnmanagedDocumentId value)

public DocumentId.Builder mergeUnmanagedDocId(DocumentId.UnmanagedDocumentId value)

A document id within unmanaged dataset.

.google.cloud.documentai.v1beta3.DocumentId.UnmanagedDocumentId unmanaged_doc_id = 4;

Parameter
Name Description
value DocumentId.UnmanagedDocumentId
Returns
Type Description
DocumentId.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setGcsManagedDocId(DocumentId.GCSManagedDocumentId value)

public DocumentId.Builder setGcsManagedDocId(DocumentId.GCSManagedDocumentId value)

A document id within user-managed Cloud Storage.

.google.cloud.documentai.v1beta3.DocumentId.GCSManagedDocumentId gcs_managed_doc_id = 1;

Parameter
Name Description
value DocumentId.GCSManagedDocumentId
Returns
Type Description
DocumentId.Builder

setGcsManagedDocId(DocumentId.GCSManagedDocumentId.Builder builderForValue)

public DocumentId.Builder setGcsManagedDocId(DocumentId.GCSManagedDocumentId.Builder builderForValue)

A document id within user-managed Cloud Storage.

.google.cloud.documentai.v1beta3.DocumentId.GCSManagedDocumentId gcs_managed_doc_id = 1;

Parameter
Name Description
builderForValue DocumentId.GCSManagedDocumentId.Builder
Returns
Type Description
DocumentId.Builder

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

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

setRevisionRef(RevisionRef value)

public DocumentId.Builder setRevisionRef(RevisionRef value)

Points to a specific revision of the document if set.

.google.cloud.documentai.v1beta3.RevisionRef revision_ref = 3;

Parameter
Name Description
value RevisionRef
Returns
Type Description
DocumentId.Builder

setRevisionRef(RevisionRef.Builder builderForValue)

public DocumentId.Builder setRevisionRef(RevisionRef.Builder builderForValue)

Points to a specific revision of the document if set.

.google.cloud.documentai.v1beta3.RevisionRef revision_ref = 3;

Parameter
Name Description
builderForValue RevisionRef.Builder
Returns
Type Description
DocumentId.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnmanagedDocId(DocumentId.UnmanagedDocumentId value)

public DocumentId.Builder setUnmanagedDocId(DocumentId.UnmanagedDocumentId value)

A document id within unmanaged dataset.

.google.cloud.documentai.v1beta3.DocumentId.UnmanagedDocumentId unmanaged_doc_id = 4;

Parameter
Name Description
value DocumentId.UnmanagedDocumentId
Returns
Type Description
DocumentId.Builder

setUnmanagedDocId(DocumentId.UnmanagedDocumentId.Builder builderForValue)

public DocumentId.Builder setUnmanagedDocId(DocumentId.UnmanagedDocumentId.Builder builderForValue)

A document id within unmanaged dataset.

.google.cloud.documentai.v1beta3.DocumentId.UnmanagedDocumentId unmanaged_doc_id = 4;

Parameter
Name Description
builderForValue DocumentId.UnmanagedDocumentId.Builder
Returns
Type Description
DocumentId.Builder