Class DatasetSchema.Builder (2.48.0)

public static final class DatasetSchema.Builder extends GeneratedMessageV3.Builder<DatasetSchema.Builder> implements DatasetSchemaOrBuilder

Dataset Schema.

Protobuf type google.cloud.documentai.v1beta3.DatasetSchema

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DatasetSchema build()
Returns
Type Description
DatasetSchema

buildPartial()

public DatasetSchema buildPartial()
Returns
Type Description
DatasetSchema

clear()

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

clearDocumentSchema()

public DatasetSchema.Builder clearDocumentSchema()

Optional. Schema of the dataset.

.google.cloud.documentai.v1beta3.DocumentSchema document_schema = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DatasetSchema.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public DatasetSchema.Builder clearName()

Dataset schema resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema

string name = 1;

Returns
Type Description
DatasetSchema.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public DatasetSchema getDefaultInstanceForType()
Returns
Type Description
DatasetSchema

getDescriptorForType()

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

getDocumentSchema()

public DocumentSchema getDocumentSchema()

Optional. Schema of the dataset.

.google.cloud.documentai.v1beta3.DocumentSchema document_schema = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DocumentSchema

The documentSchema.

getDocumentSchemaBuilder()

public DocumentSchema.Builder getDocumentSchemaBuilder()

Optional. Schema of the dataset.

.google.cloud.documentai.v1beta3.DocumentSchema document_schema = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DocumentSchema.Builder

getDocumentSchemaOrBuilder()

public DocumentSchemaOrBuilder getDocumentSchemaOrBuilder()

Optional. Schema of the dataset.

.google.cloud.documentai.v1beta3.DocumentSchema document_schema = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DocumentSchemaOrBuilder

getName()

public String getName()

Dataset schema resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Dataset schema resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

hasDocumentSchema()

public boolean hasDocumentSchema()

Optional. Schema of the dataset.

.google.cloud.documentai.v1beta3.DocumentSchema document_schema = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the documentSchema field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDocumentSchema(DocumentSchema value)

public DatasetSchema.Builder mergeDocumentSchema(DocumentSchema value)

Optional. Schema of the dataset.

.google.cloud.documentai.v1beta3.DocumentSchema document_schema = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value DocumentSchema
Returns
Type Description
DatasetSchema.Builder

mergeFrom(DatasetSchema other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDocumentSchema(DocumentSchema value)

public DatasetSchema.Builder setDocumentSchema(DocumentSchema value)

Optional. Schema of the dataset.

.google.cloud.documentai.v1beta3.DocumentSchema document_schema = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value DocumentSchema
Returns
Type Description
DatasetSchema.Builder

setDocumentSchema(DocumentSchema.Builder builderForValue)

public DatasetSchema.Builder setDocumentSchema(DocumentSchema.Builder builderForValue)

Optional. Schema of the dataset.

.google.cloud.documentai.v1beta3.DocumentSchema document_schema = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue DocumentSchema.Builder
Returns
Type Description
DatasetSchema.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public DatasetSchema.Builder setName(String value)

Dataset schema resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
DatasetSchema.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DatasetSchema.Builder setNameBytes(ByteString value)

Dataset schema resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
DatasetSchema.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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