Class ProvisioningQuota.Builder (0.42.0)

public static final class ProvisioningQuota.Builder extends GeneratedMessageV3.Builder<ProvisioningQuota.Builder> implements ProvisioningQuotaOrBuilder

A provisioning quota for a given project.

Protobuf type google.cloud.baremetalsolution.v2.ProvisioningQuota

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ProvisioningQuota.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ProvisioningQuota.Builder
Overrides

build()

public ProvisioningQuota build()
Returns
Type Description
ProvisioningQuota

buildPartial()

public ProvisioningQuota buildPartial()
Returns
Type Description
ProvisioningQuota

clear()

public ProvisioningQuota.Builder clear()
Returns
Type Description
ProvisioningQuota.Builder
Overrides

clearAssetType()

public ProvisioningQuota.Builder clearAssetType()

The asset type of this provisioning quota.

.google.cloud.baremetalsolution.v2.ProvisioningQuota.AssetType asset_type = 2;

Returns
Type Description
ProvisioningQuota.Builder

This builder for chaining.

clearAvailability()

public ProvisioningQuota.Builder clearAvailability()
Returns
Type Description
ProvisioningQuota.Builder

clearAvailableCount()

public ProvisioningQuota.Builder clearAvailableCount()

The available count of the provisioning quota.

int32 available_count = 5;

Returns
Type Description
ProvisioningQuota.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ProvisioningQuota.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ProvisioningQuota.Builder
Overrides

clearGcpService()

public ProvisioningQuota.Builder clearGcpService()

The gcp service of the provisioning quota.

string gcp_service = 3;

Returns
Type Description
ProvisioningQuota.Builder

This builder for chaining.

clearInstanceQuota()

public ProvisioningQuota.Builder clearInstanceQuota()

Instance quota.

.google.cloud.baremetalsolution.v2.InstanceQuota instance_quota = 6;

Returns
Type Description
ProvisioningQuota.Builder

clearLocation()

public ProvisioningQuota.Builder clearLocation()

The specific location of the provisioining quota.

string location = 4;

Returns
Type Description
ProvisioningQuota.Builder

This builder for chaining.

clearName()

public ProvisioningQuota.Builder clearName()

Output only. The name of the provisioning quota.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProvisioningQuota.Builder

This builder for chaining.

clearNetworkBandwidth()

public ProvisioningQuota.Builder clearNetworkBandwidth()

Network bandwidth, Gbps

int64 network_bandwidth = 8;

Returns
Type Description
ProvisioningQuota.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ProvisioningQuota.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ProvisioningQuota.Builder
Overrides

clearQuota()

public ProvisioningQuota.Builder clearQuota()
Returns
Type Description
ProvisioningQuota.Builder

clearServerCount()

public ProvisioningQuota.Builder clearServerCount()

Server count.

int64 server_count = 7;

Returns
Type Description
ProvisioningQuota.Builder

This builder for chaining.

clearStorageGib()

public ProvisioningQuota.Builder clearStorageGib()

Storage size (GB).

int64 storage_gib = 9;

Returns
Type Description
ProvisioningQuota.Builder

This builder for chaining.

clone()

public ProvisioningQuota.Builder clone()
Returns
Type Description
ProvisioningQuota.Builder
Overrides

getAssetType()

public ProvisioningQuota.AssetType getAssetType()

The asset type of this provisioning quota.

.google.cloud.baremetalsolution.v2.ProvisioningQuota.AssetType asset_type = 2;

Returns
Type Description
ProvisioningQuota.AssetType

The assetType.

getAssetTypeValue()

public int getAssetTypeValue()

The asset type of this provisioning quota.

.google.cloud.baremetalsolution.v2.ProvisioningQuota.AssetType asset_type = 2;

Returns
Type Description
int

The enum numeric value on the wire for assetType.

getAvailabilityCase()

public ProvisioningQuota.AvailabilityCase getAvailabilityCase()
Returns
Type Description
ProvisioningQuota.AvailabilityCase

getAvailableCount()

public int getAvailableCount()

The available count of the provisioning quota.

int32 available_count = 5;

Returns
Type Description
int

The availableCount.

getDefaultInstanceForType()

public ProvisioningQuota getDefaultInstanceForType()
Returns
Type Description
ProvisioningQuota

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGcpService()

public String getGcpService()

The gcp service of the provisioning quota.

string gcp_service = 3;

Returns
Type Description
String

The gcpService.

getGcpServiceBytes()

public ByteString getGcpServiceBytes()

The gcp service of the provisioning quota.

string gcp_service = 3;

Returns
Type Description
ByteString

The bytes for gcpService.

getInstanceQuota()

public InstanceQuota getInstanceQuota()

Instance quota.

.google.cloud.baremetalsolution.v2.InstanceQuota instance_quota = 6;

Returns
Type Description
InstanceQuota

The instanceQuota.

getInstanceQuotaBuilder()

public InstanceQuota.Builder getInstanceQuotaBuilder()

Instance quota.

.google.cloud.baremetalsolution.v2.InstanceQuota instance_quota = 6;

Returns
Type Description
InstanceQuota.Builder

getInstanceQuotaOrBuilder()

public InstanceQuotaOrBuilder getInstanceQuotaOrBuilder()

Instance quota.

.google.cloud.baremetalsolution.v2.InstanceQuota instance_quota = 6;

Returns
Type Description
InstanceQuotaOrBuilder

getLocation()

public String getLocation()

The specific location of the provisioining quota.

string location = 4;

Returns
Type Description
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

The specific location of the provisioining quota.

string location = 4;

Returns
Type Description
ByteString

The bytes for location.

getName()

public String getName()

Output only. The name of the provisioning quota.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The name of the provisioning quota.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getNetworkBandwidth()

public long getNetworkBandwidth()

Network bandwidth, Gbps

int64 network_bandwidth = 8;

Returns
Type Description
long

The networkBandwidth.

getQuotaCase()

public ProvisioningQuota.QuotaCase getQuotaCase()
Returns
Type Description
ProvisioningQuota.QuotaCase

getServerCount()

public long getServerCount()

Server count.

int64 server_count = 7;

Returns
Type Description
long

The serverCount.

getStorageGib()

public long getStorageGib()

Storage size (GB).

int64 storage_gib = 9;

Returns
Type Description
long

The storageGib.

hasInstanceQuota()

public boolean hasInstanceQuota()

Instance quota.

.google.cloud.baremetalsolution.v2.InstanceQuota instance_quota = 6;

Returns
Type Description
boolean

Whether the instanceQuota field is set.

hasNetworkBandwidth()

public boolean hasNetworkBandwidth()

Network bandwidth, Gbps

int64 network_bandwidth = 8;

Returns
Type Description
boolean

Whether the networkBandwidth field is set.

hasServerCount()

public boolean hasServerCount()

Server count.

int64 server_count = 7;

Returns
Type Description
boolean

Whether the serverCount field is set.

hasStorageGib()

public boolean hasStorageGib()

Storage size (GB).

int64 storage_gib = 9;

Returns
Type Description
boolean

Whether the storageGib field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ProvisioningQuota other)

public ProvisioningQuota.Builder mergeFrom(ProvisioningQuota other)
Parameter
Name Description
other ProvisioningQuota
Returns
Type Description
ProvisioningQuota.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ProvisioningQuota.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProvisioningQuota.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ProvisioningQuota.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ProvisioningQuota.Builder
Overrides

mergeInstanceQuota(InstanceQuota value)

public ProvisioningQuota.Builder mergeInstanceQuota(InstanceQuota value)

Instance quota.

.google.cloud.baremetalsolution.v2.InstanceQuota instance_quota = 6;

Parameter
Name Description
value InstanceQuota
Returns
Type Description
ProvisioningQuota.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ProvisioningQuota.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ProvisioningQuota.Builder
Overrides

setAssetType(ProvisioningQuota.AssetType value)

public ProvisioningQuota.Builder setAssetType(ProvisioningQuota.AssetType value)

The asset type of this provisioning quota.

.google.cloud.baremetalsolution.v2.ProvisioningQuota.AssetType asset_type = 2;

Parameter
Name Description
value ProvisioningQuota.AssetType

The assetType to set.

Returns
Type Description
ProvisioningQuota.Builder

This builder for chaining.

setAssetTypeValue(int value)

public ProvisioningQuota.Builder setAssetTypeValue(int value)

The asset type of this provisioning quota.

.google.cloud.baremetalsolution.v2.ProvisioningQuota.AssetType asset_type = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for assetType to set.

Returns
Type Description
ProvisioningQuota.Builder

This builder for chaining.

setAvailableCount(int value)

public ProvisioningQuota.Builder setAvailableCount(int value)

The available count of the provisioning quota.

int32 available_count = 5;

Parameter
Name Description
value int

The availableCount to set.

Returns
Type Description
ProvisioningQuota.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ProvisioningQuota.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ProvisioningQuota.Builder
Overrides

setGcpService(String value)

public ProvisioningQuota.Builder setGcpService(String value)

The gcp service of the provisioning quota.

string gcp_service = 3;

Parameter
Name Description
value String

The gcpService to set.

Returns
Type Description
ProvisioningQuota.Builder

This builder for chaining.

setGcpServiceBytes(ByteString value)

public ProvisioningQuota.Builder setGcpServiceBytes(ByteString value)

The gcp service of the provisioning quota.

string gcp_service = 3;

Parameter
Name Description
value ByteString

The bytes for gcpService to set.

Returns
Type Description
ProvisioningQuota.Builder

This builder for chaining.

setInstanceQuota(InstanceQuota value)

public ProvisioningQuota.Builder setInstanceQuota(InstanceQuota value)

Instance quota.

.google.cloud.baremetalsolution.v2.InstanceQuota instance_quota = 6;

Parameter
Name Description
value InstanceQuota
Returns
Type Description
ProvisioningQuota.Builder

setInstanceQuota(InstanceQuota.Builder builderForValue)

public ProvisioningQuota.Builder setInstanceQuota(InstanceQuota.Builder builderForValue)

Instance quota.

.google.cloud.baremetalsolution.v2.InstanceQuota instance_quota = 6;

Parameter
Name Description
builderForValue InstanceQuota.Builder
Returns
Type Description
ProvisioningQuota.Builder

setLocation(String value)

public ProvisioningQuota.Builder setLocation(String value)

The specific location of the provisioining quota.

string location = 4;

Parameter
Name Description
value String

The location to set.

Returns
Type Description
ProvisioningQuota.Builder

This builder for chaining.

setLocationBytes(ByteString value)

public ProvisioningQuota.Builder setLocationBytes(ByteString value)

The specific location of the provisioining quota.

string location = 4;

Parameter
Name Description
value ByteString

The bytes for location to set.

Returns
Type Description
ProvisioningQuota.Builder

This builder for chaining.

setName(String value)

public ProvisioningQuota.Builder setName(String value)

Output only. The name of the provisioning quota.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ProvisioningQuota.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ProvisioningQuota.Builder setNameBytes(ByteString value)

Output only. The name of the provisioning quota.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ProvisioningQuota.Builder

This builder for chaining.

setNetworkBandwidth(long value)

public ProvisioningQuota.Builder setNetworkBandwidth(long value)

Network bandwidth, Gbps

int64 network_bandwidth = 8;

Parameter
Name Description
value long

The networkBandwidth to set.

Returns
Type Description
ProvisioningQuota.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ProvisioningQuota.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ProvisioningQuota.Builder
Overrides

setServerCount(long value)

public ProvisioningQuota.Builder setServerCount(long value)

Server count.

int64 server_count = 7;

Parameter
Name Description
value long

The serverCount to set.

Returns
Type Description
ProvisioningQuota.Builder

This builder for chaining.

setStorageGib(long value)

public ProvisioningQuota.Builder setStorageGib(long value)

Storage size (GB).

int64 storage_gib = 9;

Parameter
Name Description
value long

The storageGib to set.

Returns
Type Description
ProvisioningQuota.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ProvisioningQuota.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ProvisioningQuota.Builder
Overrides