When the process represents the invocation of a script,binaryprovides information about the interpreter, whilescriptprovides information about the script file provided to the interpreter.
When the process represents the invocation of a script,binaryprovides
information about the interpreter, whilescriptprovides information
about the script file provided to the interpreter.
When the process represents the invocation of a script,binaryprovides
information about the interpreter, whilescriptprovides information
about the script file provided to the interpreter.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Security Command Center V2 Client - Class Process (2.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.1 (latest)](/php/docs/reference/cloud-security-center/latest/V2.Process)\n- [2.2.0](/php/docs/reference/cloud-security-center/2.2.0/V2.Process)\n- [2.1.1](/php/docs/reference/cloud-security-center/2.1.1/V2.Process)\n- [2.0.4](/php/docs/reference/cloud-security-center/2.0.4/V2.Process)\n- [1.32.0](/php/docs/reference/cloud-security-center/1.32.0/V2.Process)\n- [1.31.0](/php/docs/reference/cloud-security-center/1.31.0/V2.Process)\n- [1.30.0](/php/docs/reference/cloud-security-center/1.30.0/V2.Process)\n- [1.29.0](/php/docs/reference/cloud-security-center/1.29.0/V2.Process)\n- [1.28.2](/php/docs/reference/cloud-security-center/1.28.2/V2.Process)\n- [1.21.0](/php/docs/reference/cloud-security-center/1.21.0/V2.Process)\n- [1.20.2](/php/docs/reference/cloud-security-center/1.20.2/V2.Process)\n- [1.19.1](/php/docs/reference/cloud-security-center/1.19.1/V2.Process)\n- [1.18.0](/php/docs/reference/cloud-security-center/1.18.0/V2.Process)\n- [1.17.0](/php/docs/reference/cloud-security-center/1.17.0/V2.Process)\n- [1.16.0](/php/docs/reference/cloud-security-center/1.16.0/V2.Process)\n- [1.15.1](/php/docs/reference/cloud-security-center/1.15.1/V2.Process)\n- [1.14.2](/php/docs/reference/cloud-security-center/1.14.2/V2.Process)\n- [1.13.1](/php/docs/reference/cloud-security-center/1.13.1/V2.Process) \nReference documentation and code samples for the Google Cloud Security Command Center V2 Client class Process.\n\nRepresents an operating system process.\n\nGenerated from protobuf message `google.cloud.securitycenter.v2.Process`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ SecurityCenter \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nThe process name, as displayed in utilities like `top` and `ps`. This name\ncan be accessed through `/proc/[pid]/comm` and changed with\n`prctl(PR_SET_NAME)`.\n\n### setName\n\nThe process name, as displayed in utilities like `top` and `ps`. This name\ncan be accessed through `/proc/[pid]/comm` and changed with\n`prctl(PR_SET_NAME)`.\n\n### getBinary\n\nFile information for the process executable.\n\n### hasBinary\n\n### clearBinary\n\n### setBinary\n\nFile information for the process executable.\n\n### getLibraries\n\nFile information for libraries loaded by the process.\n\n### setLibraries\n\nFile information for libraries loaded by the process.\n\n### getScript\n\nWhen the process represents the invocation of a script, `binary` provides\ninformation about the interpreter, while `script` provides information\nabout the script file provided to the interpreter.\n\n### hasScript\n\n### clearScript\n\n### setScript\n\nWhen the process represents the invocation of a script, `binary` provides\ninformation about the interpreter, while `script` provides information\nabout the script file provided to the interpreter.\n\n### getArgs\n\nProcess arguments as JSON encoded strings.\n\n### setArgs\n\nProcess arguments as JSON encoded strings.\n\n### getArgumentsTruncated\n\nTrue if `args` is incomplete.\n\n### setArgumentsTruncated\n\nTrue if `args` is incomplete.\n\n### getEnvVariables\n\nProcess environment variables.\n\n### setEnvVariables\n\nProcess environment variables.\n\n### getEnvVariablesTruncated\n\nTrue if `env_variables` is incomplete.\n\n### setEnvVariablesTruncated\n\nTrue if `env_variables` is incomplete.\n\n### getPid\n\nThe process ID.\n\n### setPid\n\nThe process ID.\n\n### getParentPid\n\nThe parent process ID.\n\n### setParentPid\n\nThe parent process ID.\n\n### getUserId\n\nThe ID of the user that executed the process. E.g. If this is the root user\nthis will always be 0.\n\n### setUserId\n\nThe ID of the user that executed the process. E.g. If this is the root user\nthis will always be 0."]]