Class 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 type google.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
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.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 class com.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 interface ProcessOrBuilder
        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 interface ProcessOrBuilder
        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 interface ProcessOrBuilder
        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 interface ProcessOrBuilder
        Returns:
        The binary.
      • 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 interface ProcessOrBuilder
      • getLibrariesCount

        public int getLibrariesCount()
         File information for libraries loaded by the process.
         
        repeated .google.cloud.securitycenter.v1.File libraries = 4;
        Specified by:
        getLibrariesCount in interface ProcessOrBuilder
      • 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 interface ProcessOrBuilder
      • 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 interface ProcessOrBuilder
      • 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 interface ProcessOrBuilder
        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 interface ProcessOrBuilder
        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 interface ProcessOrBuilder
      • getArgsList

        public com.google.protobuf.ProtocolStringList getArgsList()
         Process arguments as JSON encoded strings.
         
        repeated string args = 6;
        Specified by:
        getArgsList in interface ProcessOrBuilder
        Returns:
        A list containing the args.
      • getArgsCount

        public int getArgsCount()
         Process arguments as JSON encoded strings.
         
        repeated string args = 6;
        Specified by:
        getArgsCount in interface ProcessOrBuilder
        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 interface ProcessOrBuilder
        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 interface ProcessOrBuilder
        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 interface ProcessOrBuilder
        Returns:
        The argumentsTruncated.
      • getEnvVariablesCount

        public int getEnvVariablesCount()
         Process environment variables.
         
        repeated .google.cloud.securitycenter.v1.EnvironmentVariable env_variables = 8;
        Specified by:
        getEnvVariablesCount in interface ProcessOrBuilder
      • getEnvVariables

        public EnvironmentVariable getEnvVariables​(int index)
         Process environment variables.
         
        repeated .google.cloud.securitycenter.v1.EnvironmentVariable env_variables = 8;
        Specified by:
        getEnvVariables in interface ProcessOrBuilder
      • getEnvVariablesTruncated

        public boolean getEnvVariablesTruncated()
         True if `env_variables` is incomplete.
         
        bool env_variables_truncated = 9;
        Specified by:
        getEnvVariablesTruncated in interface ProcessOrBuilder
        Returns:
        The envVariablesTruncated.
      • getPid

        public long getPid()
         The process ID.
         
        int64 pid = 10;
        Specified by:
        getPid in interface ProcessOrBuilder
        Returns:
        The pid.
      • getParentPid

        public long getParentPid()
         The parent process ID.
         
        int64 parent_pid = 11;
        Specified by:
        getParentPid in interface ProcessOrBuilder
        Returns:
        The parentPid.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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​(com.google.protobuf.CodedInputStream input,
                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                 throws IOException
        Throws:
        IOException
      • newBuilderForType

        public Process.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Process.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Process.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.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 interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public Process getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder