Google Cloud Secure Source Manager V1 Client - Class TreeEntry (1.5.0)

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

Represents an entry within a tree structure (like a Git tree).

Generated from protobuf message google.cloud.securesourcemanager.v1.TreeEntry

Namespace

Google \ Cloud \ SecureSourceManager \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ type int

Output only. The type of the object (TREE, BLOB, COMMIT). Output-only.

↳ sha string

Output only. The SHA-1 hash of the object (unique identifier). Output-only.

↳ path string

Output only. The path of the file or directory within the tree (e.g., "src/main/java/MyClass.java"). Output-only.

↳ mode string

Output only. The file mode as a string (e.g., "100644"). Indicates file type. Output-only.

↳ size int|string

Output only. The size of the object in bytes (only for blobs). Output-only.

getType

Output only. The type of the object (TREE, BLOB, COMMIT). Output-only.

Returns
Type Description
int

setType

Output only. The type of the object (TREE, BLOB, COMMIT). Output-only.

Parameter
Name Description
var int
Returns
Type Description
$this

getSha

Output only. The SHA-1 hash of the object (unique identifier). Output-only.

Returns
Type Description
string

setSha

Output only. The SHA-1 hash of the object (unique identifier). Output-only.

Parameter
Name Description
var string
Returns
Type Description
$this

getPath

Output only. The path of the file or directory within the tree (e.g., "src/main/java/MyClass.java"). Output-only.

Returns
Type Description
string

setPath

Output only. The path of the file or directory within the tree (e.g., "src/main/java/MyClass.java"). Output-only.

Parameter
Name Description
var string
Returns
Type Description
$this

getMode

Output only. The file mode as a string (e.g., "100644"). Indicates file type. Output-only.

Returns
Type Description
string

setMode

Output only. The file mode as a string (e.g., "100644"). Indicates file type. Output-only.

Parameter
Name Description
var string
Returns
Type Description
$this

getSize

Output only. The size of the object in bytes (only for blobs). Output-only.

Returns
Type Description
int|string

setSize

Output only. The size of the object in bytes (only for blobs). Output-only.

Parameter
Name Description
var int|string
Returns
Type Description
$this