Class Process
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.securitycenter.v1.Process
-
- All Implemented Interfaces:
ProcessOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class Process extends com.google.protobuf.GeneratedMessageV3 implements ProcessOrBuilder
Represents an operating system process.
Protobuf typegoogle.cloud.securitycenter.v1.Process
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Process.Builder
Represents an operating system process.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
ARGS_FIELD_NUMBER
static int
ARGUMENTS_TRUNCATED_FIELD_NUMBER
static int
BINARY_FIELD_NUMBER
static int
ENV_VARIABLES_FIELD_NUMBER
static int
ENV_VARIABLES_TRUNCATED_FIELD_NUMBER
static int
LIBRARIES_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
PARENT_PID_FIELD_NUMBER
static int
PID_FIELD_NUMBER
static int
SCRIPT_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getArgs(int index)
Process arguments as JSON encoded strings.com.google.protobuf.ByteString
getArgsBytes(int index)
Process arguments as JSON encoded strings.int
getArgsCount()
Process arguments as JSON encoded strings.com.google.protobuf.ProtocolStringList
getArgsList()
Process arguments as JSON encoded strings.boolean
getArgumentsTruncated()
True if `args` is incomplete.File
getBinary()
File information for the process executable.FileOrBuilder
getBinaryOrBuilder()
File information for the process executable.static Process
getDefaultInstance()
Process
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
EnvironmentVariable
getEnvVariables(int index)
Process environment variables.int
getEnvVariablesCount()
Process environment variables.List<EnvironmentVariable>
getEnvVariablesList()
Process environment variables.EnvironmentVariableOrBuilder
getEnvVariablesOrBuilder(int index)
Process environment variables.List<? extends EnvironmentVariableOrBuilder>
getEnvVariablesOrBuilderList()
Process environment variables.boolean
getEnvVariablesTruncated()
True if `env_variables` is incomplete.File
getLibraries(int index)
File information for libraries loaded by the process.int
getLibrariesCount()
File information for libraries loaded by the process.List<File>
getLibrariesList()
File information for libraries loaded by the process.FileOrBuilder
getLibrariesOrBuilder(int index)
File information for libraries loaded by the process.List<? extends FileOrBuilder>
getLibrariesOrBuilderList()
File information for libraries loaded by the process.String
getName()
The process name, as displayed in utilities like `top` and `ps`.com.google.protobuf.ByteString
getNameBytes()
The process name, as displayed in utilities like `top` and `ps`.long
getParentPid()
The parent process ID.com.google.protobuf.Parser<Process>
getParserForType()
long
getPid()
The process ID.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.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.int
getSerializedSize()
boolean
hasBinary()
File information for the process executable.int
hashCode()
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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static Process.Builder
newBuilder()
static Process.Builder
newBuilder(Process prototype)
Process.Builder
newBuilderForType()
protected Process.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Process
parseDelimitedFrom(InputStream input)
static Process
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Process
parseFrom(byte[] data)
static Process
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Process
parseFrom(com.google.protobuf.ByteString data)
static Process
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Process
parseFrom(com.google.protobuf.CodedInputStream input)
static Process
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Process
parseFrom(InputStream input)
static Process
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Process
parseFrom(ByteBuffer data)
static Process
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Process>
parser()
Process.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BINARY_FIELD_NUMBER
public static final int BINARY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LIBRARIES_FIELD_NUMBER
public static final int LIBRARIES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SCRIPT_FIELD_NUMBER
public static final int SCRIPT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ARGS_FIELD_NUMBER
public static final int ARGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ARGUMENTS_TRUNCATED_FIELD_NUMBER
public static final int ARGUMENTS_TRUNCATED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENV_VARIABLES_FIELD_NUMBER
public static final int ENV_VARIABLES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENV_VARIABLES_TRUNCATED_FIELD_NUMBER
public static final int ENV_VARIABLES_TRUNCATED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PID_FIELD_NUMBER
public static final int PID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARENT_PID_FIELD_NUMBER
public static final int PARENT_PID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
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;
- Specified by:
getName
in interfaceProcessOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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;
- Specified by:
getNameBytes
in interfaceProcessOrBuilder
- Returns:
- The bytes for name.
-
hasBinary
public boolean hasBinary()
File information for the process executable.
.google.cloud.securitycenter.v1.File binary = 3;
- Specified by:
hasBinary
in interfaceProcessOrBuilder
- Returns:
- Whether the binary field is set.
-
getBinary
public File getBinary()
File information for the process executable.
.google.cloud.securitycenter.v1.File binary = 3;
- Specified by:
getBinary
in interfaceProcessOrBuilder
- Returns:
- The binary.
-
getBinaryOrBuilder
public FileOrBuilder getBinaryOrBuilder()
File information for the process executable.
.google.cloud.securitycenter.v1.File binary = 3;
- Specified by:
getBinaryOrBuilder
in interfaceProcessOrBuilder
-
getLibrariesList
public List<File> getLibrariesList()
File information for libraries loaded by the process.
repeated .google.cloud.securitycenter.v1.File libraries = 4;
- Specified by:
getLibrariesList
in interfaceProcessOrBuilder
-
getLibrariesOrBuilderList
public List<? extends FileOrBuilder> getLibrariesOrBuilderList()
File information for libraries loaded by the process.
repeated .google.cloud.securitycenter.v1.File libraries = 4;
- Specified by:
getLibrariesOrBuilderList
in interfaceProcessOrBuilder
-
getLibrariesCount
public int getLibrariesCount()
File information for libraries loaded by the process.
repeated .google.cloud.securitycenter.v1.File libraries = 4;
- Specified by:
getLibrariesCount
in interfaceProcessOrBuilder
-
getLibraries
public File getLibraries(int index)
File information for libraries loaded by the process.
repeated .google.cloud.securitycenter.v1.File libraries = 4;
- Specified by:
getLibraries
in interfaceProcessOrBuilder
-
getLibrariesOrBuilder
public FileOrBuilder getLibrariesOrBuilder(int index)
File information for libraries loaded by the process.
repeated .google.cloud.securitycenter.v1.File libraries = 4;
- Specified by:
getLibrariesOrBuilder
in interfaceProcessOrBuilder
-
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;
- Specified by:
hasScript
in interfaceProcessOrBuilder
- Returns:
- Whether the script field is set.
-
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;
- Specified by:
getScript
in interfaceProcessOrBuilder
- Returns:
- 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;
- Specified by:
getScriptOrBuilder
in interfaceProcessOrBuilder
-
getArgsList
public com.google.protobuf.ProtocolStringList getArgsList()
Process arguments as JSON encoded strings.
repeated string args = 6;
- Specified by:
getArgsList
in interfaceProcessOrBuilder
- Returns:
- A list containing the args.
-
getArgsCount
public int getArgsCount()
Process arguments as JSON encoded strings.
repeated string args = 6;
- Specified by:
getArgsCount
in interfaceProcessOrBuilder
- Returns:
- The count of args.
-
getArgs
public String getArgs(int index)
Process arguments as JSON encoded strings.
repeated string args = 6;
- Specified by:
getArgs
in interfaceProcessOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The args at the given index.
-
getArgsBytes
public com.google.protobuf.ByteString getArgsBytes(int index)
Process arguments as JSON encoded strings.
repeated string args = 6;
- Specified by:
getArgsBytes
in interfaceProcessOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the args at the given index.
-
getArgumentsTruncated
public boolean getArgumentsTruncated()
True if `args` is incomplete.
bool arguments_truncated = 7;
- Specified by:
getArgumentsTruncated
in interfaceProcessOrBuilder
- Returns:
- The argumentsTruncated.
-
getEnvVariablesList
public List<EnvironmentVariable> getEnvVariablesList()
Process environment variables.
repeated .google.cloud.securitycenter.v1.EnvironmentVariable env_variables = 8;
- Specified by:
getEnvVariablesList
in interfaceProcessOrBuilder
-
getEnvVariablesOrBuilderList
public List<? extends EnvironmentVariableOrBuilder> getEnvVariablesOrBuilderList()
Process environment variables.
repeated .google.cloud.securitycenter.v1.EnvironmentVariable env_variables = 8;
- Specified by:
getEnvVariablesOrBuilderList
in interfaceProcessOrBuilder
-
getEnvVariablesCount
public int getEnvVariablesCount()
Process environment variables.
repeated .google.cloud.securitycenter.v1.EnvironmentVariable env_variables = 8;
- Specified by:
getEnvVariablesCount
in interfaceProcessOrBuilder
-
getEnvVariables
public EnvironmentVariable getEnvVariables(int index)
Process environment variables.
repeated .google.cloud.securitycenter.v1.EnvironmentVariable env_variables = 8;
- Specified by:
getEnvVariables
in interfaceProcessOrBuilder
-
getEnvVariablesOrBuilder
public EnvironmentVariableOrBuilder getEnvVariablesOrBuilder(int index)
Process environment variables.
repeated .google.cloud.securitycenter.v1.EnvironmentVariable env_variables = 8;
- Specified by:
getEnvVariablesOrBuilder
in interfaceProcessOrBuilder
-
getEnvVariablesTruncated
public boolean getEnvVariablesTruncated()
True if `env_variables` is incomplete.
bool env_variables_truncated = 9;
- Specified by:
getEnvVariablesTruncated
in interfaceProcessOrBuilder
- Returns:
- The envVariablesTruncated.
-
getPid
public long getPid()
The process ID.
int64 pid = 10;
- Specified by:
getPid
in interfaceProcessOrBuilder
- Returns:
- The pid.
-
getParentPid
public long getParentPid()
The parent process ID.
int64 parent_pid = 11;
- Specified by:
getParentPid
in interfaceProcessOrBuilder
- Returns:
- The parentPid.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Process parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Process parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Process parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Process parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Process parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Process parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Process parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Process parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Process parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Process parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Process parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Process parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Process.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Process.Builder newBuilder()
-
newBuilder
public static Process.Builder newBuilder(Process prototype)
-
toBuilder
public Process.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Process.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Process getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Process> parser()
-
getParserForType
public com.google.protobuf.Parser<Process> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Process getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-