Google Cloud Developer Connect V1 Client - Class FetchGitRepositoryLinkFileBlameRequest (0.9.0)

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

Request message for FetchGitRepositoryLinkFileBlame.

Generated from protobuf message google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest

Namespace

Google \ Cloud \ DeveloperConnect \ V1

Methods

__construct

Constructor.

Parameter
Name Description
data mixed

getName

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

Returns
Type Description
string

setName

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

Parameter
Name Description
var string
Returns
Type Description
$this

getRef

Required. The SCM commit SHA, or symbolic revision (e.g., branch name, tag) from which to fetch the blame.

Returns
Type Description
string

setRef

Required. The SCM commit SHA, or symbolic revision (e.g., branch name, tag) from which to fetch the blame.

Parameter
Name Description
var string
Returns
Type Description
$this

getPath

Required. The file path within the repository.

Returns
Type Description
string

setPath

Required. The file path within the repository.

Parameter
Name Description
var string
Returns
Type Description
$this

getFirstLine

Optional. The 1-indexed starting line number of the range to blame (inclusive). If not specified, blame begins at line 1.

Returns
Type Description
int

setFirstLine

Optional. The 1-indexed starting line number of the range to blame (inclusive). If not specified, blame begins at line 1.

Parameter
Name Description
var int
Returns
Type Description
$this

getLastLine

Optional. The 1-indexed ending line number of the range to blame (inclusive). If not specified, blame extends to the end of the file.

Returns
Type Description
int

setLastLine

Optional. The 1-indexed ending line number of the range to blame (inclusive). If not specified, blame extends to the end of the file.

Parameter
Name Description
var int
Returns
Type Description
$this

static::build

Parameters
Name Description
name string

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

ref string

Required. The SCM commit SHA, or symbolic revision (e.g., branch name, tag) from which to fetch the blame.

path string

Required. The file path within the repository.

Returns
Type Description
FetchGitRepositoryLinkFileBlameRequest