Class Process.Builder (2.63.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
Type Description
Descriptor

Methods

addAllArgs(Iterable<String> values)

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

Process arguments as JSON encoded strings.

repeated string args = 5;

Parameter
Name Description
values Iterable<String>

The args to add.

Returns
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.securitycenter.v2.EnvironmentVariable>
Returns
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.securitycenter.v2.File>
Returns
Type Description
Process.Builder

addArgs(String value)

public Process.Builder addArgs(String value)

Process arguments as JSON encoded strings.

repeated string args = 5;

Parameter
Name Description
value String

The args to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the args to add.

Returns
Type Description
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
Name Description
value EnvironmentVariable
Returns
Type Description
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
Name Description
builderForValue EnvironmentVariable.Builder
Returns
Type Description
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
Name Description
index int
value EnvironmentVariable
Returns
Type Description
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
Name Description
index int
builderForValue EnvironmentVariable.Builder
Returns
Type Description
Process.Builder

addEnvVariablesBuilder()

public EnvironmentVariable.Builder addEnvVariablesBuilder()

Process environment variables.

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

Returns
Type Description
EnvironmentVariable.Builder

addEnvVariablesBuilder(int index)

public EnvironmentVariable.Builder addEnvVariablesBuilder(int index)

Process environment variables.

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

Parameter
Name Description
index int
Returns
Type Description
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
Name Description
value File
Returns
Type Description
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
Name Description
builderForValue File.Builder
Returns
Type Description
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
Name Description
index int
value File
Returns
Type Description
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
Name Description
index int
builderForValue File.Builder
Returns
Type Description
Process.Builder

addLibrariesBuilder()

public File.Builder addLibrariesBuilder()

File information for libraries loaded by the process.

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

Returns
Type Description
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
Name Description
index int
Returns
Type Description
File.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Process.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Process.Builder
Overrides

build()

public Process build()
Returns
Type Description
Process

buildPartial()

public Process buildPartial()
Returns
Type Description
Process

clear()

public Process.Builder clear()
Returns
Type Description
Process.Builder
Overrides

clearArgs()

public Process.Builder clearArgs()

Process arguments as JSON encoded strings.

repeated string args = 5;

Returns
Type Description
Process.Builder

This builder for chaining.

clearArgumentsTruncated()

public Process.Builder clearArgumentsTruncated()

True if args is incomplete.

bool arguments_truncated = 6;

Returns
Type Description
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
Type Description
Process.Builder

clearEnvVariables()

public Process.Builder clearEnvVariables()

Process environment variables.

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

Returns
Type Description
Process.Builder

clearEnvVariablesTruncated()

public Process.Builder clearEnvVariablesTruncated()

True if env_variables is incomplete.

bool env_variables_truncated = 8;

Returns
Type Description
Process.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Process.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
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
Type Description
Process.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Process.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Process.Builder
Overrides

clearParentPid()

public Process.Builder clearParentPid()

The parent process ID.

int64 parent_pid = 10;

Returns
Type Description
Process.Builder

This builder for chaining.

clearPid()

public Process.Builder clearPid()

The process ID.

int64 pid = 9;

Returns
Type Description
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
Type Description
Process.Builder

clone()

public Process.Builder clone()
Returns
Type Description
Process.Builder
Overrides

getArgs(int index)

public String getArgs(int index)

Process arguments as JSON encoded strings.

repeated string args = 5;

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

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

Returns
Type Description
int

The count of args.

getArgsList()

public ProtocolStringList getArgsList()

Process arguments as JSON encoded strings.

repeated string args = 5;

Returns
Type Description
ProtocolStringList

A list containing the args.

getArgumentsTruncated()

public boolean getArgumentsTruncated()

True if args is incomplete.

bool arguments_truncated = 6;

Returns
Type Description
boolean

The argumentsTruncated.

getBinary()

public File getBinary()

File information for the process executable.

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

Returns
Type Description
File

The binary.

getBinaryBuilder()

public File.Builder getBinaryBuilder()

File information for the process executable.

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

Returns
Type Description
File.Builder

getBinaryOrBuilder()

public FileOrBuilder getBinaryOrBuilder()

File information for the process executable.

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

Returns
Type Description
FileOrBuilder

getDefaultInstanceForType()

public Process getDefaultInstanceForType()
Returns
Type Description
Process

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnvVariables(int index)

public EnvironmentVariable getEnvVariables(int index)

Process environment variables.

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

Parameter
Name Description
index int
Returns
Type Description
EnvironmentVariable

getEnvVariablesBuilder(int index)

public EnvironmentVariable.Builder getEnvVariablesBuilder(int index)

Process environment variables.

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

Parameter
Name Description
index int
Returns
Type Description
EnvironmentVariable.Builder

getEnvVariablesBuilderList()

public List<EnvironmentVariable.Builder> getEnvVariablesBuilderList()

Process environment variables.

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

Returns
Type Description
List<Builder>

getEnvVariablesCount()

public int getEnvVariablesCount()

Process environment variables.

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

Returns
Type Description
int

getEnvVariablesList()

public List<EnvironmentVariable> getEnvVariablesList()

Process environment variables.

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

Returns
Type Description
List<EnvironmentVariable>

getEnvVariablesOrBuilder(int index)

public EnvironmentVariableOrBuilder getEnvVariablesOrBuilder(int index)

Process environment variables.

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

Parameter
Name Description
index int
Returns
Type Description
EnvironmentVariableOrBuilder

getEnvVariablesOrBuilderList()

public List<? extends EnvironmentVariableOrBuilder> getEnvVariablesOrBuilderList()

Process environment variables.

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

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

getEnvVariablesTruncated()

public boolean getEnvVariablesTruncated()

True if env_variables is incomplete.

bool env_variables_truncated = 8;

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

Parameter
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
List<Builder>

getLibrariesCount()

public int getLibrariesCount()

File information for libraries loaded by the process.

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

Returns
Type Description
int

getLibrariesList()

public List<File> getLibrariesList()

File information for libraries loaded by the process.

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

Returns
Type Description
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
Name Description
index int
Returns
Type Description
FileOrBuilder

getLibrariesOrBuilderList()

public List<? extends FileOrBuilder> getLibrariesOrBuilderList()

File information for libraries loaded by the process.

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

Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for name.

getParentPid()

public long getParentPid()

The parent process ID.

int64 parent_pid = 10;

Returns
Type Description
long

The parentPid.

getPid()

public long getPid()

The process ID.

int64 pid = 9;

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
FileOrBuilder

hasBinary()

public boolean hasBinary()

File information for the process executable.

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

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

Returns
Type Description
boolean

Whether the script field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
Name Description
value File
Returns
Type Description
Process.Builder

mergeFrom(Process other)

public Process.Builder mergeFrom(Process other)
Parameter
Name Description
other Process
Returns
Type Description
Process.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Process.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Process.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Process.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value File
Returns
Type Description
Process.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Process.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The args to set.

Returns
Type Description
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
Name Description
value boolean

The argumentsTruncated to set.

Returns
Type Description
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
Name Description
value File
Returns
Type Description
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
Name Description
builderForValue File.Builder
Returns
Type Description
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
Name Description
index int
value EnvironmentVariable
Returns
Type Description
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
Name Description
index int
builderForValue EnvironmentVariable.Builder
Returns
Type Description
Process.Builder

setEnvVariablesTruncated(boolean value)

public Process.Builder setEnvVariablesTruncated(boolean value)

True if env_variables is incomplete.

bool env_variables_truncated = 8;

Parameter
Name Description
value boolean

The envVariablesTruncated to set.

Returns
Type Description
Process.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Process.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
index int
value File
Returns
Type Description
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
Name Description
index int
builderForValue File.Builder
Returns
Type Description
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
Name Description
value String

The name to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Process.Builder

This builder for chaining.

setParentPid(long value)

public Process.Builder setParentPid(long value)

The parent process ID.

int64 parent_pid = 10;

Parameter
Name Description
value long

The parentPid to set.

Returns
Type Description
Process.Builder

This builder for chaining.

setPid(long value)

public Process.Builder setPid(long value)

The process ID.

int64 pid = 9;

Parameter
Name Description
value long

The pid to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value File
Returns
Type Description
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
Name Description
builderForValue File.Builder
Returns
Type Description
Process.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Process.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Process.Builder
Overrides