Class DatasetSchema.Builder (2.87.0)

public static final class DatasetSchema.Builder extends GeneratedMessage.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

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

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.

clearSatisfiesPzi()

public DatasetSchema.Builder clearSatisfiesPzi()

Output only. Reserved for future use.

bool satisfies_pzi = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DatasetSchema.Builder

This builder for chaining.

clearSatisfiesPzs()

public DatasetSchema.Builder clearSatisfiesPzs()

Output only. Reserved for future use.

bool satisfies_pzs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DatasetSchema.Builder

This builder for chaining.

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.

getSatisfiesPzi()

public boolean getSatisfiesPzi()

Output only. Reserved for future use.

bool satisfies_pzi = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The satisfiesPzi.

getSatisfiesPzs()

public boolean getSatisfiesPzs()

Output only. Reserved for future use.

bool satisfies_pzs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The satisfiesPzs.

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 GeneratedMessage.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

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

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.

setSatisfiesPzi(boolean value)

public DatasetSchema.Builder setSatisfiesPzi(boolean value)

Output only. Reserved for future use.

bool satisfies_pzi = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The satisfiesPzi to set.

Returns
Type Description
DatasetSchema.Builder

This builder for chaining.

setSatisfiesPzs(boolean value)

public DatasetSchema.Builder setSatisfiesPzs(boolean value)

Output only. Reserved for future use.

bool satisfies_pzs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The satisfiesPzs to set.

Returns
Type Description
DatasetSchema.Builder

This builder for chaining.