Class ResourceValue.Builder (0.1.0)
public static final class ResourceValue.Builder extends GeneratedMessageV3.Builder<ResourceValue.Builder> implements ResourceValueOrBuilder
Protobuf type google.cloud.capacityplanner.v1beta.ResourceValue
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ResourceValue.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ResourceValue build()
buildPartial()
public ResourceValue buildPartial()
clear()
public ResourceValue.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ResourceValue.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ResourceValue.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
clone()
public ResourceValue.Builder clone()
Overrides
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 GeneratedMessageV3.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
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ResourceValue.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
mergeValue(Value value)
public ResourceValue.Builder mergeValue(Value value)
.google.cloud.capacityplanner.v1beta.Value value = 2;
| Parameter |
| Name |
Description |
value |
Value
|
setField(Descriptors.FieldDescriptor field, Object value)
public ResourceValue.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ResourceValue.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final ResourceValue.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
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 2025-10-30 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 2025-10-30 UTC."],[],[]]