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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
InstanceQuota
build()
InstanceQuota
buildPartial()
InstanceQuota.Builder
clear()
InstanceQuota.Builder
clearAvailableMachineCount()
Number of machines than can be created for the given location and instance_type.InstanceQuota.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
InstanceQuota.Builder
clearGcpService()
The gcp service of the provisioning quota.InstanceQuota.Builder
clearInstanceType()
Deprecated.google.cloud.baremetalsolution.v2.InstanceQuota.instance_type is deprecated.InstanceQuota.Builder
clearLocation()
Location where the quota applies.InstanceQuota.Builder
clearName()
Output only.InstanceQuota.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
InstanceQuota.Builder
clone()
int
getAvailableMachineCount()
Number of machines than can be created for the given location and instance_type.InstanceQuota
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.String
getInstanceType()
Deprecated.google.cloud.baremetalsolution.v2.InstanceQuota.instance_type is deprecated.com.google.protobuf.ByteString
getInstanceTypeBytes()
Deprecated.google.cloud.baremetalsolution.v2.InstanceQuota.instance_type is deprecated.String
getLocation()
Location where the quota applies.com.google.protobuf.ByteString
getLocationBytes()
Location where the quota applies.String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
InstanceQuota.Builder
mergeFrom(InstanceQuota other)
InstanceQuota.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
InstanceQuota.Builder
mergeFrom(com.google.protobuf.Message other)
InstanceQuota.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
InstanceQuota.Builder
setAvailableMachineCount(int value)
Number of machines than can be created for the given location and instance_type.InstanceQuota.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
InstanceQuota.Builder
setGcpService(String value)
The gcp service of the provisioning quota.InstanceQuota.Builder
setGcpServiceBytes(com.google.protobuf.ByteString value)
The gcp service of the provisioning quota.InstanceQuota.Builder
setInstanceType(String value)
Deprecated.google.cloud.baremetalsolution.v2.InstanceQuota.instance_type is deprecated.InstanceQuota.Builder
setInstanceTypeBytes(com.google.protobuf.ByteString value)
Deprecated.google.cloud.baremetalsolution.v2.InstanceQuota.instance_type is deprecated.InstanceQuota.Builder
setLocation(String value)
Location where the quota applies.InstanceQuota.Builder
setLocationBytes(com.google.protobuf.ByteString value)
Location where the quota applies.InstanceQuota.Builder
setName(String value)
Output only.InstanceQuota.Builder
setNameBytes(com.google.protobuf.ByteString value)
Output only.InstanceQuota.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
InstanceQuota.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<InstanceQuota.Builder>
-
clear
public InstanceQuota.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<InstanceQuota.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<InstanceQuota.Builder>
-
getDefaultInstanceForType
public InstanceQuota getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public InstanceQuota build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public InstanceQuota buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public InstanceQuota.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<InstanceQuota.Builder>
-
setField
public InstanceQuota.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<InstanceQuota.Builder>
-
clearField
public InstanceQuota.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<InstanceQuota.Builder>
-
clearOneof
public InstanceQuota.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<InstanceQuota.Builder>
-
setRepeatedField
public InstanceQuota.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<InstanceQuota.Builder>
-
addRepeatedField
public InstanceQuota.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<InstanceQuota.Builder>
-
mergeFrom
public InstanceQuota.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<InstanceQuota.Builder>
-
mergeFrom
public InstanceQuota.Builder mergeFrom(InstanceQuota other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getName
in 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:
getNameBytes
in 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:
getInstanceType
in 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:
getInstanceTypeBytes
in 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:
getGcpService
in interfaceInstanceQuotaOrBuilder
- Returns:
- The gcpService.
-
getGcpServiceBytes
public com.google.protobuf.ByteString getGcpServiceBytes()
The gcp service of the provisioning quota.
string gcp_service = 5;
- Specified by:
getGcpServiceBytes
in 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:
getLocation
in interfaceInstanceQuotaOrBuilder
- Returns:
- The location.
-
getLocationBytes
public com.google.protobuf.ByteString getLocationBytes()
Location where the quota applies.
string location = 3;
- Specified by:
getLocationBytes
in 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:
getAvailableMachineCount
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceQuota.Builder>
-
mergeUnknownFields
public final InstanceQuota.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceQuota.Builder>
-
-