package Google::Dataflow::V1beta3::Snapshots;

use strict;
use warnings;

our $VERSION = '0.11';

use Protobuf::Message;
use Protobuf::DescriptorPool;
use Protobuf::Internal qw(:all);
use MIME::Base64;

BEGIN {
    eval { require Google::Api::Annotations };
    eval { require Google::Api::Client };
    eval { require Google::Protobuf::Duration };
    eval { require Google::Protobuf::Timestamp };
    my $descriptor_b64 = <<'EOF';
[encoded data, 9636 characters]
EgSyASAhYgZwcm90bzM=
EOF
    Protobuf::DescriptorPool->generated_pool->add_serialized_file(MIME::Base64::decode_base64($descriptor_b64));
}

# Message definitions

# === Message: Google::Dataflow::V1beta3::Snapshots::PubsubSnapshotMetadata ===
    # Fields for PubsubSnapshotMetadata
    # Field: topic_name Type: 9 ()
    # Field: snapshot_name Type: 9 ()
    # Field: expire_time Type: 11 (.google.protobuf.Timestamp)

=pod

=head1 NAME

Google::Dataflow::V1beta3::Snapshots::PubsubSnapshotMetadata - Compiled Protocol Buffers message class

=head1 SYNOPSIS

    use Google::Dataflow::V1beta3::Snapshots;

    my $msg = Google::Dataflow::V1beta3::Snapshots::PubsubSnapshotMetadata->new(
        topic_name => $value,
    );

=head1 FIELDS

=over 4

=item * B<topic_name>

Type: String

=item * B<snapshot_name>

Type: String

=item * B<expire_time>

Type: Message (.google.protobuf.Timestamp)

=back

=cut

# === Message: Google::Dataflow::V1beta3::Snapshots::Snapshot ===
    # Fields for Snapshot
    # Field: id Type: 9 ()
    # Field: project_id Type: 9 ()
    # Field: source_job_id Type: 9 ()
    # Field: creation_time Type: 11 (.google.protobuf.Timestamp)
    # Field: ttl Type: 11 (.google.protobuf.Duration)
    # Field: state Type: 14 (.google.dataflow.v1beta3.SnapshotState)
    # Field: pubsub_metadata Type: 11 (.google.dataflow.v1beta3.PubsubSnapshotMetadata)
    # Field: description Type: 9 ()
    # Field: disk_size_bytes Type: 3 ()
    # Field: region Type: 9 ()

=pod

=head1 NAME

Google::Dataflow::V1beta3::Snapshots::Snapshot - Compiled Protocol Buffers message class

=head1 SYNOPSIS

    use Google::Dataflow::V1beta3::Snapshots;

    my $msg = Google::Dataflow::V1beta3::Snapshots::Snapshot->new(
        id => $value,
    );

=head1 FIELDS

=over 4

=item * B<id>

Type: String

=item * B<project_id>

Type: String

=item * B<source_job_id>

Type: String

=item * B<creation_time>

Type: Message (.google.protobuf.Timestamp)

=item * B<ttl>

Type: Message (.google.protobuf.Duration)

=item * B<state>

Type: Enum (.google.dataflow.v1beta3.SnapshotState)

=item * B<pubsub_metadata>

Type: Message (.google.dataflow.v1beta3.PubsubSnapshotMetadata)

=item * B<description>

Type: String

=item * B<disk_size_bytes>

Type: Int64

=item * B<region>

Type: String

=back

=cut

# === Message: Google::Dataflow::V1beta3::Snapshots::GetSnapshotRequest ===
    # Fields for GetSnapshotRequest
    # Field: project_id Type: 9 ()
    # Field: snapshot_id Type: 9 ()
    # Field: location Type: 9 ()

=pod

=head1 NAME

Google::Dataflow::V1beta3::Snapshots::GetSnapshotRequest - Compiled Protocol Buffers message class

=head1 SYNOPSIS

    use Google::Dataflow::V1beta3::Snapshots;

    my $msg = Google::Dataflow::V1beta3::Snapshots::GetSnapshotRequest->new(
        project_id => $value,
    );

=head1 FIELDS

=over 4

=item * B<project_id>

Type: String

=item * B<snapshot_id>

Type: String

=item * B<location>

Type: String

=back

=cut

# === Message: Google::Dataflow::V1beta3::Snapshots::DeleteSnapshotRequest ===
    # Fields for DeleteSnapshotRequest
    # Field: project_id Type: 9 ()
    # Field: snapshot_id Type: 9 ()
    # Field: location Type: 9 ()

=pod

=head1 NAME

Google::Dataflow::V1beta3::Snapshots::DeleteSnapshotRequest - Compiled Protocol Buffers message class

=head1 SYNOPSIS

    use Google::Dataflow::V1beta3::Snapshots;

    my $msg = Google::Dataflow::V1beta3::Snapshots::DeleteSnapshotRequest->new(
        project_id => $value,
    );

=head1 FIELDS

=over 4

=item * B<project_id>

Type: String

=item * B<snapshot_id>

Type: String

=item * B<location>

Type: String

=back

=cut

# === Message: Google::Dataflow::V1beta3::Snapshots::DeleteSnapshotResponse ===
    # Fields for DeleteSnapshotResponse

=pod

=head1 NAME

Google::Dataflow::V1beta3::Snapshots::DeleteSnapshotResponse - Compiled Protocol Buffers message class

=head1 SYNOPSIS

    use Google::Dataflow::V1beta3::Snapshots;

    my $msg = Google::Dataflow::V1beta3::Snapshots::DeleteSnapshotResponse->new(
    );

=head1 FIELDS

=over 4

=back

=cut

# === Message: Google::Dataflow::V1beta3::Snapshots::ListSnapshotsRequest ===
    # Fields for ListSnapshotsRequest
    # Field: project_id Type: 9 ()
    # Field: job_id Type: 9 ()
    # Field: location Type: 9 ()

=pod

=head1 NAME

Google::Dataflow::V1beta3::Snapshots::ListSnapshotsRequest - Compiled Protocol Buffers message class

=head1 SYNOPSIS

    use Google::Dataflow::V1beta3::Snapshots;

    my $msg = Google::Dataflow::V1beta3::Snapshots::ListSnapshotsRequest->new(
        project_id => $value,
    );

=head1 FIELDS

=over 4

=item * B<project_id>

Type: String

=item * B<job_id>

Type: String

=item * B<location>

Type: String

=back

=cut

# === Message: Google::Dataflow::V1beta3::Snapshots::ListSnapshotsResponse ===
    # Fields for ListSnapshotsResponse
    # Field: snapshots Type: 11 (.google.dataflow.v1beta3.Snapshot)

=pod

=head1 NAME

Google::Dataflow::V1beta3::Snapshots::ListSnapshotsResponse - Compiled Protocol Buffers message class

=head1 SYNOPSIS

    use Google::Dataflow::V1beta3::Snapshots;

    my $msg = Google::Dataflow::V1beta3::Snapshots::ListSnapshotsResponse->new(
        snapshots => $value,
    );

=head1 FIELDS

=over 4

=item * B<snapshots>

Type: Message (.google.dataflow.v1beta3.Snapshot)

=back

=cut

# === Service Client: Google::Dataflow::V1beta3::Snapshots::SnapshotsV1Beta3Client ===
package Google::Dataflow::V1beta3::Snapshots::SnapshotsV1Beta3Client;

=pod

=head1 NAME

Google::Dataflow::V1beta3::Snapshots::SnapshotsV1Beta3Client - Client stub representing the remote SnapshotsV1Beta3 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<dataflow.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 => 'dataflow.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 get_snapshot {
    my ($self, $args) = @_;
    my $req = ref($args) eq 'HASH'
        ? Google::Dataflow::V1beta3::Snapshots::GetSnapshotRequest->new($args)
        : $args;
    return $self->_grpc_client->call({
        service        => 'google.dataflow.v1beta3.SnapshotsV1Beta3',
        method         => 'GetSnapshot',
        request        => $req,
        response_class => 'Google::Dataflow::V1beta3::Snapshots::Snapshot',
    });
}

sub delete_snapshot {
    my ($self, $args) = @_;
    my $req = ref($args) eq 'HASH'
        ? Google::Dataflow::V1beta3::Snapshots::DeleteSnapshotRequest->new($args)
        : $args;
    return $self->_grpc_client->call({
        service        => 'google.dataflow.v1beta3.SnapshotsV1Beta3',
        method         => 'DeleteSnapshot',
        request        => $req,
        response_class => 'Google::Dataflow::V1beta3::Snapshots::DeleteSnapshotResponse',
    });
}

sub list_snapshots {
    my ($self, $args) = @_;
    my $req = ref($args) eq 'HASH'
        ? Google::Dataflow::V1beta3::Snapshots::ListSnapshotsRequest->new($args)
        : $args;
    return $self->_grpc_client->call({
        service        => 'google.dataflow.v1beta3.SnapshotsV1Beta3',
        method         => 'ListSnapshots',
        request        => $req,
        response_class => 'Google::Dataflow::V1beta3::Snapshots::ListSnapshotsResponse',
    });
}

1;

__END__

=head1 NAME

Google::Dataflow::V1beta3::Snapshots - Protocol Buffers schema definition

=head1 DESCRIPTION

Auto-generated Protocol Buffers schema definition class.

=head1 LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.

=cut
