Class OperationProgress.Metric.Builder (2.86.0)

public static final class OperationProgress.Metric.Builder extends GeneratedMessage.Builder<OperationProgress.Metric.Builder> implements OperationProgress.MetricOrBuilder

Progress metric is (string, int|float|string) pair.

Protobuf type google.container.v1beta1.OperationProgress.Metric

Static Methods

getDescriptor()

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

Methods

build()

public OperationProgress.Metric build()
Returns
Type Description
OperationProgress.Metric

buildPartial()

public OperationProgress.Metric buildPartial()
Returns
Type Description
OperationProgress.Metric

clear()

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

clearDoubleValue()

public OperationProgress.Metric.Builder clearDoubleValue()

For metrics with floating point value.

double double_value = 3;

Returns
Type Description
OperationProgress.Metric.Builder

This builder for chaining.

clearIntValue()

public OperationProgress.Metric.Builder clearIntValue()

For metrics with integer value.

int64 int_value = 2;

Returns
Type Description
OperationProgress.Metric.Builder

This builder for chaining.

clearName()

public OperationProgress.Metric.Builder clearName()

Required. Metric name, e.g., "nodes total", "percent done".

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
OperationProgress.Metric.Builder

This builder for chaining.

clearStringValue()

public OperationProgress.Metric.Builder clearStringValue()

For metrics with custom values (ratios, visual progress, etc.).

string string_value = 4;

Returns
Type Description
OperationProgress.Metric.Builder

This builder for chaining.

clearValue()

public OperationProgress.Metric.Builder clearValue()
Returns
Type Description
OperationProgress.Metric.Builder

getDefaultInstanceForType()

public OperationProgress.Metric getDefaultInstanceForType()
Returns
Type Description
OperationProgress.Metric

getDescriptorForType()

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

getDoubleValue()

public double getDoubleValue()

For metrics with floating point value.

double double_value = 3;

Returns
Type Description
double

The doubleValue.

getIntValue()

public long getIntValue()

For metrics with integer value.

int64 int_value = 2;

Returns
Type Description
long

The intValue.

getName()

public String getName()

Required. Metric name, e.g., "nodes total", "percent done".

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Metric name, e.g., "nodes total", "percent done".

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for name.

getStringValue()

public String getStringValue()

For metrics with custom values (ratios, visual progress, etc.).

string string_value = 4;

Returns
Type Description
String

The stringValue.

getStringValueBytes()

public ByteString getStringValueBytes()

For metrics with custom values (ratios, visual progress, etc.).

string string_value = 4;

Returns
Type Description
ByteString

The bytes for stringValue.

getValueCase()

public OperationProgress.Metric.ValueCase getValueCase()
Returns
Type Description
OperationProgress.Metric.ValueCase

hasDoubleValue()

public boolean hasDoubleValue()

For metrics with floating point value.

double double_value = 3;

Returns
Type Description
boolean

Whether the doubleValue field is set.

hasIntValue()

public boolean hasIntValue()

For metrics with integer value.

int64 int_value = 2;

Returns
Type Description
boolean

Whether the intValue field is set.

hasStringValue()

public boolean hasStringValue()

For metrics with custom values (ratios, visual progress, etc.).

string string_value = 4;

Returns
Type Description
boolean

Whether the stringValue field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(OperationProgress.Metric other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDoubleValue(double value)

public OperationProgress.Metric.Builder setDoubleValue(double value)

For metrics with floating point value.

double double_value = 3;

Parameter
Name Description
value double

The doubleValue to set.

Returns
Type Description
OperationProgress.Metric.Builder

This builder for chaining.

setIntValue(long value)

public OperationProgress.Metric.Builder setIntValue(long value)

For metrics with integer value.

int64 int_value = 2;

Parameter
Name Description
value long

The intValue to set.

Returns
Type Description
OperationProgress.Metric.Builder

This builder for chaining.

setName(String value)

public OperationProgress.Metric.Builder setName(String value)

Required. Metric name, e.g., "nodes total", "percent done".

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
OperationProgress.Metric.Builder

This builder for chaining.

setNameBytes(ByteString value)

public OperationProgress.Metric.Builder setNameBytes(ByteString value)

Required. Metric name, e.g., "nodes total", "percent done".

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
OperationProgress.Metric.Builder

This builder for chaining.

setStringValue(String value)

public OperationProgress.Metric.Builder setStringValue(String value)

For metrics with custom values (ratios, visual progress, etc.).

string string_value = 4;

Parameter
Name Description
value String

The stringValue to set.

Returns
Type Description
OperationProgress.Metric.Builder

This builder for chaining.

setStringValueBytes(ByteString value)

public OperationProgress.Metric.Builder setStringValueBytes(ByteString value)

For metrics with custom values (ratios, visual progress, etc.).

string string_value = 4;

Parameter
Name Description
value ByteString

The bytes for stringValue to set.

Returns
Type Description
OperationProgress.Metric.Builder

This builder for chaining.