Class ResourceIdentifier.Builder (0.16.0)
Stay organized with collections
Save and categorize content based on your preferences.
public static final class ResourceIdentifier.Builder extends GeneratedMessage.Builder<ResourceIdentifier.Builder> implements ResourceIdentifierOrBuilder
The identifier for a Google Cloud Platform resource.
Protobuf type google.cloud.capacityplanner.v1beta.ResourceIdentifier
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
addAllResourceAttributes(Iterable<? extends ResourceAttribute> values)
public ResourceIdentifier.Builder addAllResourceAttributes(Iterable<? extends ResourceAttribute> values)
repeated .google.cloud.capacityplanner.v1beta.ResourceAttribute resource_attributes = 3;
| Parameter |
| Name |
Description |
values |
Iterable<? extends com.google.cloud.capacityplanner.v1beta.ResourceAttribute>
|
addResourceAttributes(ResourceAttribute value)
public ResourceIdentifier.Builder addResourceAttributes(ResourceAttribute value)
repeated .google.cloud.capacityplanner.v1beta.ResourceAttribute resource_attributes = 3;
addResourceAttributes(ResourceAttribute.Builder builderForValue)
public ResourceIdentifier.Builder addResourceAttributes(ResourceAttribute.Builder builderForValue)
repeated .google.cloud.capacityplanner.v1beta.ResourceAttribute resource_attributes = 3;
addResourceAttributes(int index, ResourceAttribute value)
public ResourceIdentifier.Builder addResourceAttributes(int index, ResourceAttribute value)
repeated .google.cloud.capacityplanner.v1beta.ResourceAttribute resource_attributes = 3;
addResourceAttributes(int index, ResourceAttribute.Builder builderForValue)
public ResourceIdentifier.Builder addResourceAttributes(int index, ResourceAttribute.Builder builderForValue)
repeated .google.cloud.capacityplanner.v1beta.ResourceAttribute resource_attributes = 3;
addResourceAttributesBuilder()
public ResourceAttribute.Builder addResourceAttributesBuilder()
repeated .google.cloud.capacityplanner.v1beta.ResourceAttribute resource_attributes = 3;
addResourceAttributesBuilder(int index)
public ResourceAttribute.Builder addResourceAttributesBuilder(int index)
repeated .google.cloud.capacityplanner.v1beta.ResourceAttribute resource_attributes = 3;
| Parameter |
| Name |
Description |
index |
int
|
build()
public ResourceIdentifier build()
buildPartial()
public ResourceIdentifier buildPartial()
clear()
public ResourceIdentifier.Builder clear()
Overrides
clearResourceAttributes()
public ResourceIdentifier.Builder clearResourceAttributes()
repeated .google.cloud.capacityplanner.v1beta.ResourceAttribute resource_attributes = 3;
clearResourceName()
public ResourceIdentifier.Builder clearResourceName()
string resource_name = 2;
clearServiceName()
public ResourceIdentifier.Builder clearServiceName()
getDefaultInstanceForType()
public ResourceIdentifier getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getResourceAttributes(int index)
public ResourceAttribute getResourceAttributes(int index)
repeated .google.cloud.capacityplanner.v1beta.ResourceAttribute resource_attributes = 3;
| Parameter |
| Name |
Description |
index |
int
|
getResourceAttributesBuilder(int index)
public ResourceAttribute.Builder getResourceAttributesBuilder(int index)
repeated .google.cloud.capacityplanner.v1beta.ResourceAttribute resource_attributes = 3;
| Parameter |
| Name |
Description |
index |
int
|
getResourceAttributesBuilderList()
public List<ResourceAttribute.Builder> getResourceAttributesBuilderList()
repeated .google.cloud.capacityplanner.v1beta.ResourceAttribute resource_attributes = 3;
getResourceAttributesCount()
public int getResourceAttributesCount()
repeated .google.cloud.capacityplanner.v1beta.ResourceAttribute resource_attributes = 3;
| Returns |
| Type |
Description |
int |
|
getResourceAttributesList()
public List<ResourceAttribute> getResourceAttributesList()
repeated .google.cloud.capacityplanner.v1beta.ResourceAttribute resource_attributes = 3;
getResourceAttributesOrBuilder(int index)
public ResourceAttributeOrBuilder getResourceAttributesOrBuilder(int index)
repeated .google.cloud.capacityplanner.v1beta.ResourceAttribute resource_attributes = 3;
| Parameter |
| Name |
Description |
index |
int
|
getResourceAttributesOrBuilderList()
public List<? extends ResourceAttributeOrBuilder> getResourceAttributesOrBuilderList()
repeated .google.cloud.capacityplanner.v1beta.ResourceAttribute resource_attributes = 3;
| Returns |
| Type |
Description |
List<? extends com.google.cloud.capacityplanner.v1beta.ResourceAttributeOrBuilder> |
|
getResourceName()
public String getResourceName()
string resource_name = 2;
| Returns |
| Type |
Description |
String |
The resourceName.
|
getResourceNameBytes()
public ByteString getResourceNameBytes()
string resource_name = 2;
| Returns |
| Type |
Description |
ByteString |
The bytes for resourceName.
|
getServiceName()
public String getServiceName()
| Returns |
| Type |
Description |
String |
The serviceName.
|
getServiceNameBytes()
public ByteString getServiceNameBytes()
| Returns |
| Type |
Description |
ByteString |
The bytes for serviceName.
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ResourceIdentifier other)
public ResourceIdentifier.Builder mergeFrom(ResourceIdentifier other)
public ResourceIdentifier.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ResourceIdentifier.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
removeResourceAttributes(int index)
public ResourceIdentifier.Builder removeResourceAttributes(int index)
repeated .google.cloud.capacityplanner.v1beta.ResourceAttribute resource_attributes = 3;
| Parameter |
| Name |
Description |
index |
int
|
setResourceAttributes(int index, ResourceAttribute value)
public ResourceIdentifier.Builder setResourceAttributes(int index, ResourceAttribute value)
repeated .google.cloud.capacityplanner.v1beta.ResourceAttribute resource_attributes = 3;
setResourceAttributes(int index, ResourceAttribute.Builder builderForValue)
public ResourceIdentifier.Builder setResourceAttributes(int index, ResourceAttribute.Builder builderForValue)
repeated .google.cloud.capacityplanner.v1beta.ResourceAttribute resource_attributes = 3;
setResourceName(String value)
public ResourceIdentifier.Builder setResourceName(String value)
string resource_name = 2;
| Parameter |
| Name |
Description |
value |
String
The resourceName to set.
|
setResourceNameBytes(ByteString value)
public ResourceIdentifier.Builder setResourceNameBytes(ByteString value)
string resource_name = 2;
| Parameter |
| Name |
Description |
value |
ByteString
The bytes for resourceName to set.
|
setServiceName(String value)
public ResourceIdentifier.Builder setServiceName(String value)
| Parameter |
| Name |
Description |
value |
String
The serviceName to set.
|
setServiceNameBytes(ByteString value)
public ResourceIdentifier.Builder setServiceNameBytes(ByteString value)
| Parameter |
| Name |
Description |
value |
ByteString
The bytes for serviceName to set.
|
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-06-19 UTC.
[null,null,["Last updated 2026-06-19 UTC."],[],[]]