Class Process (2.41.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
TypeDescription
int

ARGUMENTS_TRUNCATED_FIELD_NUMBER

public static final int ARGUMENTS_TRUNCATED_FIELD_NUMBER
Field Value
TypeDescription
int

BINARY_FIELD_NUMBER

public static final int BINARY_FIELD_NUMBER
Field Value
TypeDescription
int

ENV_VARIABLES_FIELD_NUMBER

public static final int ENV_VARIABLES_FIELD_NUMBER
Field Value
TypeDescription
int

ENV_VARIABLES_TRUNCATED_FIELD_NUMBER

public static final int ENV_VARIABLES_TRUNCATED_FIELD_NUMBER
Field Value
TypeDescription
int

LIBRARIES_FIELD_NUMBER

public static final int LIBRARIES_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

PARENT_PID_FIELD_NUMBER

public static final int PARENT_PID_FIELD_NUMBER
Field Value
TypeDescription
int

PID_FIELD_NUMBER

public static final int PID_FIELD_NUMBER
Field Value
TypeDescription
int

SCRIPT_FIELD_NUMBER

public static final int SCRIPT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Process getDefaultInstance()
Returns
TypeDescription
Process

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Process.Builder newBuilder()
Returns
TypeDescription
Process.Builder

newBuilder(Process prototype)

public static Process.Builder newBuilder(Process prototype)
Parameter
NameDescription
prototypeProcess
Returns
TypeDescription
Process.Builder

parseDelimitedFrom(InputStream input)

public static Process parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Process
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Process parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Process
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Process parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Process
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Process parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Process
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Process parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Process
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Process parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Process
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Process parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Process
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Process parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Process
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Process parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Process
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Process parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Process
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Process parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Process
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Process parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Process
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Process> parser()
Returns
TypeDescription
Parser<Process>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getArgs(int index)

public String getArgs(int index)

Process arguments as JSON encoded strings.

repeated string args = 6;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
int

The count of args.

getArgsList()

public ProtocolStringList getArgsList()

Process arguments as JSON encoded strings.

repeated string args = 6;

Returns
TypeDescription
ProtocolStringList

A list containing the args.

getArgumentsTruncated()

public boolean getArgumentsTruncated()

True if args is incomplete.

bool arguments_truncated = 7;

Returns
TypeDescription
boolean

The argumentsTruncated.

getBinary()

public File getBinary()

File information for the process executable.

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

Returns
TypeDescription
File

The binary.

getBinaryOrBuilder()

public FileOrBuilder getBinaryOrBuilder()

File information for the process executable.

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

Returns
TypeDescription
FileOrBuilder

getDefaultInstanceForType()

public Process getDefaultInstanceForType()
Returns
TypeDescription
Process

getEnvVariables(int index)

public EnvironmentVariable getEnvVariables(int index)

Process environment variables.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
EnvironmentVariable

getEnvVariablesCount()

public int getEnvVariablesCount()

Process environment variables.

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

Returns
TypeDescription
int

getEnvVariablesList()

public List<EnvironmentVariable> getEnvVariablesList()

Process environment variables.

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

Returns
TypeDescription
List<EnvironmentVariable>

getEnvVariablesOrBuilder(int index)

public EnvironmentVariableOrBuilder getEnvVariablesOrBuilder(int index)

Process environment variables.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
EnvironmentVariableOrBuilder

getEnvVariablesOrBuilderList()

public List<? extends EnvironmentVariableOrBuilder> getEnvVariablesOrBuilderList()

Process environment variables.

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

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

getEnvVariablesTruncated()

public boolean getEnvVariablesTruncated()

True if env_variables is incomplete.

bool env_variables_truncated = 9;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
File

getLibrariesCount()

public int getLibrariesCount()

File information for libraries loaded by the process.

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

Returns
TypeDescription
int

getLibrariesList()

public List<File> getLibrariesList()

File information for libraries loaded by the process.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
FileOrBuilder

getLibrariesOrBuilderList()

public List<? extends FileOrBuilder> getLibrariesOrBuilderList()

File information for libraries loaded by the process.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

getParentPid()

public long getParentPid()

The parent process ID.

int64 parent_pid = 11;

Returns
TypeDescription
long

The parentPid.

getParserForType()

public Parser<Process> getParserForType()
Returns
TypeDescription
Parser<Process>
Overrides

getPid()

public long getPid()

The process ID.

int64 pid = 10;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
FileOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasBinary()

public boolean hasBinary()

File information for the process executable.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the script field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Process.Builder newBuilderForType()
Returns
TypeDescription
Process.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Process.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Process.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Process.Builder toBuilder()
Returns
TypeDescription
Process.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException