Class ResourceContainer.Builder (0.1.0)
public static final class ResourceContainer.Builder extends GeneratedMessageV3.Builder<ResourceContainer.Builder> implements ResourceContainerOrBuilder
The resource container of Google Cloud Platform hierarchy such as a project.
Protobuf type google.cloud.capacityplanner.v1beta.ResourceContainer
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 ResourceContainer.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ResourceContainer build()
buildPartial()
public ResourceContainer buildPartial()
clear()
public ResourceContainer.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ResourceContainer.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearId()
public ResourceContainer.Builder clearId()
Required. Identifier of the resource container. For example, project number
for project type.
string id = 2 [(.google.api.field_behavior) = REQUIRED];
clearOneof(Descriptors.OneofDescriptor oneof)
public ResourceContainer.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearType()
public ResourceContainer.Builder clearType()
.google.cloud.capacityplanner.v1beta.ResourceContainer.Type type = 1;
clone()
public ResourceContainer.Builder clone()
Overrides
getDefaultInstanceForType()
public ResourceContainer getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getId()
Required. Identifier of the resource container. For example, project number
for project type.
string id = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
String |
The id.
|
getIdBytes()
public ByteString getIdBytes()
Required. Identifier of the resource container. For example, project number
for project type.
string id = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
ByteString |
The bytes for id.
|
getType()
public ResourceContainer.Type getType()
.google.cloud.capacityplanner.v1beta.ResourceContainer.Type type = 1;
getTypeValue()
public int getTypeValue()
.google.cloud.capacityplanner.v1beta.ResourceContainer.Type type = 1;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for type.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ResourceContainer other)
public ResourceContainer.Builder mergeFrom(ResourceContainer other)
public ResourceContainer.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ResourceContainer.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ResourceContainer.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public ResourceContainer.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setId(String value)
public ResourceContainer.Builder setId(String value)
Required. Identifier of the resource container. For example, project number
for project type.
string id = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter |
| Name |
Description |
value |
String
The id to set.
|
setIdBytes(ByteString value)
public ResourceContainer.Builder setIdBytes(ByteString value)
Required. Identifier of the resource container. For example, project number
for project type.
string id = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter |
| Name |
Description |
value |
ByteString
The bytes for id to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ResourceContainer.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setType(ResourceContainer.Type value)
public ResourceContainer.Builder setType(ResourceContainer.Type value)
.google.cloud.capacityplanner.v1beta.ResourceContainer.Type type = 1;
setTypeValue(int value)
public ResourceContainer.Builder setTypeValue(int value)
.google.cloud.capacityplanner.v1beta.ResourceContainer.Type type = 1;
| Parameter |
| Name |
Description |
value |
int
The enum numeric value on the wire for type to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final ResourceContainer.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."],[],[]]