Class DelayedEvent.Builder

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
TypeDescription
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
NameDescription
valuesIterable<String>

The metrics to add.

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

The metrics to add.

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

The bytes of the metrics to add.

Returns
TypeDescription
DelayedEvent.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DelayedEvent build()
Returns
TypeDescription
DelayedEvent

buildPartial()

public DelayedEvent buildPartial()
Returns
TypeDescription
DelayedEvent

clear()

public DelayedEvent.Builder clear()
Returns
TypeDescription
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
TypeDescription
DelayedEvent.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DelayedEvent.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
DelayedEvent.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public DelayedEvent.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for cause.

getDefaultInstanceForType()

public DelayedEvent getDefaultInstanceForType()
Returns
TypeDescription
DelayedEvent

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

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

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the metrics.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DelayedEvent other)

public DelayedEvent.Builder mergeFrom(DelayedEvent other)
Parameter
NameDescription
otherDelayedEvent
Returns
TypeDescription
DelayedEvent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DelayedEvent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The cause to set.

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

The bytes for cause to set.

Returns
TypeDescription
DelayedEvent.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DelayedEvent.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The metrics to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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