Class DocumentId.UnmanagedDocumentId.Builder (2.47.0)

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

Identifies a document uniquely within the scope of a dataset in unmanaged option.

Protobuf type google.cloud.documentai.v1beta3.DocumentId.UnmanagedDocumentId

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DocumentId.UnmanagedDocumentId build()
Returns
Type Description
DocumentId.UnmanagedDocumentId

buildPartial()

public DocumentId.UnmanagedDocumentId buildPartial()
Returns
Type Description
DocumentId.UnmanagedDocumentId

clear()

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

clearDocId()

public DocumentId.UnmanagedDocumentId.Builder clearDocId()

Required. The id of the document.

string doc_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DocumentId.UnmanagedDocumentId.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public DocumentId.UnmanagedDocumentId getDefaultInstanceForType()
Returns
Type Description
DocumentId.UnmanagedDocumentId

getDescriptorForType()

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

getDocId()

public String getDocId()

Required. The id of the document.

string doc_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The docId.

getDocIdBytes()

public ByteString getDocIdBytes()

Required. The id of the document.

string doc_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for docId.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DocumentId.UnmanagedDocumentId other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDocId(String value)

public DocumentId.UnmanagedDocumentId.Builder setDocId(String value)

Required. The id of the document.

string doc_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The docId to set.

Returns
Type Description
DocumentId.UnmanagedDocumentId.Builder

This builder for chaining.

setDocIdBytes(ByteString value)

public DocumentId.UnmanagedDocumentId.Builder setDocIdBytes(ByteString value)

Required. The id of the document.

string doc_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for docId to set.

Returns
Type Description
DocumentId.UnmanagedDocumentId.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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