Service Client: Google::Devtools::Sourcerepo::V1::Sourcerepo::SourceRepoClient

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

target

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

credentials

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

NAME

Google::Devtools::Sourcerepo::V1::Sourcerepo - Compiled Protocol Buffers messages for google/devtools/sourcerepo/v1/sourcerepo.proto

SYNOPSIS

use Google::Devtools::Sourcerepo::V1::Sourcerepo;

my $msg = Google::Devtools::Sourcerepo::V1::Sourcerepo::Repo->new({
    name => $name,
    size => $size,
    url => $url,
    mirror_config => $mirror_config,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Devtools::Sourcerepo::V1::Sourcerepo::Repo->parse($bytes);

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

DESCRIPTION

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

MESSAGES

Google::Devtools::Sourcerepo::V1::Sourcerepo::Repo

A repository (or repo) is a Git repository storing versioned source content.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Resource name of the repository, of the form `projects/<project>/repos/<repo>`. The repo name may contain slashes. eg, `projects/myproject/repos/name/with/slash`

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

    Type: Int64

    The disk usage of the repo, in bytes. Read-only field. Size is only returned by GetRepo.

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

    Type: String

    URL to clone the repository from Google Cloud Source Repositories. Read-only field.

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

    Type: Message (Google::Devtools::Sourcerepo::V1::Sourcerepo::MirrorConfig)

    How this repository mirrors a repository managed by another service. Read-only field.

Google::Devtools::Sourcerepo::V1::Sourcerepo::MirrorConfig

Configuration to automatically mirror a repository from another hosting service, for example GitHub or BitBucket.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    URL of the main repository at the other hosting service.

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

    Type: String

    ID of the webhook listening to updates to trigger mirroring. Removing this webhook from the other hosting service will stop Google Cloud Source Repositories from receiving notifications, and thereby disabling mirroring.

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

    Type: String

    ID of the SSH deploy key at the other hosting service. Removing this key from the other service would deauthorize Google Cloud Source Repositories from mirroring.

Google::Devtools::Sourcerepo::V1::Sourcerepo::GetRepoRequest

Request for GetRepo.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The name of the requested repository. Values are of the form `projects/<project>/repos/<repo>`.

Google::Devtools::Sourcerepo::V1::Sourcerepo::ListReposRequest

Request for ListRepos.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The project ID whose repos should be listed. Values are of the form `projects/<project>`.

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

    Type: Int32

    Maximum number of repositories to return; between 1 and 500. If not set or zero, defaults to 100 at the server.

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

    Type: String

    Resume listing repositories where a prior ListReposResponse left off. This is an opaque token that must be obtained from a recent, prior ListReposResponse's next_page_token field.

Google::Devtools::Sourcerepo::V1::Sourcerepo::ListReposResponse

Response for ListRepos. The size is not set in the returned repositories.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Devtools::Sourcerepo::V1::Sourcerepo::Repo)

    The listed repos.

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

    Type: String

    If non-empty, additional repositories exist within the project. These can be retrieved by including this value in the next ListReposRequest's page_token field.

Google::Devtools::Sourcerepo::V1::Sourcerepo::CreateRepoRequest

Request for CreateRepo

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The project in which to create the repo. Values are of the form `projects/<project>`.

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

    Type: Message (Google::Devtools::Sourcerepo::V1::Sourcerepo::Repo)

    The repo to create. Only name should be set; setting other fields is an error. The project in the name should match the parent field.

Google::Devtools::Sourcerepo::V1::Sourcerepo::DeleteRepoRequest

Request for DeleteRepo.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The name of the repo to delete. Values are of the form `projects/<project>/repos/<repo>`.

SEE ALSO

Protobuf, Protobuf::Message, Google::Devtools::Sourcerepo::V1::Sourcerepo::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.