Class ResourceValue.Builder (0.6.0)

public static final class ResourceValue.Builder extends GeneratedMessage.Builder<ResourceValue.Builder> implements ResourceValueOrBuilder

Protobuf type google.cloud.capacityplanner.v1beta.ResourceValue

Static Methods

getDescriptor()

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

Methods

build()

public ResourceValue build()
Returns
Type Description
ResourceValue

buildPartial()

public ResourceValue buildPartial()
Returns
Type Description
ResourceValue

clear()

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

clearUnit()

public ResourceValue.Builder clearUnit()

.google.cloud.capacityplanner.v1beta.Unit unit = 1;

Returns
Type Description
ResourceValue.Builder

This builder for chaining.

clearValue()

public ResourceValue.Builder clearValue()

.google.cloud.capacityplanner.v1beta.Value value = 2;

Returns
Type Description
ResourceValue.Builder

getDefaultInstanceForType()

public ResourceValue getDefaultInstanceForType()
Returns
Type Description
ResourceValue

getDescriptorForType()

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

getUnit()

public Unit getUnit()

.google.cloud.capacityplanner.v1beta.Unit unit = 1;

Returns
Type Description
Unit

The unit.

getUnitValue()

public int getUnitValue()

.google.cloud.capacityplanner.v1beta.Unit unit = 1;

Returns
Type Description
int

The enum numeric value on the wire for unit.

getValue()

public Value getValue()

.google.cloud.capacityplanner.v1beta.Value value = 2;

Returns
Type Description
Value

The value.

getValueBuilder()

public Value.Builder getValueBuilder()

.google.cloud.capacityplanner.v1beta.Value value = 2;

Returns
Type Description
Value.Builder

getValueOrBuilder()

public ValueOrBuilder getValueOrBuilder()

.google.cloud.capacityplanner.v1beta.Value value = 2;

Returns
Type Description
ValueOrBuilder

hasValue()

public boolean hasValue()

.google.cloud.capacityplanner.v1beta.Value value = 2;

Returns
Type Description
boolean

Whether the value field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ResourceValue other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeValue(Value value)

public ResourceValue.Builder mergeValue(Value value)

.google.cloud.capacityplanner.v1beta.Value value = 2;

Parameter
Name Description
value Value
Returns
Type Description
ResourceValue.Builder

setUnit(Unit value)

public ResourceValue.Builder setUnit(Unit value)

.google.cloud.capacityplanner.v1beta.Unit unit = 1;

Parameter
Name Description
value Unit

The unit to set.

Returns
Type Description
ResourceValue.Builder

This builder for chaining.

setUnitValue(int value)

public ResourceValue.Builder setUnitValue(int value)

.google.cloud.capacityplanner.v1beta.Unit unit = 1;

Parameter
Name Description
value int

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

Returns
Type Description
ResourceValue.Builder

This builder for chaining.

setValue(Value value)

public ResourceValue.Builder setValue(Value value)

.google.cloud.capacityplanner.v1beta.Value value = 2;

Parameter
Name Description
value Value
Returns
Type Description
ResourceValue.Builder

setValue(Value.Builder builderForValue)

public ResourceValue.Builder setValue(Value.Builder builderForValue)

.google.cloud.capacityplanner.v1beta.Value value = 2;

Parameter
Name Description
builderForValue Value.Builder
Returns
Type Description
ResourceValue.Builder