Class LicenseResourceRequirements (1.7.2)

public final class LicenseResourceRequirements extends GeneratedMessageV3 implements LicenseResourceRequirementsOrBuilder

Protobuf type google.cloud.compute.v1.LicenseResourceRequirements

Static Fields

MIN_GUEST_CPU_COUNT_FIELD_NUMBER

public static final int MIN_GUEST_CPU_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

MIN_MEMORY_MB_FIELD_NUMBER

public static final int MIN_MEMORY_MB_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static LicenseResourceRequirements getDefaultInstance()
Returns
TypeDescription
LicenseResourceRequirements

getDescriptor()

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

newBuilder()

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

newBuilder(LicenseResourceRequirements prototype)

public static LicenseResourceRequirements.Builder newBuilder(LicenseResourceRequirements prototype)
Parameter
NameDescription
prototypeLicenseResourceRequirements
Returns
TypeDescription
LicenseResourceRequirements.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public LicenseResourceRequirements getDefaultInstanceForType()
Returns
TypeDescription
LicenseResourceRequirements

getMinGuestCpuCount()

public int getMinGuestCpuCount()

Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.

optional int32 min_guest_cpu_count = 477964836;

Returns
TypeDescription
int

The minGuestCpuCount.

getMinMemoryMb()

public int getMinMemoryMb()

Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.

optional int32 min_memory_mb = 504785894;

Returns
TypeDescription
int

The minMemoryMb.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasMinGuestCpuCount()

public boolean hasMinGuestCpuCount()

Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.

optional int32 min_guest_cpu_count = 477964836;

Returns
TypeDescription
boolean

Whether the minGuestCpuCount field is set.

hasMinMemoryMb()

public boolean hasMinMemoryMb()

Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.

optional int32 min_memory_mb = 504785894;

Returns
TypeDescription
boolean

Whether the minMemoryMb 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 LicenseResourceRequirements.Builder newBuilderForType()
Returns
TypeDescription
LicenseResourceRequirements.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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