Class WorkerAssignedEvent.Builder (0.47.0)

public static final class WorkerAssignedEvent.Builder extends GeneratedMessageV3.Builder<WorkerAssignedEvent.Builder> implements WorkerAssignedEventOrBuilder

An event generated after a worker VM has been assigned to run the pipeline.

Protobuf type google.cloud.lifesciences.v2beta.WorkerAssignedEvent

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public WorkerAssignedEvent build()
Returns
Type Description
WorkerAssignedEvent

buildPartial()

public WorkerAssignedEvent buildPartial()
Returns
Type Description
WorkerAssignedEvent

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInstance()

public WorkerAssignedEvent.Builder clearInstance()

The worker's instance name.

string instance = 2;

Returns
Type Description
WorkerAssignedEvent.Builder

This builder for chaining.

clearMachineType()

public WorkerAssignedEvent.Builder clearMachineType()

The machine type that was assigned for the worker.

string machine_type = 3;

Returns
Type Description
WorkerAssignedEvent.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearZone()

public WorkerAssignedEvent.Builder clearZone()

The zone the worker is running in.

string zone = 1;

Returns
Type Description
WorkerAssignedEvent.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public WorkerAssignedEvent getDefaultInstanceForType()
Returns
Type Description
WorkerAssignedEvent

getDescriptorForType()

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

getInstance()

public String getInstance()

The worker's instance name.

string instance = 2;

Returns
Type Description
String

The instance.

getInstanceBytes()

public ByteString getInstanceBytes()

The worker's instance name.

string instance = 2;

Returns
Type Description
ByteString

The bytes for instance.

getMachineType()

public String getMachineType()

The machine type that was assigned for the worker.

string machine_type = 3;

Returns
Type Description
String

The machineType.

getMachineTypeBytes()

public ByteString getMachineTypeBytes()

The machine type that was assigned for the worker.

string machine_type = 3;

Returns
Type Description
ByteString

The bytes for machineType.

getZone()

public String getZone()

The zone the worker is running in.

string zone = 1;

Returns
Type Description
String

The zone.

getZoneBytes()

public ByteString getZoneBytes()

The zone the worker is running in.

string zone = 1;

Returns
Type Description
ByteString

The bytes for zone.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(WorkerAssignedEvent other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstance(String value)

public WorkerAssignedEvent.Builder setInstance(String value)

The worker's instance name.

string instance = 2;

Parameter
Name Description
value String

The instance to set.

Returns
Type Description
WorkerAssignedEvent.Builder

This builder for chaining.

setInstanceBytes(ByteString value)

public WorkerAssignedEvent.Builder setInstanceBytes(ByteString value)

The worker's instance name.

string instance = 2;

Parameter
Name Description
value ByteString

The bytes for instance to set.

Returns
Type Description
WorkerAssignedEvent.Builder

This builder for chaining.

setMachineType(String value)

public WorkerAssignedEvent.Builder setMachineType(String value)

The machine type that was assigned for the worker.

string machine_type = 3;

Parameter
Name Description
value String

The machineType to set.

Returns
Type Description
WorkerAssignedEvent.Builder

This builder for chaining.

setMachineTypeBytes(ByteString value)

public WorkerAssignedEvent.Builder setMachineTypeBytes(ByteString value)

The machine type that was assigned for the worker.

string machine_type = 3;

Parameter
Name Description
value ByteString

The bytes for machineType to set.

Returns
Type Description
WorkerAssignedEvent.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setZone(String value)

public WorkerAssignedEvent.Builder setZone(String value)

The zone the worker is running in.

string zone = 1;

Parameter
Name Description
value String

The zone to set.

Returns
Type Description
WorkerAssignedEvent.Builder

This builder for chaining.

setZoneBytes(ByteString value)

public WorkerAssignedEvent.Builder setZoneBytes(ByteString value)

The zone the worker is running in.

string zone = 1;

Parameter
Name Description
value ByteString

The bytes for zone to set.

Returns
Type Description
WorkerAssignedEvent.Builder

This builder for chaining.