Class LicenseResourceCommitment (1.43.0)

public final class LicenseResourceCommitment extends GeneratedMessageV3 implements LicenseResourceCommitmentOrBuilder

Commitment for a particular license resource.

Protobuf type google.cloud.compute.v1.LicenseResourceCommitment

Static Fields

AMOUNT_FIELD_NUMBER

public static final int AMOUNT_FIELD_NUMBER
Field Value
TypeDescription
int

CORES_PER_LICENSE_FIELD_NUMBER

public static final int CORES_PER_LICENSE_FIELD_NUMBER
Field Value
TypeDescription
int

LICENSE_FIELD_NUMBER

public static final int LICENSE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static LicenseResourceCommitment getDefaultInstance()
Returns
TypeDescription
LicenseResourceCommitment

getDescriptor()

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

newBuilder()

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

newBuilder(LicenseResourceCommitment prototype)

public static LicenseResourceCommitment.Builder newBuilder(LicenseResourceCommitment prototype)
Parameter
NameDescription
prototypeLicenseResourceCommitment
Returns
TypeDescription
LicenseResourceCommitment.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAmount()

public long getAmount()

The number of licenses purchased.

optional int64 amount = 196759640;

Returns
TypeDescription
long

The amount.

getCoresPerLicense()

public String getCoresPerLicense()

Specifies the core range of the instance for which this license applies.

optional string cores_per_license = 32482324;

Returns
TypeDescription
String

The coresPerLicense.

getCoresPerLicenseBytes()

public ByteString getCoresPerLicenseBytes()

Specifies the core range of the instance for which this license applies.

optional string cores_per_license = 32482324;

Returns
TypeDescription
ByteString

The bytes for coresPerLicense.

getDefaultInstanceForType()

public LicenseResourceCommitment getDefaultInstanceForType()
Returns
TypeDescription
LicenseResourceCommitment

getLicense()

public String getLicense()

Any applicable license URI.

optional string license = 166757441;

Returns
TypeDescription
String

The license.

getLicenseBytes()

public ByteString getLicenseBytes()

Any applicable license URI.

optional string license = 166757441;

Returns
TypeDescription
ByteString

The bytes for license.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasAmount()

public boolean hasAmount()

The number of licenses purchased.

optional int64 amount = 196759640;

Returns
TypeDescription
boolean

Whether the amount field is set.

hasCoresPerLicense()

public boolean hasCoresPerLicense()

Specifies the core range of the instance for which this license applies.

optional string cores_per_license = 32482324;

Returns
TypeDescription
boolean

Whether the coresPerLicense field is set.

hasLicense()

public boolean hasLicense()

Any applicable license URI.

optional string license = 166757441;

Returns
TypeDescription
boolean

Whether the license field is set.

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 LicenseResourceCommitment.Builder newBuilderForType()
Returns
TypeDescription
LicenseResourceCommitment.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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