Class OperationProgress.Builder (2.21.0)

public static final class OperationProgress.Builder extends GeneratedMessageV3.Builder<OperationProgress.Builder> implements OperationProgressOrBuilder

Information about operation (or operation stage) progress.

Protobuf type google.container.v1beta1.OperationProgress

Static Methods

getDescriptor()

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

Methods

addAllMetrics(Iterable<? extends OperationProgress.Metric> values)

public OperationProgress.Builder addAllMetrics(Iterable<? extends OperationProgress.Metric> values)

Progress metric bundle, for example: metrics: [{name: "nodes done", int_value: 15}, {name: "nodes total", int_value: 32}] or metrics: [{name: "progress", double_value: 0.56}, {name: "progress scale", double_value: 1.0}]

repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.container.v1beta1.OperationProgress.Metric>
Returns
TypeDescription
OperationProgress.Builder

addAllStages(Iterable<? extends OperationProgress> values)

public OperationProgress.Builder addAllStages(Iterable<? extends OperationProgress> values)

Substages of an operation or a stage.

repeated .google.container.v1beta1.OperationProgress stages = 4;

Parameter
NameDescription
valuesIterable<? extends com.google.container.v1beta1.OperationProgress>
Returns
TypeDescription
OperationProgress.Builder

addMetrics(OperationProgress.Metric value)

public OperationProgress.Builder addMetrics(OperationProgress.Metric value)

Progress metric bundle, for example: metrics: [{name: "nodes done", int_value: 15}, {name: "nodes total", int_value: 32}] or metrics: [{name: "progress", double_value: 0.56}, {name: "progress scale", double_value: 1.0}]

repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3;

Parameter
NameDescription
valueOperationProgress.Metric
Returns
TypeDescription
OperationProgress.Builder

addMetrics(OperationProgress.Metric.Builder builderForValue)

public OperationProgress.Builder addMetrics(OperationProgress.Metric.Builder builderForValue)

Progress metric bundle, for example: metrics: [{name: "nodes done", int_value: 15}, {name: "nodes total", int_value: 32}] or metrics: [{name: "progress", double_value: 0.56}, {name: "progress scale", double_value: 1.0}]

repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3;

Parameter
NameDescription
builderForValueOperationProgress.Metric.Builder
Returns
TypeDescription
OperationProgress.Builder

addMetrics(int index, OperationProgress.Metric value)

public OperationProgress.Builder addMetrics(int index, OperationProgress.Metric value)

Progress metric bundle, for example: metrics: [{name: "nodes done", int_value: 15}, {name: "nodes total", int_value: 32}] or metrics: [{name: "progress", double_value: 0.56}, {name: "progress scale", double_value: 1.0}]

repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3;

Parameters
NameDescription
indexint
valueOperationProgress.Metric
Returns
TypeDescription
OperationProgress.Builder

addMetrics(int index, OperationProgress.Metric.Builder builderForValue)

public OperationProgress.Builder addMetrics(int index, OperationProgress.Metric.Builder builderForValue)

Progress metric bundle, for example: metrics: [{name: "nodes done", int_value: 15}, {name: "nodes total", int_value: 32}] or metrics: [{name: "progress", double_value: 0.56}, {name: "progress scale", double_value: 1.0}]

repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3;

Parameters
NameDescription
indexint
builderForValueOperationProgress.Metric.Builder
Returns
TypeDescription
OperationProgress.Builder

addMetricsBuilder()

public OperationProgress.Metric.Builder addMetricsBuilder()

Progress metric bundle, for example: metrics: [{name: "nodes done", int_value: 15}, {name: "nodes total", int_value: 32}] or metrics: [{name: "progress", double_value: 0.56}, {name: "progress scale", double_value: 1.0}]

repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3;

Returns
TypeDescription
OperationProgress.Metric.Builder

addMetricsBuilder(int index)

public OperationProgress.Metric.Builder addMetricsBuilder(int index)

Progress metric bundle, for example: metrics: [{name: "nodes done", int_value: 15}, {name: "nodes total", int_value: 32}] or metrics: [{name: "progress", double_value: 0.56}, {name: "progress scale", double_value: 1.0}]

repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
OperationProgress.Metric.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addStages(OperationProgress value)

public OperationProgress.Builder addStages(OperationProgress value)

Substages of an operation or a stage.

repeated .google.container.v1beta1.OperationProgress stages = 4;

Parameter
NameDescription
valueOperationProgress
Returns
TypeDescription
OperationProgress.Builder

addStages(OperationProgress.Builder builderForValue)

public OperationProgress.Builder addStages(OperationProgress.Builder builderForValue)

Substages of an operation or a stage.

repeated .google.container.v1beta1.OperationProgress stages = 4;

Parameter
NameDescription
builderForValueOperationProgress.Builder
Returns
TypeDescription
OperationProgress.Builder

addStages(int index, OperationProgress value)

public OperationProgress.Builder addStages(int index, OperationProgress value)

Substages of an operation or a stage.

repeated .google.container.v1beta1.OperationProgress stages = 4;

Parameters
NameDescription
indexint
valueOperationProgress
Returns
TypeDescription
OperationProgress.Builder

addStages(int index, OperationProgress.Builder builderForValue)

public OperationProgress.Builder addStages(int index, OperationProgress.Builder builderForValue)

Substages of an operation or a stage.

repeated .google.container.v1beta1.OperationProgress stages = 4;

Parameters
NameDescription
indexint
builderForValueOperationProgress.Builder
Returns
TypeDescription
OperationProgress.Builder

addStagesBuilder()

public OperationProgress.Builder addStagesBuilder()

Substages of an operation or a stage.

repeated .google.container.v1beta1.OperationProgress stages = 4;

Returns
TypeDescription
OperationProgress.Builder

addStagesBuilder(int index)

public OperationProgress.Builder addStagesBuilder(int index)

Substages of an operation or a stage.

repeated .google.container.v1beta1.OperationProgress stages = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
OperationProgress.Builder

build()

public OperationProgress build()
Returns
TypeDescription
OperationProgress

buildPartial()

public OperationProgress buildPartial()
Returns
TypeDescription
OperationProgress

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMetrics()

public OperationProgress.Builder clearMetrics()

Progress metric bundle, for example: metrics: [{name: "nodes done", int_value: 15}, {name: "nodes total", int_value: 32}] or metrics: [{name: "progress", double_value: 0.56}, {name: "progress scale", double_value: 1.0}]

repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3;

Returns
TypeDescription
OperationProgress.Builder

clearName()

public OperationProgress.Builder clearName()

A non-parameterized string describing an operation stage. Unset for single-stage operations.

string name = 1;

Returns
TypeDescription
OperationProgress.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStages()

public OperationProgress.Builder clearStages()

Substages of an operation or a stage.

repeated .google.container.v1beta1.OperationProgress stages = 4;

Returns
TypeDescription
OperationProgress.Builder

clearStatus()

public OperationProgress.Builder clearStatus()

Status of an operation stage. Unset for single-stage operations.

.google.container.v1beta1.Operation.Status status = 2;

Returns
TypeDescription
OperationProgress.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public OperationProgress getDefaultInstanceForType()
Returns
TypeDescription
OperationProgress

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMetrics(int index)

public OperationProgress.Metric getMetrics(int index)

Progress metric bundle, for example: metrics: [{name: "nodes done", int_value: 15}, {name: "nodes total", int_value: 32}] or metrics: [{name: "progress", double_value: 0.56}, {name: "progress scale", double_value: 1.0}]

repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
OperationProgress.Metric

getMetricsBuilder(int index)

public OperationProgress.Metric.Builder getMetricsBuilder(int index)

Progress metric bundle, for example: metrics: [{name: "nodes done", int_value: 15}, {name: "nodes total", int_value: 32}] or metrics: [{name: "progress", double_value: 0.56},