Class ContainerKilledEvent.Builder (0.31.0)

public static final class ContainerKilledEvent.Builder extends GeneratedMessageV3.Builder<ContainerKilledEvent.Builder> implements ContainerKilledEventOrBuilder

An event generated when a container is forcibly terminated by the worker. Currently, this only occurs when the container outlives the timeout specified by the user.

Protobuf type google.cloud.lifesciences.v2beta.ContainerKilledEvent

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ContainerKilledEvent build()
Returns
TypeDescription
ContainerKilledEvent

buildPartial()

public ContainerKilledEvent buildPartial()
Returns
TypeDescription
ContainerKilledEvent

clear()

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

clearActionId()

public ContainerKilledEvent.Builder clearActionId()

The numeric ID of the action that started the container.

int32 action_id = 1;

Returns
TypeDescription
ContainerKilledEvent.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getActionId()

public int getActionId()

The numeric ID of the action that started the container.

int32 action_id = 1;

Returns
TypeDescription
int

The actionId.

getDefaultInstanceForType()

public ContainerKilledEvent getDefaultInstanceForType()
Returns
TypeDescription
ContainerKilledEvent

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ContainerKilledEvent other)

public ContainerKilledEvent.Builder mergeFrom(ContainerKilledEvent other)
Parameter
NameDescription
otherContainerKilledEvent
Returns
TypeDescription
ContainerKilledEvent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setActionId(int value)

public ContainerKilledEvent.Builder setActionId(int value)

The numeric ID of the action that started the container.

int32 action_id = 1;

Parameter
NameDescription
valueint

The actionId to set.

Returns
TypeDescription
ContainerKilledEvent.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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