Class 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.GeneratedMessageV3.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 Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Schema.PartitionField.Builder>
      • clear

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public Schema.PartitionField.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Schema.PartitionField.Builder>
      • clearField

        public Schema.PartitionField.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Schema.PartitionField.Builder>
      • clearOneof

        public Schema.PartitionField.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Schema.PartitionField.Builder>
      • setRepeatedField

        public Schema.PartitionField.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                              int index,
                                                              Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Schema.PartitionField.Builder>
      • addRepeatedField

        public Schema.PartitionField.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                              Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Schema.PartitionField.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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

        public Schema.PartitionField.Builder setType​(Schema.Type 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 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.
      • setUnknownFields

        public final Schema.PartitionField.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Schema.PartitionField.Builder>
      • mergeUnknownFields

        public final Schema.PartitionField.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Schema.PartitionField.Builder>