Package com.google.cloud.dataplex.v1
Class Schema.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
- com.google.cloud.dataplex.v1.Schema.Builder
-
- All Implemented Interfaces:
SchemaOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Schema
public static final class Schema.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder> implements SchemaOrBuilder
Schema information describing the structure and layout of the data.
Protobuf typegoogle.cloud.dataplex.v1.Schema
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
clear
public Schema.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
getDefaultInstanceForType
public Schema getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Schema build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Schema buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Schema.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
setField
public Schema.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
clearField
public Schema.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
clearOneof
public Schema.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
setRepeatedField
public Schema.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
addRepeatedField
public Schema.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
mergeFrom
public Schema.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Schema.Builder>
-
mergeFrom
public Schema.Builder mergeFrom(Schema other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
mergeFrom
public Schema.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Schema.Builder>
- Throws:
IOException
-
getUserManaged
public boolean getUserManaged()
Required. Set to `true` if user-managed or `false` if managed by Dataplex. The default is `false` (managed by Dataplex). - Set to `false`to enable Dataplex discovery to update the schema. including new data discovery, schema inference, and schema evolution. Users retain the ability to input and edit the schema. Dataplex treats schema input by the user as though produced by a previous Dataplex discovery operation, and it will evolve the schema and take action based on that treatment. - Set to `true` to fully manage the entity schema. This setting guarantees that Dataplex will not change schema fields.
bool user_managed = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getUserManaged
in interfaceSchemaOrBuilder
- Returns:
- The userManaged.
-
setUserManaged
public Schema.Builder setUserManaged(boolean value)
Required. Set to `true` if user-managed or `false` if managed by Dataplex. The default is `false` (managed by Dataplex). - Set to `false`to enable Dataplex discovery to update the schema. including new data discovery, schema inference, and schema evolution. Users retain the ability to input and edit the schema. Dataplex treats schema input by the user as though produced by a previous Dataplex discovery operation, and it will evolve the schema and take action based on that treatment. - Set to `true` to fully manage the entity schema. This setting guarantees that Dataplex will not change schema fields.
bool user_managed = 1 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
value
- The userManaged to set.- Returns:
- This builder for chaining.
-
clearUserManaged
public Schema.Builder clearUserManaged()
Required. Set to `true` if user-managed or `false` if managed by Dataplex. The default is `false` (managed by Dataplex). - Set to `false`to enable Dataplex discovery to update the schema. including new data discovery, schema inference, and schema evolution. Users retain the ability to input and edit the schema. Dataplex treats schema input by the user as though produced by a previous Dataplex discovery operation, and it will evolve the schema and take action based on that treatment. - Set to `true` to fully manage the entity schema. This setting guarantees that Dataplex will not change schema fields.
bool user_managed = 1 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- This builder for chaining.
-
getFieldsList
public List<Schema.SchemaField> getFieldsList()
Optional. The sequence of fields describing data in table entities. **Note:** BigQuery SchemaFields are immutable.
repeated .google.cloud.dataplex.v1.Schema.SchemaField fields = 2 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getFieldsList
in interfaceSchemaOrBuilder
-
getFieldsCount
public int getFieldsCount()
Optional. The sequence of fields describing data in table entities. **Note:** BigQuery SchemaFields are immutable.
repeated .google.cloud.dataplex.v1.Schema.SchemaField fields = 2 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getFieldsCount
in interfaceSchemaOrBuilder
-
getFields
public Schema.SchemaField getFields(int index)
Optional. The sequence of fields describing data in table entities. **Note:** BigQuery SchemaFields are immutable.
repeated .google.cloud.dataplex.v1.Schema.SchemaField fields = 2 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getFields
in interfaceSchemaOrBuilder
-
setFields
public Schema.Builder setFields(int index, Schema.SchemaField value)
Optional. The sequence of fields describing data in table entities. **Note:** BigQuery SchemaFields are immutable.
repeated .google.cloud.dataplex.v1.Schema.SchemaField fields = 2 [(.google.api.field_behavior) = OPTIONAL];
-
setFields
public Schema.Builder setFields(int index, Schema.SchemaField.Builder builderForValue)
Optional. The sequence of fields describing data in table entities. **Note:** BigQuery SchemaFields are immutable.
repeated .google.cloud.dataplex.v1.Schema.SchemaField fields = 2 [(.google.api.field_behavior) = OPTIONAL];
-
addFields
public Schema.Builder addFields(Schema.SchemaField value)
Optional. The sequence of fields describing data in table entities. **Note:** BigQuery SchemaFields are immutable.
repeated .google.cloud.dataplex.v1.Schema.SchemaField fields = 2 [(.google.api.field_behavior) = OPTIONAL];
-
addFields
public Schema.Builder addFields(int index, Schema.SchemaField value)
Optional. The sequence of fields describing data in table entities. **Note:** BigQuery SchemaFields are immutable.
repeated .google.cloud.dataplex.v1.Schema.SchemaField fields = 2 [(.google.api.field_behavior) = OPTIONAL];
-
addFields
public Schema.Builder addFields(Schema.SchemaField.Builder builderForValue)
Optional. The sequence of fields describing data in table entities. **Note:** BigQuery SchemaFields are immutable.
repeated .google.cloud.dataplex.v1.Schema.SchemaField fields = 2 [(.google.api.field_behavior) = OPTIONAL];
-
addFields
public Schema.Builder addFields(int index, Schema.SchemaField.Builder builderForValue)
Optional. The sequence of fields describing data in table entities. **Note:** BigQuery SchemaFields are immutable.
repeated .google.cloud.dataplex.v1.Schema.SchemaField fields = 2 [(.google.api.field_behavior) = OPTIONAL];
-
addAllFields
public Schema.Builder addAllFields(Iterable<? extends Schema.SchemaField> values)
Optional. The sequence of fields describing data in table entities. **Note:** BigQuery SchemaFields are immutable.
repeated .google.cloud.dataplex.v1.Schema.SchemaField fields = 2 [(.google.api.field_behavior) = OPTIONAL];
-
clearFields
public Schema.Builder clearFields()
Optional. The sequence of fields describing data in table entities. **Note:** BigQuery SchemaFields are immutable.
repeated .google.cloud.dataplex.v1.Schema.SchemaField fields = 2 [(.google.api.field_behavior) = OPTIONAL];
-
removeFields
public Schema.Builder removeFields(int index)
Optional. The sequence of fields describing data in table entities. **Note:** BigQuery SchemaFields are immutable.
repeated .google.cloud.dataplex.v1.Schema.SchemaField fields = 2 [(.google.api.field_behavior) = OPTIONAL];
-
getFieldsBuilder
public Schema.SchemaField.Builder getFieldsBuilder(int index)
Optional. The sequence of fields describing data in table entities. **Note:** BigQuery SchemaFields are immutable.
repeated .google.cloud.dataplex.v1.Schema.SchemaField fields = 2 [(.google.api.field_behavior) = OPTIONAL];
-
getFieldsOrBuilder
public Schema.SchemaFieldOrBuilder getFieldsOrBuilder(int index)
Optional. The sequence of fields describing data in table entities. **Note:** BigQuery SchemaFields are immutable.
repeated .google.cloud.dataplex.v1.Schema.SchemaField fields = 2 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getFieldsOrBuilder
in interfaceSchemaOrBuilder
-
getFieldsOrBuilderList
public List<? extends Schema.SchemaFieldOrBuilder> getFieldsOrBuilderList()
Optional. The sequence of fields describing data in table entities. **Note:** BigQuery SchemaFields are immutable.
repeated .google.cloud.dataplex.v1.Schema.SchemaField fields = 2 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getFieldsOrBuilderList
in interfaceSchemaOrBuilder
-
addFieldsBuilder
public Schema.SchemaField.Builder addFieldsBuilder()
Optional. The sequence of fields describing data in table entities. **Note:** BigQuery SchemaFields are immutable.
repeated .google.cloud.dataplex.v1.Schema.SchemaField fields = 2 [(.google.api.field_behavior) = OPTIONAL];
-
addFieldsBuilder
public Schema.SchemaField.Builder addFieldsBuilder(int index)
Optional. The sequence of fields describing data in table entities. **Note:** BigQuery SchemaFields are immutable.
repeated .google.cloud.dataplex.v1.Schema.SchemaField fields = 2 [(.google.api.field_behavior) = OPTIONAL];
-
getFieldsBuilderList
public List<Schema.SchemaField.Builder> getFieldsBuilderList()
Optional. The sequence of fields describing data in table entities. **Note:** BigQuery SchemaFields are immutable.
repeated .google.cloud.dataplex.v1.Schema.SchemaField fields = 2 [(.google.api.field_behavior) = OPTIONAL];
-
getPartitionFieldsList
public List<Schema.PartitionField> getPartitionFieldsList()
Optional. The sequence of fields describing the partition structure in entities. If this field is empty, there are no partitions within the data.
repeated .google.cloud.dataplex.v1.Schema.PartitionField partition_fields = 3 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getPartitionFieldsList
in interfaceSchemaOrBuilder
-
getPartitionFieldsCount
public int getPartitionFieldsCount()
Optional. The sequence of fields describing the partition structure in entities. If this field is empty, there are no partitions within the data.
repeated .google.cloud.dataplex.v1.Schema.PartitionField partition_fields = 3 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getPartitionFieldsCount
in interfaceSchemaOrBuilder
-
getPartitionFields
public Schema.PartitionField getPartitionFields(int index)
Optional. The sequence of fields describing the partition structure in entities. If this field is empty, there are no partitions within the data.
repeated .google.cloud.dataplex.v1.Schema.PartitionField partition_fields = 3 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getPartitionFields
in interfaceSchemaOrBuilder
-
setPartitionFields
public Schema.Builder setPartitionFields(int index, Schema.PartitionField value)
Optional. The sequence of fields describing the partition structure in entities. If this field is empty, there are no partitions within the data.
repeated .google.cloud.dataplex.v1.Schema.PartitionField partition_fields = 3 [(.google.api.field_behavior) = OPTIONAL];
-
setPartitionFields
public Schema.Builder setPartitionFields(int index, Schema.PartitionField.Builder builderForValue)
Optional. The sequence of fields describing the partition structure in entities. If this field is empty, there are no partitions within the data.
repeated .google.cloud.dataplex.v1.Schema.PartitionField partition_fields = 3 [(.google.api.field_behavior) = OPTIONAL];
-
addPartitionFields
public Schema.Builder addPartitionFields(Schema.PartitionField value)
Optional. The sequence of fields describing the partition structure in entities. If this field is empty, there are no partitions within the data.
repeated .google.cloud.dataplex.v1.Schema.PartitionField partition_fields = 3 [(.google.api.field_behavior) = OPTIONAL];
-
addPartitionFields
public Schema.Builder addPartitionFields(int index, Schema.PartitionField value)
Optional. The sequence of fields describing the partition structure in entities. If this field is empty, there are no partitions within the data.
repeated .google.cloud.dataplex.v1.Schema.PartitionField partition_fields = 3 [(.google.api.field_behavior) = OPTIONAL];
-
addPartitionFields
public Schema.Builder addPartitionFields(Schema.PartitionField.Builder builderForValue)
Optional. The sequence of fields describing the partition structure in entities. If this field is empty, there are no partitions within the data.
repeated .google.cloud.dataplex.v1.Schema.PartitionField partition_fields = 3 [(.google.api.field_behavior) = OPTIONAL];
-
addPartitionFields
public Schema.Builder addPartitionFields(int index, Schema.PartitionField.Builder builderForValue)
Optional. The sequence of fields describing the partition structure in entities. If this field is empty, there are no partitions within the data.
repeated .google.cloud.dataplex.v1.Schema.PartitionField partition_fields = 3 [(.google.api.field_behavior) = OPTIONAL];
-
addAllPartitionFields
public Schema.Builder addAllPartitionFields(Iterable<? extends Schema.PartitionField> values)
Optional. The sequence of fields describing the partition structure in entities. If this field is empty, there are no partitions within the data.
repeated .google.cloud.dataplex.v1.Schema.PartitionField partition_fields = 3 [(.google.api.field_behavior) = OPTIONAL];
-
clearPartitionFields
public Schema.Builder clearPartitionFields()
Optional. The sequence of fields describing the partition structure in entities. If this field is empty, there are no partitions within the data.
repeated .google.cloud.dataplex.v1.Schema.PartitionField partition_fields = 3 [(.google.api.field_behavior) = OPTIONAL];
-
removePartitionFields
public Schema.Builder removePartitionFields(int index)
Optional. The sequence of fields describing the partition structure in entities. If this field is empty, there are no partitions within the data.
repeated .google.cloud.dataplex.v1.Schema.PartitionField partition_fields = 3 [(.google.api.field_behavior) = OPTIONAL];
-
getPartitionFieldsBuilder
public Schema.PartitionField.Builder getPartitionFieldsBuilder(int index)
Optional. The sequence of fields describing the partition structure in entities. If this field is empty, there are no partitions within the data.
repeated .google.cloud.dataplex.v1.Schema.PartitionField partition_fields = 3 [(.google.api.field_behavior) = OPTIONAL];
-
getPartitionFieldsOrBuilder
public Schema.PartitionFieldOrBuilder getPartitionFieldsOrBuilder(int index)
Optional. The sequence of fields describing the partition structure in entities. If this field is empty, there are no partitions within the data.
repeated .google.cloud.dataplex.v1.Schema.PartitionField partition_fields = 3 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getPartitionFieldsOrBuilder
in interfaceSchemaOrBuilder
-
getPartitionFieldsOrBuilderList
public List<? extends Schema.PartitionFieldOrBuilder> getPartitionFieldsOrBuilderList()
Optional. The sequence of fields describing the partition structure in entities. If this field is empty, there are no partitions within the data.
repeated .google.cloud.dataplex.v1.Schema.PartitionField partition_fields = 3 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getPartitionFieldsOrBuilderList
in interfaceSchemaOrBuilder
-
addPartitionFieldsBuilder
public Schema.PartitionField.Builder addPartitionFieldsBuilder()
Optional. The sequence of fields describing the partition structure in entities. If this field is empty, there are no partitions within the data.
repeated .google.cloud.dataplex.v1.Schema.PartitionField partition_fields = 3 [(.google.api.field_behavior) = OPTIONAL];
-
addPartitionFieldsBuilder
public Schema.PartitionField.Builder addPartitionFieldsBuilder(int index)
Optional. The sequence of fields describing the partition structure in entities. If this field is empty, there are no partitions within the data.
repeated .google.cloud.dataplex.v1.Schema.PartitionField partition_fields = 3 [(.google.api.field_behavior) = OPTIONAL];
-
getPartitionFieldsBuilderList
public List<Schema.PartitionField.Builder> getPartitionFieldsBuilderList()
Optional. The sequence of fields describing the partition structure in entities. If this field is empty, there are no partitions within the data.
repeated .google.cloud.dataplex.v1.Schema.PartitionField partition_fields = 3 [(.google.api.field_behavior) = OPTIONAL];
-
getPartitionStyleValue
public int getPartitionStyleValue()
Optional. The structure of paths containing partition data within the entity.
.google.cloud.dataplex.v1.Schema.PartitionStyle partition_style = 4 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getPartitionStyleValue
in interfaceSchemaOrBuilder
- Returns:
- The enum numeric value on the wire for partitionStyle.
-
setPartitionStyleValue
public Schema.Builder setPartitionStyleValue(int value)
Optional. The structure of paths containing partition data within the entity.
.google.cloud.dataplex.v1.Schema.PartitionStyle partition_style = 4 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The enum numeric value on the wire for partitionStyle to set.- Returns:
- This builder for chaining.
-
getPartitionStyle
public Schema.PartitionStyle getPartitionStyle()
Optional. The structure of paths containing partition data within the entity.
.google.cloud.dataplex.v1.Schema.PartitionStyle partition_style = 4 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getPartitionStyle
in interfaceSchemaOrBuilder
- Returns:
- The partitionStyle.
-
setPartitionStyle
public Schema.Builder setPartitionStyle(Schema.PartitionStyle value)
Optional. The structure of paths containing partition data within the entity.
.google.cloud.dataplex.v1.Schema.PartitionStyle partition_style = 4 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The partitionStyle to set.- Returns:
- This builder for chaining.
-
clearPartitionStyle
public Schema.Builder clearPartitionStyle()
Optional. The structure of paths containing partition data within the entity.
.google.cloud.dataplex.v1.Schema.PartitionStyle partition_style = 4 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- This builder for chaining.
-
setUnknownFields
public final Schema.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
mergeUnknownFields
public final Schema.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
-