Class WorkerAssignedEvent.Builder (0.13.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public WorkerAssignedEvent build()
Returns
TypeDescription
WorkerAssignedEvent

buildPartial()

public WorkerAssignedEvent buildPartial()
Returns
TypeDescription
WorkerAssignedEvent

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInstance()

public WorkerAssignedEvent.Builder clearInstance()

The worker's instance name.

string instance = 2;

Returns
TypeDescription
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
TypeDescription
WorkerAssignedEvent.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearZone()

public WorkerAssignedEvent.Builder clearZone()

The zone the worker is running in.

string zone = 1;

Returns
TypeDescription
WorkerAssignedEvent.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public WorkerAssignedEvent getDefaultInstanceForType()
Returns
TypeDescription
WorkerAssignedEvent

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInstance()

public String getInstance()

The worker's instance name.

string instance = 2;

Returns
TypeDescription
String

The instance.

getInstanceBytes()

public ByteString getInstanceBytes()

The worker's instance name.

string instance = 2;

Returns
TypeDescription
ByteString

The bytes for instance.

getMachineType()

public String getMachineType()

The machine type that was assigned for the worker.

string machine_type = 3;

Returns
TypeDescription
String

The machineType.

getMachineTypeBytes()

public ByteString getMachineTypeBytes()

The machine type that was assigned for the worker.

string machine_type = 3;

Returns
TypeDescription
ByteString

The bytes for machineType.

getZone()

public String getZone()

The zone the worker is running in.

string zone = 1;

Returns
TypeDescription
String

The zone.

getZoneBytes()

public ByteString getZoneBytes()

The zone the worker is running in.

string zone = 1;

Returns
TypeDescription
ByteString

The bytes for zone.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(WorkerAssignedEvent other)

public WorkerAssignedEvent.Builder mergeFrom(WorkerAssignedEvent other)
Parameter
NameDescription
otherWorkerAssignedEvent
Returns
TypeDescription
WorkerAssignedEvent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstance(String value)

public WorkerAssignedEvent.Builder setInstance(String value)

The worker's instance name.

string instance = 2;

Parameter
NameDescription
valueString

The instance to set.

Returns
TypeDescription
WorkerAssignedEvent.Builder

This builder for chaining.

setInstanceBytes(ByteString value)

public WorkerAssignedEvent.Builder setInstanceBytes(ByteString value)

The worker's instance name.

string instance = 2;

Parameter
NameDescription
valueByteString

The bytes for instance to set.

Returns
TypeDescription
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
NameDescription
valueString

The machineType to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for machineType to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
WorkerAssignedEvent.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setZone(String value)

public WorkerAssignedEvent.Builder setZone(String value)

The zone the worker is running in.

string zone = 1;

Parameter
NameDescription
valueString

The zone to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for zone to set.

Returns
TypeDescription
WorkerAssignedEvent.Builder

This builder for chaining.