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
CORES_PER_LICENSE_FIELD_NUMBER
public static final int CORES_PER_LICENSE_FIELD_NUMBER
Field Value
LICENSE_FIELD_NUMBER
public static final int LICENSE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static LicenseResourceCommitment getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static LicenseResourceCommitment.Builder newBuilder()
Returns
newBuilder(LicenseResourceCommitment prototype)
public static LicenseResourceCommitment.Builder newBuilder(LicenseResourceCommitment prototype)
Parameter
Returns
public static LicenseResourceCommitment parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static LicenseResourceCommitment parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static LicenseResourceCommitment parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static LicenseResourceCommitment parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static LicenseResourceCommitment parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static LicenseResourceCommitment parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static LicenseResourceCommitment parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static LicenseResourceCommitment parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static LicenseResourceCommitment parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static LicenseResourceCommitment parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static LicenseResourceCommitment parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static LicenseResourceCommitment parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<LicenseResourceCommitment> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getAmount()
The number of licenses purchased.
optional int64 amount = 196759640;
Returns
Type | Description |
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
Type | Description |
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
Type | Description |
ByteString | The bytes for coresPerLicense.
|
getDefaultInstanceForType()
public LicenseResourceCommitment getDefaultInstanceForType()
Returns
getLicense()
public String getLicense()
Any applicable license URI.
optional string license = 166757441;
Returns
Type | Description |
String | The license.
|
getLicenseBytes()
public ByteString getLicenseBytes()
Any applicable license URI.
optional string license = 166757441;
Returns
getParserForType()
public Parser<LicenseResourceCommitment> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasAmount()
public boolean hasAmount()
The number of licenses purchased.
optional int64 amount = 196759640;
Returns
Type | Description |
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
Type | Description |
boolean | Whether the coresPerLicense field is set.
|
hasLicense()
public boolean hasLicense()
Any applicable license URI.
optional string license = 166757441;
Returns
Type | Description |
boolean | Whether the license field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public LicenseResourceCommitment.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected LicenseResourceCommitment.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public LicenseResourceCommitment.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions