Class InstanceQuota.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<InstanceQuota.Builder>
-
- com.google.cloud.baremetalsolution.v2.InstanceQuota.Builder
-
- All Implemented Interfaces:
InstanceQuotaOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- InstanceQuota
public static final class InstanceQuota.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<InstanceQuota.Builder> implements InstanceQuotaOrBuilder
A resource budget.
Protobuf typegoogle.cloud.baremetalsolution.v2.InstanceQuota
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description InstanceQuota.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)InstanceQuotabuild()InstanceQuotabuildPartial()InstanceQuota.Builderclear()InstanceQuota.BuilderclearAvailableMachineCount()Number of machines than can be created for the given location and instance_type.InstanceQuota.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)InstanceQuota.BuilderclearGcpService()The gcp service of the provisioning quota.InstanceQuota.BuilderclearInstanceType()Deprecated.google.cloud.baremetalsolution.v2.InstanceQuota.instance_type is deprecated.InstanceQuota.BuilderclearLocation()Location where the quota applies.InstanceQuota.BuilderclearName()Output only.InstanceQuota.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)InstanceQuota.Builderclone()intgetAvailableMachineCount()Number of machines than can be created for the given location and instance_type.InstanceQuotagetDefaultInstanceForType()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.StringgetInstanceType()Deprecated.google.cloud.baremetalsolution.v2.InstanceQuota.instance_type is deprecated.com.google.protobuf.ByteStringgetInstanceTypeBytes()Deprecated.google.cloud.baremetalsolution.v2.InstanceQuota.instance_type is deprecated.StringgetLocation()Location where the quota applies.com.google.protobuf.ByteStringgetLocationBytes()Location where the quota applies.StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()InstanceQuota.BuildermergeFrom(InstanceQuota other)InstanceQuota.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)InstanceQuota.BuildermergeFrom(com.google.protobuf.Message other)InstanceQuota.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)InstanceQuota.BuildersetAvailableMachineCount(int value)Number of machines than can be created for the given location and instance_type.InstanceQuota.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)InstanceQuota.BuildersetGcpService(String value)The gcp service of the provisioning quota.InstanceQuota.BuildersetGcpServiceBytes(com.google.protobuf.ByteString value)The gcp service of the provisioning quota.InstanceQuota.BuildersetInstanceType(String value)Deprecated.google.cloud.baremetalsolution.v2.InstanceQuota.instance_type is deprecated.InstanceQuota.BuildersetInstanceTypeBytes(com.google.protobuf.ByteString value)Deprecated.google.cloud.baremetalsolution.v2.InstanceQuota.instance_type is deprecated.InstanceQuota.BuildersetLocation(String value)Location where the quota applies.InstanceQuota.BuildersetLocationBytes(com.google.protobuf.ByteString value)Location where the quota applies.InstanceQuota.BuildersetName(String value)Output only.InstanceQuota.BuildersetNameBytes(com.google.protobuf.ByteString value)Output only.InstanceQuota.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)InstanceQuota.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<InstanceQuota.Builder>
-
clear
public InstanceQuota.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<InstanceQuota.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<InstanceQuota.Builder>
-
getDefaultInstanceForType
public InstanceQuota getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public InstanceQuota build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public InstanceQuota buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public InstanceQuota.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<InstanceQuota.Builder>
-
setField
public InstanceQuota.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<InstanceQuota.Builder>
-
clearField
public InstanceQuota.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceQuota.Builder>
-
clearOneof
public InstanceQuota.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceQuota.Builder>
-
setRepeatedField
public InstanceQuota.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<InstanceQuota.Builder>
-
addRepeatedField
public InstanceQuota.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<InstanceQuota.Builder>
-
mergeFrom
public InstanceQuota.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InstanceQuota.Builder>
-
mergeFrom
public InstanceQuota.Builder mergeFrom(InstanceQuota other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceQuota.Builder>
-
mergeFrom
public InstanceQuota.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<InstanceQuota.Builder>- Throws:
IOException
-
getName
public String getName()
Output only. The name of the instance quota.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceInstanceQuotaOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. The name of the instance quota.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfaceInstanceQuotaOrBuilder- Returns:
- The bytes for name.
-
setName
public InstanceQuota.Builder setName(String value)
Output only. The name of the instance quota.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public InstanceQuota.Builder clearName()
Output only. The name of the instance quota.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setNameBytes
public InstanceQuota.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. The name of the instance quota.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getInstanceType
@Deprecated public String getInstanceType()
Deprecated.google.cloud.baremetalsolution.v2.InstanceQuota.instance_type is deprecated. See google/cloud/baremetalsolution/v2/provisioning.proto;l=550Instance type. Deprecated: use gcp_service.
string instance_type = 2 [deprecated = true];- Specified by:
getInstanceTypein interfaceInstanceQuotaOrBuilder- Returns:
- The instanceType.
-
getInstanceTypeBytes
@Deprecated public com.google.protobuf.ByteString getInstanceTypeBytes()
Deprecated.google.cloud.baremetalsolution.v2.InstanceQuota.instance_type is deprecated. See google/cloud/baremetalsolution/v2/provisioning.proto;l=550Instance type. Deprecated: use gcp_service.
string instance_type = 2 [deprecated = true];- Specified by:
getInstanceTypeBytesin interfaceInstanceQuotaOrBuilder- Returns:
- The bytes for instanceType.
-
setInstanceType
@Deprecated public InstanceQuota.Builder setInstanceType(String value)
Deprecated.google.cloud.baremetalsolution.v2.InstanceQuota.instance_type is deprecated. See google/cloud/baremetalsolution/v2/provisioning.proto;l=550Instance type. Deprecated: use gcp_service.
string instance_type = 2 [deprecated = true];- Parameters:
value- The instanceType to set.- Returns:
- This builder for chaining.
-
clearInstanceType
@Deprecated public InstanceQuota.Builder clearInstanceType()
Deprecated.google.cloud.baremetalsolution.v2.InstanceQuota.instance_type is deprecated. See google/cloud/baremetalsolution/v2/provisioning.proto;l=550Instance type. Deprecated: use gcp_service.
string instance_type = 2 [deprecated = true];- Returns:
- This builder for chaining.
-
setInstanceTypeBytes
@Deprecated public InstanceQuota.Builder setInstanceTypeBytes(com.google.protobuf.ByteString value)
Deprecated.google.cloud.baremetalsolution.v2.InstanceQuota.instance_type is deprecated. See google/cloud/baremetalsolution/v2/provisioning.proto;l=550Instance type. Deprecated: use gcp_service.
string instance_type = 2 [deprecated = true];- Parameters:
value- The bytes for instanceType to set.- Returns:
- This builder for chaining.
-
getGcpService
public String getGcpService()
The gcp service of the provisioning quota.
string gcp_service = 5;- Specified by:
getGcpServicein interfaceInstanceQuotaOrBuilder- Returns:
- The gcpService.
-
getGcpServiceBytes
public com.google.protobuf.ByteString getGcpServiceBytes()
The gcp service of the provisioning quota.
string gcp_service = 5;- Specified by:
getGcpServiceBytesin interfaceInstanceQuotaOrBuilder- Returns:
- The bytes for gcpService.
-
setGcpService
public InstanceQuota.Builder setGcpService(String value)
The gcp service of the provisioning quota.
string gcp_service = 5;- Parameters:
value- The gcpService to set.- Returns:
- This builder for chaining.
-
clearGcpService
public InstanceQuota.Builder clearGcpService()
The gcp service of the provisioning quota.
string gcp_service = 5;- Returns:
- This builder for chaining.
-
setGcpServiceBytes
public InstanceQuota.Builder setGcpServiceBytes(com.google.protobuf.ByteString value)
The gcp service of the provisioning quota.
string gcp_service = 5;- Parameters:
value- The bytes for gcpService to set.- Returns:
- This builder for chaining.
-
getLocation
public String getLocation()
Location where the quota applies.
string location = 3;- Specified by:
getLocationin interfaceInstanceQuotaOrBuilder- Returns:
- The location.
-
getLocationBytes
public com.google.protobuf.ByteString getLocationBytes()
Location where the quota applies.
string location = 3;- Specified by:
getLocationBytesin interfaceInstanceQuotaOrBuilder- Returns:
- The bytes for location.
-
setLocation
public InstanceQuota.Builder setLocation(String value)
Location where the quota applies.
string location = 3;- Parameters:
value- The location to set.- Returns:
- This builder for chaining.
-
clearLocation
public InstanceQuota.Builder clearLocation()
Location where the quota applies.
string location = 3;- Returns:
- This builder for chaining.
-
setLocationBytes
public InstanceQuota.Builder setLocationBytes(com.google.protobuf.ByteString value)
Location where the quota applies.
string location = 3;- Parameters:
value- The bytes for location to set.- Returns:
- This builder for chaining.
-
getAvailableMachineCount
public int getAvailableMachineCount()
Number of machines than can be created for the given location and instance_type.
int32 available_machine_count = 4;- Specified by:
getAvailableMachineCountin interfaceInstanceQuotaOrBuilder- Returns:
- The availableMachineCount.
-
setAvailableMachineCount
public InstanceQuota.Builder setAvailableMachineCount(int value)
Number of machines than can be created for the given location and instance_type.
int32 available_machine_count = 4;- Parameters:
value- The availableMachineCount to set.- Returns:
- This builder for chaining.
-
clearAvailableMachineCount
public InstanceQuota.Builder clearAvailableMachineCount()
Number of machines than can be created for the given location and instance_type.
int32 available_machine_count = 4;- Returns:
- This builder for chaining.
-
setUnknownFields
public final InstanceQuota.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceQuota.Builder>
-
mergeUnknownFields
public final InstanceQuota.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceQuota.Builder>
-
-