Class DatasetSchema.Builder (2.43.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DatasetSchema build()
Returns
TypeDescription
DatasetSchema

buildPartial()

public DatasetSchema buildPartial()
Returns
TypeDescription
DatasetSchema

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public DatasetSchema getDefaultInstanceForType()
Returns
TypeDescription
DatasetSchema

getDescriptorForType()

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

getName()

public String getName()

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

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

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

string name = 1;

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

Whether the documentSchema field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueDocumentSchema
Returns
TypeDescription
DatasetSchema.Builder

mergeFrom(DatasetSchema other)

public DatasetSchema.Builder mergeFrom(DatasetSchema other)
Parameter
NameDescription
otherDatasetSchema
Returns
TypeDescription
DatasetSchema.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DatasetSchema.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueDocumentSchema
Returns
TypeDescription
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
NameDescription
builderForValueDocumentSchema.Builder
Returns
TypeDescription
DatasetSchema.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The name to set.

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

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DatasetSchema.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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