Class OperationProgress.Metric.Builder (2.8.0)

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

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

Protobuf type google.container.v1.OperationProgress.Metric

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public OperationProgress.Metric build()
Returns
TypeDescription
OperationProgress.Metric

buildPartial()

public OperationProgress.Metric buildPartial()
Returns
TypeDescription
OperationProgress.Metric

clear()

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

clearDoubleValue()

public OperationProgress.Metric.Builder clearDoubleValue()

For metrics with floating point value.

double double_value = 3;

Returns
TypeDescription
OperationProgress.Metric.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearIntValue()

public OperationProgress.Metric.Builder clearIntValue()

For metrics with integer value.

int64 int_value = 2;

Returns
TypeDescription
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
TypeDescription
OperationProgress.Metric.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStringValue()

public OperationProgress.Metric.Builder clearStringValue()

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

string string_value = 4;

Returns
TypeDescription
OperationProgress.Metric.Builder

This builder for chaining.

clearValue()

public OperationProgress.Metric.Builder clearValue()
Returns
TypeDescription
OperationProgress.Metric.Builder

clone()

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

getDefaultInstanceForType()

public OperationProgress.Metric getDefaultInstanceForType()
Returns
TypeDescription
OperationProgress.Metric

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDoubleValue()

public double getDoubleValue()

For metrics with floating point value.

double double_value = 3;

Returns
TypeDescription
double

The doubleValue.

getIntValue()

public long getIntValue()

For metrics with integer value.

int64 int_value = 2;

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

The bytes for name.

getStringValue()

public String getStringValue()

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

string string_value = 4;

Returns
TypeDescription
String

The stringValue.

getStringValueBytes()

public ByteString getStringValueBytes()

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

string string_value = 4;

Returns
TypeDescription
ByteString

The bytes for stringValue.

getValueCase()

public OperationProgress.Metric.ValueCase getValueCase()
Returns
TypeDescription
OperationProgress.Metric.ValueCase

hasDoubleValue()

public boolean hasDoubleValue()

For metrics with floating point value.

double double_value = 3;

Returns
TypeDescription
boolean

Whether the doubleValue field is set.

hasIntValue()

public boolean hasIntValue()

For metrics with integer value.

int64 int_value = 2;

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

Whether the stringValue field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(OperationProgress.Metric other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The doubleValue to set.

Returns
TypeDescription
OperationProgress.Metric.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setIntValue(long value)

public OperationProgress.Metric.Builder setIntValue(long value)

For metrics with integer value.

int64 int_value = 2;

Parameter
NameDescription
valuelong

The intValue to set.

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

The name to set.

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

The bytes for name to set.

Returns
TypeDescription
OperationProgress.Metric.Builder

This builder for chaining.

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

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

setStringValue(String value)

public OperationProgress.Metric.Builder setStringValue(String value)

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

string string_value = 4;

Parameter
NameDescription
valueString

The stringValue to set.

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

The bytes for stringValue to set.

Returns
TypeDescription
OperationProgress.Metric.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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