Google Cloud Developer Connect V1 Client - Class FetchGitRefsRequest (0.5.3)

Reference documentation and code samples for the Google Cloud Developer Connect V1 Client class FetchGitRefsRequest.

Request for fetching git refs.

Generated from protobuf messagegoogle.cloud.developerconnect.v1.FetchGitRefsRequest

Namespace

Google \ Cloud \ DeveloperConnect \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ git_repository_linkstring

Required. The resource name of GitRepositoryLink in the formatprojects/*/locations/*/connections/*/gitRepositoryLinks/*.

↳ ref_typeint

Required. Type of refs to fetch.

↳ page_sizeint

Optional. Number of results to return in the list. Default to 20.

↳ page_tokenstring

Optional. Page start.

getGitRepositoryLink

Required. The resource name of GitRepositoryLink in the formatprojects/*/locations/*/connections/*/gitRepositoryLinks/*.

Returns
TypeDescription
string

setGitRepositoryLink

Required. The resource name of GitRepositoryLink in the formatprojects/*/locations/*/connections/*/gitRepositoryLinks/*.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getRefType

Required. Type of refs to fetch.

Returns
TypeDescription
intEnum of typeRefType.

setRefType

Required. Type of refs to fetch.

Parameter
NameDescription
varint

Enum of typeRefType.

Returns
TypeDescription
$this

getPageSize

Optional. Number of results to return in the list. Default to 20.

Returns
TypeDescription
int

setPageSize

Optional. Number of results to return in the list. Default to 20.

Parameter
NameDescription
varint
Returns
TypeDescription
$this

getPageToken

Optional. Page start.

Returns
TypeDescription
string

setPageToken

Optional. Page start.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
gitRepositoryLinkstring

Required. The resource name of GitRepositoryLink in the formatprojects/*/locations/*/connections/*/gitRepositoryLinks/*. Please seeDeveloperConnectClient::gitRepositoryLinkName() for help formatting this field.

refTypeint

Required. Type of refs to fetch.For allowed values, use constants defined onFetchGitRefsRequest\RefType

Returns
TypeDescription
FetchGitRefsRequest

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-01-24 UTC.