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.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ProvisioningQuotabuild()ProvisioningQuotabuildPartial()ProvisioningQuota.Builderclear()ProvisioningQuota.BuilderclearAssetType()The asset type of this provisioning quota.ProvisioningQuota.BuilderclearAvailability()ProvisioningQuota.BuilderclearAvailableCount()The available count of the provisioning quota.ProvisioningQuota.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ProvisioningQuota.BuilderclearGcpService()The gcp service of the provisioning quota.ProvisioningQuota.BuilderclearInstanceQuota()Instance quota.ProvisioningQuota.BuilderclearLocation()The specific location of the provisioining quota.ProvisioningQuota.BuilderclearName()Output only.ProvisioningQuota.BuilderclearNetworkBandwidth()Network bandwidth, GbpsProvisioningQuota.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ProvisioningQuota.BuilderclearQuota()ProvisioningQuota.BuilderclearServerCount()Server count.ProvisioningQuota.BuilderclearStorageGib()Storage size (GB).ProvisioningQuota.Builderclone()ProvisioningQuota.AssetTypegetAssetType()The asset type of this provisioning quota.intgetAssetTypeValue()The asset type of this provisioning quota.ProvisioningQuota.AvailabilityCasegetAvailabilityCase()intgetAvailableCount()The available count of the provisioning quota.ProvisioningQuotagetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetGcpService()The gcp service of the provisioning quota.com.google.protobuf.ByteStringgetGcpServiceBytes()The gcp service of the provisioning quota.InstanceQuotagetInstanceQuota()Instance quota.InstanceQuota.BuildergetInstanceQuotaBuilder()Instance quota.InstanceQuotaOrBuildergetInstanceQuotaOrBuilder()Instance quota.StringgetLocation()The specific location of the provisioining quota.com.google.protobuf.ByteStringgetLocationBytes()The specific location of the provisioining quota.StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.longgetNetworkBandwidth()Network bandwidth, GbpsProvisioningQuota.QuotaCasegetQuotaCase()longgetServerCount()Server count.longgetStorageGib()Storage size (GB).booleanhasInstanceQuota()Instance quota.booleanhasNetworkBandwidth()Network bandwidth, GbpsbooleanhasServerCount()Server count.booleanhasStorageGib()Storage size (GB).protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ProvisioningQuota.BuildermergeFrom(ProvisioningQuota other)ProvisioningQuota.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ProvisioningQuota.BuildermergeFrom(com.google.protobuf.Message other)ProvisioningQuota.BuildermergeInstanceQuota(InstanceQuota value)Instance quota.ProvisioningQuota.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ProvisioningQuota.BuildersetAssetType(ProvisioningQuota.AssetType value)The asset type of this provisioning quota.ProvisioningQuota.BuildersetAssetTypeValue(int value)The asset type of this provisioning quota.ProvisioningQuota.BuildersetAvailableCount(int value)The available count of the provisioning quota.ProvisioningQuota.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ProvisioningQuota.BuildersetGcpService(String value)The gcp service of the provisioning quota.ProvisioningQuota.BuildersetGcpServiceBytes(com.google.protobuf.ByteString value)The gcp service of the provisioning quota.ProvisioningQuota.BuildersetInstanceQuota(InstanceQuota value)Instance quota.ProvisioningQuota.BuildersetInstanceQuota(InstanceQuota.Builder builderForValue)Instance quota.ProvisioningQuota.BuildersetLocation(String value)The specific location of the provisioining quota.ProvisioningQuota.BuildersetLocationBytes(com.google.protobuf.ByteString value)The specific location of the provisioining quota.ProvisioningQuota.BuildersetName(String value)Output only.ProvisioningQuota.BuildersetNameBytes(com.google.protobuf.ByteString value)Output only.ProvisioningQuota.BuildersetNetworkBandwidth(long value)Network bandwidth, GbpsProvisioningQuota.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ProvisioningQuota.BuildersetServerCount(long value)Server count.ProvisioningQuota.BuildersetStorageGib(long value)Storage size (GB).ProvisioningQuota.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ProvisioningQuota.Builder>
-
clear
public ProvisioningQuota.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ProvisioningQuota.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ProvisioningQuota.Builder>
-
getDefaultInstanceForType
public ProvisioningQuota getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ProvisioningQuota build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ProvisioningQuota buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ProvisioningQuota.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ProvisioningQuota.Builder>
-
setField
public ProvisioningQuota.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ProvisioningQuota.Builder>
-
clearField
public ProvisioningQuota.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ProvisioningQuota.Builder>
-
clearOneof
public ProvisioningQuota.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ProvisioningQuota.Builder>
-
setRepeatedField
public ProvisioningQuota.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ProvisioningQuota.Builder>
-
addRepeatedField
public ProvisioningQuota.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ProvisioningQuota.Builder>
-
mergeFrom
public ProvisioningQuota.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ProvisioningQuota.Builder>
-
mergeFrom
public ProvisioningQuota.Builder mergeFrom(ProvisioningQuota other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ProvisioningQuota.Builder>- Throws:
IOException
-
getQuotaCase
public ProvisioningQuota.QuotaCase getQuotaCase()
- Specified by:
getQuotaCasein interfaceProvisioningQuotaOrBuilder
-
clearQuota
public ProvisioningQuota.Builder clearQuota()
-
getAvailabilityCase
public ProvisioningQuota.AvailabilityCase getAvailabilityCase()
- Specified by:
getAvailabilityCasein 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:
getNamein 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:
getNameBytesin 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:
getAssetTypeValuein 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:
getAssetTypein 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:
getGcpServicein interfaceProvisioningQuotaOrBuilder- Returns:
- The gcpService.
-
getGcpServiceBytes
public com.google.protobuf.ByteString getGcpServiceBytes()
The gcp service of the provisioning quota.
string gcp_service = 3;- Specified by:
getGcpServiceBytesin 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:
getLocationin interfaceProvisioningQuotaOrBuilder- Returns:
- The location.
-
getLocationBytes
public com.google.protobuf.ByteString getLocationBytes()
The specific location of the provisioining quota.
string location = 4;- Specified by:
getLocationBytesin 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:
getAvailableCountin 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:
hasInstanceQuotain interfaceProvisioningQuotaOrBuilder- Returns:
- Whether the instanceQuota field is set.
-
getInstanceQuota
public InstanceQuota getInstanceQuota()
Instance quota.
.google.cloud.baremetalsolution.v2.InstanceQuota instance_quota = 6;- Specified by:
getInstanceQuotain 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:
getInstanceQuotaOrBuilderin interfaceProvisioningQuotaOrBuilder
-
hasServerCount
public boolean hasServerCount()
Server count.
int64 server_count = 7;- Specified by:
hasServerCountin interfaceProvisioningQuotaOrBuilder- Returns:
- Whether the serverCount field is set.
-
getServerCount
public long getServerCount()
Server count.
int64 server_count = 7;- Specified by:
getServerCountin 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:
hasNetworkBandwidthin interfaceProvisioningQuotaOrBuilder- Returns:
- Whether the networkBandwidth field is set.
-
getNetworkBandwidth
public long getNetworkBandwidth()
Network bandwidth, Gbps
int64 network_bandwidth = 8;- Specified by:
getNetworkBandwidthin 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:
hasStorageGibin interfaceProvisioningQuotaOrBuilder- Returns:
- Whether the storageGib field is set.
-
getStorageGib
public long getStorageGib()
Storage size (GB).
int64 storage_gib = 9;- Specified by:
getStorageGibin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ProvisioningQuota.Builder>
-
mergeUnknownFields
public final ProvisioningQuota.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ProvisioningQuota.Builder>
-
-