Send feedback
Class ResourceValue.Builder (0.11.0)
Stay organized with collections
Save and categorize content based on your preferences.
0.11.0 (latest)
0.10.0
0.8.0
0.6.0
0.5.0
0.4.0
0.3.0
0.1.0
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;
Send feedback
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-03-29 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-03-29 UTC."],[],[]]