Class ResourceIdentifier.Builder (0.1.0)
public static final class ResourceIdentifier.Builder extends GeneratedMessageV3.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.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
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>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ResourceIdentifier.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
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
clearField(Descriptors.FieldDescriptor field)
public ResourceIdentifier.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ResourceIdentifier.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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()
clone()
public ResourceIdentifier.Builder clone()
Overrides
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 GeneratedMessageV3.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
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ResourceIdentifier.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeResourceAttributes(int index)
public ResourceIdentifier.Builder removeResourceAttributes(int index)
repeated .google.cloud.capacityplanner.v1beta.ResourceAttribute resource_attributes = 3;
| Parameter |
| Name |
Description |
index |
int
|
setField(Descriptors.FieldDescriptor field, Object value)
public ResourceIdentifier.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ResourceIdentifier.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final ResourceIdentifier.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
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."],[],[]]