Reference documentation and code samples for the Google Cloud Security Command Center V1 Client class Process.
Represents an operating system process.
Generated from protobuf message google.cloud.securitycenter.v1.Process
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
The process name visible in utilities like |
↳ binary |
Google\Cloud\SecurityCenter\V1\File
File information for the process executable. |
↳ libraries |
array<Google\Cloud\SecurityCenter\V1\File>
File information for libraries loaded by the process. |
↳ script |
Google\Cloud\SecurityCenter\V1\File
When the process represents the invocation of a script, |
↳ args |
array
Process arguments as JSON encoded strings. |
↳ arguments_truncated |
bool
True if |
↳ env_variables |
array<Google\Cloud\SecurityCenter\V1\EnvironmentVariable>
Process environment variables. |
↳ env_variables_truncated |
bool
True if |
↳ pid |
int|string
The process id. |
↳ parent_pid |
int|string
The parent process id. |
getName
The process name visible in utilities like top
and ps
; it can
be accessed via /proc/[pid]/comm
and changed with prctl(PR_SET_NAME)
.
Generated from protobuf field string name = 12;
Returns | |
---|---|
Type | Description |
string |
setName
The process name visible in utilities like top
and ps
; it can
be accessed via /proc/[pid]/comm
and changed with prctl(PR_SET_NAME)
.
Generated from protobuf field string name = 12;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getBinary
File information for the process executable.
Generated from protobuf field .google.cloud.securitycenter.v1.File binary = 3;
Returns | |
---|---|
Type | Description |
Google\Cloud\SecurityCenter\V1\File|null |
hasBinary
clearBinary
setBinary
File information for the process executable.
Generated from protobuf field .google.cloud.securitycenter.v1.File binary = 3;
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\SecurityCenter\V1\File
|
Returns | |
---|---|
Type | Description |
$this |
getLibraries
File information for libraries loaded by the process.
Generated from protobuf field repeated .google.cloud.securitycenter.v1.File libraries = 4;
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setLibraries
File information for libraries loaded by the process.
Generated from protobuf field repeated .google.cloud.securitycenter.v1.File libraries = 4;
Parameter | |
---|---|
Name | Description |
var |
array<Google\Cloud\SecurityCenter\V1\File>
|
Returns | |
---|---|
Type | Description |
$this |
getScript
When the process represents the invocation of a script,
binary
provides information about the interpreter while script
provides information about the script file provided to the
interpreter.
Generated from protobuf field .google.cloud.securitycenter.v1.File script = 5;
Returns | |
---|---|
Type | Description |
Google\Cloud\SecurityCenter\V1\File|null |
hasScript
clearScript
setScript
When the process represents the invocation of a script,
binary
provides information about the interpreter while script
provides information about the script file provided to the
interpreter.
Generated from protobuf field .google.cloud.securitycenter.v1.File script = 5;
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\SecurityCenter\V1\File
|
Returns | |
---|---|
Type | Description |
$this |
getArgs
Process arguments as JSON encoded strings.
Generated from protobuf field repeated string args = 6;
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setArgs
Process arguments as JSON encoded strings.
Generated from protobuf field repeated string args = 6;
Parameter | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$this |
getArgumentsTruncated
True if args
is incomplete.
Generated from protobuf field bool arguments_truncated = 7;
Returns | |
---|---|
Type | Description |
bool |
setArgumentsTruncated
True if args
is incomplete.
Generated from protobuf field bool arguments_truncated = 7;
Parameter | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |
getEnvVariables
Process environment variables.
Generated from protobuf field repeated .google.cloud.securitycenter.v1.EnvironmentVariable env_variables = 8;
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setEnvVariables
Process environment variables.
Generated from protobuf field repeated .google.cloud.securitycenter.v1.EnvironmentVariable env_variables = 8;
Parameter | |
---|---|
Name | Description |
var |
array<Google\Cloud\SecurityCenter\V1\EnvironmentVariable>
|
Returns | |
---|---|
Type | Description |
$this |
getEnvVariablesTruncated
True if env_variables
is incomplete.
Generated from protobuf field bool env_variables_truncated = 9;
Returns | |
---|---|
Type | Description |
bool |
setEnvVariablesTruncated
True if env_variables
is incomplete.
Generated from protobuf field bool env_variables_truncated = 9;
Parameter | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |
getPid
The process id.
Generated from protobuf field int64 pid = 10;
Returns | |
---|---|
Type | Description |
int|string |
setPid
The process id.
Generated from protobuf field int64 pid = 10;
Parameter | |
---|---|
Name | Description |
var |
int|string
|
Returns | |
---|---|
Type | Description |
$this |
getParentPid
The parent process id.
Generated from protobuf field int64 parent_pid = 11;
Returns | |
---|---|
Type | Description |
int|string |
setParentPid
The parent process id.
Generated from protobuf field int64 parent_pid = 11;
Parameter | |
---|---|
Name | Description |
var |
int|string
|
Returns | |
---|---|
Type | Description |
$this |