Class Schema (2.0.0)

public sealed class Schema : IMessage<Schema>, IEquatable<Schema>, IDeepCloneable<Schema>, IBufferMessage, IMessage

Schema information describing the structure and layout of the data.

Inheritance

Object > Schema

Namespace

Google.Cloud.Dataplex.V1

Assembly

Google.Cloud.Dataplex.V1.dll

Constructors

Schema()

public Schema()

Schema(Schema)

public Schema(Schema other)
Parameter
NameDescription
otherSchema

Properties

Fields

public RepeatedField<Schema.Types.SchemaField> Fields { get; }

Optional. The sequence of fields describing data in table entities.

Property Value
TypeDescription
RepeatedField<Schema.Types.SchemaField>

PartitionFields

public RepeatedField<Schema.Types.PartitionField> PartitionFields { get; }

Optional. The sequence of fields describing the partition structure in entities. If this field is empty, there are no partitions within the data.

Property Value
TypeDescription
RepeatedField<Schema.Types.PartitionField>

PartitionStyle

public Schema.Types.PartitionStyle PartitionStyle { get; set; }

Optional. The structure of paths containing partition data within the entity.

Property Value
TypeDescription
Schema.Types.PartitionStyle

UserManaged

public bool UserManaged { get; set; }

Required. Whether the schema is user-managed or managed by the service.

  • Set user_manage to false if you would like Dataplex to help you manage the schema. You will get the full service provided by Dataplex discovery, including new data discovery, schema inference and schema evolution. You can still provide input the schema of the entities, for example renaming a schema field, changing CSV or Json options if you think the discovered values are not as accurate. Dataplex will consider your input as the initial schema (as if they were produced by the previous discovery run), and will evolve schema or flag actions based on that.
  • Set user_manage to true if you would like to fully manage the entity schema by yourself. This is useful when you would like to manually specify the schema for a table. In this case, the schema defined by the user is guaranteed to be kept unchanged and would not be overwritten. But this also means Dataplex will not provide schema evolution management for you. Dataplex will still be able to manage partition registration (i.e., keeping the list of partitions up to date) when Dataplex discovery is turned on and user_managed is set to true.
Property Value
TypeDescription
Boolean