public static final class ResourceIdKey.Builder extends GeneratedMessage.Builder<ResourceIdKey.Builder> implements ResourceIdKeyOrBuilderThe id for a Google Cloud Platform resource key.
Protobuf type google.cloud.capacityplanner.v1beta.ResourceIdKey
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ResourceIdKey.BuilderImplements
ResourceIdKeyOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ResourceIdKey build()| Returns | |
|---|---|
| Type | Description |
ResourceIdKey |
|
buildPartial()
public ResourceIdKey buildPartial()| Returns | |
|---|---|
| Type | Description |
ResourceIdKey |
|
clear()
public ResourceIdKey.Builder clear()| Returns | |
|---|---|
| Type | Description |
ResourceIdKey.Builder |
|
clearDemandFields()
public ResourceIdKey.Builder clearDemandFields()| Returns | |
|---|---|
| Type | Description |
ResourceIdKey.Builder |
|
clearResourceCode()
public ResourceIdKey.Builder clearResourceCode()Required. resource_code for the resource. eg: gce-ram, gce-vcpus, gce-gpu, gce-tpu, gce-vm, gce-persistent-disk, gce-local-ssd.
string resource_code = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ResourceIdKey.Builder |
This builder for chaining. |
clearResourceId()
public ResourceIdKey.Builder clearResourceId()Required. Id of the resource.
.google.cloud.capacityplanner.v1beta.ResourceIdentifier resource_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ResourceIdKey.Builder |
|
getDefaultInstanceForType()
public ResourceIdKey getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ResourceIdKey |
|
getDemandFieldsCase()
public ResourceIdKey.DemandFieldsCase getDemandFieldsCase()| Returns | |
|---|---|
| Type | Description |
ResourceIdKey.DemandFieldsCase |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getResourceCode()
public String getResourceCode()Required. resource_code for the resource. eg: gce-ram, gce-vcpus, gce-gpu, gce-tpu, gce-vm, gce-persistent-disk, gce-local-ssd.
string resource_code = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The resourceCode. |
getResourceCodeBytes()
public ByteString getResourceCodeBytes()Required. resource_code for the resource. eg: gce-ram, gce-vcpus, gce-gpu, gce-tpu, gce-vm, gce-persistent-disk, gce-local-ssd.
string resource_code = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for resourceCode. |
getResourceId()
public ResourceIdentifier getResourceId()Required. Id of the resource.
.google.cloud.capacityplanner.v1beta.ResourceIdentifier resource_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ResourceIdentifier |
The resourceId. |
getResourceIdBuilder()
public ResourceIdentifier.Builder getResourceIdBuilder()Required. Id of the resource.
.google.cloud.capacityplanner.v1beta.ResourceIdentifier resource_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ResourceIdentifier.Builder |
|
getResourceIdOrBuilder()
public ResourceIdentifierOrBuilder getResourceIdOrBuilder()Required. Id of the resource.
.google.cloud.capacityplanner.v1beta.ResourceIdentifier resource_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ResourceIdentifierOrBuilder |
|
hasResourceCode()
public boolean hasResourceCode()Required. resource_code for the resource. eg: gce-ram, gce-vcpus, gce-gpu, gce-tpu, gce-vm, gce-persistent-disk, gce-local-ssd.
string resource_code = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the resourceCode field is set. |
hasResourceId()
public boolean hasResourceId()Required. Id of the resource.
.google.cloud.capacityplanner.v1beta.ResourceIdentifier resource_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the resourceId field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ResourceIdKey other)
public ResourceIdKey.Builder mergeFrom(ResourceIdKey other)| Parameter | |
|---|---|
| Name | Description |
other |
ResourceIdKey |
| Returns | |
|---|---|
| Type | Description |
ResourceIdKey.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ResourceIdKey.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ResourceIdKey.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ResourceIdKey.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ResourceIdKey.Builder |
|
mergeResourceId(ResourceIdentifier value)
public ResourceIdKey.Builder mergeResourceId(ResourceIdentifier value)Required. Id of the resource.
.google.cloud.capacityplanner.v1beta.ResourceIdentifier resource_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ResourceIdentifier |
| Returns | |
|---|---|
| Type | Description |
ResourceIdKey.Builder |
|
setResourceCode(String value)
public ResourceIdKey.Builder setResourceCode(String value)Required. resource_code for the resource. eg: gce-ram, gce-vcpus, gce-gpu, gce-tpu, gce-vm, gce-persistent-disk, gce-local-ssd.
string resource_code = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe resourceCode to set. |
| Returns | |
|---|---|
| Type | Description |
ResourceIdKey.Builder |
This builder for chaining. |
setResourceCodeBytes(ByteString value)
public ResourceIdKey.Builder setResourceCodeBytes(ByteString value)Required. resource_code for the resource. eg: gce-ram, gce-vcpus, gce-gpu, gce-tpu, gce-vm, gce-persistent-disk, gce-local-ssd.
string resource_code = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for resourceCode to set. |
| Returns | |
|---|---|
| Type | Description |
ResourceIdKey.Builder |
This builder for chaining. |
setResourceId(ResourceIdentifier value)
public ResourceIdKey.Builder setResourceId(ResourceIdentifier value)Required. Id of the resource.
.google.cloud.capacityplanner.v1beta.ResourceIdentifier resource_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ResourceIdentifier |
| Returns | |
|---|---|
| Type | Description |
ResourceIdKey.Builder |
|
setResourceId(ResourceIdentifier.Builder builderForValue)
public ResourceIdKey.Builder setResourceId(ResourceIdentifier.Builder builderForValue)Required. Id of the resource.
.google.cloud.capacityplanner.v1beta.ResourceIdentifier resource_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ResourceIdentifier.Builder |
| Returns | |
|---|---|
| Type | Description |
ResourceIdKey.Builder |
|