Class DataSchema.Builder (0.11.0)

public static final class DataSchema.Builder extends GeneratedMessageV3.Builder<DataSchema.Builder> implements DataSchemaOrBuilder

Data schema indicates how the user specified annotation is interpreted in the system.

Protobuf type google.cloud.visionai.v1.DataSchema

Implements

DataSchemaOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DataSchema build()
Returns
Type Description
DataSchema

buildPartial()

public DataSchema buildPartial()
Returns
Type Description
DataSchema

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearKey()

public DataSchema.Builder clearKey()

Required. The key of this data schema. This key should be matching the key of user specified annotation and unique inside corpus. This value can be up to 63 characters, and valid characters are /a-z-/. The first character must be a letter, the last could be a letter or a number.

string key = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DataSchema.Builder

This builder for chaining.

clearName()

public DataSchema.Builder clearName()

Resource name of the data schema in the form of: projects/{project_number}/locations/{location}/corpora/{corpus}/dataSchemas/{data_schema} where {data_schema} part should be the same as the key field below.

string name = 1;

Returns
Type Description
DataSchema.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSchemaDetails()

public DataSchema.Builder clearSchemaDetails()

The schema details mapping to the key.

.google.cloud.visionai.v1.DataSchemaDetails schema_details = 3;

Returns
Type Description
DataSchema.Builder

clone()

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

getDefaultInstanceForType()

public DataSchema getDefaultInstanceForType()
Returns
Type Description
DataSchema

getDescriptorForType()

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

getKey()

public String getKey()

Required. The key of this data schema. This key should be matching the key of user specified annotation and unique inside corpus. This value can be up to 63 characters, and valid characters are /a-z-/. The first character must be a letter, the last could be a letter or a number.

string key = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

Required. The key of this data schema. This key should be matching the key of user specified annotation and unique inside corpus. This value can be up to 63 characters, and valid characters are /a-z-/. The first character must be a letter, the last could be a letter or a number.

string key = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for key.

getName()

public String getName()

Resource name of the data schema in the form of: projects/{project_number}/locations/{location}/corpora/{corpus}/dataSchemas/{data_schema} where {data_schema} part should be the same as the key field below.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Resource name of the data schema in the form of: projects/{project_number}/locations/{location}/corpora/{corpus}/dataSchemas/{data_schema} where {data_schema} part should be the same as the key field below.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getSchemaDetails()

public DataSchemaDetails getSchemaDetails()

The schema details mapping to the key.

.google.cloud.visionai.v1.DataSchemaDetails schema_details = 3;

Returns
Type Description
DataSchemaDetails

The schemaDetails.

getSchemaDetailsBuilder()

public DataSchemaDetails.Builder getSchemaDetailsBuilder()

The schema details mapping to the key.

.google.cloud.visionai.v1.DataSchemaDetails schema_details = 3;

Returns
Type Description
DataSchemaDetails.Builder

getSchemaDetailsOrBuilder()

public DataSchemaDetailsOrBuilder getSchemaDetailsOrBuilder()

The schema details mapping to the key.

.google.cloud.visionai.v1.DataSchemaDetails schema_details = 3;

Returns
Type Description
DataSchemaDetailsOrBuilder

hasSchemaDetails()

public boolean hasSchemaDetails()

The schema details mapping to the key.

.google.cloud.visionai.v1.DataSchemaDetails schema_details = 3;

Returns
Type Description
boolean

Whether the schemaDetails field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DataSchema other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSchemaDetails(DataSchemaDetails value)

public DataSchema.Builder mergeSchemaDetails(DataSchemaDetails value)

The schema details mapping to the key.

.google.cloud.visionai.v1.DataSchemaDetails schema_details = 3;

Parameter
Name Description
value DataSchemaDetails
Returns
Type Description
DataSchema.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setKey(String value)

public DataSchema.Builder setKey(String value)

Required. The key of this data schema. This key should be matching the key of user specified annotation and unique inside corpus. This value can be up to 63 characters, and valid characters are /a-z-/. The first character must be a letter, the last could be a letter or a number.

string key = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The key to set.

Returns
Type Description
DataSchema.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public DataSchema.Builder setKeyBytes(ByteString value)

Required. The key of this data schema. This key should be matching the key of user specified annotation and unique inside corpus. This value can be up to 63 characters, and valid characters are /a-z-/. The first character must be a letter, the last could be a letter or a number.

string key = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for key to set.

Returns
Type Description
DataSchema.Builder

This builder for chaining.

setName(String value)

public DataSchema.Builder setName(String value)

Resource name of the data schema in the form of: projects/{project_number}/locations/{location}/corpora/{corpus}/dataSchemas/{data_schema} where {data_schema} part should be the same as the key field below.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
DataSchema.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DataSchema.Builder setNameBytes(ByteString value)

Resource name of the data schema in the form of: projects/{project_number}/locations/{location}/corpora/{corpus}/dataSchemas/{data_schema} where {data_schema} part should be the same as the key field below.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
DataSchema.Builder

This builder for chaining.

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

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

setSchemaDetails(DataSchemaDetails value)

public DataSchema.Builder setSchemaDetails(DataSchemaDetails value)

The schema details mapping to the key.

.google.cloud.visionai.v1.DataSchemaDetails schema_details = 3;

Parameter
Name Description
value DataSchemaDetails
Returns
Type Description
DataSchema.Builder

setSchemaDetails(DataSchemaDetails.Builder builderForValue)

public DataSchema.Builder setSchemaDetails(DataSchemaDetails.Builder builderForValue)

The schema details mapping to the key.

.google.cloud.visionai.v1.DataSchemaDetails schema_details = 3;

Parameter
Name Description
builderForValue DataSchemaDetails.Builder
Returns
Type Description
DataSchema.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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