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SBtZXNzYWdlIGZvcgogW0RhdGFwcm9jTWV0YXN0b3JlLkFs
dGVyTWV0YWRhdGFSZXNvdXJjZUxvY2F0aW9uXVtnb29nbGUuY2xvdWQubWV0YXN0b3JlLnYx
LkRhdGFwcm9jTWV0YXN0b3JlLkFsdGVyTWV0YWRhdGFSZXNvdXJjZUxvY2F0aW9uXS4KCgsK
AwQqARIEzgwILWIGcHJvdG8z
EOF
    Protobuf::DescriptorPool->generated_pool->add_serialized_file(MIME::Base64::decode_base64($descriptor_b64));
}

# Message definitions

# === Message: Google::Cloud::Metastore::V1::Metastore::Service ===
    # Fields for Service
    # Field: hive_metastore_config Type: 11 (.google.cloud.metastore.v1.HiveMetastoreConfig)
    # Field: name Type: 9 ()
    # Field: create_time Type: 11 (.google.protobuf.Timestamp)
    # Field: update_time Type: 11 (.google.protobuf.Timestamp)
    # Field: labels Type: 11 (.google.cloud.metastore.v1.Service.LabelsEntry)
    # Field: network Type: 9 ()
    # Field: endpoint_uri Type: 9 ()
    # Field: port Type: 5 ()
    # Field: state Type: 14 (.google.cloud.metastore.v1.Service.State)
    # Field: state_message Type: 9 ()
    # Field: artifact_gcs_uri Type: 9 ()
    # Field: tier Type: 14 (.google.cloud.metastore.v1.Service.Tier)
    # Field: maintenance_window Type: 11 (.google.cloud.metastore.v1.MaintenanceWindow)
    # Field: uid Type: 9 ()
    # Field: metadata_management_activity Type: 11 (.google.cloud.metastore.v1.MetadataManagementActivity)
    # Field: release_channel Type: 14 (.google.cloud.metastore.v1.Service.ReleaseChannel)
    # Field: encryption_config Type: 11 (.google.cloud.metastore.v1.EncryptionConfig)
    # Field: network_config Type: 11 (.google.cloud.metastore.v1.NetworkConfig)
    # Field: database_type Type: 14 (.google.cloud.metastore.v1.Service.DatabaseType)
    # Field: telemetry_config Type: 11 (.google.cloud.metastore.v1.TelemetryConfig)
    # Field: scaling_config Type: 11 (.google.cloud.metastore.v1.ScalingConfig)

=pod

=head1 NAME

Google::Cloud::Metastore::V1::Metastore::Service - Compiled Protocol Buffers message class

=head1 SYNOPSIS

    use Google::Cloud::Metastore::V1::Metastore;

    my $msg = Google::Cloud::Metastore::V1::Metastore::Service->new(
        hive_metastore_config => $value,
    );

=head1 FIELDS

=over 4

=item * B<hive_metastore_config>

Type: Message (.google.cloud.metastore.v1.HiveMetastoreConfig)

=item * B<name>

Type: String

=item * B<create_time>

Type: Message (.google.protobuf.Timestamp)

=item * B<update_time>

Type: Message (.google.protobuf.Timestamp)

=item * B<labels>

Type: Message (.google.cloud.metastore.v1.Service.LabelsEntry)

=item * B<network>

Type: String

=item * B<endpoint_uri>

Type: String

=item * B<port>

Type: Int32

=item * B<state>

Type: Enum (.google.cloud.metastore.v1.Service.State)

=item * B<state_message>

Type: String

=item * B<artifact_gcs_uri>

Type: String

=item * B<tier>

Type: Enum (.google.cloud.metastore.v1.Service.Tier)

=item * B<maintenance_window>

Type: Message (.google.cloud.metastore.v1.MaintenanceWindow)

=item * B<uid>

Type: String

=item * B<metadata_management_activity>

Type: Message (.google.cloud.metastore.v1.MetadataManagementActivity)

=item * B<release_channel>

Type: Enum (.google.cloud.metastore.v1.Service.ReleaseChannel)

=item * B<encryption_config>

Type: Message (.google.cloud.metastore.v1.EncryptionConfig)

=item * B<network_config>

Type: Message (.google.cloud.metastore.v1.NetworkConfig)

=item * B<database_type>

Type: Enum (.google.cloud.metastore.v1.Service.DatabaseType)

=item * B<telemetry_config>

Type: Message (.google.cloud.metastore.v1.TelemetryConfig)

=item * B<scaling_config>

Type: Message (.google.cloud.metastore.v1.ScalingConfig)

=back

lib/Google/Cloud/Metastore/V1/Metastore.pm  view on Meta::CPAN

our $Service_SPANNER = 2;

=pod

=head2 Enum: Service::DatabaseType

Values:

=over 4

=item * C<DATABASE_TYPE_UNSPECIFIED> => 0

=item * C<MYSQL> => 1

=item * C<SPANNER> => 2

=back

=cut

# === Message: Google::Cloud::Metastore::V1::Metastore::MaintenanceWindow ===
    # Fields for MaintenanceWindow
    # Field: hour_of_day Type: 11 (.google.protobuf.Int32Value)
    # Field: day_of_week Type: 14 (.google.type.DayOfWeek)

=pod

=head1 NAME

Google::Cloud::Metastore::V1::Metastore::MaintenanceWindow - Compiled Protocol Buffers message class

=head1 SYNOPSIS

    use Google::Cloud::Metastore::V1::Metastore;

    my $msg = Google::Cloud::Metastore::V1::Metastore::MaintenanceWindow->new(
        hour_of_day => $value,
    );

=head1 FIELDS

=over 4

=item * B<hour_of_day>

Type: Message (.google.protobuf.Int32Value)

=item * B<day_of_week>

Type: Enum (.google.type.DayOfWeek)

=back

=cut

# === Message: Google::Cloud::Metastore::V1::Metastore::HiveMetastoreConfig ===
    # Fields for HiveMetastoreConfig
    # Field: version Type: 9 ()
    # Field: config_overrides Type: 11 (.google.cloud.metastore.v1.HiveMetastoreConfig.ConfigOverridesEntry)
    # Field: kerberos_config Type: 11 (.google.cloud.metastore.v1.KerberosConfig)
    # Field: endpoint_protocol Type: 14 (.google.cloud.metastore.v1.HiveMetastoreConfig.EndpointProtocol)
    # Field: auxiliary_versions Type: 11 (.google.cloud.metastore.v1.HiveMetastoreConfig.AuxiliaryVersionsEntry)

=pod

=head1 NAME

Google::Cloud::Metastore::V1::Metastore::HiveMetastoreConfig - Compiled Protocol Buffers message class

=head1 SYNOPSIS

    use Google::Cloud::Metastore::V1::Metastore;

    my $msg = Google::Cloud::Metastore::V1::Metastore::HiveMetastoreConfig->new(
        version => $value,
    );

=head1 FIELDS

=over 4

=item * B<version>

Type: String

=item * B<config_overrides>

Type: Message (.google.cloud.metastore.v1.HiveMetastoreConfig.ConfigOverridesEntry)

=item * B<kerberos_config>

Type: Message (.google.cloud.metastore.v1.KerberosConfig)

=item * B<endpoint_protocol>

Type: Enum (.google.cloud.metastore.v1.HiveMetastoreConfig.EndpointProtocol)

=item * B<auxiliary_versions>

Type: Message (.google.cloud.metastore.v1.HiveMetastoreConfig.AuxiliaryVersionsEntry)

=back

=cut

# Enum: HiveMetastoreConfig::EndpointProtocol
our $HiveMetastoreConfig_ENDPOINT_PROTOCOL_UNSPECIFIED = 0;
our $HiveMetastoreConfig_THRIFT = 1;
our $HiveMetastoreConfig_GRPC = 2;

=pod

=head2 Enum: HiveMetastoreConfig::EndpointProtocol

Values:

=over 4

=item * C<ENDPOINT_PROTOCOL_UNSPECIFIED> => 0

=item * C<THRIFT> => 1

=item * C<GRPC> => 2

=back

=cut

# === Message: Google::Cloud::Metastore::V1::Metastore::KerberosConfig ===
    # Fields for KerberosConfig
    # Field: keytab Type: 11 (.google.cloud.metastore.v1.Secret)
    # Field: principal Type: 9 ()
    # Field: krb5_config_gcs_uri Type: 9 ()

=pod

=head1 NAME

Google::Cloud::Metastore::V1::Metastore::KerberosConfig - Compiled Protocol Buffers message class

=head1 SYNOPSIS

    use Google::Cloud::Metastore::V1::Metastore;

    my $msg = Google::Cloud::Metastore::V1::Metastore::KerberosConfig->new(
        keytab => $value,
    );

=head1 FIELDS

=over 4

=item * B<keytab>

lib/Google/Cloud/Metastore/V1/Metastore.pm  view on Meta::CPAN


=item * B<service>

Type: String

=item * B<resource_name>

Type: String

=item * B<location_uri>

Type: String

=back

=cut

# === Message: Google::Cloud::Metastore::V1::Metastore::AlterMetadataResourceLocationResponse ===
    # Fields for AlterMetadataResourceLocationResponse

=pod

=head1 NAME

Google::Cloud::Metastore::V1::Metastore::AlterMetadataResourceLocationResponse - Compiled Protocol Buffers message class

=head1 SYNOPSIS

    use Google::Cloud::Metastore::V1::Metastore;

    my $msg = Google::Cloud::Metastore::V1::Metastore::AlterMetadataResourceLocationResponse->new(
    );

=head1 FIELDS

=over 4

=back

=cut

# === Service Client: Google::Cloud::Metastore::V1::Metastore::DataprocMetastoreClient ===
package Google::Cloud::Metastore::V1::Metastore::DataprocMetastoreClient;

=pod

=head1 NAME

Google::Cloud::Metastore::V1::Metastore::DataprocMetastoreClient - Client stub representing the remote DataprocMetastore service

=head1 DESCRIPTION

This class acts as a local client stub for the remote gRPC service.
It delegates call dispatching to an underlying L<Google::gRPC::Client>
instance, ensuring type-safe request parsing and response mapping.

=head1 CONFIGURATION AND ENVIRONMENT

=head2 target

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

=head2 credentials

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

=cut

use Moo;
use Google::Auth;
use Google::gRPC::Client;

has credentials => ( is => 'ro', default => sub { Google::Auth->default() } );
has target      => ( is => 'ro', default => 'metastore.googleapis.com:443' );

has _grpc_client => (
    is => 'ro',
    lazy => 1,
    builder => sub {
        my $self = shift;
        return Google::gRPC::Client->new(
            target     => $self->target,
            auth_token => $self->credentials->get_token(),
        );
    }
);

sub list_services {
    my ($self, $args) = @_;
    my $req = ref($args) eq 'HASH'
        ? Google::Cloud::Metastore::V1::Metastore::ListServicesRequest->new($args)
        : $args;
    return $self->_grpc_client->call({
        service        => 'google.cloud.metastore.v1.DataprocMetastore',
        method         => 'ListServices',
        request        => $req,
        response_class => 'Google::Cloud::Metastore::V1::Metastore::ListServicesResponse',
    });
}

sub get_service {
    my ($self, $args) = @_;
    my $req = ref($args) eq 'HASH'
        ? Google::Cloud::Metastore::V1::Metastore::GetServiceRequest->new($args)
        : $args;
    return $self->_grpc_client->call({
        service        => 'google.cloud.metastore.v1.DataprocMetastore',
        method         => 'GetService',
        request        => $req,
        response_class => 'Google::Cloud::Metastore::V1::Metastore::Service',
    });
}

sub create_service {
    my ($self, $args) = @_;
    my $req = ref($args) eq 'HASH'
        ? Google::Cloud::Metastore::V1::Metastore::CreateServiceRequest->new($args)
        : $args;
    return $self->_grpc_client->call({
        service        => 'google.cloud.metastore.v1.DataprocMetastore',
        method         => 'CreateService',



( run in 2.135 seconds using v1.01-cache-2.11-cpan-81fc1098f69 )