Class Resources (2.11.0)

public final class Resources extends GeneratedMessageV3 implements ResourcesOrBuilder

Machine resources for a version.

Protobuf type google.appengine.v1.Resources

Implements

ResourcesOrBuilder

Static Fields

CPU_FIELD_NUMBER

public static final int CPU_FIELD_NUMBER
Field Value
TypeDescription
int

DISK_GB_FIELD_NUMBER

public static final int DISK_GB_FIELD_NUMBER
Field Value
TypeDescription
int

KMS_KEY_REFERENCE_FIELD_NUMBER

public static final int KMS_KEY_REFERENCE_FIELD_NUMBER
Field Value
TypeDescription
int

MEMORY_GB_FIELD_NUMBER

public static final int MEMORY_GB_FIELD_NUMBER
Field Value
TypeDescription
int

VOLUMES_FIELD_NUMBER

public static final int VOLUMES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Resources getDefaultInstance()
Returns
TypeDescription
Resources

getDescriptor()

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

newBuilder()

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

newBuilder(Resources prototype)

public static Resources.Builder newBuilder(Resources prototype)
Parameter
NameDescription
prototypeResources
Returns
TypeDescription
Resources.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getCpu()

public double getCpu()

Number of CPU cores needed.

double cpu = 1;

Returns
TypeDescription
double

The cpu.

getDefaultInstanceForType()

public Resources getDefaultInstanceForType()
Returns
TypeDescription
Resources

getDiskGb()

public double getDiskGb()

Disk size (GB) needed.

double disk_gb = 2;

Returns
TypeDescription
double

The diskGb.

getKmsKeyReference()

public String getKmsKeyReference()

The name of the encryption key that is stored in Google Cloud KMS. Only should be used by Cloud Composer to encrypt the vm disk

string kms_key_reference = 5;

Returns
TypeDescription
String

The kmsKeyReference.

getKmsKeyReferenceBytes()

public ByteString getKmsKeyReferenceBytes()

The name of the encryption key that is stored in Google Cloud KMS. Only should be used by Cloud Composer to encrypt the vm disk

string kms_key_reference = 5;

Returns
TypeDescription
ByteString

The bytes for kmsKeyReference.

getMemoryGb()

public double getMemoryGb()

Memory (GB) needed.

double memory_gb = 3;

Returns
TypeDescription
double

The memoryGb.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getVolumes(int index)

public Volume getVolumes(int index)

User specified volumes.

repeated .google.appengine.v1.Volume volumes = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Volume

getVolumesCount()

public int getVolumesCount()

User specified volumes.

repeated .google.appengine.v1.Volume volumes = 4;

Returns
TypeDescription
int

getVolumesList()

public List<Volume> getVolumesList()

User specified volumes.

repeated .google.appengine.v1.Volume volumes = 4;

Returns
TypeDescription
List<Volume>

getVolumesOrBuilder(int index)

public VolumeOrBuilder getVolumesOrBuilder(int index)

User specified volumes.

repeated .google.appengine.v1.Volume volumes = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
VolumeOrBuilder

getVolumesOrBuilderList()

public List<? extends VolumeOrBuilder> getVolumesOrBuilderList()

User specified volumes.

repeated .google.appengine.v1.Volume volumes = 4;

Returns
TypeDescription
List<? extends com.google.appengine.v1.VolumeOrBuilder>

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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