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

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

Message for a file diff.

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

Namespace

Google \ Cloud \ DeveloperConnect \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ path string

Relative path to the file in the repository.

↳ status string

Status of change: "ADDED", "MODIFIED", "REMOVED", "RENAMED".

↳ patch string

Standard unified diff patch hunk for the file. Only populated when path_filters is specified in the request; otherwise empty.

getPath

Relative path to the file in the repository.

Returns
Type Description
string

setPath

Relative path to the file in the repository.

Parameter
Name Description
var string
Returns
Type Description
$this

getStatus

Status of change: "ADDED", "MODIFIED", "REMOVED", "RENAMED".

Returns
Type Description
string

setStatus

Status of change: "ADDED", "MODIFIED", "REMOVED", "RENAMED".

Parameter
Name Description
var string
Returns
Type Description
$this

getPatch

Standard unified diff patch hunk for the file. Only populated when path_filters is specified in the request; otherwise empty.

Returns
Type Description
string

setPatch

Standard unified diff patch hunk for the file. Only populated when path_filters is specified in the request; otherwise empty.

Parameter
Name Description
var string
Returns
Type Description
$this