Class InstanceQuota (0.41.0)

public final class InstanceQuota extends GeneratedMessageV3 implements InstanceQuotaOrBuilder

A resource budget.

Protobuf type google.cloud.baremetalsolution.v2.InstanceQuota

Static Fields

AVAILABLE_MACHINE_COUNT_FIELD_NUMBER

public static final int AVAILABLE_MACHINE_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

GCP_SERVICE_FIELD_NUMBER

public static final int GCP_SERVICE_FIELD_NUMBER
Field Value
TypeDescription
int

INSTANCE_TYPE_FIELD_NUMBER

public static final int INSTANCE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

LOCATION_FIELD_NUMBER

public static final int LOCATION_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static InstanceQuota getDefaultInstance()
Returns
TypeDescription
InstanceQuota

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static InstanceQuota.Builder newBuilder()
Returns
TypeDescription
InstanceQuota.Builder

newBuilder(InstanceQuota prototype)

public static InstanceQuota.Builder newBuilder(InstanceQuota prototype)
Parameter
NameDescription
prototypeInstanceQuota
Returns
TypeDescription
InstanceQuota.Builder

parseDelimitedFrom(InputStream input)

public static InstanceQuota parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
InstanceQuota
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static InstanceQuota parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InstanceQuota
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static InstanceQuota parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
InstanceQuota
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static InstanceQuota parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InstanceQuota
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static InstanceQuota parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
InstanceQuota
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static InstanceQuota parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InstanceQuota
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static InstanceQuota parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
InstanceQuota
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static InstanceQuota parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InstanceQuota
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static InstanceQuota parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
InstanceQuota
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static InstanceQuota parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InstanceQuota
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static InstanceQuota parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
InstanceQuota
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static InstanceQuota parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InstanceQuota
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<InstanceQuota> parser()
Returns
TypeDescription
Parser<InstanceQuota>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAvailableMachineCount()

public int getAvailableMachineCount()

Number of machines than can be created for the given location and instance_type.

int32 available_machine_count = 4;

Returns
TypeDescription
int

The availableMachineCount.

getDefaultInstanceForType()

public InstanceQuota getDefaultInstanceForType()
Returns
TypeDescription
InstanceQuota

getGcpService()

public String getGcpService()

The gcp service of the provisioning quota.

string gcp_service = 5;

Returns
TypeDescription
String

The gcpService.

getGcpServiceBytes()

public ByteString getGcpServiceBytes()

The gcp service of the provisioning quota.

string gcp_service = 5;

Returns
TypeDescription
ByteString

The bytes for gcpService.

getInstanceType() (deprecated)

public String getInstanceType()

Deprecated. google.cloud.baremetalsolution.v2.InstanceQuota.instance_type is deprecated. See google/cloud/baremetalsolution/v2/provisioning.proto;l=550

Instance type. Deprecated: use gcp_service.

string instance_type = 2 [deprecated = true];

Returns
TypeDescription
String

The instanceType.

getInstanceTypeBytes() (deprecated)

public ByteString getInstanceTypeBytes()

Deprecated. google.cloud.baremetalsolution.v2.InstanceQuota.instance_type is deprecated. See google/cloud/baremetalsolution/v2/provisioning.proto;l=550

Instance type. Deprecated: use gcp_service.

string instance_type = 2 [deprecated = true];

Returns
TypeDescription
ByteString

The bytes for instanceType.

getLocation()

public String getLocation()

Location where the quota applies.

string location = 3;

Returns
TypeDescription
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

Location where the quota applies.

string location = 3;

Returns
TypeDescription
ByteString

The bytes for location.

getName()

public String getName()

Output only. The name of the instance 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 instance quota.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<InstanceQuota> getParserForType()
Returns
TypeDescription
Parser<InstanceQuota>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public InstanceQuota.Builder newBuilderForType()
Returns
TypeDescription
InstanceQuota.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected InstanceQuota.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
InstanceQuota.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public InstanceQuota.Builder toBuilder()
Returns
TypeDescription
InstanceQuota.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException