Class DelayedEvent.Builder (0.57.0)

public static final class DelayedEvent.Builder extends GeneratedMessageV3.Builder<DelayedEvent.Builder> implements DelayedEventOrBuilder

An event generated whenever a resource limitation or transient error delays execution of a pipeline that was otherwise ready to run.

Protobuf type google.cloud.lifesciences.v2beta.DelayedEvent

Static Methods

getDescriptor()

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

Methods

addAllMetrics(Iterable<String> values)

public DelayedEvent.Builder addAllMetrics(Iterable<String> values)

If the delay was caused by a resource shortage, this field lists the Compute Engine metrics that are preventing this operation from running (for example, CPUS or INSTANCES). If the particular metric is not known, a single UNKNOWN metric will be present.

repeated string metrics = 2;

Parameter
Name Description
values Iterable<String>

The metrics to add.

Returns
Type Description
DelayedEvent.Builder

This builder for chaining.

addMetrics(String value)

public DelayedEvent.Builder addMetrics(String value)

If the delay was caused by a resource shortage, this field lists the Compute Engine metrics that are preventing this operation from running (for example, CPUS or INSTANCES). If the particular metric is not known, a single UNKNOWN metric will be present.

repeated string metrics = 2;

Parameter
Name Description
value String

The metrics to add.

Returns
Type Description
DelayedEvent.Builder

This builder for chaining.

addMetricsBytes(ByteString value)

public DelayedEvent.Builder addMetricsBytes(ByteString value)

If the delay was caused by a resource shortage, this field lists the Compute Engine metrics that are preventing this operation from running (for example, CPUS or INSTANCES). If the particular metric is not known, a single UNKNOWN metric will be present.

repeated string metrics = 2;

Parameter
Name Description
value ByteString

The bytes of the metrics to add.

Returns
Type Description
DelayedEvent.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DelayedEvent build()
Returns
Type Description
DelayedEvent

buildPartial()

public DelayedEvent buildPartial()
Returns
Type Description
DelayedEvent

clear()

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

clearCause()

public DelayedEvent.Builder clearCause()

A textual description of the cause of the delay. The string can change without notice because it is often generated by another service (such as Compute Engine).

string cause = 1;

Returns
Type Description
DelayedEvent.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMetrics()

public DelayedEvent.Builder clearMetrics()

If the delay was caused by a resource shortage, this field lists the Compute Engine metrics that are preventing this operation from running (for example, CPUS or INSTANCES). If the particular metric is not known, a single UNKNOWN metric will be present.

repeated string metrics = 2;

Returns
Type Description
DelayedEvent.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCause()

public String getCause()

A textual description of the cause of the delay. The string can change without notice because it is often generated by another service (such as Compute Engine).

string cause = 1;

Returns
Type Description
String

The cause.

getCauseBytes()

public ByteString getCauseBytes()

A textual description of the cause of the delay. The string can change without notice because it is often generated by another service (such as Compute Engine).

string cause = 1;

Returns
Type Description
ByteString

The bytes for cause.

getDefaultInstanceForType()

public DelayedEvent getDefaultInstanceForType()
Returns
Type Description
DelayedEvent

getDescriptorForType()

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

getMetrics(int index)

public String getMetrics(int index)

If the delay was caused by a resource shortage, this field lists the Compute Engine metrics that are preventing this operation from running (for example, CPUS or INSTANCES). If the particular metric is not known, a single UNKNOWN metric will be present.

repeated string metrics = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The metrics at the given index.

getMetricsBytes(int index)

public ByteString getMetricsBytes(int index)

If the delay was caused by a resource shortage, this field lists the Compute Engine metrics that are preventing this operation from running (for example, CPUS or INSTANCES). If the particular metric is not known, a single UNKNOWN metric will be present.

repeated string metrics = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the metrics at the given index.

getMetricsCount()

public int getMetricsCount()

If the delay was caused by a resource shortage, this field lists the Compute Engine metrics that are preventing this operation from running (for example, CPUS or INSTANCES). If the particular metric is not known, a single UNKNOWN metric will be present.

repeated string metrics = 2;

Returns
Type Description
int

The count of metrics.

getMetricsList()

public ProtocolStringList getMetricsList()

If the delay was caused by a resource shortage, this field lists the Compute Engine metrics that are preventing this operation from running (for example, CPUS or INSTANCES). If the particular metric is not known, a single UNKNOWN metric will be present.

repeated string metrics = 2;

Returns
Type Description
ProtocolStringList

A list containing the metrics.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DelayedEvent other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCause(String value)

public DelayedEvent.Builder setCause(String value)

A textual description of the cause of the delay. The string can change without notice because it is often generated by another service (such as Compute Engine).

string cause = 1;

Parameter
Name Description
value String

The cause to set.

Returns
Type Description
DelayedEvent.Builder

This builder for chaining.

setCauseBytes(ByteString value)

public DelayedEvent.Builder setCauseBytes(ByteString value)

A textual description of the cause of the delay. The string can change without notice because it is often generated by another service (such as Compute Engine).

string cause = 1;

Parameter
Name Description
value ByteString

The bytes for cause to set.

Returns
Type Description
DelayedEvent.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMetrics(int index, String value)

public DelayedEvent.Builder setMetrics(int index, String value)

If the delay was caused by a resource shortage, this field lists the Compute Engine metrics that are preventing this operation from running (for example, CPUS or INSTANCES). If the particular metric is not known, a single UNKNOWN metric will be present.

repeated string metrics = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The metrics to set.

Returns
Type Description
DelayedEvent.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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