Class Schema.PartitionField.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Schema.PartitionField.Builder>
com.google.cloud.dataplex.v1.Schema.PartitionField.Builder
All Implemented Interfaces:
Schema.PartitionFieldOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Schema.PartitionField

public static final class Schema.PartitionField.Builder extends com.google.protobuf.GeneratedMessage.Builder<Schema.PartitionField.Builder> implements Schema.PartitionFieldOrBuilder
 Represents a key field within the entity's partition structure. You could
 have up to 20 partition fields, but only the first 10 partitions have the
 filtering ability due to performance consideration. **Note:**
 Partition fields are immutable.
 
Protobuf type google.cloud.dataplex.v1.Schema.PartitionField
  • 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<Schema.PartitionField.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<Schema.PartitionField.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<Schema.PartitionField.Builder>
    • getDefaultInstanceForType

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

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

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

      public Schema.PartitionField.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<Schema.PartitionField.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Schema.PartitionField.Builder>
    • mergeFrom

      public Schema.PartitionField.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<Schema.PartitionField.Builder>
      Throws:
      IOException
    • getName

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

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

      public Schema.PartitionField.Builder setName(String value)
       Required. Partition field name must consist of letters, numbers, and
       underscores only, with a maximum of length of 256 characters, and must
       begin with a letter or underscore..
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Schema.PartitionField.Builder clearName()
       Required. Partition field name must consist of letters, numbers, and
       underscores only, with a maximum of length of 256 characters, and must
       begin with a letter or underscore..
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Schema.PartitionField.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. Partition field name must consist of letters, numbers, and
       underscores only, with a maximum of length of 256 characters, and must
       begin with a letter or underscore..
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getTypeValue

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

      public Schema.PartitionField.Builder setTypeValue(int value)
       Required. Immutable. The type of field.
       
      .google.cloud.dataplex.v1.Schema.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

      public Schema.Type getType()
       Required. Immutable. The type of field.
       
      .google.cloud.dataplex.v1.Schema.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getType in interface Schema.PartitionFieldOrBuilder
      Returns:
      The type.
    • setType

       Required. Immutable. The type of field.
       
      .google.cloud.dataplex.v1.Schema.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public Schema.PartitionField.Builder clearType()
       Required. Immutable. The type of field.
       
      .google.cloud.dataplex.v1.Schema.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.