Class ProvisioningQuota.Builder (0.37.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ProvisioningQuota.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ProvisioningQuota.Builder
Overrides

build()

public ProvisioningQuota build()
Returns
TypeDescription
ProvisioningQuota

buildPartial()

public ProvisioningQuota buildPartial()
Returns
TypeDescription
ProvisioningQuota

clear()

public ProvisioningQuota.Builder clear()
Returns
TypeDescription
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
TypeDescription
ProvisioningQuota.Builder

This builder for chaining.

clearAvailability()

public ProvisioningQuota.Builder clearAvailability()
Returns
TypeDescription
ProvisioningQuota.Builder

clearAvailableCount()

public ProvisioningQuota.Builder clearAvailableCount()

The available count of the provisioning quota.

int32 available_count = 5;

Returns
TypeDescription
ProvisioningQuota.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ProvisioningQuota.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ProvisioningQuota.Builder
Overrides

clearGcpService()

public ProvisioningQuota.Builder clearGcpService()

The gcp service of the provisioning quota.

string gcp_service = 3;

Returns
TypeDescription
ProvisioningQuota.Builder

This builder for chaining.

clearInstanceQuota()

public ProvisioningQuota.Builder clearInstanceQuota()

Instance quota.

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

Returns
TypeDescription
ProvisioningQuota.Builder

clearLocation()

public ProvisioningQuota.Builder clearLocation()

The specific location of the provisioining quota.

string location = 4;

Returns
TypeDescription
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
TypeDescription
ProvisioningQuota.Builder

This builder for chaining.

clearNetworkBandwidth()

public ProvisioningQuota.Builder clearNetworkBandwidth()

Network bandwidth, Gbps

int64 network_bandwidth = 8;

Returns
TypeDescription
ProvisioningQuota.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ProvisioningQuota.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ProvisioningQuota.Builder
Overrides

clearQuota()

public ProvisioningQuota.Builder clearQuota()
Returns
TypeDescription
ProvisioningQuota.Builder

clearServerCount()

public ProvisioningQuota.Builder clearServerCount()

Server count.

int64 server_count = 7;

Returns
TypeDescription
ProvisioningQuota.Builder

This builder for chaining.

clearStorageGib()

public ProvisioningQuota.Builder clearStorageGib()

Storage size (GB).

int64 storage_gib = 9;

Returns
TypeDescription
ProvisioningQuota.Builder

This builder for chaining.

clone()

public ProvisioningQuota.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for assetType.

getAvailabilityCase()

public ProvisioningQuota.AvailabilityCase getAvailabilityCase()
Returns
TypeDescription
ProvisioningQuota.AvailabilityCase

getAvailableCount()

public int getAvailableCount()

The available count of the provisioning quota.

int32 available_count = 5;

Returns
TypeDescription
int

The availableCount.

getDefaultInstanceForType()

public ProvisioningQuota getDefaultInstanceForType()
Returns
TypeDescription
ProvisioningQuota

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGcpService()

public String getGcpService()

The gcp service of the provisioning quota.

string gcp_service = 3;

Returns
TypeDescription
String

The gcpService.

getGcpServiceBytes()

public ByteString getGcpServiceBytes()

The gcp service of the provisioning quota.

string gcp_service = 3;

Returns
TypeDescription
ByteString

The bytes for gcpService.

getInstanceQuota()

public InstanceQuota getInstanceQuota()

Instance quota.

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

Returns
TypeDescription
InstanceQuota

The instanceQuota.

getInstanceQuotaBuilder()

public InstanceQuota.Builder getInstanceQuotaBuilder()

Instance quota.

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

Returns
TypeDescription
InstanceQuota.Builder

getInstanceQuotaOrBuilder()

public InstanceQuotaOrBuilder getInstanceQuotaOrBuilder()

Instance quota.

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

Returns
TypeDescription
InstanceQuotaOrBuilder

getLocation()

public String getLocation()

The specific location of the provisioining quota.

string location = 4;

Returns
TypeDescription
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

The specific location of the provisioining quota.

string location = 4;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

getNetworkBandwidth()

public long getNetworkBandwidth()

Network bandwidth, Gbps

int64 network_bandwidth = 8;

Returns
TypeDescription
long

The networkBandwidth.

getQuotaCase()

public ProvisioningQuota.QuotaCase getQuotaCase()
Returns
TypeDescription
ProvisioningQuota.QuotaCase

getServerCount()

public long getServerCount()

Server count.

int64 server_count = 7;

Returns
TypeDescription
long

The serverCount.

getStorageGib()

public long getStorageGib()

Storage size (GB).

int64 storage_gib = 9;

Returns
TypeDescription
long

The storageGib.

hasInstanceQuota()

public boolean hasInstanceQuota()

Instance quota.

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

Returns
TypeDescription
boolean

Whether the instanceQuota field is set.

hasNetworkBandwidth()

public boolean hasNetworkBandwidth()

Network bandwidth, Gbps

int64 network_bandwidth = 8;

Returns
TypeDescription
boolean

Whether the networkBandwidth field is set.

hasServerCount()

public boolean hasServerCount()

Server count.

int64 server_count = 7;

Returns
TypeDescription
boolean

Whether the serverCount field is set.

hasStorageGib()

public boolean hasStorageGib()

Storage size (GB).

int64 storage_gib = 9;

Returns
TypeDescription
boolean

Whether the storageGib field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ProvisioningQuota other)

public ProvisioningQuota.Builder mergeFrom(ProvisioningQuota other)
Parameter
NameDescription
otherProvisioningQuota
Returns
TypeDescription
ProvisioningQuota.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ProvisioningQuota.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProvisioningQuota.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ProvisioningQuota.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ProvisioningQuota.Builder
Overrides

mergeInstanceQuota(InstanceQuota value)

public ProvisioningQuota.Builder mergeInstanceQuota(InstanceQuota value)

Instance quota.

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

Parameter
NameDescription
valueInstanceQuota
Returns
TypeDescription
ProvisioningQuota.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ProvisioningQuota.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueProvisioningQuota.AssetType

The assetType to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueint

The availableCount to set.

Returns
TypeDescription
ProvisioningQuota.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ProvisioningQuota.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ProvisioningQuota.Builder
Overrides

setGcpService(String value)

public ProvisioningQuota.Builder setGcpService(String value)

The gcp service of the provisioning quota.

string gcp_service = 3;

Parameter
NameDescription
valueString

The gcpService to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for gcpService to set.

Returns
TypeDescription
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
NameDescription
valueInstanceQuota
Returns
TypeDescription
ProvisioningQuota.Builder

setInstanceQuota(InstanceQuota.Builder builderForValue)

public ProvisioningQuota.Builder setInstanceQuota(InstanceQuota.Builder builderForValue)

Instance quota.

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

Parameter
NameDescription
builderForValueInstanceQuota.Builder
Returns
TypeDescription
ProvisioningQuota.Builder

setLocation(String value)

public ProvisioningQuota.Builder setLocation(String value)

The specific location of the provisioining quota.

string location = 4;

Parameter
NameDescription
valueString

The location to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for location to set.

Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ProvisioningQuota.Builder

This builder for chaining.

setNetworkBandwidth(long value)

public ProvisioningQuota.Builder setNetworkBandwidth(long value)

Network bandwidth, Gbps

int64 network_bandwidth = 8;

Parameter
NameDescription
valuelong

The networkBandwidth to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ProvisioningQuota.Builder
Overrides

setServerCount(long value)

public ProvisioningQuota.Builder setServerCount(long value)

Server count.

int64 server_count = 7;

Parameter
NameDescription
valuelong

The serverCount to set.

Returns
TypeDescription
ProvisioningQuota.Builder

This builder for chaining.

setStorageGib(long value)

public ProvisioningQuota.Builder setStorageGib(long value)

Storage size (GB).

int64 storage_gib = 9;

Parameter
NameDescription
valuelong

The storageGib to set.

Returns
TypeDescription
ProvisioningQuota.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ProvisioningQuota.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ProvisioningQuota.Builder
Overrides