Service Client: Google::Cloud::Metastore::V1alpha::Metastore::DataprocMetastoreClient

Client stub representing the remote DataprocMetastore gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to metastore.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Cloud::Metastore::V1alpha::Metastore - Compiled Protocol Buffers messages for google/cloud/metastore/v1alpha/metastore.proto

SYNOPSIS

use Google::Cloud::Metastore::V1alpha::Metastore;

my $msg = Google::Cloud::Metastore::V1alpha::Metastore::Service->new({
    hive_metastore_config => $hive_metastore_config,
    name => $name,
    create_time => $create_time,
    update_time => $update_time,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Metastore::V1alpha::Metastore::Service->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/metastore/v1alpha/metastore.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::Metastore::V1alpha::Metastore::Service

A managed metastore service that serves metadata queries.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Metastore::V1alpha::Metastore::HiveMetastoreConfig)

    Configuration information specific to running Hive metastore software as the metastore service.

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

    Type: String

    Immutable. The relative resource name of the metastore service, in the following format:

    `projects/{project_number}/locations/{location_id}/services/{service_id}`.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time when the metastore service was created.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time when the metastore service was last updated.

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

    Type: Message (Google::Cloud::Metastore::V1alpha::Metastore::Service::LabelsEntry)

    User-defined labels for the metastore service.

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

    Type: String

    Immutable. The relative resource name of the VPC network on which the instance can be accessed. It is specified in the following form:

    `projects/{project_number}/global/networks/{network_id}`.

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

    Type: String

    Output only. The URI of the endpoint used to access the metastore service.

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

    Type: Int32

    The TCP port at which the metastore service is reached. Default: 9083.

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

    Type: Enum (Google::Cloud::Metastore::V1alpha::Service::State)

    Output only. The current state of the metastore service.

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

    Type: String

    Output only. Additional information about the current state of the metastore service, if available.

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

    Type: String

    Output only. A Cloud Storage URI (starting with `gs://`) that specifies where artifacts related to the metastore service are stored.

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

    Type: Enum (Google::Cloud::Metastore::V1alpha::Service::Tier)

    The tier of the service.

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

    Type: Message (Google::Cloud::Metastore::V1alpha::Metastore::MetadataIntegration)

    The setting that defines how metastore metadata should be integrated with external services and systems.

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

    Type: Message (Google::Cloud::Metastore::V1alpha::Metastore::MaintenanceWindow)

    The one hour maintenance window of the metastore service. This specifies when the service can be restarted for maintenance purposes in UTC time. Maintenance window is not needed for services with the SPANNER database type.

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

    Type: String

    Output only. The globally unique resource identifier of the metastore service.

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

    Type: Message (Google::Cloud::Metastore::V1alpha::Metastore::MetadataManagementActivity)

    Output only. The metadata management activities of the metastore service.

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

    Type: Enum (Google::Cloud::Metastore::V1alpha::Service::ReleaseChannel)

    Immutable. The release channel of the service. If unspecified, defaults to `STABLE`.

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

    Type: Message (Google::Cloud::Metastore::V1alpha::Metastore::EncryptionConfig)

    Immutable. Information used to configure the Dataproc Metastore service to encrypt customer data at rest. Cannot be updated.

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

    Type: Message (Google::Cloud::Metastore::V1alpha::Metastore::NetworkConfig)

    The configuration specifying the network settings for the Dataproc Metastore service.

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

    Type: Enum (Google::Cloud::Metastore::V1alpha::Service::DatabaseType)

    Immutable. The database type that the Metastore service stores its data.

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

    Type: Message (Google::Cloud::Metastore::V1alpha::Metastore::TelemetryConfig)

    The configuration specifying telemetry settings for the Dataproc Metastore service. If unspecified defaults to `JSON`.

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

    Type: Message (Google::Cloud::Metastore::V1alpha::Metastore::ScalingConfig)

    Scaling configuration of the metastore service.

Enum: Service::State

  • STATE_UNSPECIFIED => 0

  • CREATING => 1

  • ACTIVE => 2

  • SUSPENDING => 3

  • SUSPENDED => 4

  • UPDATING => 5

  • DELETING => 6

  • ERROR => 7

Enum: Service::Tier

  • TIER_UNSPECIFIED => 0

  • DEVELOPER => 1

  • ENTERPRISE => 3

Enum: Service::ReleaseChannel

  • RELEASE_CHANNEL_UNSPECIFIED => 0

  • CANARY => 1

  • STABLE => 2

Enum: Service::DatabaseType

  • DATABASE_TYPE_UNSPECIFIED => 0

  • MYSQL => 1

  • SPANNER => 2

Google::Cloud::Metastore::V1alpha::Metastore::MetadataIntegration

Specifies how metastore metadata should be integrated with external services.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Metastore::V1alpha::Metastore::DataCatalogConfig

Specifies how metastore metadata should be integrated with the Data Catalog service.

Inherits from Protobuf::Message.

Accessors

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

    Type: Bool

    Defines whether the metastore metadata should be synced to Data Catalog. The default value is to disable syncing metastore metadata to Data Catalog.

Google::Cloud::Metastore::V1alpha::Metastore::DataplexConfig

Specifies how metastore metadata should be integrated with the Dataplex service.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Metastore::V1alpha::Metastore::Lake

Represents a Lake resource

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The Lake resource name. Example: `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`

Google::Cloud::Metastore::V1alpha::Metastore::MaintenanceWindow

Maintenance window. This specifies when Dataproc Metastore may perform system maintenance operation to the service.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Metastore::V1alpha::Metastore::HiveMetastoreConfig

Specifies configuration information specific to running Hive metastore software as the metastore service.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Immutable. The Hive metastore schema version.

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

    Type: Message (Google::Cloud::Metastore::V1alpha::Metastore::HiveMetastoreConfig::ConfigOverridesEntry)

    A mapping of Hive metastore configuration key-value pairs to apply to the Hive metastore (configured in `hive-site.xml`). The mappings override system defaults (some keys cannot be overridden). These overrides are also applied to auxiliary versions and can be further customized in the auxiliary version's `AuxiliaryVersionConfig`.

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

    Type: Message (Google::Cloud::Metastore::V1alpha::Metastore::KerberosConfig)

    Information used to configure the Hive metastore service as a service principal in a Kerberos realm. To disable Kerberos, use the `UpdateService` method and specify this field's path (`hive_metastore_config.kerberos_config`) in the request's `update_mask` while omitting this field from the request's `service`.

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

    Type: Enum (Google::Cloud::Metastore::V1alpha::HiveMetastoreConfig::EndpointProtocol)

    The protocol to use for the metastore service endpoint. If unspecified, defaults to `THRIFT`.

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

    Type: Message (Google::Cloud::Metastore::V1alpha::Metastore::HiveMetastoreConfig::AuxiliaryVersionsEntry)

    A mapping of Hive metastore version to the auxiliary version configuration. When specified, a secondary Hive metastore service is created along with the primary service. All auxiliary versions must be less than the service's primary version. The key is the auxiliary service name and it must match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. This means that the first character must be a lowercase letter, and all the following characters must be hyphens, lowercase letters, or digits, except the last character, which cannot be a hyphen.

Enum: HiveMetastoreConfig::EndpointProtocol

  • ENDPOINT_PROTOCOL_UNSPECIFIED => 0

  • THRIFT => 1

  • GRPC => 2

Google::Cloud::Metastore::V1alpha::Metastore::KerberosConfig

Configuration information for a Kerberos principal.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Metastore::V1alpha::Metastore::Secret)

    A Kerberos keytab file that can be used to authenticate a service principal with a Kerberos Key Distribution Center (KDC).

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

    Type: String

    A Kerberos principal that exists in the both the keytab the KDC to authenticate as. A typical principal is of the form `primary/instance@REALM`, but there is no exact format.

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

    Type: String

    A Cloud Storage URI that specifies the path to a krb5.conf file. It is of the form `gs://{bucket_name}/path/to/krb5.conf`, although the file does not need to be named krb5.conf explicitly.

Google::Cloud::Metastore::V1alpha::Metastore::Secret

A securely stored value.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The relative resource name of a Secret Manager secret version, in the following form:

    `projects/{project_number}/secrets/{secret_id}/versions/{version_id}`.

Google::Cloud::Metastore::V1alpha::Metastore::EncryptionConfig

Encryption settings for the service.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The fully qualified customer provided Cloud KMS key name to use for customer data encryption, in the following form:

    `projects/{project_number}/locations/{location_id}/keyRings/{key_ring_id}/cryptoKeys/{crypto_key_id}`.

Google::Cloud::Metastore::V1alpha::Metastore::AuxiliaryVersionConfig

Configuration information for the auxiliary service versions.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The Hive metastore version of the auxiliary service. It must be less than the primary Hive metastore service's version.

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

    Type: Message (Google::Cloud::Metastore::V1alpha::Metastore::AuxiliaryVersionConfig::ConfigOverridesEntry)

    A mapping of Hive metastore configuration key-value pairs to apply to the auxiliary Hive metastore (configured in `hive-site.xml`) in addition to the primary version's overrides. If keys are present in both the auxiliary version's overrides and the primary version's overrides, the value from the auxiliary version's overrides takes precedence.

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

    Type: Message (Google::Cloud::Metastore::V1alpha::Metastore::NetworkConfig)

    Output only. The network configuration contains the endpoint URI(s) of the auxiliary Hive metastore service.

Google::Cloud::Metastore::V1alpha::Metastore::NetworkConfig

Network configuration for the Dataproc Metastore service.

Next available ID: 4

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Metastore::V1alpha::Metastore::NetworkConfig::Consumer)

    Immutable. The consumer-side network configuration for the Dataproc Metastore instance.

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

    Type: Bool

    Enables custom routes to be imported and exported for the Dataproc Metastore service's peered VPC network.

Google::Cloud::Metastore::V1alpha::Metastore::TelemetryConfig

Telemetry Configuration for the Dataproc Metastore service.

Inherits from Protobuf::Message.

Accessors

Enum: TelemetryConfig::LogFormat

  • LOG_FORMAT_UNSPECIFIED => 0

  • LEGACY => 1

  • JSON => 2

Google::Cloud::Metastore::V1alpha::Metastore::MetadataManagementActivity

The metadata management activities of the metastore service.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Metastore::V1alpha::Metastore::MetadataImport

A metastore resource that imports metadata.

Inherits from Protobuf::Message.

Accessors

Enum: MetadataImport::State

  • STATE_UNSPECIFIED => 0

  • RUNNING => 1

  • SUCCEEDED => 2

  • UPDATING => 3

  • FAILED => 4

Google::Cloud::Metastore::V1alpha::Metastore::MetadataExport

The details of a metadata export operation.

Inherits from Protobuf::Message.

Accessors

Enum: MetadataExport::State

  • STATE_UNSPECIFIED => 0

  • RUNNING => 1

  • SUCCEEDED => 2

  • FAILED => 3

  • CANCELLED => 4

Google::Cloud::Metastore::V1alpha::Metastore::Backup

The details of a backup resource.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Immutable. The relative resource name of the backup, in the following form:

    `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time when the backup was started.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time when the backup finished creating.

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

    Type: Enum (Google::Cloud::Metastore::V1alpha::Backup::State)

    Output only. The current state of the backup.

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

    Type: Message (Google::Cloud::Metastore::V1alpha::Metastore::Service)

    Output only. The revision of the service at the time of backup.

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

    Type: String

    The description of the backup.

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

    Type: String

    Output only. Services that are restoring from the backup.

Enum: Backup::State

  • STATE_UNSPECIFIED => 0

  • CREATING => 1

  • DELETING => 2

  • ACTIVE => 3

  • FAILED => 4

  • RESTORING => 5

Google::Cloud::Metastore::V1alpha::Metastore::Restore

The details of a metadata restore operation.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time when the restore started.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time when the restore ended.

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

    Type: Enum (Google::Cloud::Metastore::V1alpha::Restore::State)

    Output only. The current state of the restore.

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

    Type: String

    Output only. The relative resource name of the metastore service backup to restore from, in the following form:

    `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.

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

    Type: Enum (Google::Cloud::Metastore::V1alpha::Restore::RestoreType)

    Output only. The type of restore.

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

    Type: String

    Output only. The restore details containing the revision of the service to be restored to, in format of JSON.

Enum: Restore::State

  • STATE_UNSPECIFIED => 0

  • RUNNING => 1

  • SUCCEEDED => 2

  • FAILED => 3

  • CANCELLED => 4

Enum: Restore::RestoreType

  • RESTORE_TYPE_UNSPECIFIED => 0

  • FULL => 1

  • METADATA_ONLY => 2

Google::Cloud::Metastore::V1alpha::Metastore::ScalingConfig

Represents the scaling configuration of a metastore service.

Inherits from Protobuf::Message.

Accessors

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

    Type: Enum (Google::Cloud::Metastore::V1alpha::ScalingConfig::InstanceSize)

    An enum of readable instance sizes, with each instance size mapping to a float value (e.g. InstanceSize.EXTRA_SMALL = scaling_factor(0.1))

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

    Type: Float

    Scaling factor, increments of 0.1 for values less than 1.0, and increments of 1.0 for values greater than 1.0.

Enum: ScalingConfig::InstanceSize

  • INSTANCE_SIZE_UNSPECIFIED => 0

  • EXTRA_SMALL => 1

  • SMALL => 2

  • MEDIUM => 3

  • LARGE => 4

  • EXTRA_LARGE => 5

Google::Cloud::Metastore::V1alpha::Metastore::ListServicesRequest

Request message for [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The relative resource name of the location of metastore services to list, in the following form:

    `projects/{project_number}/locations/{location_id}`.

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

    Type: Int32

    Optional. The maximum number of services to return. The response may contain less than the maximum number. If unspecified, no more than 500 services are returned. The maximum value is 1000; values above 1000 are changed to 1000.

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

    Type: String

    Optional. A page token, received from a previous [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices] call. Provide this token to retrieve the subsequent page.

    To retrieve the first page, supply an empty page token.

    When paginating, other parameters provided to [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices] must match the call that provided the page token.

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

    Type: String

    Optional. The filter to apply to list results.

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

    Type: String

    Optional. Specify the ordering of results as described in [Sorting Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). If not specified, the results will be sorted in the default order.

Google::Cloud::Metastore::V1alpha::Metastore::ListServicesResponse

Response message for [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices].

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Metastore::V1alpha::Metastore::Service)

    The services in the specified location.

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

    Type: String

    A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.

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

    Type: String

    Locations that could not be reached.

Google::Cloud::Metastore::V1alpha::Metastore::GetServiceRequest

Request message for [DataprocMetastore.GetService][google.cloud.metastore.v1alpha.DataprocMetastore.GetService].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The relative resource name of the metastore service to retrieve, in the following form:

    `projects/{project_number}/locations/{location_id}/services/{service_id}`.

Google::Cloud::Metastore::V1alpha::Metastore::CreateServiceRequest

Request message for [DataprocMetastore.CreateService][google.cloud.metastore.v1alpha.DataprocMetastore.CreateService].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The relative resource name of the location in which to create a metastore service, in the following form:

    `projects/{project_number}/locations/{location_id}`.

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

    Type: String

    Required. The ID of the metastore service, which is used as the final component of the metastore service's name.

    This value must be between 2 and 63 characters long inclusive, begin with a letter, end with a letter or number, and consist of alpha-numeric ASCII characters or hyphens.

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

    Type: Message (Google::Cloud::Metastore::V1alpha::Metastore::Service)

    Required. The Metastore service to create. The `name` field is ignored. The ID of the created metastore service must be provided in the request's `service_id` field.

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

    Type: String

    Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.

    For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.

    The request ID must be a valid [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.

Google::Cloud::Metastore::V1alpha::Metastore::UpdateServiceRequest

Request message for [DataprocMetastore.UpdateService][google.cloud.metastore.v1alpha.DataprocMetastore.UpdateService].

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Required. A field mask used to specify the fields to be overwritten in the metastore service resource by the update. Fields specified in the `update_mask` are relative to the resource (not to the full request). A field is overwritten if it is in the mask.

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

    Type: Message (Google::Cloud::Metastore::V1alpha::Metastore::Service)

    Required. The metastore service to update. The server only merges fields in the service if they are specified in `update_mask`.

    The metastore service's `name` field is used to identify the metastore service to be updated.

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

    Type: String

    Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.

    For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.

    The request ID must be a valid [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.

Google::Cloud::Metastore::V1alpha::Metastore::DeleteServiceRequest

Request message for [DataprocMetastore.DeleteService][google.cloud.metastore.v1alpha.DataprocMetastore.DeleteService].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The relative resource name of the metastore service to delete, in the following form:

    `projects/{project_number}/locations/{location_id}/services/{service_id}`.

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

    Type: String

    Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.

    For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.

    The request ID must be a valid [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.

Google::Cloud::Metastore::V1alpha::Metastore::ListMetadataImportsRequest

Request message for [DataprocMetastore.ListMetadataImports][google.cloud.metastore.v1alpha.DataprocMetastore.ListMetadataImports].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The relative resource name of the service whose metadata imports to list, in the following form:

    `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports`.

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

    Type: Int32

    Optional. The maximum number of imports to return. The response may contain less than the maximum number. If unspecified, no more than 500 imports are returned. The maximum value is 1000; values above 1000 are changed to 1000.

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

    Type: String

    Optional. A page token, received from a previous [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices] call. Provide this token to retrieve the subsequent page.

    To retrieve the first page, supply an empty page token.

    When paginating, other parameters provided to [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices] must match the call that provided the page token.

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

    Type: String

    Optional. The filter to apply to list results.

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

    Type: String

    Optional. Specify the ordering of results as described in [Sorting Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). If not specified, the results will be sorted in the default order.

Google::Cloud::Metastore::V1alpha::Metastore::ListMetadataImportsResponse

Response message for [DataprocMetastore.ListMetadataImports][google.cloud.metastore.v1alpha.DataprocMetastore.ListMetadataImports].

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Metastore::V1alpha::Metastore::MetadataImport)

    The imports in the specified service.

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

    Type: String

    A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.

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

    Type: String

    Locations that could not be reached.

Google::Cloud::Metastore::V1alpha::Metastore::GetMetadataImportRequest

Request message for [DataprocMetastore.GetMetadataImport][google.cloud.metastore.v1alpha.DataprocMetastore.GetMetadataImport].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The relative resource name of the metadata import to retrieve, in the following form:

    `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{import_id}`.

Google::Cloud::Metastore::V1alpha::Metastore::CreateMetadataImportRequest

Request message for [DataprocMetastore.CreateMetadataImport][google.cloud.metastore.v1alpha.DataprocMetastore.CreateMetadataImport].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The relative resource name of the service in which to create a metastore import, in the following form:

    `projects/{project_number}/locations/{location_id}/services/{service_id}`.

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

    Type: String

    Required. The ID of the metadata import, which is used as the final component of the metadata import's name.

    This value must be between 1 and 64 characters long, begin with a letter, end with a letter or number, and consist of alpha-numeric ASCII characters or hyphens.

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

    Type: Message (Google::Cloud::Metastore::V1alpha::Metastore::MetadataImport)

    Required. The metadata import to create. The `name` field is ignored. The ID of the created metadata import must be provided in the request's `metadata_import_id` field.

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

    Type: String

    Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.

    For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.

    The request ID must be a valid [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.

Google::Cloud::Metastore::V1alpha::Metastore::UpdateMetadataImportRequest

Request message for [DataprocMetastore.UpdateMetadataImport][google.cloud.metastore.v1alpha.DataprocMetastore.UpdateMetadataImport].

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Required. A field mask used to specify the fields to be overwritten in the metadata import resource by the update. Fields specified in the `update_mask` are relative to the resource (not to the full request). A field is overwritten if it is in the mask.

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

    Type: Message (Google::Cloud::Metastore::V1alpha::Metastore::MetadataImport)

    Required. The metadata import to update. The server only merges fields in the import if they are specified in `update_mask`.

    The metadata import's `name` field is used to identify the metastore import to be updated.

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

    Type: String

    Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.

    For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.

    The request ID must be a valid [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.

Google::Cloud::Metastore::V1alpha::Metastore::ListBackupsRequest

Request message for [DataprocMetastore.ListBackups][google.cloud.metastore.v1alpha.DataprocMetastore.ListBackups].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The relative resource name of the service whose backups to list, in the following form:

    `projects/{project_number}/locations/{location_id}/services/{service_id}/backups`.

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

    Type: Int32

    Optional. The maximum number of backups to return. The response may contain less than the maximum number. If unspecified, no more than 500 backups are returned. The maximum value is 1000; values above 1000 are changed to 1000.

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

    Type: String

    Optional. A page token, received from a previous [DataprocMetastore.ListBackups][google.cloud.metastore.v1alpha.DataprocMetastore.ListBackups] call. Provide this token to retrieve the subsequent page.

    To retrieve the first page, supply an empty page token.

    When paginating, other parameters provided to [DataprocMetastore.ListBackups][google.cloud.metastore.v1alpha.DataprocMetastore.ListBackups] must match the call that provided the page token.

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

    Type: String

    Optional. The filter to apply to list results.

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

    Type: String

    Optional. Specify the ordering of results as described in [Sorting Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). If not specified, the results will be sorted in the default order.

Google::Cloud::Metastore::V1alpha::Metastore::ListBackupsResponse

Response message for [DataprocMetastore.ListBackups][google.cloud.metastore.v1alpha.DataprocMetastore.ListBackups].

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Metastore::V1alpha::Metastore::Backup)

    The backups of the specified service.

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

    Type: String

    A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.

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

    Type: String

    Locations that could not be reached.

Google::Cloud::Metastore::V1alpha::Metastore::GetBackupRequest

Request message for [DataprocMetastore.GetBackup][google.cloud.metastore.v1alpha.DataprocMetastore.GetBackup].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The relative resource name of the backup to retrieve, in the following form:

    `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.

Google::Cloud::Metastore::V1alpha::Metastore::CreateBackupRequest

Request message for [DataprocMetastore.CreateBackup][google.cloud.metastore.v1alpha.DataprocMetastore.CreateBackup].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The relative resource name of the service in which to create a backup of the following form:

    `projects/{project_number}/locations/{location_id}/services/{service_id}`.

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

    Type: String

    Required. The ID of the backup, which is used as the final component of the backup's name.

    This value must be between 1 and 64 characters long, begin with a letter, end with a letter or number, and consist of alpha-numeric ASCII characters or hyphens.

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

    Type: Message (Google::Cloud::Metastore::V1alpha::Metastore::Backup)

    Required. The backup to create. The `name` field is ignored. The ID of the created backup must be provided in the request's `backup_id` field.

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

    Type: String

    Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.

    For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.

    The request ID must be a valid [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.

Google::Cloud::Metastore::V1alpha::Metastore::DeleteBackupRequest

Request message for [DataprocMetastore.DeleteBackup][google.cloud.metastore.v1alpha.DataprocMetastore.DeleteBackup].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The relative resource name of the backup to delete, in the following form:

    `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.

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

    Type: String

    Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.

    For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.

    The request ID must be a valid [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.

Google::Cloud::Metastore::V1alpha::Metastore::ExportMetadataRequest

Request message for [DataprocMetastore.ExportMetadata][google.cloud.metastore.v1alpha.DataprocMetastore.ExportMetadata].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    A Cloud Storage URI of a folder, in the format `gs://<bucket_name>/<path_inside_bucket>`. A sub-folder `<export_folder>` containing exported files will be created below it.

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

    Type: String

    Required. The relative resource name of the metastore service to run export, in the following form:

    `projects/{project_id}/locations/{location_id}/services/{service_id}`.

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

    Type: String

    Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.

    For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.

    The request ID must be a valid [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.

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

    Type: Enum (Google::Cloud::Metastore::V1alpha::DatabaseDumpSpec::Type)

    Optional. The type of the database dump. If unspecified, defaults to `MYSQL`.

Google::Cloud::Metastore::V1alpha::Metastore::RestoreServiceRequest

Request message for [DataprocMetastore.Restore][].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The relative resource name of the metastore service to run restore, in the following form:

    `projects/{project_id}/locations/{location_id}/services/{service_id}`.

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

    Type: String

    Required. The relative resource name of the metastore service backup to restore from, in the following form:

    `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.

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

    Type: Enum (Google::Cloud::Metastore::V1alpha::Restore::RestoreType)

    Optional. The type of restore. If unspecified, defaults to `METADATA_ONLY`.

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

    Type: String

    Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.

    For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.

    The request ID must be a valid [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.

Google::Cloud::Metastore::V1alpha::Metastore::OperationMetadata

Represents the metadata of a long-running operation.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time the operation was created.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time the operation finished running.

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

    Type: String

    Output only. Server-defined resource path for the target of the operation.

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

    Type: String

    Output only. Name of the verb executed by the operation.

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

    Type: String

    Output only. Human-readable status of the operation, if any.

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

    Type: Bool

    Output only. Identifies whether the caller has requested cancellation of the operation. Operations that have successfully been cancelled have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.

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

    Type: String

    Output only. API version used to start the operation.

Google::Cloud::Metastore::V1alpha::Metastore::LocationMetadata

Metadata about the service in a location.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Metastore::V1alpha::Metastore::DatabaseDumpSpec

The specification of database dump to import from or export to.

Inherits from Protobuf::Message.

Enum: DatabaseDumpSpec::Type

  • TYPE_UNSPECIFIED => 0

  • MYSQL => 1

  • AVRO => 2

Google::Cloud::Metastore::V1alpha::Metastore::RemoveIamPolicyRequest

Request message for [DataprocMetastore.RemoveIamPolicy][google.cloud.metastore.v1alpha.DataprocMetastore.RemoveIamPolicy].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The relative resource name of the dataplane resource to remove IAM policy, in the following form:

    `projects/{project_id}/locations/{location_id}/services/{service_id}/databases/{database_id}` or `projects/{project_id}/locations/{location_id}/services/{service_id}/databases/{database_id}/tables/{table_id}`.

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

    Type: Bool

    Optional. Removes IAM policy attached to database or table asynchronously when it is set. The default is false.

Google::Cloud::Metastore::V1alpha::Metastore::RemoveIamPolicyResponse

Response message for [DataprocMetastore.RemoveIamPolicy][google.cloud.metastore.v1alpha.DataprocMetastore.RemoveIamPolicy].

Inherits from Protobuf::Message.

Accessors

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

    Type: Bool

    True if the policy is successfully removed.

Google::Cloud::Metastore::V1alpha::Metastore::QueryMetadataRequest

Request message for [DataprocMetastore.QueryMetadata][google.cloud.metastore.v1alpha.DataprocMetastore.QueryMetadata].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The relative resource name of the metastore service to query metadata, in the following format:

    `projects/{project_id}/locations/{location_id}/services/{service_id}`.

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

    Type: String

    Required. A read-only SQL query to execute against the metadata database. The query cannot change or mutate the data.

Google::Cloud::Metastore::V1alpha::Metastore::QueryMetadataResponse

Response message for [DataprocMetastore.QueryMetadata][google.cloud.metastore.v1alpha.DataprocMetastore.QueryMetadata].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The manifest URI is link to a JSON instance in Cloud Storage. This instance manifests immediately along with QueryMetadataResponse. The content of the URI is not retriable until the long-running operation query against the metadata finishes.

Google::Cloud::Metastore::V1alpha::Metastore::ErrorDetails

Error details in public error message for [DataprocMetastore.QueryMetadata][google.cloud.metastore.v1alpha.DataprocMetastore.QueryMetadata].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Metastore::V1alpha::Metastore::MoveTableToDatabaseRequest

Request message for [DataprocMetastore.MoveTableToDatabase][google.cloud.metastore.v1alpha.DataprocMetastore.MoveTableToDatabase].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The relative resource name of the metastore service to mutate metadata, in the following format:

    `projects/{project_id}/locations/{location_id}/services/{service_id}`.

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

    Type: String

    Required. The name of the table to be moved.

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

    Type: String

    Required. The name of the database where the table resides.

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

    Type: String

    Required. The name of the database where the table should be moved.

Google::Cloud::Metastore::V1alpha::Metastore::MoveTableToDatabaseResponse

Response message for [DataprocMetastore.MoveTableToDatabase][google.cloud.metastore.v1alpha.DataprocMetastore.MoveTableToDatabase].

Inherits from Protobuf::Message.

Google::Cloud::Metastore::V1alpha::Metastore::AlterMetadataResourceLocationRequest

Request message for [DataprocMetastore.AlterMetadataResourceLocation][google.cloud.metastore.v1alpha.DataprocMetastore.AlterMetadataResourceLocation].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The relative resource name of the metastore service to mutate metadata, in the following format:

    `projects/{project_id}/locations/{location_id}/services/{service_id}`.

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

    Type: String

    Required. The relative metadata resource name in the following format.

    `databases/{database_id}` or `databases/{database_id}/tables/{table_id}` or `databases/{database_id}/tables/{table_id}/partitions/{partition_id}`

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

    Type: String

    Required. The new location URI for the metadata resource.

Google::Cloud::Metastore::V1alpha::Metastore::AlterMetadataResourceLocationResponse

Response message for [DataprocMetastore.AlterMetadataResourceLocation][google.cloud.metastore.v1alpha.DataprocMetastore.AlterMetadataResourceLocation].

Inherits from Protobuf::Message.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Metastore::V1alpha::Metastore::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.