Class Resources.Builder (2.36.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.appengine.v1.Volume>
Returns
TypeDescription
Resources.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Resources.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Resources.Builder
Overrides

addVolumes(Volume value)

public Resources.Builder addVolumes(Volume value)

User specified volumes.

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

Parameter
NameDescription
valueVolume
Returns
TypeDescription
Resources.Builder

addVolumes(Volume.Builder builderForValue)

public Resources.Builder addVolumes(Volume.Builder builderForValue)

User specified volumes.

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

Parameter
NameDescription
builderForValueVolume.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueVolume
Returns
TypeDescription
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
NameDescription
indexint
builderForValueVolume.Builder
Returns
TypeDescription
Resources.Builder

addVolumesBuilder()

public Volume.Builder addVolumesBuilder()

User specified volumes.

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

Returns
TypeDescription
Volume.Builder

addVolumesBuilder(int index)

public Volume.Builder addVolumesBuilder(int index)

User specified volumes.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Volume.Builder

build()

public Resources build()
Returns
TypeDescription
Resources

buildPartial()

public Resources buildPartial()
Returns
TypeDescription
Resources

clear()

public Resources.Builder clear()
Returns
TypeDescription
Resources.Builder
Overrides

clearCpu()

public Resources.Builder clearCpu()

Number of CPU cores needed.

double cpu = 1;

Returns
TypeDescription
Resources.Builder

This builder for chaining.

clearDiskGb()

public Resources.Builder clearDiskGb()

Disk size (GB) needed.

double disk_gb = 2;

Returns
TypeDescription
Resources.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Resources.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
Resources.Builder

This builder for chaining.

clearMemoryGb()

public Resources.Builder clearMemoryGb()

Memory (GB) needed.

double memory_gb = 3;

Returns
TypeDescription
Resources.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Resources.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Resources.Builder
Overrides

clearVolumes()

public Resources.Builder clearVolumes()

User specified volumes.

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

Returns
TypeDescription
Resources.Builder

clone()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

getVolumes(int index)

public Volume getVolumes(int index)

User specified volumes.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Volume

getVolumesBuilder(int index)

public Volume.Builder getVolumesBuilder(int index)

User specified volumes.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Volume.Builder

getVolumesBuilderList()

public List<Volume.Builder> getVolumesBuilderList()

User specified volumes.

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

Returns
TypeDescription
List<Builder>

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>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Resources other)

public Resources.Builder mergeFrom(Resources other)
Parameter
NameDescription
otherResources
Returns
TypeDescription
Resources.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Resources.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Resources.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Resources.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Resources.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Resources.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Resources.Builder
Overrides

removeVolumes(int index)

public Resources.Builder removeVolumes(int index)

User specified volumes.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Resources.Builder

setCpu(double value)

public Resources.Builder setCpu(double value)

Number of CPU cores needed.

double cpu = 1;

Parameter
NameDescription
valuedouble

The cpu to set.

Returns
TypeDescription
Resources.Builder

This builder for chaining.

setDiskGb(double value)

public Resources.Builder setDiskGb(double value)

Disk size (GB) needed.

double disk_gb = 2;

Parameter
NameDescription
valuedouble

The diskGb to set.

Returns
TypeDescription
Resources.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Resources.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The kmsKeyReference to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for kmsKeyReference to set.

Returns
TypeDescription
Resources.Builder

This builder for chaining.

setMemoryGb(double value)

public Resources.Builder setMemoryGb(double value)

Memory (GB) needed.

double memory_gb = 3;

Parameter
NameDescription
valuedouble

The memoryGb to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Resources.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Resources.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
valueVolume
Returns
TypeDescription
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
NameDescription
indexint
builderForValueVolume.Builder
Returns
TypeDescription
Resources.Builder