Package com.google.cloud.visionai.v1
Class DataSchema.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DataSchema.Builder>
com.google.cloud.visionai.v1.DataSchema.Builder
- All Implemented Interfaces:
DataSchemaOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DataSchema
public static final class DataSchema.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()clearKey()Required.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.The schema details mapping to the key.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetKey()Required.com.google.protobuf.ByteStringRequired.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.com.google.protobuf.ByteStringResource 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.The schema details mapping to the key.The schema details mapping to the key.The schema details mapping to the key.booleanThe schema details mapping to the key.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(DataSchema other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The schema details mapping to the key.Required.setKeyBytes(com.google.protobuf.ByteString value) Required.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.setNameBytes(com.google.protobuf.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.The schema details mapping to the key.setSchemaDetails(DataSchemaDetails.Builder builderForValue) The schema details mapping to the key.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DataSchema.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DataSchema.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<DataSchema.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DataSchema.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DataSchema.Builder>
-
mergeFrom
public DataSchema.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DataSchema.Builder>- Throws:
IOException
-
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;- Specified by:
getNamein interfaceDataSchemaOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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;- Specified by:
getNameBytesin interfaceDataSchemaOrBuilder- Returns:
- The bytes for name.
-
setName
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;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNameBytes
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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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][0-9]-/. The first character must be a letter, the last could be a letter or a number.
string key = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getKeyin interfaceDataSchemaOrBuilder- Returns:
- The key.
-
getKeyBytes
public com.google.protobuf.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][0-9]-/. The first character must be a letter, the last could be a letter or a number.
string key = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getKeyBytesin interfaceDataSchemaOrBuilder- Returns:
- The bytes for key.
-
setKey
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][0-9]-/. The first character must be a letter, the last could be a letter or a number.
string key = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The key to set.- Returns:
- This builder for chaining.
-
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][0-9]-/. 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:
- This builder for chaining.
-
setKeyBytes
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][0-9]-/. The first character must be a letter, the last could be a letter or a number.
string key = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for key to set.- Returns:
- This builder for chaining.
-
hasSchemaDetails
public boolean hasSchemaDetails()The schema details mapping to the key.
.google.cloud.visionai.v1.DataSchemaDetails schema_details = 3;- Specified by:
hasSchemaDetailsin interfaceDataSchemaOrBuilder- Returns:
- Whether the schemaDetails field is set.
-
getSchemaDetails
The schema details mapping to the key.
.google.cloud.visionai.v1.DataSchemaDetails schema_details = 3;- Specified by:
getSchemaDetailsin interfaceDataSchemaOrBuilder- Returns:
- The schemaDetails.
-
setSchemaDetails
The schema details mapping to the key.
.google.cloud.visionai.v1.DataSchemaDetails schema_details = 3; -
setSchemaDetails
The schema details mapping to the key.
.google.cloud.visionai.v1.DataSchemaDetails schema_details = 3; -
mergeSchemaDetails
The schema details mapping to the key.
.google.cloud.visionai.v1.DataSchemaDetails schema_details = 3; -
clearSchemaDetails
The schema details mapping to the key.
.google.cloud.visionai.v1.DataSchemaDetails schema_details = 3; -
getSchemaDetailsBuilder
The schema details mapping to the key.
.google.cloud.visionai.v1.DataSchemaDetails schema_details = 3; -
getSchemaDetailsOrBuilder
The schema details mapping to the key.
.google.cloud.visionai.v1.DataSchemaDetails schema_details = 3;- Specified by:
getSchemaDetailsOrBuilderin interfaceDataSchemaOrBuilder
-