Class ProvisioningQuota.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ProvisioningQuota.Builder>
-
- com.google.cloud.baremetalsolution.v2.ProvisioningQuota.Builder
-
- All Implemented Interfaces:
ProvisioningQuotaOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ProvisioningQuota
public static final class ProvisioningQuota.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ProvisioningQuota.Builder> implements ProvisioningQuotaOrBuilder
A provisioning quota for a given project.
Protobuf typegoogle.cloud.baremetalsolution.v2.ProvisioningQuota
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ProvisioningQuota.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ProvisioningQuota
build()
ProvisioningQuota
buildPartial()
ProvisioningQuota.Builder
clear()
ProvisioningQuota.Builder
clearAssetType()
The asset type of this provisioning quota.ProvisioningQuota.Builder
clearAvailability()
ProvisioningQuota.Builder
clearAvailableCount()
The available count of the provisioning quota.ProvisioningQuota.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ProvisioningQuota.Builder
clearGcpService()
The gcp service of the provisioning quota.ProvisioningQuota.Builder
clearInstanceQuota()
Instance quota.ProvisioningQuota.Builder
clearLocation()
The specific location of the provisioining quota.ProvisioningQuota.Builder
clearName()
Output only.ProvisioningQuota.Builder
clearNetworkBandwidth()
Network bandwidth, GbpsProvisioningQuota.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ProvisioningQuota.Builder
clearQuota()
ProvisioningQuota.Builder
clearServerCount()
Server count.ProvisioningQuota.Builder
clearStorageGib()
Storage size (GB).ProvisioningQuota.Builder
clone()
ProvisioningQuota.AssetType
getAssetType()
The asset type of this provisioning quota.int
getAssetTypeValue()
The asset type of this provisioning quota.ProvisioningQuota.AvailabilityCase
getAvailabilityCase()
int
getAvailableCount()
The available count of the provisioning quota.ProvisioningQuota
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getGcpService()
The gcp service of the provisioning quota.com.google.protobuf.ByteString
getGcpServiceBytes()
The gcp service of the provisioning quota.InstanceQuota
getInstanceQuota()
Instance quota.InstanceQuota.Builder
getInstanceQuotaBuilder()
Instance quota.InstanceQuotaOrBuilder
getInstanceQuotaOrBuilder()
Instance quota.String
getLocation()
The specific location of the provisioining quota.com.google.protobuf.ByteString
getLocationBytes()
The specific location of the provisioining quota.String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.long
getNetworkBandwidth()
Network bandwidth, GbpsProvisioningQuota.QuotaCase
getQuotaCase()
long
getServerCount()
Server count.long
getStorageGib()
Storage size (GB).boolean
hasInstanceQuota()
Instance quota.boolean
hasNetworkBandwidth()
Network bandwidth, Gbpsboolean
hasServerCount()
Server count.boolean
hasStorageGib()
Storage size (GB).protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ProvisioningQuota.Builder
mergeFrom(ProvisioningQuota other)
ProvisioningQuota.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ProvisioningQuota.Builder
mergeFrom(com.google.protobuf.Message other)
ProvisioningQuota.Builder
mergeInstanceQuota(InstanceQuota value)
Instance quota.ProvisioningQuota.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ProvisioningQuota.Builder
setAssetType(ProvisioningQuota.AssetType value)
The asset type of this provisioning quota.ProvisioningQuota.Builder
setAssetTypeValue(int value)
The asset type of this provisioning quota.ProvisioningQuota.Builder
setAvailableCount(int value)
The available count of the provisioning quota.ProvisioningQuota.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ProvisioningQuota.Builder
setGcpService(String value)
The gcp service of the provisioning quota.ProvisioningQuota.Builder
setGcpServiceBytes(com.google.protobuf.ByteString value)
The gcp service of the provisioning quota.ProvisioningQuota.Builder
setInstanceQuota(InstanceQuota value)
Instance quota.ProvisioningQuota.Builder
setInstanceQuota(InstanceQuota.Builder builderForValue)
Instance quota.ProvisioningQuota.Builder
setLocation(String value)
The specific location of the provisioining quota.ProvisioningQuota.Builder
setLocationBytes(com.google.protobuf.ByteString value)
The specific location of the provisioining quota.ProvisioningQuota.Builder
setName(String value)
Output only.ProvisioningQuota.Builder
setNameBytes(com.google.protobuf.ByteString value)
Output only.ProvisioningQuota.Builder
setNetworkBandwidth(long value)
Network bandwidth, GbpsProvisioningQuota.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ProvisioningQuota.Builder
setServerCount(long value)
Server count.ProvisioningQuota.Builder
setStorageGib(long value)
Storage size (GB).ProvisioningQuota.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ProvisioningQuota.Builder>
-
clear
public ProvisioningQuota.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ProvisioningQuota.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ProvisioningQuota.Builder>
-
getDefaultInstanceForType
public ProvisioningQuota getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ProvisioningQuota build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ProvisioningQuota buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ProvisioningQuota.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ProvisioningQuota.Builder>
-
setField
public ProvisioningQuota.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ProvisioningQuota.Builder>
-
clearField
public ProvisioningQuota.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ProvisioningQuota.Builder>
-
clearOneof
public ProvisioningQuota.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ProvisioningQuota.Builder>
-
setRepeatedField
public ProvisioningQuota.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ProvisioningQuota.Builder>
-
addRepeatedField
public ProvisioningQuota.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ProvisioningQuota.Builder>
-
mergeFrom
public ProvisioningQuota.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ProvisioningQuota.Builder>
-
mergeFrom
public ProvisioningQuota.Builder mergeFrom(ProvisioningQuota other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ProvisioningQuota.Builder>
-
mergeFrom
public ProvisioningQuota.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ProvisioningQuota.Builder>
- Throws:
IOException
-
getQuotaCase
public ProvisioningQuota.QuotaCase getQuotaCase()
- Specified by:
getQuotaCase
in interfaceProvisioningQuotaOrBuilder
-
clearQuota
public ProvisioningQuota.Builder clearQuota()
-
getAvailabilityCase
public ProvisioningQuota.AvailabilityCase getAvailabilityCase()
- Specified by:
getAvailabilityCase
in interfaceProvisioningQuotaOrBuilder
-
clearAvailability
public ProvisioningQuota.Builder clearAvailability()
-
getName
public String getName()
Output only. The name of the provisioning quota.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getName
in interfaceProvisioningQuotaOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. The name of the provisioning quota.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getNameBytes
in interfaceProvisioningQuotaOrBuilder
- Returns:
- The bytes for name.
-
setName
public ProvisioningQuota.Builder setName(String value)
Output only. The name of the provisioning quota.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The name to set.- Returns:
- 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:
- This builder for chaining.
-
setNameBytes
public ProvisioningQuota.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. The name of the provisioning quota.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getAssetTypeValue
public int getAssetTypeValue()
The asset type of this provisioning quota.
.google.cloud.baremetalsolution.v2.ProvisioningQuota.AssetType asset_type = 2;
- Specified by:
getAssetTypeValue
in interfaceProvisioningQuotaOrBuilder
- Returns:
- The enum numeric value on the wire for assetType.
-
setAssetTypeValue
public ProvisioningQuota.Builder setAssetTypeValue(int value)
The asset type of this provisioning quota.
.google.cloud.baremetalsolution.v2.ProvisioningQuota.AssetType asset_type = 2;
- Parameters:
value
- The enum numeric value on the wire for assetType to set.- Returns:
- This builder for chaining.
-
getAssetType
public ProvisioningQuota.AssetType getAssetType()
The asset type of this provisioning quota.
.google.cloud.baremetalsolution.v2.ProvisioningQuota.AssetType asset_type = 2;
- Specified by:
getAssetType
in interfaceProvisioningQuotaOrBuilder
- Returns:
- The assetType.
-
setAssetType
public ProvisioningQuota.Builder setAssetType(ProvisioningQuota.AssetType value)
The asset type of this provisioning quota.
.google.cloud.baremetalsolution.v2.ProvisioningQuota.AssetType asset_type = 2;
- Parameters:
value
- The assetType to set.- Returns:
- This builder for chaining.
-
clearAssetType
public ProvisioningQuota.Builder clearAssetType()
The asset type of this provisioning quota.
.google.cloud.baremetalsolution.v2.ProvisioningQuota.AssetType asset_type = 2;
- Returns:
- This builder for chaining.
-
getGcpService
public String getGcpService()
The gcp service of the provisioning quota.
string gcp_service = 3;
- Specified by:
getGcpService
in interfaceProvisioningQuotaOrBuilder
- Returns:
- The gcpService.
-
getGcpServiceBytes
public com.google.protobuf.ByteString getGcpServiceBytes()
The gcp service of the provisioning quota.
string gcp_service = 3;
- Specified by:
getGcpServiceBytes
in interfaceProvisioningQuotaOrBuilder
- Returns:
- The bytes for gcpService.
-
setGcpService
public ProvisioningQuota.Builder setGcpService(String value)
The gcp service of the provisioning quota.
string gcp_service = 3;
- Parameters:
value
- The gcpService to set.- Returns:
- This builder for chaining.
-
clearGcpService
public ProvisioningQuota.Builder clearGcpService()
The gcp service of the provisioning quota.
string gcp_service = 3;
- Returns:
- This builder for chaining.
-
setGcpServiceBytes
public ProvisioningQuota.Builder setGcpServiceBytes(com.google.protobuf.ByteString value)
The gcp service of the provisioning quota.
string gcp_service = 3;
- Parameters:
value
- The bytes for gcpService to set.- Returns:
- This builder for chaining.
-
getLocation
public String getLocation()
The specific location of the provisioining quota.
string location = 4;
- Specified by:
getLocation
in interfaceProvisioningQuotaOrBuilder
- Returns:
- The location.
-
getLocationBytes
public com.google.protobuf.ByteString getLocationBytes()
The specific location of the provisioining quota.
string location = 4;
- Specified by:
getLocationBytes
in interfaceProvisioningQuotaOrBuilder
- Returns:
- The bytes for location.
-
setLocation
public ProvisioningQuota.Builder setLocation(String value)
The specific location of the provisioining quota.
string location = 4;
- Parameters:
value
- The location to set.- Returns:
- This builder for chaining.
-
clearLocation
public ProvisioningQuota.Builder clearLocation()
The specific location of the provisioining quota.
string location = 4;
- Returns:
- This builder for chaining.
-
setLocationBytes
public ProvisioningQuota.Builder setLocationBytes(com.google.protobuf.ByteString value)
The specific location of the provisioining quota.
string location = 4;
- Parameters:
value
- The bytes for location to set.- Returns:
- This builder for chaining.
-
getAvailableCount
public int getAvailableCount()
The available count of the provisioning quota.
int32 available_count = 5;
- Specified by:
getAvailableCount
in interfaceProvisioningQuotaOrBuilder
- Returns:
- The availableCount.
-
setAvailableCount
public ProvisioningQuota.Builder setAvailableCount(int value)
The available count of the provisioning quota.
int32 available_count = 5;
- Parameters:
value
- The availableCount to set.- Returns:
- This builder for chaining.
-
clearAvailableCount
public ProvisioningQuota.Builder clearAvailableCount()
The available count of the provisioning quota.
int32 available_count = 5;
- Returns:
- This builder for chaining.
-
hasInstanceQuota
public boolean hasInstanceQuota()
Instance quota.
.google.cloud.baremetalsolution.v2.InstanceQuota instance_quota = 6;
- Specified by:
hasInstanceQuota
in interfaceProvisioningQuotaOrBuilder
- Returns:
- Whether the instanceQuota field is set.
-
getInstanceQuota
public InstanceQuota getInstanceQuota()
Instance quota.
.google.cloud.baremetalsolution.v2.InstanceQuota instance_quota = 6;
- Specified by:
getInstanceQuota
in interfaceProvisioningQuotaOrBuilder
- Returns:
- The instanceQuota.
-
setInstanceQuota
public ProvisioningQuota.Builder setInstanceQuota(InstanceQuota value)
Instance quota.
.google.cloud.baremetalsolution.v2.InstanceQuota instance_quota = 6;
-
setInstanceQuota
public ProvisioningQuota.Builder setInstanceQuota(InstanceQuota.Builder builderForValue)
Instance quota.
.google.cloud.baremetalsolution.v2.InstanceQuota instance_quota = 6;
-
mergeInstanceQuota
public ProvisioningQuota.Builder mergeInstanceQuota(InstanceQuota value)
Instance quota.
.google.cloud.baremetalsolution.v2.InstanceQuota instance_quota = 6;
-
clearInstanceQuota
public ProvisioningQuota.Builder clearInstanceQuota()
Instance quota.
.google.cloud.baremetalsolution.v2.InstanceQuota instance_quota = 6;
-
getInstanceQuotaBuilder
public InstanceQuota.Builder getInstanceQuotaBuilder()
Instance quota.
.google.cloud.baremetalsolution.v2.InstanceQuota instance_quota = 6;
-
getInstanceQuotaOrBuilder
public InstanceQuotaOrBuilder getInstanceQuotaOrBuilder()
Instance quota.
.google.cloud.baremetalsolution.v2.InstanceQuota instance_quota = 6;
- Specified by:
getInstanceQuotaOrBuilder
in interfaceProvisioningQuotaOrBuilder
-
hasServerCount
public boolean hasServerCount()
Server count.
int64 server_count = 7;
- Specified by:
hasServerCount
in interfaceProvisioningQuotaOrBuilder
- Returns:
- Whether the serverCount field is set.
-
getServerCount
public long getServerCount()
Server count.
int64 server_count = 7;
- Specified by:
getServerCount
in interfaceProvisioningQuotaOrBuilder
- Returns:
- The serverCount.
-
setServerCount
public ProvisioningQuota.Builder setServerCount(long value)
Server count.
int64 server_count = 7;
- Parameters:
value
- The serverCount to set.- Returns:
- This builder for chaining.
-
clearServerCount
public ProvisioningQuota.Builder clearServerCount()
Server count.
int64 server_count = 7;
- Returns:
- This builder for chaining.
-
hasNetworkBandwidth
public boolean hasNetworkBandwidth()
Network bandwidth, Gbps
int64 network_bandwidth = 8;
- Specified by:
hasNetworkBandwidth
in interfaceProvisioningQuotaOrBuilder
- Returns:
- Whether the networkBandwidth field is set.
-
getNetworkBandwidth
public long getNetworkBandwidth()
Network bandwidth, Gbps
int64 network_bandwidth = 8;
- Specified by:
getNetworkBandwidth
in interfaceProvisioningQuotaOrBuilder
- Returns:
- The networkBandwidth.
-
setNetworkBandwidth
public ProvisioningQuota.Builder setNetworkBandwidth(long value)
Network bandwidth, Gbps
int64 network_bandwidth = 8;
- Parameters:
value
- The networkBandwidth to set.- Returns:
- This builder for chaining.
-
clearNetworkBandwidth
public ProvisioningQuota.Builder clearNetworkBandwidth()
Network bandwidth, Gbps
int64 network_bandwidth = 8;
- Returns:
- This builder for chaining.
-
hasStorageGib
public boolean hasStorageGib()
Storage size (GB).
int64 storage_gib = 9;
- Specified by:
hasStorageGib
in interfaceProvisioningQuotaOrBuilder
- Returns:
- Whether the storageGib field is set.
-
getStorageGib
public long getStorageGib()
Storage size (GB).
int64 storage_gib = 9;
- Specified by:
getStorageGib
in interfaceProvisioningQuotaOrBuilder
- Returns:
- The storageGib.
-
setStorageGib
public ProvisioningQuota.Builder setStorageGib(long value)
Storage size (GB).
int64 storage_gib = 9;
- Parameters:
value
- The storageGib to set.- Returns:
- This builder for chaining.
-
clearStorageGib
public ProvisioningQuota.Builder clearStorageGib()
Storage size (GB).
int64 storage_gib = 9;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final ProvisioningQuota.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ProvisioningQuota.Builder>
-
mergeUnknownFields
public final ProvisioningQuota.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ProvisioningQuota.Builder>
-
-