Google Cloud Secure Source Manager V1 Client - Class FileDiff (1.6.3)

Reference documentation and code samples for the Google Cloud Secure Source Manager V1 Client class FileDiff.

Metadata of a FileDiff. FileDiff represents a single file diff in a pullrequest.

Generated from protobuf messagegoogle.cloud.securesourcemanager.v1.FileDiff

Namespace

Google \ Cloud \ SecureSourceManager \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ namestring

Output only. The name of the file.

↳ actionint

Output only. The action taken on the file (eg. added, modified, deleted).

↳ shastring

Output only. The commit pointing to the file changes.

↳ patchstring

Output only. The git patch containing the file changes.

getName

Output only. The name of the file.

Returns
TypeDescription
string

setName

Output only. The name of the file.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getAction

Output only. The action taken on the file (eg. added, modified, deleted).

Returns
TypeDescription
intEnum of typeAction.

setAction

Output only. The action taken on the file (eg. added, modified, deleted).

Parameter
NameDescription
varint

Enum of typeAction.

Returns
TypeDescription
$this

getSha

Output only. The commit pointing to the file changes.

Returns
TypeDescription
string

setSha

Output only. The commit pointing to the file changes.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getPatch

Output only. The git patch containing the file changes.

Returns
TypeDescription
string

setPatch

Output only. The git patch containing the file changes.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

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.