Class Process.Builder (2.47.0)

public static final class Process.Builder extends GeneratedMessageV3.Builder<Process.Builder> implements ProcessOrBuilder

Represents an operating system process.

Protobuf type google.cloud.securitycenter.v2.Process

Implements

ProcessOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllArgs(Iterable<String> values)

public Process.Builder addAllArgs(Iterable<String> values)

Process arguments as JSON encoded strings.

repeated string args = 5;

Parameter
NameDescription
valuesIterable<String>

The args to add.

Returns
TypeDescription
Process.Builder

This builder for chaining.

addAllEnvVariables(Iterable<? extends EnvironmentVariable> values)

public Process.Builder addAllEnvVariables(Iterable<? extends EnvironmentVariable> values)

Process environment variables.

repeated .google.cloud.securitycenter.v2.EnvironmentVariable env_variables = 7;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.securitycenter.v2.EnvironmentVariable>
Returns
TypeDescription
Process.Builder

addAllLibraries(Iterable<? extends File> values)

public Process.Builder addAllLibraries(Iterable<? extends File> values)

File information for libraries loaded by the process.

repeated .google.cloud.securitycenter.v2.File libraries = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.securitycenter.v2.File>
Returns
TypeDescription
Process.Builder

addArgs(String value)

public Process.Builder addArgs(String value)

Process arguments as JSON encoded strings.

repeated string args = 5;

Parameter
NameDescription
valueString

The args to add.

Returns
TypeDescription
Process.Builder

This builder for chaining.

addArgsBytes(ByteString value)

public Process.Builder addArgsBytes(ByteString value)

Process arguments as JSON encoded strings.

repeated string args = 5;

Parameter
NameDescription
valueByteString

The bytes of the args to add.

Returns
TypeDescription
Process.Builder

This builder for chaining.

addEnvVariables(EnvironmentVariable value)

public Process.Builder addEnvVariables(EnvironmentVariable value)

Process environment variables.

repeated .google.cloud.securitycenter.v2.EnvironmentVariable env_variables = 7;

Parameter
NameDescription
valueEnvironmentVariable
Returns
TypeDescription
Process.Builder

addEnvVariables(EnvironmentVariable.Builder builderForValue)

public Process.Builder addEnvVariables(EnvironmentVariable.Builder builderForValue)

Process environment variables.

repeated .google.cloud.securitycenter.v2.EnvironmentVariable env_variables = 7;

Parameter
NameDescription
builderForValueEnvironmentVariable.Builder
Returns
TypeDescription
Process.Builder

addEnvVariables(int index, EnvironmentVariable value)

public Process.Builder addEnvVariables(int index, EnvironmentVariable value)

Process environment variables.

repeated .google.cloud.securitycenter.v2.EnvironmentVariable env_variables = 7;

Parameters
NameDescription
indexint
valueEnvironmentVariable
Returns
TypeDescription
Process.Builder

addEnvVariables(int index, EnvironmentVariable.Builder builderForValue)

public Process.Builder addEnvVariables(int index, EnvironmentVariable.Builder builderForValue)

Process environment variables.

repeated .google.cloud.securitycenter.v2.EnvironmentVariable env_variables = 7;

Parameters
NameDescription
indexint
builderForValueEnvironmentVariable.Builder
Returns
TypeDescription
Process.Builder

addEnvVariablesBuilder()

public EnvironmentVariable.Builder addEnvVariablesBuilder()

Process environment variables.

repeated .google.cloud.securitycenter.v2.EnvironmentVariable env_variables = 7;

Returns
TypeDescription
EnvironmentVariable.Builder

addEnvVariablesBuilder(int index)

public EnvironmentVariable.Builder addEnvVariablesBuilder(int index)

Process environment variables.

repeated .google.cloud.securitycenter.v2.EnvironmentVariable env_variables = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
EnvironmentVariable.Builder

addLibraries(File value)

public Process.Builder addLibraries(File value)

File information for libraries loaded by the process.

repeated .google.cloud.securitycenter.v2.File libraries = 3;

Parameter
NameDescription
valueFile
Returns
TypeDescription
Process.Builder

addLibraries(File.Builder builderForValue)

public Process.Builder addLibraries(File.Builder builderForValue)

File information for libraries loaded by the process.

repeated .google.cloud.securitycenter.v2.File libraries = 3;

Parameter
NameDescription
builderForValueFile.Builder
Returns
TypeDescription
Process.Builder

addLibraries(int index, File value)

public Process.Builder addLibraries(int index, File value)

File information for libraries loaded by the process.

repeated .google.cloud.securitycenter.v2.File libraries = 3;

Parameters
NameDescription
indexint
valueFile
Returns
TypeDescription
Process.Builder

addLibraries(int index, File.Builder builderForValue)

public Process.Builder addLibraries(int index, File.Builder builderForValue)

File information for libraries loaded by the process.

repeated .google.cloud.securitycenter.v2.File libraries = 3;

Parameters
NameDescription
indexint
builderForValueFile.Builder
Returns
TypeDescription
Process.Builder

addLibrariesBuilder()

public File.Builder addLibrariesBuilder()

File information for libraries loaded by the process.

repeated .google.cloud.securitycenter.v2.File libraries = 3;

Returns
TypeDescription
File.Builder

addLibrariesBuilder(int index)

public File.Builder addLibrariesBuilder(int index)

File information for libraries loaded by the process.

repeated .google.cloud.securitycenter.v2.File libraries = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
File.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Process.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Process.Builder
Overrides

build()

public Process build()
Returns
TypeDescription
Process

buildPartial()

public Process buildPartial()
Returns
TypeDescription
Process

clear()

public Process.Builder clear()
Returns
TypeDescription
Process.Builder
Overrides

clearArgs()

public Process.Builder clearArgs()

Process arguments as JSON encoded strings.

repeated string args = 5;

Returns
TypeDescription
Process.Builder

This builder for chaining.

clearArgumentsTruncated()

public Process.Builder clearArgumentsTruncated()

True if args is incomplete.

bool arguments_truncated = 6;

Returns
TypeDescription
Process.Builder

This builder for chaining.

clearBinary()

public Process.Builder clearBinary()

File information for the process executable.

.google.cloud.securitycenter.v2.File binary = 2;

Returns
TypeDescription
Process.Builder

clearEnvVariables()

public Process.Builder clearEnvVariables()

Process environment variables.

repeated .google.cloud.securitycenter.v2.EnvironmentVariable env_variables = 7;

Returns
TypeDescription
Process.Builder

clearEnvVariablesTruncated()

public Process.Builder clearEnvVariablesTruncated()

True if env_variables is incomplete.

bool env_variables_truncated = 8;

Returns
TypeDescription
Process.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Process.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Process.Builder
Overrides

clearLibraries()

public Process.Builder clearLibraries()

File information for libraries loaded by the process.

repeated .google.cloud.securitycenter.v2.File libraries = 3;

Returns
TypeDescription
Process.Builder

clearName()

public Process.Builder clearName()

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 = 1;

Returns
TypeDescription
Process.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Process.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Process.Builder
Overrides

clearParentPid()

public Process.Builder clearParentPid()

The parent process ID.

int64 parent_pid = 10;

Returns
TypeDescription
Process.Builder

This builder for chaining.

clearPid()

public Process.Builder clearPid()

The process ID.

int64 pid = 9;

Returns
TypeDescription
Process.Builder

This builder for chaining.

clearScript()

public Process.Builder clearScript()

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.v2.File script = 4;

Returns
TypeDescription
Process.Builder

clone()

public Process.Builder clone()
Returns
TypeDescription
Process.Builder
Overrides

getArgs(int index)

public String getArgs(int index)

Process arguments as JSON encoded strings.

repeated string args = 5;

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 = 5;

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 = 5;

Returns
TypeDescription
int

The count of args.

getArgsList()

public ProtocolStringList getArgsList()

Process arguments as JSON encoded strings.

repeated string args = 5;

Returns
TypeDescription
ProtocolStringList

A list containing the args.

getArgumentsTruncated()

public boolean getArgumentsTruncated()

True if args is incomplete.

bool arguments_truncated = 6;

Returns
TypeDescription
boolean

The argumentsTruncated.

getBinary()

public File getBinary()

File information for the process executable.

.google.cloud.securitycenter.v2.File binary = 2;

Returns
TypeDescription
File

The binary.

getBinaryBuilder()

public File.Builder getBinaryBuilder()

File information for the process executable.

.google.cloud.securitycenter.v2.File binary = 2;

Returns
TypeDescription
File.Builder

getBinaryOrBuilder()

public FileOrBuilder getBinaryOrBuilder()

File information for the process executable.

.google.cloud.securitycenter.v2.File binary = 2;

Returns
TypeDescription
FileOrBuilder

getDefaultInstanceForType()

public Process getDefaultInstanceForType()
Returns
TypeDescription
Process

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnvVariables(int index)

public EnvironmentVariable getEnvVariables(int index)

Process environment variables.

repeated .google.cloud.securitycenter.v2.EnvironmentVariable env_variables = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
EnvironmentVariable

getEnvVariablesBuilder(int index)

public EnvironmentVariable.Builder getEnvVariablesBuilder(int index)

Process environment variables.

repeated .google.cloud.securitycenter.v2.EnvironmentVariable env_variables = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
EnvironmentVariable.Builder

getEnvVariablesBuilderList()

public List<EnvironmentVariable.Builder> getEnvVariablesBuilderList()

Process environment variables.

repeated .google.cloud.securitycenter.v2.EnvironmentVariable env_variables = 7;

Returns
TypeDescription
List<Builder>

getEnvVariablesCount()

public int getEnvVariablesCount()

Process environment variables.

repeated .google.cloud.securitycenter.v2.EnvironmentVariable env_variables = 7;

Returns
TypeDescription
int

getEnvVariablesList()

public List<EnvironmentVariable> getEnvVariablesList()

Process environment variables.

repeated .google.cloud.securitycenter.v2.EnvironmentVariable env_variables = 7;

Returns
TypeDescription
List<EnvironmentVariable>

getEnvVariablesOrBuilder(int index)

public EnvironmentVariableOrBuilder getEnvVariablesOrBuilder(int index)

Process environment variables.

repeated .google.cloud.securitycenter.v2.EnvironmentVariable env_variables = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
EnvironmentVariableOrBuilder

getEnvVariablesOrBuilderList()

public List<? extends EnvironmentVariableOrBuilder> getEnvVariablesOrBuilderList()

Process environment variables.

repeated .google.cloud.securitycenter.v2.EnvironmentVariable env_variables = 7;

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

getEnvVariablesTruncated()

public boolean getEnvVariablesTruncated()

True if env_variables is incomplete.

bool env_variables_truncated = 8;

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.v2.File libraries = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
File

getLibrariesBuilder(int index)

public File.Builder getLibrariesBuilder(int index)

File information for libraries loaded by the process.

repeated .google.cloud.securitycenter.v2.File libraries = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
File.Builder

getLibrariesBuilderList()

public List<File.Builder> getLibrariesBuilderList()

File information for libraries loaded by the process.

repeated .google.cloud.securitycenter.v2.File libraries = 3;

Returns
TypeDescription
List<Builder>

getLibrariesCount()

public int getLibrariesCount()

File information for libraries loaded by the process.

repeated .google.cloud.securitycenter.v2.File libraries = 3;

Returns
TypeDescription
int

getLibrariesList()

public List<File> getLibrariesList()

File information for libraries loaded by the process.

repeated .google.cloud.securitycenter.v2.File libraries = 3;

Returns
TypeDescription
List<File>

getLibrariesOrBuilder(int index)

public FileOrBuilder getLibrariesOrBuilder(int index)

File information for libraries loaded by the process.

repeated .google.cloud.securitycenter.v2.File libraries = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
FileOrBuilder

getLibrariesOrBuilderList()

public List<? extends FileOrBuilder> getLibrariesOrBuilderList()

File information for libraries loaded by the process.

repeated .google.cloud.securitycenter.v2.File libraries = 3;

Returns
TypeDescription
List<? extends com.google.cloud.securitycenter.v2.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 = 1;

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 = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getParentPid()

public long getParentPid()

The parent process ID.

int64 parent_pid = 10;

Returns
TypeDescription
long

The parentPid.

getPid()

public long getPid()

The process ID.

int64 pid = 9;

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.v2.File script = 4;

Returns
TypeDescription
File

The script.

getScriptBuilder()

public File.Builder getScriptBuilder()

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.v2.File script = 4;

Returns
TypeDescription
File.Builder

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.v2.File script = 4;

Returns
TypeDescription
FileOrBuilder

hasBinary()

public boolean hasBinary()

File information for the process executable.

.google.cloud.securitycenter.v2.File binary = 2;

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.v2.File script = 4;

Returns
TypeDescription
boolean

Whether the script field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeBinary(File value)

public Process.Builder mergeBinary(File value)

File information for the process executable.

.google.cloud.securitycenter.v2.File binary = 2;

Parameter
NameDescription
valueFile
Returns
TypeDescription
Process.Builder

mergeFrom(Process other)

public Process.Builder mergeFrom(Process other)
Parameter
NameDescription
otherProcess
Returns
TypeDescription
Process.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Process.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Process.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Process.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Process.Builder
Overrides

mergeScript(File value)

public Process.Builder mergeScript(File value)

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.v2.File script = 4;

Parameter
NameDescription
valueFile
Returns
TypeDescription
Process.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Process.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Process.Builder
Overrides

removeEnvVariables(int index)

public Process.Builder removeEnvVariables(int index)

Process environment variables.

repeated .google.cloud.securitycenter.v2.EnvironmentVariable env_variables = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
Process.Builder

removeLibraries(int index)

public Process.Builder removeLibraries(int index)

File information for libraries loaded by the process.

repeated .google.cloud.securitycenter.v2.File libraries = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
Process.Builder

setArgs(int index, String value)

public Process.Builder setArgs(int index, String value)

Process arguments as JSON encoded strings.

repeated string args = 5;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The args to set.

Returns
TypeDescription
Process.Builder

This builder for chaining.

setArgumentsTruncated(boolean value)

public Process.Builder setArgumentsTruncated(boolean value)

True if args is incomplete.

bool arguments_truncated = 6;

Parameter
NameDescription
valueboolean

The argumentsTruncated to set.

Returns
TypeDescription
Process.Builder

This builder for chaining.

setBinary(File value)

public Process.Builder setBinary(File value)

File information for the process executable.

.google.cloud.securitycenter.v2.File binary = 2;

Parameter
NameDescription
valueFile
Returns
TypeDescription
Process.Builder

setBinary(File.Builder builderForValue)

public Process.Builder setBinary(File.Builder builderForValue)

File information for the process executable.

.google.cloud.securitycenter.v2.File binary = 2;

Parameter
NameDescription
builderForValueFile.Builder
Returns
TypeDescription
Process.Builder

setEnvVariables(int index, EnvironmentVariable value)

public Process.Builder setEnvVariables(int index, EnvironmentVariable value)

Process environment variables.

repeated .google.cloud.securitycenter.v2.EnvironmentVariable env_variables = 7;

Parameters
NameDescription
indexint
valueEnvironmentVariable
Returns
TypeDescription
Process.Builder

setEnvVariables(int index, EnvironmentVariable.Builder builderForValue)

public Process.Builder setEnvVariables(int index, EnvironmentVariable.Builder builderForValue)

Process environment variables.

repeated .google.cloud.securitycenter.v2.EnvironmentVariable env_variables = 7;

Parameters
NameDescription
indexint
builderForValueEnvironmentVariable.Builder
Returns
TypeDescription
Process.Builder

setEnvVariablesTruncated(boolean value)

public Process.Builder setEnvVariablesTruncated(boolean value)

True if env_variables is incomplete.

bool env_variables_truncated = 8;

Parameter
NameDescription
valueboolean

The envVariablesTruncated to set.

Returns
TypeDescription
Process.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Process.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Process.Builder
Overrides

setLibraries(int index, File value)

public Process.Builder setLibraries(int index, File value)

File information for libraries loaded by the process.

repeated .google.cloud.securitycenter.v2.File libraries = 3;

Parameters
NameDescription
indexint
valueFile
Returns
TypeDescription
Process.Builder

setLibraries(int index, File.Builder builderForValue)

public Process.Builder setLibraries(int index, File.Builder builderForValue)

File information for libraries loaded by the process.

repeated .google.cloud.securitycenter.v2.File libraries = 3;

Parameters
NameDescription
indexint
builderForValueFile.Builder
Returns
TypeDescription
Process.Builder

setName(String value)

public Process.Builder setName(String value)

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 = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Process.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Process.Builder setNameBytes(ByteString value)

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 = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Process.Builder

This builder for chaining.

setParentPid(long value)

public Process.Builder setParentPid(long value)

The parent process ID.

int64 parent_pid = 10;

Parameter
NameDescription
valuelong

The parentPid to set.

Returns
TypeDescription
Process.Builder

This builder for chaining.

setPid(long value)

public Process.Builder setPid(long value)

The process ID.

int64 pid = 9;

Parameter
NameDescription
valuelong

The pid to set.

Returns
TypeDescription
Process.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Process.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Process.Builder
Overrides

setScript(File value)

public Process.Builder setScript(File value)

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.v2.File script = 4;

Parameter
NameDescription
valueFile
Returns
TypeDescription
Process.Builder

setScript(File.Builder builderForValue)

public Process.Builder setScript(File.Builder builderForValue)

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.v2.File script = 4;

Parameter
NameDescription
builderForValueFile.Builder
Returns
TypeDescription
Process.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Process.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Process.Builder
Overrides