public final class Resources extends GeneratedMessage implements ResourcesOrBuilderMachine resources for a version.
Protobuf type google.appengine.v1.Resources
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > ResourcesImplements
ResourcesOrBuilderStatic Fields
CPU_FIELD_NUMBER
public static final int CPU_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
DISK_GB_FIELD_NUMBER
public static final int DISK_GB_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
KMS_KEY_REFERENCE_FIELD_NUMBER
public static final int KMS_KEY_REFERENCE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
MEMORY_GB_FIELD_NUMBER
public static final int MEMORY_GB_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
VOLUMES_FIELD_NUMBER
public static final int VOLUMES_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static Resources getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
Resources |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static Resources.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
Resources.Builder |
|
newBuilder(Resources prototype)
public static Resources.Builder newBuilder(Resources prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
Resources |
| Returns | |
|---|---|
| Type | Description |
Resources.Builder |
|
parseDelimitedFrom(InputStream input)
public static Resources parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
Resources |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Resources parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Resources |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static Resources parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
Resources |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Resources parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Resources |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static Resources parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
Resources |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Resources parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Resources |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static Resources parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
Resources |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Resources parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Resources |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static Resources parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
Resources |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Resources parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Resources |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static Resources parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
Resources |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Resources parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Resources |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<Resources> parser()| Returns | |
|---|---|
| Type | Description |
Parser<Resources> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getCpu()
public double getCpu()Number of CPU cores needed.
double cpu = 1;
| Returns | |
|---|---|
| Type | Description |
double |
The cpu. |
getDefaultInstanceForType()
public Resources getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Resources |
|
getDiskGb()
public double getDiskGb()Disk size (GB) needed.
double disk_gb = 2;
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
ByteString |
The bytes for kmsKeyReference. |
getMemoryGb()
public double getMemoryGb()Memory (GB) needed.
double memory_gb = 3;
| Returns | |
|---|---|
| Type | Description |
double |
The memoryGb. |
getParserForType()
public Parser<Resources> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<Resources> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
getVolumes(int index)
public Volume getVolumes(int index)User specified volumes.
repeated .google.appengine.v1.Volume volumes = 4;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Volume |
|
getVolumesCount()
public int getVolumesCount()User specified volumes.
repeated .google.appengine.v1.Volume volumes = 4;
| Returns | |
|---|---|
| Type | Description |
int |
|
getVolumesList()
public List<Volume> getVolumesList()User specified volumes.
repeated .google.appengine.v1.Volume volumes = 4;
| Returns | |
|---|---|
| Type | Description |
List<Volume> |
|
getVolumesOrBuilder(int index)
public VolumeOrBuilder getVolumesOrBuilder(int index)User specified volumes.
repeated .google.appengine.v1.Volume volumes = 4;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
VolumeOrBuilder |
|
getVolumesOrBuilderList()
public List<? extends VolumeOrBuilder> getVolumesOrBuilderList()User specified volumes.
repeated .google.appengine.v1.Volume volumes = 4;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.appengine.v1.VolumeOrBuilder> |
|
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public Resources.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
Resources.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Resources.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
Resources.Builder |
|
toBuilder()
public Resources.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
Resources.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|