Class ResourceValue.Builder (0.6.0)
Version latestkeyboard_arrow_down
public static final class ResourceValue . Builder extends GeneratedMessage . Builder<ResourceValue . Builder > implements ResourceValueOrBuilder
Protobuf type google.cloud.capacityplanner.v1beta.ResourceValue
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
build()
public ResourceValue build ()
buildPartial()
public ResourceValue buildPartial ()
clear()
public ResourceValue . Builder clear ()
Overrides
clearUnit()
public ResourceValue . Builder clearUnit ()
.google.cloud.capacityplanner.v1beta.Unit unit = 1;
clearValue()
public ResourceValue . Builder clearValue ()
.google.cloud.capacityplanner.v1beta.Value value = 2;
getDefaultInstanceForType()
public ResourceValue getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
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()
.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;
getValueOrBuilder()
public ValueOrBuilder getValueOrBuilder ()
.google.cloud.capacityplanner.v1beta.Value value = 2;
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 ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(ResourceValue other)
public ResourceValue . Builder mergeFrom ( ResourceValue other )
public ResourceValue . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public ResourceValue . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeValue(Value value)
public ResourceValue . Builder mergeValue ( Value value )
.google.cloud.capacityplanner.v1beta.Value value = 2;
Parameter
Name
Description
value
Value
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.
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.
setValue(Value value)
public ResourceValue . Builder setValue ( Value value )
.google.cloud.capacityplanner.v1beta.Value value = 2;
Parameter
Name
Description
value
Value
setValue(Value.Builder builderForValue)
public ResourceValue . Builder setValue ( Value . Builder builderForValue )
.google.cloud.capacityplanner.v1beta.Value value = 2;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-02-02 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-02-02 UTC."],[],[]]