Class DocumentId.Builder (2.36.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DocumentId build()
Returns
TypeDescription
DocumentId

buildPartial()

public DocumentId buildPartial()
Returns
TypeDescription
DocumentId

clear()

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

clearField(Descriptors.FieldDescriptor field)

public DocumentId.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
DocumentId.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public DocumentId.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
DocumentId.Builder

clearType()

public DocumentId.Builder clearType()
Returns
TypeDescription
DocumentId.Builder

clearUnmanagedDocId()

public DocumentId.Builder clearUnmanagedDocId()

A document id within unmanaged dataset.

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

Returns
TypeDescription
DocumentId.Builder

clone()

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

getDefaultInstanceForType()

public DocumentId getDefaultInstanceForType()
Returns
TypeDescription
DocumentId

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
RevisionRefOrBuilder

getTypeCase()

public DocumentId.TypeCase getTypeCase()
Returns
TypeDescription
DocumentId.TypeCase

getUnmanagedDocId()

public DocumentId.UnmanagedDocumentId getUnmanagedDocId()

A document id within unmanaged dataset.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the unmanagedDocId field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DocumentId other)

public DocumentId.Builder mergeFrom(DocumentId other)
Parameter
NameDescription
otherDocumentId
Returns
TypeDescription
DocumentId.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public DocumentId.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueDocumentId.GCSManagedDocumentId
Returns
TypeDescription
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
NameDescription
valueRevisionRef
Returns
TypeDescription
DocumentId.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DocumentId.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueDocumentId.UnmanagedDocumentId
Returns
TypeDescription
DocumentId.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DocumentId.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueDocumentId.GCSManagedDocumentId
Returns
TypeDescription
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
NameDescription
builderForValueDocumentId.GCSManagedDocumentId.Builder
Returns
TypeDescription
DocumentId.Builder

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

public DocumentId.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueRevisionRef
Returns
TypeDescription
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
NameDescription
builderForValueRevisionRef.Builder
Returns
TypeDescription
DocumentId.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final DocumentId.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueDocumentId.UnmanagedDocumentId
Returns
TypeDescription
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
NameDescription
builderForValueDocumentId.UnmanagedDocumentId.Builder
Returns
TypeDescription
DocumentId.Builder