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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
clear
public Schema.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
getDefaultInstanceForType
public Schema getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Schema build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Schema buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Schema.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
setField
public Schema.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
clearField
public Schema.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
clearOneof
public Schema.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
setRepeatedField
public Schema.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
addRepeatedField
public Schema.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
mergeFrom
public Schema.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Schema.Builder>
-
mergeFrom
public Schema.Builder mergeFrom(Schema other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
getUserManagedin 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:
getFieldsListin 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:
getFieldsCountin 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:
getFieldsin 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:
getFieldsOrBuilderin 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:
getFieldsOrBuilderListin 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:
getPartitionFieldsListin 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:
getPartitionFieldsCountin 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:
getPartitionFieldsin 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:
getPartitionFieldsOrBuilderin 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:
getPartitionFieldsOrBuilderListin 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:
getPartitionStyleValuein 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:
getPartitionStylein 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
mergeUnknownFields
public final Schema.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
-