Class Process (2.59.0)

public final class Process extends GeneratedMessageV3 implements ProcessOrBuilder

Represents an operating system process.

Protobuf type google.cloud.securitycenter.v1.Process

Implements

ProcessOrBuilder

Static Fields

ARGS_FIELD_NUMBER

public static final int ARGS_FIELD_NUMBER
Field Value
Type Description
int

ARGUMENTS_TRUNCATED_FIELD_NUMBER

public static final int ARGUMENTS_TRUNCATED_FIELD_NUMBER
Field Value
Type Description
int

BINARY_FIELD_NUMBER

public static final int BINARY_FIELD_NUMBER
Field Value
Type Description
int

ENV_VARIABLES_FIELD_NUMBER

public static final int ENV_VARIABLES_FIELD_NUMBER
Field Value
Type Description
int

ENV_VARIABLES_TRUNCATED_FIELD_NUMBER

public static final int ENV_VARIABLES_TRUNCATED_FIELD_NUMBER
Field Value
Type Description
int

LIBRARIES_FIELD_NUMBER

public static final int LIBRARIES_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

PARENT_PID_FIELD_NUMBER

public static final int PARENT_PID_FIELD_NUMBER
Field Value
Type Description
int

PID_FIELD_NUMBER

public static final int PID_FIELD_NUMBER
Field Value
Type Description
int

SCRIPT_FIELD_NUMBER

public static final int SCRIPT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Process getDefaultInstance()
Returns
Type Description
Process

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Process.Builder newBuilder()
Returns
Type Description
Process.Builder

newBuilder(Process prototype)

public static Process.Builder newBuilder(Process prototype)
Parameter
Name Description
prototype Process
Returns
Type Description
Process.Builder

parseDelimitedFrom(InputStream input)

public static Process parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Process
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Process parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Process
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Process parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Process
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Process parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Process
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Process parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Process
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Process parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Process
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Process parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Process
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Process parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Process
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Process parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Process
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Process parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Process
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Process parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Process
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Process parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Process
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Process> parser()
Returns
Type Description
Parser<Process>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getArgs(int index)

public String getArgs(int index)

Process arguments as JSON encoded strings.

repeated string args = 6;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The args at the given index.

getArgsBytes(int index)

public ByteString getArgsBytes(int index)

Process arguments as JSON encoded strings.

repeated string args = 6;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the args at the given index.

getArgsCount()

public int getArgsCount()

Process arguments as JSON encoded strings.

repeated string args = 6;

Returns
Type Description
int

The count of args.

getArgsList()

public ProtocolStringList getArgsList()

Process arguments as JSON encoded strings.

repeated string args = 6;

Returns
Type Description
ProtocolStringList

A list containing the args.

getArgumentsTruncated()

public boolean getArgumentsTruncated()

True if args is incomplete.

bool arguments_truncated = 7;

Returns
Type Description
boolean

The argumentsTruncated.

getBinary()

public File getBinary()

File information for the process executable.

.google.cloud.securitycenter.v1.File binary = 3;

Returns
Type Description
File

The binary.

getBinaryOrBuilder()

public FileOrBuilder getBinaryOrBuilder()

File information for the process executable.

.google.cloud.securitycenter.v1.File binary = 3;

Returns
Type Description
FileOrBuilder

getDefaultInstanceForType()

public Process getDefaultInstanceForType()
Returns
Type Description
Process

getEnvVariables(int index)

public EnvironmentVariable getEnvVariables(int index)

Process environment variables.

repeated .google.cloud.securitycenter.v1.EnvironmentVariable env_variables = 8;

Parameter
Name Description
index int
Returns
Type Description
EnvironmentVariable

getEnvVariablesCount()

public int getEnvVariablesCount()

Process environment variables.

repeated .google.cloud.securitycenter.v1.EnvironmentVariable env_variables = 8;

Returns
Type Description
int

getEnvVariablesList()

public List<EnvironmentVariable> getEnvVariablesList()

Process environment variables.

repeated .google.cloud.securitycenter.v1.EnvironmentVariable env_variables = 8;

Returns
Type Description
List<EnvironmentVariable>

getEnvVariablesOrBuilder(int index)

public EnvironmentVariableOrBuilder getEnvVariablesOrBuilder(int index)

Process environment variables.

repeated .google.cloud.securitycenter.v1.EnvironmentVariable env_variables = 8;

Parameter
Name Description
index int
Returns
Type Description
EnvironmentVariableOrBuilder

getEnvVariablesOrBuilderList()

public List<? extends EnvironmentVariableOrBuilder> getEnvVariablesOrBuilderList()

Process environment variables.

repeated .google.cloud.securitycenter.v1.EnvironmentVariable env_variables = 8;

Returns
Type Description
List<? extends com.google.cloud.securitycenter.v1.EnvironmentVariableOrBuilder>

getEnvVariablesTruncated()

public boolean getEnvVariablesTruncated()

True if env_variables is incomplete.

bool env_variables_truncated = 9;

Returns
Type Description
boolean

The envVariablesTruncated.

getLibraries(int index)

public File getLibraries(int index)

File information for libraries loaded by the process.

repeated .google.cloud.securitycenter.v1.File libraries = 4;

Parameter
Name Description
index int
Returns
Type Description
File

getLibrariesCount()

public int getLibrariesCount()

File information for libraries loaded by the process.

repeated .google.cloud.securitycenter.v1.File libraries = 4;

Returns
Type Description
int

getLibrariesList()

public List<File> getLibrariesList()

File information for libraries loaded by the process.

repeated .google.cloud.securitycenter.v1.File libraries = 4;

Returns
Type Description
List<File>

getLibrariesOrBuilder(int index)

public FileOrBuilder getLibrariesOrBuilder(int index)

File information for libraries loaded by the process.

repeated .google.cloud.securitycenter.v1.File libraries = 4;

Parameter
Name Description
index int
Returns
Type Description
FileOrBuilder

getLibrariesOrBuilderList()

public List<? extends FileOrBuilder> getLibrariesOrBuilderList()

File information for libraries loaded by the process.

repeated .google.cloud.securitycenter.v1.File libraries = 4;

Returns
Type Description
List<? extends com.google.cloud.securitycenter.v1.FileOrBuilder>

getName()

public String getName()

The process name, as displayed in utilities like top and ps. This name can be accessed through /proc/[pid]/comm and changed with prctl(PR_SET_NAME).

string name = 12;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The process name, as displayed in utilities like top and ps. This name can be accessed through /proc/[pid]/comm and changed with prctl(PR_SET_NAME).

string name = 12;

Returns
Type Description
ByteString

The bytes for name.

getParentPid()

public long getParentPid()

The parent process ID.

int64 parent_pid = 11;

Returns
Type Description
long

The parentPid.

getParserForType()

public Parser<Process> getParserForType()
Returns
Type Description
Parser<Process>
Overrides

getPid()

public long getPid()

The process ID.

int64 pid = 10;

Returns
Type Description
long

The pid.

getScript()

public File 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.

.google.cloud.securitycenter.v1.File script = 5;

Returns
Type Description
File

The script.

getScriptOrBuilder()

public FileOrBuilder getScriptOrBuilder()

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.

.google.cloud.securitycenter.v1.File script = 5;

Returns
Type Description
FileOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasBinary()

public boolean hasBinary()

File information for the process executable.

.google.cloud.securitycenter.v1.File binary = 3;

Returns
Type Description
boolean

Whether the binary field is set.

hasScript()

public boolean hasScript()

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.

.google.cloud.securitycenter.v1.File script = 5;

Returns
Type Description
boolean

Whether the script field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Process.Builder newBuilderForType()
Returns
Type Description
Process.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Process.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Process.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Process.Builder toBuilder()
Returns
Type Description
Process.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException