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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DocumentId.UnmanagedDocumentId build()
Returns
TypeDescription
DocumentId.UnmanagedDocumentId

buildPartial()

public DocumentId.UnmanagedDocumentId buildPartial()
Returns
TypeDescription
DocumentId.UnmanagedDocumentId

clear()

public DocumentId.UnmanagedDocumentId.Builder clear()
Returns
TypeDescription
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
TypeDescription
DocumentId.UnmanagedDocumentId.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public DocumentId.UnmanagedDocumentId getDefaultInstanceForType()
Returns
TypeDescription
DocumentId.UnmanagedDocumentId

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDocId()

public String getDocId()

Required. The id of the document.

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

Returns
TypeDescription
String

The docId.

getDocIdBytes()

public ByteString getDocIdBytes()

Required. The id of the document.

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

Returns
TypeDescription
ByteString

The bytes for docId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DocumentId.UnmanagedDocumentId other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The docId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for docId to set.

Returns
TypeDescription
DocumentId.UnmanagedDocumentId.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setUnknownFields(UnknownFieldSet unknownFields)

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