public final class Process extends GeneratedMessageV3 implements ProcessOrBuilder
Represents an operating system process.
Protobuf type google.cloud.securitycenter.v1.Process
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Process.Builder newBuilder()
newBuilder(Process prototype)
public static Process.Builder newBuilder(Process prototype)
Parameter |
---|
Name | Description |
prototype | Process
|
public static Process parseDelimitedFrom(InputStream input)
public static Process parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Process parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Process parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Process parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Process parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Process parseFrom(CodedInputStream input)
public static Process parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Process parseFrom(InputStream input)
public static Process parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Process parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Process parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Process> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
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;
getArgumentsTruncated()
public boolean getArgumentsTruncated()
True if args
is incomplete.
bool arguments_truncated = 7;
Returns |
---|
Type | Description |
boolean | The argumentsTruncated.
|
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;
getDefaultInstanceForType()
public Process getDefaultInstanceForType()
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
|
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;
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
|
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;
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
|
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()
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)
.
string name = 12;
Returns |
---|
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
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)
.
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()
Overrides
getPid()
The process id.
int64 pid = 10;
Returns |
---|
Type | Description |
long | The pid.
|
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;
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
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()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Process.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Process.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public Process.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides