NAME

Google::Cloud::Datacatalog::V1::Schema - Compiled Protocol Buffers messages for google/cloud/datacatalog/v1/schema.proto

SYNOPSIS

use Google::Cloud::Datacatalog::V1::Schema;

my $msg = Google::Cloud::Datacatalog::V1::Schema::Schema->new({
    columns => $columns,
});

# Read or update a field
my $val = $msg->columns();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Datacatalog::V1::Schema::Schema->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/datacatalog/v1/schema.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Datacatalog::V1::Schema::Schema

Represents a schema, for example, a BigQuery, GoogleSQL, or Avro schema.

Inherits from Protobuf::Message.

Accessors

  • $msg->columns() / $msg->columns($value)

    Type: Message (Google::Cloud::Datacatalog::V1::Schema::ColumnSchema)

    The unified GoogleSQL-like schema of columns.

    The overall maximum number of columns and nested columns is 10,000. The maximum nested depth is 15 levels.

Google::Cloud::Datacatalog::V1::Schema::ColumnSchema

A column within a schema. Columns can be nested inside other columns.

Inherits from Protobuf::Message.

Accessors

  • $msg->column() / $msg->column($value)

    Type: String

    Required. Name of the column.

    Must be a UTF-8 string without dots (.). The maximum size is 64 bytes.

  • $msg->type() / $msg->type($value)

    Type: String

    Required. Type of the column.

    Must be a UTF-8 string with the maximum size of 128 bytes.

  • $msg->description() / $msg->description($value)

    Type: String

    Optional. Description of the column. Default value is an empty string.

    The description must be a UTF-8 string with the maximum size of 2000 bytes.

  • $msg->mode() / $msg->mode($value)

    Type: String

    Optional. A column's mode indicates whether values in this column are required, nullable, or repeated.

    Only `NULLABLE`, `REQUIRED`, and `REPEATED` values are supported. Default mode is `NULLABLE`.

  • $msg->default_value() / $msg->default_value($value)

    Type: String

    Optional. Default value for the column.

  • $msg->ordinal_position() / $msg->ordinal_position($value)

    Type: Int32

    Optional. Ordinal position

  • $msg->highest_indexing_type() / $msg->highest_indexing_type($value)

    Type: Enum (Google::Cloud::Datacatalog::V1::ColumnSchema::IndexingType)

    Optional. Most important inclusion of this column.

  • $msg->subcolumns() / $msg->subcolumns($value)

    Type: Message (Google::Cloud::Datacatalog::V1::Schema::ColumnSchema)

    Optional. Schema of sub-columns. A column can have zero or more sub-columns.

  • $msg->looker_column_spec() / $msg->looker_column_spec($value)

    Type: Message (Google::Cloud::Datacatalog::V1::Schema::ColumnSchema::LookerColumnSpec)

    Looker specific column info of this column.

  • $msg->range_element_type() / $msg->range_element_type($value)

    Type: Message (Google::Cloud::Datacatalog::V1::Schema::ColumnSchema::FieldElementType)

    Optional. The subtype of the RANGE, if the type of this field is RANGE. If the type is RANGE, this field is required. Possible values for the field element type of a RANGE include: * DATE * DATETIME * TIMESTAMP

  • $msg->gc_rule() / $msg->gc_rule($value)

    Type: String

    Optional. Garbage collection policy for the column or column family. Applies to systems like Cloud Bigtable.

Enum: ColumnSchema::IndexingType

  • INDEXING_TYPE_UNSPECIFIED => 0

  • INDEXING_TYPE_NONE => 1

  • INDEXING_TYPE_NON_UNIQUE => 2

  • INDEXING_TYPE_UNIQUE => 3

  • INDEXING_TYPE_PRIMARY_KEY => 4

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Datacatalog::V1::Schema::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.