Class RunningProcess.Builder (0.35.0)

public static final class RunningProcess.Builder extends GeneratedMessageV3.Builder<RunningProcess.Builder> implements RunningProcessOrBuilder

Guest OS running process details.

Protobuf type google.cloud.migrationcenter.v1.RunningProcess

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RunningProcess build()
Returns
Type Description
RunningProcess

buildPartial()

public RunningProcess buildPartial()
Returns
Type Description
RunningProcess

clear()

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

clearAttributes()

public RunningProcess.Builder clearAttributes()
Returns
Type Description
RunningProcess.Builder

clearCmdline()

public RunningProcess.Builder clearCmdline()

Process full command line.

string cmdline = 3;

Returns
Type Description
RunningProcess.Builder

This builder for chaining.

clearExePath()

public RunningProcess.Builder clearExePath()

Process binary path.

string exe_path = 2;

Returns
Type Description
RunningProcess.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public RunningProcess.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RunningProcess.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPid()

public RunningProcess.Builder clearPid()

Process ID.

int64 pid = 1;

Returns
Type Description
RunningProcess.Builder

This builder for chaining.

clearUser()

public RunningProcess.Builder clearUser()

User running the process.

string user = 4;

Returns
Type Description
RunningProcess.Builder

This builder for chaining.

clone()

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

containsAttributes(String key)

public boolean containsAttributes(String key)

Process extended attributes.

map<string, string> attributes = 100;

Parameter
Name Description
key String
Returns
Type Description
boolean

getAttributes() (deprecated)

public Map<String,String> getAttributes()

Use #getAttributesMap() instead.

Returns
Type Description
Map<String,String>

getAttributesCount()

public int getAttributesCount()

Process extended attributes.

map<string, string> attributes = 100;

Returns
Type Description
int

getAttributesMap()

public Map<String,String> getAttributesMap()

Process extended attributes.

map<string, string> attributes = 100;

Returns
Type Description
Map<String,String>

getAttributesOrDefault(String key, String defaultValue)

public String getAttributesOrDefault(String key, String defaultValue)

Process extended attributes.

map<string, string> attributes = 100;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getAttributesOrThrow(String key)

public String getAttributesOrThrow(String key)

Process extended attributes.

map<string, string> attributes = 100;

Parameter
Name Description
key String
Returns
Type Description
String

getCmdline()

public String getCmdline()

Process full command line.

string cmdline = 3;

Returns
Type Description
String

The cmdline.

getCmdlineBytes()

public ByteString getCmdlineBytes()

Process full command line.

string cmdline = 3;

Returns
Type Description
ByteString

The bytes for cmdline.

getDefaultInstanceForType()

public RunningProcess getDefaultInstanceForType()
Returns
Type Description
RunningProcess

getDescriptorForType()

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

getExePath()

public String getExePath()

Process binary path.

string exe_path = 2;

Returns
Type Description
String

The exePath.

getExePathBytes()

public ByteString getExePathBytes()

Process binary path.

string exe_path = 2;

Returns
Type Description
ByteString

The bytes for exePath.

getMutableAttributes() (deprecated)

public Map<String,String> getMutableAttributes()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getPid()

public long getPid()

Process ID.

int64 pid = 1;

Returns
Type Description
long

The pid.

getUser()

public String getUser()

User running the process.

string user = 4;

Returns
Type Description
String

The user.

getUserBytes()

public ByteString getUserBytes()

User running the process.

string user = 4;

Returns
Type Description
ByteString

The bytes for user.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RunningProcess other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public RunningProcess.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RunningProcess.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RunningProcess.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RunningProcess.Builder
Overrides

putAllAttributes(Map<String,String> values)

public RunningProcess.Builder putAllAttributes(Map<String,String> values)

Process extended attributes.

map<string, string> attributes = 100;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
RunningProcess.Builder

putAttributes(String key, String value)

public RunningProcess.Builder putAttributes(String key, String value)

Process extended attributes.

map<string, string> attributes = 100;

Parameters
Name Description
key String
value String
Returns
Type Description
RunningProcess.Builder

removeAttributes(String key)

public RunningProcess.Builder removeAttributes(String key)

Process extended attributes.

map<string, string> attributes = 100;

Parameter
Name Description
key String
Returns
Type Description
RunningProcess.Builder

setCmdline(String value)

public RunningProcess.Builder setCmdline(String value)

Process full command line.

string cmdline = 3;

Parameter
Name Description
value String

The cmdline to set.

Returns
Type Description
RunningProcess.Builder

This builder for chaining.

setCmdlineBytes(ByteString value)

public RunningProcess.Builder setCmdlineBytes(ByteString value)

Process full command line.

string cmdline = 3;

Parameter
Name Description
value ByteString

The bytes for cmdline to set.

Returns
Type Description
RunningProcess.Builder

This builder for chaining.

setExePath(String value)

public RunningProcess.Builder setExePath(String value)

Process binary path.

string exe_path = 2;

Parameter
Name Description
value String

The exePath to set.

Returns
Type Description
RunningProcess.Builder

This builder for chaining.

setExePathBytes(ByteString value)

public RunningProcess.Builder setExePathBytes(ByteString value)

Process binary path.

string exe_path = 2;

Parameter
Name Description
value ByteString

The bytes for exePath to set.

Returns
Type Description
RunningProcess.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setPid(long value)

public RunningProcess.Builder setPid(long value)

Process ID.

int64 pid = 1;

Parameter
Name Description
value long

The pid to set.

Returns
Type Description
RunningProcess.Builder

This builder for chaining.

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

public RunningProcess.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RunningProcess.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setUser(String value)

public RunningProcess.Builder setUser(String value)

User running the process.

string user = 4;

Parameter
Name Description
value String

The user to set.

Returns
Type Description
RunningProcess.Builder

This builder for chaining.

setUserBytes(ByteString value)

public RunningProcess.Builder setUserBytes(ByteString value)

User running the process.

string user = 4;

Parameter
Name Description
value ByteString

The bytes for user to set.

Returns
Type Description
RunningProcess.Builder

This builder for chaining.