Class Schema.SchemaField

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dataplex.v1.Schema.SchemaField
All Implemented Interfaces:
Schema.SchemaFieldOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
Schema

public static final class Schema.SchemaField extends com.google.protobuf.GeneratedMessage implements Schema.SchemaFieldOrBuilder
 Represents a column field within a table schema.
 
Protobuf type google.cloud.dataplex.v1.Schema.SchemaField
See Also:
  • Field Details

  • 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
    • getName

      public String getName()
       Required. The name of the field. Must contain only letters, numbers and
       underscores, with a maximum length of 767 characters,
       and must begin with a letter or underscore.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getName in interface Schema.SchemaFieldOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The name of the field. Must contain only letters, numbers and
       underscores, with a maximum length of 767 characters,
       and must begin with a letter or underscore.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNameBytes in interface Schema.SchemaFieldOrBuilder
      Returns:
      The bytes for name.
    • getDescription

      public String getDescription()
       Optional. User friendly field description. Must be less than or equal to
       1024 characters.
       
      string description = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface Schema.SchemaFieldOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. User friendly field description. Must be less than or equal to
       1024 characters.
       
      string description = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface Schema.SchemaFieldOrBuilder
      Returns:
      The bytes for description.
    • getTypeValue

      public int getTypeValue()
       Required. The type of field.
       
      .google.cloud.dataplex.v1.Schema.Type type = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTypeValue in interface Schema.SchemaFieldOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • getType

      public Schema.Type getType()
       Required. The type of field.
       
      .google.cloud.dataplex.v1.Schema.Type type = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getType in interface Schema.SchemaFieldOrBuilder
      Returns:
      The type.
    • getModeValue

      public int getModeValue()
       Required. Additional field semantics.
       
      .google.cloud.dataplex.v1.Schema.Mode mode = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getModeValue in interface Schema.SchemaFieldOrBuilder
      Returns:
      The enum numeric value on the wire for mode.
    • getMode

      public Schema.Mode getMode()
       Required. Additional field semantics.
       
      .google.cloud.dataplex.v1.Schema.Mode mode = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getMode in interface Schema.SchemaFieldOrBuilder
      Returns:
      The mode.
    • getFieldsList

      public List<Schema.SchemaField> getFieldsList()
       Optional. Any nested field for complex types.
       
      repeated .google.cloud.dataplex.v1.Schema.SchemaField fields = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFieldsList in interface Schema.SchemaFieldOrBuilder
    • getFieldsOrBuilderList

      public List<? extends Schema.SchemaFieldOrBuilder> getFieldsOrBuilderList()
       Optional. Any nested field for complex types.
       
      repeated .google.cloud.dataplex.v1.Schema.SchemaField fields = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFieldsOrBuilderList in interface Schema.SchemaFieldOrBuilder
    • getFieldsCount

      public int getFieldsCount()
       Optional. Any nested field for complex types.
       
      repeated .google.cloud.dataplex.v1.Schema.SchemaField fields = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFieldsCount in interface Schema.SchemaFieldOrBuilder
    • getFields

      public Schema.SchemaField getFields(int index)
       Optional. Any nested field for complex types.
       
      repeated .google.cloud.dataplex.v1.Schema.SchemaField fields = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFields in interface Schema.SchemaFieldOrBuilder
    • getFieldsOrBuilder

      public Schema.SchemaFieldOrBuilder getFieldsOrBuilder(int index)
       Optional. Any nested field for complex types.
       
      repeated .google.cloud.dataplex.v1.Schema.SchemaField fields = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFieldsOrBuilder in interface Schema.SchemaFieldOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Schema.SchemaField parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Schema.SchemaField parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Schema.SchemaField parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Schema.SchemaField parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Schema.SchemaField parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Schema.SchemaField parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Schema.SchemaField parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Schema.SchemaField parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Schema.SchemaField parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Schema.SchemaField parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Schema.SchemaField parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Schema.SchemaField parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Schema.SchemaField.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Schema.SchemaField.Builder newBuilder()
    • newBuilder

      public static Schema.SchemaField.Builder newBuilder(Schema.SchemaField prototype)
    • toBuilder

      public Schema.SchemaField.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Schema.SchemaField.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Schema.SchemaField getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Schema.SchemaField> parser()
    • getParserForType

      public com.google.protobuf.Parser<Schema.SchemaField> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public Schema.SchemaField getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder