Class Resources.Builder (2.41.0)

public static final class Resources.Builder extends GeneratedMessageV3.Builder<Resources.Builder> implements ResourcesOrBuilder

Machine resources for a version.

Protobuf type google.appengine.v1.Resources

Implements

ResourcesOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllVolumes(Iterable<? extends Volume> values)

public Resources.Builder addAllVolumes(Iterable<? extends Volume> values)

User specified volumes.

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

Parameter
Name Description
values Iterable<? extends com.google.appengine.v1.Volume>
Returns
Type Description
Resources.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Resources.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Resources.Builder
Overrides

addVolumes(Volume value)

public Resources.Builder addVolumes(Volume value)

User specified volumes.

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

Parameter
Name Description
value Volume
Returns
Type Description
Resources.Builder

addVolumes(Volume.Builder builderForValue)

public Resources.Builder addVolumes(Volume.Builder builderForValue)

User specified volumes.

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

Parameter
Name Description
builderForValue Volume.Builder
Returns
Type Description
Resources.Builder

addVolumes(int index, Volume value)

public Resources.Builder addVolumes(int index, Volume value)

User specified volumes.

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

Parameters
Name Description
index int
value Volume
Returns
Type Description
Resources.Builder

addVolumes(int index, Volume.Builder builderForValue)

public Resources.Builder addVolumes(int index, Volume.Builder builderForValue)

User specified volumes.

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

Parameters
Name Description
index int
builderForValue Volume.Builder
Returns
Type Description
Resources.Builder

addVolumesBuilder()

public Volume.Builder addVolumesBuilder()

User specified volumes.

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

Returns
Type Description
Volume.Builder

addVolumesBuilder(int index)

public Volume.Builder addVolumesBuilder(int index)

User specified volumes.

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

Parameter
Name Description
index int
Returns
Type Description
Volume.Builder

build()

public Resources build()
Returns
Type Description
Resources

buildPartial()

public Resources buildPartial()
Returns
Type Description
Resources

clear()

public Resources.Builder clear()
Returns
Type Description
Resources.Builder
Overrides

clearCpu()

public Resources.Builder clearCpu()

Number of CPU cores needed.

double cpu = 1;

Returns
Type Description
Resources.Builder

This builder for chaining.

clearDiskGb()

public Resources.Builder clearDiskGb()

Disk size (GB) needed.

double disk_gb = 2;

Returns
Type Description
Resources.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Resources.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Resources.Builder
Overrides

clearKmsKeyReference()

public Resources.Builder clearKmsKeyReference()

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
Resources.Builder

This builder for chaining.

clearMemoryGb()

public Resources.Builder clearMemoryGb()

Memory (GB) needed.

double memory_gb = 3;

Returns
Type Description
Resources.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Resources.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Resources.Builder
Overrides

clearVolumes()

public Resources.Builder clearVolumes()

User specified volumes.

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

Returns
Type Description
Resources.Builder

clone()

public Resources.Builder clone()
Returns
Type Description
Resources.Builder
Overrides

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

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

getVolumesBuilder(int index)

public Volume.Builder getVolumesBuilder(int index)

User specified volumes.

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

Parameter
Name Description
index int
Returns
Type Description
Volume.Builder

getVolumesBuilderList()

public List<Volume.Builder> getVolumesBuilderList()

User specified volumes.

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

Returns
Type Description
List<Builder>

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>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Resources other)

public Resources.Builder mergeFrom(Resources other)
Parameter
Name Description
other Resources
Returns
Type Description
Resources.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Resources.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Resources.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Resources.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Resources.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Resources.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Resources.Builder
Overrides

removeVolumes(int index)

public Resources.Builder removeVolumes(int index)

User specified volumes.

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

Parameter
Name Description
index int
Returns
Type Description
Resources.Builder

setCpu(double value)

public Resources.Builder setCpu(double value)

Number of CPU cores needed.

double cpu = 1;

Parameter
Name Description
value double

The cpu to set.

Returns
Type Description
Resources.Builder

This builder for chaining.

setDiskGb(double value)

public Resources.Builder setDiskGb(double value)

Disk size (GB) needed.

double disk_gb = 2;

Parameter
Name Description
value double

The diskGb to set.

Returns
Type Description
Resources.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Resources.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Resources.Builder
Overrides

setKmsKeyReference(String value)

public Resources.Builder setKmsKeyReference(String value)

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;

Parameter
Name Description
value String

The kmsKeyReference to set.

Returns
Type Description
Resources.Builder

This builder for chaining.

setKmsKeyReferenceBytes(ByteString value)

public Resources.Builder setKmsKeyReferenceBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for kmsKeyReference to set.

Returns
Type Description
Resources.Builder

This builder for chaining.

setMemoryGb(double value)

public Resources.Builder setMemoryGb(double value)

Memory (GB) needed.

double memory_gb = 3;

Parameter
Name Description
value double

The memoryGb to set.

Returns
Type Description
Resources.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Resources.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Resources.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Resources.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Resources.Builder
Overrides

setVolumes(int index, Volume value)

public Resources.Builder setVolumes(int index, Volume value)

User specified volumes.

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

Parameters
Name Description
index int
value Volume
Returns
Type Description
Resources.Builder

setVolumes(int index, Volume.Builder builderForValue)

public Resources.Builder setVolumes(int index, Volume.Builder builderForValue)

User specified volumes.

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

Parameters
Name Description
index int
builderForValue Volume.Builder
Returns
Type Description
Resources.Builder