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 Type
    Method
    Description
     
     
     
    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.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    Required.
    com.google.protobuf.ByteString
    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.
    com.google.protobuf.ByteString
    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.
    The schema details mapping to the key.
    The schema details mapping to the key.
    boolean
    The schema details mapping to the key.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    The schema details mapping to the key.
    setKey(String value)
    Required.
    setKeyBytes(com.google.protobuf.ByteString value)
    Required.
    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.
    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.
    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, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<DataSchema.Builder>
    • clear

      public DataSchema.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<DataSchema.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<DataSchema.Builder>
    • getDefaultInstanceForType

      public DataSchema getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public DataSchema build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public DataSchema buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public DataSchema.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DataSchema.Builder>
    • mergeFrom

      public DataSchema.Builder mergeFrom(DataSchema other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DataSchema.Builder>
      Throws:
      IOException
    • 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;
      Specified by:
      getName in interface DataSchemaOrBuilder
      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:
      getNameBytes in interface DataSchemaOrBuilder
      Returns:
      The bytes for name.
    • setName

      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;
      Parameters:
      value - The name to set.
      Returns:
      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:
      This builder for chaining.
    • setNameBytes

      public DataSchema.Builder 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.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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][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:
      getKey in interface DataSchemaOrBuilder
      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:
      getKeyBytes in interface DataSchemaOrBuilder
      Returns:
      The bytes for key.
    • setKey

      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][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

      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][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

      public DataSchema.Builder setKeyBytes(com.google.protobuf.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][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:
      hasSchemaDetails in interface DataSchemaOrBuilder
      Returns:
      Whether the schemaDetails field is set.
    • getSchemaDetails

      public DataSchemaDetails getSchemaDetails()
       The schema details mapping to the key.
       
      .google.cloud.visionai.v1.DataSchemaDetails schema_details = 3;
      Specified by:
      getSchemaDetails in interface DataSchemaOrBuilder
      Returns:
      The schemaDetails.
    • setSchemaDetails

      public DataSchema.Builder setSchemaDetails(DataSchemaDetails value)
       The schema details mapping to the key.
       
      .google.cloud.visionai.v1.DataSchemaDetails schema_details = 3;
    • setSchemaDetails

      public DataSchema.Builder setSchemaDetails(DataSchemaDetails.Builder builderForValue)
       The schema details mapping to the key.
       
      .google.cloud.visionai.v1.DataSchemaDetails schema_details = 3;
    • mergeSchemaDetails

      public DataSchema.Builder mergeSchemaDetails(DataSchemaDetails value)
       The schema details mapping to the key.
       
      .google.cloud.visionai.v1.DataSchemaDetails schema_details = 3;
    • clearSchemaDetails

      public DataSchema.Builder clearSchemaDetails()
       The schema details mapping to the key.
       
      .google.cloud.visionai.v1.DataSchemaDetails schema_details = 3;
    • getSchemaDetailsBuilder

      public DataSchemaDetails.Builder getSchemaDetailsBuilder()
       The schema details mapping to the key.
       
      .google.cloud.visionai.v1.DataSchemaDetails schema_details = 3;
    • getSchemaDetailsOrBuilder

      public DataSchemaDetailsOrBuilder getSchemaDetailsOrBuilder()
       The schema details mapping to the key.
       
      .google.cloud.visionai.v1.DataSchemaDetails schema_details = 3;
      Specified by:
      getSchemaDetailsOrBuilder in interface DataSchemaOrBuilder