Class OperationProgress.Builder (2.48.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
Type Description
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
Name Description
values Iterable<? extends com.google.container.v1beta1.OperationProgress.Metric>
Returns
Type Description
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
Name Description
values Iterable<? extends com.google.container.v1beta1.OperationProgress>
Returns
Type Description
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
Name Description
value OperationProgress.Metric
Returns
Type Description
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
Name Description
builderForValue OperationProgress.Metric.Builder
Returns
Type Description
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
Name Description
index int
value OperationProgress.Metric
Returns
Type Description
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
Name Description
index int
builderForValue OperationProgress.Metric.Builder
Returns
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
OperationProgress.Metric.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OperationProgress.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value OperationProgress
Returns
Type Description
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
Name Description
builderForValue OperationProgress.Builder
Returns
Type Description
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
Name Description
index int
value OperationProgress
Returns
Type Description
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
Name Description
index int
builderForValue OperationProgress.Builder
Returns
Type Description
OperationProgress.Builder

addStagesBuilder()

public OperationProgress.Builder addStagesBuilder()

Substages of an operation or a stage.

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

Returns
Type Description
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
Name Description
index int
Returns
Type Description
OperationProgress.Builder

build()

public OperationProgress build()
Returns
Type Description
OperationProgress

buildPartial()

public OperationProgress buildPartial()
Returns
Type Description
OperationProgress

clear()

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

clearField(Descriptors.FieldDescriptor field)

public OperationProgress.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
OperationProgress.Builder

clearName()

public OperationProgress.Builder clearName()

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

string name = 1;

Returns
Type Description
OperationProgress.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStages()

public OperationProgress.Builder clearStages()

Substages of an operation or a stage.

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

Returns
Type Description
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
Type Description
OperationProgress.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public OperationProgress getDefaultInstanceForType()
Returns
Type Description
OperationProgress

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

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

string name = 1;

Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
OperationProgress.Builder

getStagesBuilderList()

public List<OperationProgress.Builder> getStagesBuilderList()

Substages of an operation or a stage.

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

Returns
Type Description
List<Builder>

getStagesCount()

public int getStagesCount()

Substages of an operation or a stage.

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

Returns
Type Description
int

getStagesList()

public List<OperationProgress> getStagesList()

Substages of an operation or a stage.

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

Returns
Type Description
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
Name Description
index int
Returns
Type Description
OperationProgressOrBuilder

getStagesOrBuilderList()

public List<? extends OperationProgressOrBuilder> getStagesOrBuilderList()

Substages of an operation or a stage.

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

Returns
Type Description
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
Type Description
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
Type Description
int

The enum numeric value on the wire for status.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(OperationProgress other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OperationProgress.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
OperationProgress.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public OperationProgress.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
index int
value OperationProgress.Metric
Returns
Type Description
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
Name Description
index int
builderForValue OperationProgress.Metric.Builder
Returns
Type Description
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
Name Description
value String

The name to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
index int
value OperationProgress
Returns
Type Description
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
Name Description
index int
builderForValue OperationProgress.Builder
Returns
Type Description
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
Name Description
value Operation.Status

The status to set.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
OperationProgress.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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