Class OperationProgress.Builder (2.19.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}, {name: "progress scale", double_value: 1.0}]

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

Parameter
NameDescription
indexint
Returns
TypeDescription
OperationProgress.Metric.Builder

getMetricsBuilderList()

public List<OperationProgress.Metric.Builder> getMetricsBuilderList()

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
List<Builder>

getMetricsCount()

public int getMetricsCount()

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
int

getMetricsList()

public List<OperationProgress.Metric> getMetricsList()

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
List<Metric>

getMetricsOrBuilder(int index)

public OperationProgress.MetricOrBuilder getMetricsOrBuilder(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.MetricOrBuilder

getMetricsOrBuilderList()

public List<? extends OperationProgress.MetricOrBuilder> getMetricsOrBuilderList()

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
List<? extends com.google.container.v1beta1.OperationProgress.MetricOrBuilder>

getName()

public String getName()

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

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

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

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getStages(int index)

public OperationProgress getStages(int index)

Substages of an operation or a stage.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
OperationProgress

getStagesBuilder(int index)

public OperationProgress.Builder getStagesBuilder(int index)

Substages of an operation or a stage.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
OperationProgress.Builder

getStagesBuilderList()

public List<OperationProgress.Builder> getStagesBuilderList()

Substages of an operation or a stage.

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

Returns
TypeDescription
List<Builder>

getStagesCount()

public int getStagesCount()

Substages of an operation or a stage.

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

Returns
TypeDescription
int

getStagesList()

public List<OperationProgress> getStagesList()

Substages of an operation or a stage.

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

Returns
TypeDescription
List<OperationProgress>

getStagesOrBuilder(int index)

public OperationProgressOrBuilder getStagesOrBuilder(int index)

Substages of an operation or a stage.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
OperationProgressOrBuilder

getStagesOrBuilderList()

public List<? extends OperationProgressOrBuilder> getStagesOrBuilderList()

Substages of an operation or a stage.

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

Returns
TypeDescription
List<? extends com.google.container.v1beta1.OperationProgressOrBuilder>

getStatus()

public Operation.Status getStatus()

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

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

Returns
TypeDescription
Operation.Status

The status.

getStatusValue()

public int getStatusValue()

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

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

Returns
TypeDescription
int

The enum numeric value on the wire for status.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(OperationProgress other)

public OperationProgress.Builder mergeFrom(OperationProgress other)
Parameter
NameDescription
otherOperationProgress
Returns
TypeDescription
OperationProgress.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeMetrics(int index)

public OperationProgress.Builder removeMetrics(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.Builder

removeStages(int index)

public OperationProgress.Builder removeStages(int index)

Substages of an operation or a stage.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
OperationProgress.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMetrics(int index, OperationProgress.Metric value)

public OperationProgress.Builder setMetrics(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

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

public OperationProgress.Builder setMetrics(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

setName(String value)

public OperationProgress.Builder setName(String value)

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

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
OperationProgress.Builder

This builder for chaining.

setNameBytes(ByteString value)

public OperationProgress.Builder setNameBytes(ByteString value)

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

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
OperationProgress.Builder

This builder for chaining.

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

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

setStages(int index, OperationProgress value)

public OperationProgress.Builder setStages(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

setStages(int index, OperationProgress.Builder builderForValue)

public OperationProgress.Builder setStages(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

setStatus(Operation.Status value)

public OperationProgress.Builder setStatus(Operation.Status value)

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

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

Parameter
NameDescription
valueOperation.Status

The status to set.

Returns
TypeDescription
OperationProgress.Builder

This builder for chaining.

setStatusValue(int value)

public OperationProgress.Builder setStatusValue(int value)

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

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for status to set.

Returns
TypeDescription
OperationProgress.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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