public static final class ResourceContainer.Builder extends GeneratedMessage.Builder<ResourceContainer.Builder> implements ResourceContainerOrBuilderThe resource container of Google Cloud Platform hierarchy such as a project.
Protobuf type google.cloud.capacityplanner.v1beta.ResourceContainer
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ResourceContainer.BuilderImplements
ResourceContainerOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ResourceContainer build()| Returns | |
|---|---|
| Type | Description |
ResourceContainer |
|
buildPartial()
public ResourceContainer buildPartial()| Returns | |
|---|---|
| Type | Description |
ResourceContainer |
|
clear()
public ResourceContainer.Builder clear()| Returns | |
|---|---|
| Type | Description |
ResourceContainer.Builder |
|
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];
| Returns | |
|---|---|
| Type | Description |
ResourceContainer.Builder |
This builder for chaining. |
clearType()
public ResourceContainer.Builder clearType().google.cloud.capacityplanner.v1beta.ResourceContainer.Type type = 1;
| Returns | |
|---|---|
| Type | Description |
ResourceContainer.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public ResourceContainer getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ResourceContainer |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getId()
public String 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;
| Returns | |
|---|---|
| Type | Description |
ResourceContainer.Type |
The type. |
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ResourceContainer other)
public ResourceContainer.Builder mergeFrom(ResourceContainer other)| Parameter | |
|---|---|
| Name | Description |
other |
ResourceContainer |
| Returns | |
|---|---|
| Type | Description |
ResourceContainer.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ResourceContainer.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ResourceContainer.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ResourceContainer.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ResourceContainer.Builder |
|
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 |
StringThe id to set. |
| Returns | |
|---|---|
| Type | Description |
ResourceContainer.Builder |
This builder for chaining. |
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 |
ByteStringThe bytes for id to set. |
| Returns | |
|---|---|
| Type | Description |
ResourceContainer.Builder |
This builder for chaining. |
setType(ResourceContainer.Type value)
public ResourceContainer.Builder setType(ResourceContainer.Type value).google.cloud.capacityplanner.v1beta.ResourceContainer.Type type = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ResourceContainer.TypeThe type to set. |
| Returns | |
|---|---|
| Type | Description |
ResourceContainer.Builder |
This builder for chaining. |
setTypeValue(int value)
public ResourceContainer.Builder setTypeValue(int value).google.cloud.capacityplanner.v1beta.ResourceContainer.Type type = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for type to set. |
| Returns | |
|---|---|
| Type | Description |
ResourceContainer.Builder |
This builder for chaining. |