Reference documentation and code samples for the Google Cloud Design Center V1 Client class CodePosition.
CodePosition represents a code location.
Generated from protobuf message google.cloud.designcenter.v1.CodePosition
Namespace
Google \ Cloud \ DesignCenter \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ line |
int
Output only. One-based line count of the relevant position. |
↳ byte_offset |
int
Output only. Byte offset in the content. |
↳ column |
int
Output only. One-based column count of the relevant position. |
getLine
Output only. One-based line count of the relevant position.
| Returns | |
|---|---|
| Type | Description |
int |
|
setLine
Output only. One-based line count of the relevant position.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getByteOffset
Output only. Byte offset in the content.
| Returns | |
|---|---|
| Type | Description |
int |
|
setByteOffset
Output only. Byte offset in the content.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getColumn
Output only. One-based column count of the relevant position.
| Returns | |
|---|---|
| Type | Description |
int |
|
setColumn
Output only. One-based column count of the relevant position.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|