Class RangeInfo.Builder (2.38.0)

public static final class RangeInfo.Builder extends GeneratedMessageV3.Builder<RangeInfo.Builder> implements RangeInfoOrBuilder

RangeInfo contains the range name and the range utilization by this cluster.

Protobuf type google.container.v1beta1.RangeInfo

Implements

RangeInfoOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RangeInfo build()
Returns
TypeDescription
RangeInfo

buildPartial()

public RangeInfo buildPartial()
Returns
TypeDescription
RangeInfo

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRangeName()

public RangeInfo.Builder clearRangeName()

Output only. [Output only] Name of a range.

string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
RangeInfo.Builder

This builder for chaining.

clearUtilization()

public RangeInfo.Builder clearUtilization()

Output only. [Output only] The utilization of the range.

double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
RangeInfo.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public RangeInfo getDefaultInstanceForType()
Returns
TypeDescription
RangeInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getRangeName()

public String getRangeName()

Output only. [Output only] Name of a range.

string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The rangeName.

getRangeNameBytes()

public ByteString getRangeNameBytes()

Output only. [Output only] Name of a range.

string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for rangeName.

getUtilization()

public double getUtilization()

Output only. [Output only] The utilization of the range.

double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
double

The utilization.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RangeInfo other)

public RangeInfo.Builder mergeFrom(RangeInfo other)
Parameter
NameDescription
otherRangeInfo
Returns
TypeDescription
RangeInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setRangeName(String value)

public RangeInfo.Builder setRangeName(String value)

Output only. [Output only] Name of a range.

string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The rangeName to set.

Returns
TypeDescription
RangeInfo.Builder

This builder for chaining.

setRangeNameBytes(ByteString value)

public RangeInfo.Builder setRangeNameBytes(ByteString value)

Output only. [Output only] Name of a range.

string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for rangeName to set.

Returns
TypeDescription
RangeInfo.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUtilization(double value)

public RangeInfo.Builder setUtilization(double value)

Output only. [Output only] The utilization of the range.

double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuedouble

The utilization to set.

Returns
TypeDescription
RangeInfo.Builder

This builder for chaining.