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 classProcess.BuilderRepresents 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 intARGS_FIELD_NUMBERstatic intARGUMENTS_TRUNCATED_FIELD_NUMBERstatic intBINARY_FIELD_NUMBERstatic intENV_VARIABLES_FIELD_NUMBERstatic intENV_VARIABLES_TRUNCATED_FIELD_NUMBERstatic intLIBRARIES_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intPARENT_PID_FIELD_NUMBERstatic intPID_FIELD_NUMBERstatic intSCRIPT_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetArgs(int index)Process arguments as JSON encoded strings.com.google.protobuf.ByteStringgetArgsBytes(int index)Process arguments as JSON encoded strings.intgetArgsCount()Process arguments as JSON encoded strings.com.google.protobuf.ProtocolStringListgetArgsList()Process arguments as JSON encoded strings.booleangetArgumentsTruncated()True if `args` is incomplete.FilegetBinary()File information for the process executable.FileOrBuildergetBinaryOrBuilder()File information for the process executable.static ProcessgetDefaultInstance()ProcessgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()EnvironmentVariablegetEnvVariables(int index)Process environment variables.intgetEnvVariablesCount()Process environment variables.List<EnvironmentVariable>getEnvVariablesList()Process environment variables.EnvironmentVariableOrBuildergetEnvVariablesOrBuilder(int index)Process environment variables.List<? extends EnvironmentVariableOrBuilder>getEnvVariablesOrBuilderList()Process environment variables.booleangetEnvVariablesTruncated()True if `env_variables` is incomplete.FilegetLibraries(int index)File information for libraries loaded by the process.intgetLibrariesCount()File information for libraries loaded by the process.List<File>getLibrariesList()File information for libraries loaded by the process.FileOrBuildergetLibrariesOrBuilder(int index)File information for libraries loaded by the process.List<? extends FileOrBuilder>getLibrariesOrBuilderList()File information for libraries loaded by the process.StringgetName()The process name, as displayed in utilities like `top` and `ps`.com.google.protobuf.ByteStringgetNameBytes()The process name, as displayed in utilities like `top` and `ps`.longgetParentPid()The parent process ID.com.google.protobuf.Parser<Process>getParserForType()longgetPid()The process ID.FilegetScript()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.FileOrBuildergetScriptOrBuilder()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.intgetSerializedSize()booleanhasBinary()File information for the process executable.inthashCode()booleanhasScript()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.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Process.BuildernewBuilder()static Process.BuildernewBuilder(Process prototype)Process.BuildernewBuilderForType()protected Process.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static ProcessparseDelimitedFrom(InputStream input)static ProcessparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ProcessparseFrom(byte[] data)static ProcessparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ProcessparseFrom(com.google.protobuf.ByteString data)static ProcessparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ProcessparseFrom(com.google.protobuf.CodedInputStream input)static ProcessparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ProcessparseFrom(InputStream input)static ProcessparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ProcessparseFrom(ByteBuffer data)static ProcessparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Process>parser()Process.BuildertoBuilder()voidwriteTo(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:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein 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:
getNamein 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:
getNameBytesin 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:
hasBinaryin 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:
getBinaryin interfaceProcessOrBuilder- Returns:
- The binary.
-
getBinaryOrBuilder
public FileOrBuilder getBinaryOrBuilder()
File information for the process executable.
.google.cloud.securitycenter.v1.File binary = 3;- Specified by:
getBinaryOrBuilderin interfaceProcessOrBuilder
-
getLibrariesList
public List<File> getLibrariesList()
File information for libraries loaded by the process.
repeated .google.cloud.securitycenter.v1.File libraries = 4;- Specified by:
getLibrariesListin 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:
getLibrariesOrBuilderListin interfaceProcessOrBuilder
-
getLibrariesCount
public int getLibrariesCount()
File information for libraries loaded by the process.
repeated .google.cloud.securitycenter.v1.File libraries = 4;- Specified by:
getLibrariesCountin 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:
getLibrariesin 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:
getLibrariesOrBuilderin 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:
hasScriptin 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:
getScriptin 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:
getScriptOrBuilderin interfaceProcessOrBuilder
-
getArgsList
public com.google.protobuf.ProtocolStringList getArgsList()
Process arguments as JSON encoded strings.
repeated string args = 6;- Specified by:
getArgsListin interfaceProcessOrBuilder- Returns:
- A list containing the args.
-
getArgsCount
public int getArgsCount()
Process arguments as JSON encoded strings.
repeated string args = 6;- Specified by:
getArgsCountin interfaceProcessOrBuilder- Returns:
- The count of args.
-
getArgs
public String getArgs(int index)
Process arguments as JSON encoded strings.
repeated string args = 6;- Specified by:
getArgsin 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:
getArgsBytesin 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:
getArgumentsTruncatedin interfaceProcessOrBuilder- Returns:
- The argumentsTruncated.
-
getEnvVariablesList
public List<EnvironmentVariable> getEnvVariablesList()
Process environment variables.
repeated .google.cloud.securitycenter.v1.EnvironmentVariable env_variables = 8;- Specified by:
getEnvVariablesListin interfaceProcessOrBuilder
-
getEnvVariablesOrBuilderList
public List<? extends EnvironmentVariableOrBuilder> getEnvVariablesOrBuilderList()
Process environment variables.
repeated .google.cloud.securitycenter.v1.EnvironmentVariable env_variables = 8;- Specified by:
getEnvVariablesOrBuilderListin interfaceProcessOrBuilder
-
getEnvVariablesCount
public int getEnvVariablesCount()
Process environment variables.
repeated .google.cloud.securitycenter.v1.EnvironmentVariable env_variables = 8;- Specified by:
getEnvVariablesCountin interfaceProcessOrBuilder
-
getEnvVariables
public EnvironmentVariable getEnvVariables(int index)
Process environment variables.
repeated .google.cloud.securitycenter.v1.EnvironmentVariable env_variables = 8;- Specified by:
getEnvVariablesin interfaceProcessOrBuilder
-
getEnvVariablesOrBuilder
public EnvironmentVariableOrBuilder getEnvVariablesOrBuilder(int index)
Process environment variables.
repeated .google.cloud.securitycenter.v1.EnvironmentVariable env_variables = 8;- Specified by:
getEnvVariablesOrBuilderin interfaceProcessOrBuilder
-
getEnvVariablesTruncated
public boolean getEnvVariablesTruncated()
True if `env_variables` is incomplete.
bool env_variables_truncated = 9;- Specified by:
getEnvVariablesTruncatedin interfaceProcessOrBuilder- Returns:
- The envVariablesTruncated.
-
getPid
public long getPid()
The process ID.
int64 pid = 10;- Specified by:
getPidin interfaceProcessOrBuilder- Returns:
- The pid.
-
getParentPid
public long getParentPid()
The parent process ID.
int64 parent_pid = 11;- Specified by:
getParentPidin interfaceProcessOrBuilder- Returns:
- The parentPid.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein 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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein 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:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Process.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein 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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Process getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-