public final class Resources extends GeneratedMessageV3 implements ResourcesOrBuilder
Machine resources for a version.
Protobuf type google.appengine.v1.Resources
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
Static 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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Resources.Builder newBuilder()
newBuilder(Resources prototype)
public static Resources.Builder newBuilder(Resources prototype)
public static Resources parseDelimitedFrom(InputStream input)
public static Resources parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Resources parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Resources parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Resources parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Resources parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Resources parseFrom(CodedInputStream input)
public static Resources parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Resources parseFrom(InputStream input)
public static Resources parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Resources parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Resources parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Resources> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getCpu()
Number of CPU cores needed.
double cpu = 1;
Returns |
---|
Type | Description |
double | The cpu.
|
getDefaultInstanceForType()
public Resources getDefaultInstanceForType()
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()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getVolumes(int index)
public Volume getVolumes(int index)
User specified volumes.
repeated .google.appengine.v1.Volume volumes = 4;
Parameter |
---|
Name | Description |
index | int
|
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;
getVolumesOrBuilder(int index)
public VolumeOrBuilder getVolumesOrBuilder(int index)
User specified volumes.
repeated .google.appengine.v1.Volume volumes = 4;
Parameter |
---|
Name | Description |
index | int
|
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()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Resources.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Resources.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public Resources.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides