Reference documentation and code samples for the Google Cloud Developer Connect V1 Client class BlameRange.
BlameRange represents blame information for a range of lines.
Generated from protobuf message google.cloud.developerconnect.v1.BlameRange
Namespace
Google \ Cloud \ DeveloperConnect \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ first_line |
int
The 1-indexed starting line number of the range (inclusive). |
↳ last_line |
int
The 1-indexed ending line number of the range (inclusive). |
↳ commit |
SCMCommit
The commit metadata for this line range. |
getFirstLine
The 1-indexed starting line number of the range (inclusive).
| Returns | |
|---|---|
| Type | Description |
int |
|
setFirstLine
The 1-indexed starting line number of the range (inclusive).
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getLastLine
The 1-indexed ending line number of the range (inclusive).
| Returns | |
|---|---|
| Type | Description |
int |
|
setLastLine
The 1-indexed ending line number of the range (inclusive).
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCommit
The commit metadata for this line range.
| Returns | |
|---|---|
| Type | Description |
SCMCommit|null |
|
hasCommit
clearCommit
setCommit
The commit metadata for this line range.
| Parameter | |
|---|---|
| Name | Description |
var |
SCMCommit
|
| Returns | |
|---|---|
| Type | Description |
$this |
|