Class ResourceAttribute.Builder (0.6.0)
Version latestkeyboard_arrow_down
public static final class ResourceAttribute . Builder extends GeneratedMessage . Builder<ResourceAttribute . Builder > implements ResourceAttributeOrBuilder
An attribute of a Google Cloud Platform resource.
Protobuf type google.cloud.capacityplanner.v1beta.ResourceAttribute
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 ResourceAttribute build ()
buildPartial()
public ResourceAttribute buildPartial ()
clear()
public ResourceAttribute . Builder clear ()
Overrides
clearKey()
public ResourceAttribute . Builder clearKey ()
clearValue()
public ResourceAttribute . Builder clearValue ()
.google.cloud.capacityplanner.v1beta.ResourceValue value = 2;
getDefaultInstanceForType()
public ResourceAttribute getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getKey()
Returns
Type
Description
String
The key.
getKeyBytes()
public ByteString getKeyBytes ()
Returns
Type
Description
ByteString
The bytes for key.
getValue()
public ResourceValue getValue ()
.google.cloud.capacityplanner.v1beta.ResourceValue value = 2;
getValueBuilder()
public ResourceValue . Builder getValueBuilder ()
.google.cloud.capacityplanner.v1beta.ResourceValue value = 2;
getValueOrBuilder()
public ResourceValueOrBuilder getValueOrBuilder ()
.google.cloud.capacityplanner.v1beta.ResourceValue value = 2;
hasValue()
public boolean hasValue ()
.google.cloud.capacityplanner.v1beta.ResourceValue 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(ResourceAttribute other)
public ResourceAttribute . Builder mergeFrom ( ResourceAttribute other )
public ResourceAttribute . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public ResourceAttribute . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeValue(ResourceValue value)
public ResourceAttribute . Builder mergeValue ( ResourceValue value )
.google.cloud.capacityplanner.v1beta.ResourceValue value = 2;
setKey(String value)
public ResourceAttribute . Builder setKey ( String value )
Parameter
Name
Description
value
String The key to set.
setKeyBytes(ByteString value)
public ResourceAttribute . Builder setKeyBytes ( ByteString value )
Parameter
Name
Description
value
ByteString The bytes for key to set.
setValue(ResourceValue value)
public ResourceAttribute . Builder setValue ( ResourceValue value )
.google.cloud.capacityplanner.v1beta.ResourceValue value = 2;
setValue(ResourceValue.Builder builderForValue)
public ResourceAttribute . Builder setValue ( ResourceValue . Builder builderForValue )
.google.cloud.capacityplanner.v1beta.ResourceValue 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."],[],[]]