public static final class DataSchema.Builder extends GeneratedMessage.Builder<DataSchema.Builder> implements DataSchemaOrBuilderData schema indicates how the user specified annotation is interpreted in the system.
Protobuf type google.cloud.visionai.v1.DataSchema
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DataSchema.BuilderImplements
DataSchemaOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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. |
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 |
|
getDefaultInstanceForType()
public DataSchema getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DataSchema |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DataSchema.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DataSchema.Builder |
|
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 |
|
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 |
StringThe 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 |
ByteStringThe 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 |
StringThe 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 |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
DataSchema.Builder |
This builder for chaining. |
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 |
|