Class AllocationSpecificSKUAllocationReservedInstanceProperties.Builder (1.24.0)

public static final class AllocationSpecificSKUAllocationReservedInstanceProperties.Builder extends GeneratedMessageV3.Builder<AllocationSpecificSKUAllocationReservedInstanceProperties.Builder> implements AllocationSpecificSKUAllocationReservedInstancePropertiesOrBuilder

Properties of the SKU instances being reserved. Next ID: 9

Protobuf type google.cloud.compute.v1.AllocationSpecificSKUAllocationReservedInstanceProperties

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AllocationSpecificSKUAllocationReservedInstanceProperties.Builder

Static Methods

getDescriptor()

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

Methods

addAllGuestAccelerators(Iterable<? extends AcceleratorConfig> values)

public AllocationSpecificSKUAllocationReservedInstanceProperties.Builder addAllGuestAccelerators(Iterable<? extends AcceleratorConfig> values)

Specifies accelerator type and count.

repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.AcceleratorConfig>
Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties.Builder

addAllLocalSsds(Iterable<? extends AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk> values)

public AllocationSpecificSKUAllocationReservedInstanceProperties.Builder addAllLocalSsds(Iterable<? extends AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk> values)

Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd.

repeated .google.cloud.compute.v1.AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk local_ssds = 229951299;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk>
Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties.Builder

addGuestAccelerators(AcceleratorConfig value)

public AllocationSpecificSKUAllocationReservedInstanceProperties.Builder addGuestAccelerators(AcceleratorConfig value)

Specifies accelerator type and count.

repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;

Parameter
NameDescription
valueAcceleratorConfig
Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties.Builder

addGuestAccelerators(AcceleratorConfig.Builder builderForValue)

public AllocationSpecificSKUAllocationReservedInstanceProperties.Builder addGuestAccelerators(AcceleratorConfig.Builder builderForValue)

Specifies accelerator type and count.

repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;

Parameter
NameDescription
builderForValueAcceleratorConfig.Builder
Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties.Builder

addGuestAccelerators(int index, AcceleratorConfig value)

public AllocationSpecificSKUAllocationReservedInstanceProperties.Builder addGuestAccelerators(int index, AcceleratorConfig value)

Specifies accelerator type and count.

repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;

Parameters
NameDescription
indexint
valueAcceleratorConfig
Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties.Builder

addGuestAccelerators(int index, AcceleratorConfig.Builder builderForValue)

public AllocationSpecificSKUAllocationReservedInstanceProperties.Builder addGuestAccelerators(int index, AcceleratorConfig.Builder builderForValue)

Specifies accelerator type and count.

repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;

Parameters
NameDescription
indexint
builderForValueAcceleratorConfig.Builder
Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties.Builder

addGuestAcceleratorsBuilder()

public AcceleratorConfig.Builder addGuestAcceleratorsBuilder()

Specifies accelerator type and count.

repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;

Returns
TypeDescription
AcceleratorConfig.Builder

addGuestAcceleratorsBuilder(int index)

public AcceleratorConfig.Builder addGuestAcceleratorsBuilder(int index)

Specifies accelerator type and count.

repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;

Parameter
NameDescription
indexint
Returns
TypeDescription
AcceleratorConfig.Builder

addLocalSsds(AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk value)

public AllocationSpecificSKUAllocationReservedInstanceProperties.Builder addLocalSsds(AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk value)

Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd.

repeated .google.cloud.compute.v1.AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk local_ssds = 229951299;

Parameter
NameDescription
valueAllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk
Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties.Builder

addLocalSsds(AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk.Builder builderForValue)

public AllocationSpecificSKUAllocationReservedInstanceProperties.Builder addLocalSsds(AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk.Builder builderForValue)

Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd.

repeated .google.cloud.compute.v1.AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk local_ssds = 229951299;

Parameter
NameDescription
builderForValueAllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk.Builder
Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties.Builder

addLocalSsds(int index, AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk value)

public AllocationSpecificSKUAllocationReservedInstanceProperties.Builder addLocalSsds(int index, AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk value)

Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd.

repeated .google.cloud.compute.v1.AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk local_ssds = 229951299;

Parameters
NameDescription
indexint
valueAllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk
Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties.Builder

addLocalSsds(int index, AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk.Builder builderForValue)

public AllocationSpecificSKUAllocationReservedInstanceProperties.Builder addLocalSsds(int index, AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk.Builder builderForValue)

Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd.

repeated .google.cloud.compute.v1.AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk local_ssds = 229951299;

Parameters
NameDescription
indexint
builderForValueAllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk.Builder
Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties.Builder

addLocalSsdsBuilder()

public AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk.Builder addLocalSsdsBuilder()

Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd.

repeated .google.cloud.compute.v1.AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk local_ssds = 229951299;

Returns
TypeDescription
AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk.Builder

addLocalSsdsBuilder(int index)

public AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk.Builder addLocalSsdsBuilder(int index)

Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd.

repeated .google.cloud.compute.v1.AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk local_ssds = 229951299;

Parameter
NameDescription
indexint
Returns
TypeDescription
AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AllocationSpecificSKUAllocationReservedInstanceProperties build()
Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties

buildPartial()

public AllocationSpecificSKUAllocationReservedInstanceProperties buildPartial()
Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties

clear()

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

clearField(Descriptors.FieldDescriptor field)

public AllocationSpecificSKUAllocationReservedInstanceProperties.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties.Builder
Overrides

clearGuestAccelerators()

public AllocationSpecificSKUAllocationReservedInstanceProperties.Builder clearGuestAccelerators()

Specifies accelerator type and count.

repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;

Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties.Builder

clearLocalSsds()

public AllocationSpecificSKUAllocationReservedInstanceProperties.Builder clearLocalSsds()

Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd.

repeated .google.cloud.compute.v1.AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk local_ssds = 229951299;

Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties.Builder

clearLocationHint()

public AllocationSpecificSKUAllocationReservedInstanceProperties.Builder clearLocationHint()

An opaque location hint used to place the allocation close to other resources. This field is for use by internal tools that use the public API.

optional string location_hint = 350519505;

Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties.Builder

This builder for chaining.

clearMachineType()

public AllocationSpecificSKUAllocationReservedInstanceProperties.Builder clearMachineType()

Specifies type of machine (name only) which has fixed number of vCPUs and fixed amount of memory. This also includes specifying custom machine type following custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern.

optional string machine_type = 227711026;

Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties.Builder

This builder for chaining.

clearMinCpuPlatform()

public AllocationSpecificSKUAllocationReservedInstanceProperties.Builder clearMinCpuPlatform()

Minimum cpu platform the reservation.

optional string min_cpu_platform = 242912759;

Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public AllocationSpecificSKUAllocationReservedInstanceProperties.Builder clone()
Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties.Builder
Overrides

getDefaultInstanceForType()

public AllocationSpecificSKUAllocationReservedInstanceProperties getDefaultInstanceForType()
Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGuestAccelerators(int index)

public AcceleratorConfig getGuestAccelerators(int index)

Specifies accelerator type and count.

repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;

Parameter
NameDescription
indexint
Returns
TypeDescription
AcceleratorConfig

getGuestAcceleratorsBuilder(int index)

public AcceleratorConfig.Builder getGuestAcceleratorsBuilder(int index)

Specifies accelerator type and count.

repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;

Parameter
NameDescription
indexint
Returns
TypeDescription
AcceleratorConfig.Builder

getGuestAcceleratorsBuilderList()

public List<AcceleratorConfig.Builder> getGuestAcceleratorsBuilderList()

Specifies accelerator type and count.

repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;

Returns
TypeDescription
List<Builder>

getGuestAcceleratorsCount()

public int getGuestAcceleratorsCount()

Specifies accelerator type and count.

repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;

Returns
TypeDescription
int

getGuestAcceleratorsList()

public List<AcceleratorConfig> getGuestAcceleratorsList()

Specifies accelerator type and count.

repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;

Returns
TypeDescription
List<AcceleratorConfig>

getGuestAcceleratorsOrBuilder(int index)

public AcceleratorConfigOrBuilder getGuestAcceleratorsOrBuilder(int index)

Specifies accelerator type and count.

repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;

Parameter
NameDescription
indexint
Returns
TypeDescription
AcceleratorConfigOrBuilder

getGuestAcceleratorsOrBuilderList()

public List<? extends AcceleratorConfigOrBuilder> getGuestAcceleratorsOrBuilderList()

Specifies accelerator type and count.

repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.AcceleratorConfigOrBuilder>

getLocalSsds(int index)

public AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk getLocalSsds(int index)

Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd.

repeated .google.cloud.compute.v1.AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk local_ssds = 229951299;

Parameter
NameDescription
indexint
Returns
TypeDescription
AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk

getLocalSsdsBuilder(int index)

public AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk.Builder getLocalSsdsBuilder(int index)

Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd.

repeated .google.cloud.compute.v1.AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk local_ssds = 229951299;

Parameter
NameDescription
indexint
Returns
TypeDescription
AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk.Builder

getLocalSsdsBuilderList()

public List<AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk.Builder> getLocalSsdsBuilderList()

Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd.

repeated .google.cloud.compute.v1.AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk local_ssds = 229951299;

Returns
TypeDescription
List<Builder>

getLocalSsdsCount()

public int getLocalSsdsCount()

Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd.

repeated .google.cloud.compute.v1.AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk local_ssds = 229951299;

Returns
TypeDescription
int

getLocalSsdsList()

public List<AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk> getLocalSsdsList()

Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd.

repeated .google.cloud.compute.v1.AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk local_ssds = 229951299;

Returns
TypeDescription
List<AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk>

getLocalSsdsOrBuilder(int index)

public AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDiskOrBuilder getLocalSsdsOrBuilder(int index)

Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd.

repeated .google.cloud.compute.v1.AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk local_ssds = 229951299;

Parameter
NameDescription
indexint
Returns
TypeDescription
AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDiskOrBuilder

getLocalSsdsOrBuilderList()

public List<? extends AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDiskOrBuilder> getLocalSsdsOrBuilderList()

Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd.

repeated .google.cloud.compute.v1.AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk local_ssds = 229951299;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDiskOrBuilder>

getLocationHint()

public String getLocationHint()

An opaque location hint used to place the allocation close to other resources. This field is for use by internal tools that use the public API.

optional string location_hint = 350519505;

Returns
TypeDescription
String

The locationHint.

getLocationHintBytes()

public ByteString getLocationHintBytes()

An opaque location hint used to place the allocation close to other resources. This field is for use by internal tools that use the public API.

optional string location_hint = 350519505;

Returns
TypeDescription
ByteString

The bytes for locationHint.

getMachineType()

public String getMachineType()

Specifies type of machine (name only) which has fixed number of vCPUs and fixed amount of memory. This also includes specifying custom machine type following custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern.

optional string machine_type = 227711026;

Returns
TypeDescription
String

The machineType.

getMachineTypeBytes()

public ByteString getMachineTypeBytes()

Specifies type of machine (name only) which has fixed number of vCPUs and fixed amount of memory. This also includes specifying custom machine type following custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern.

optional string machine_type = 227711026;

Returns
TypeDescription
ByteString

The bytes for machineType.

getMinCpuPlatform()

public String getMinCpuPlatform()

Minimum cpu platform the reservation.

optional string min_cpu_platform = 242912759;

Returns
TypeDescription
String

The minCpuPlatform.

getMinCpuPlatformBytes()

public ByteString getMinCpuPlatformBytes()

Minimum cpu platform the reservation.

optional string min_cpu_platform = 242912759;

Returns
TypeDescription
ByteString

The bytes for minCpuPlatform.

hasLocationHint()

public boolean hasLocationHint()

An opaque location hint used to place the allocation close to other resources. This field is for use by internal tools that use the public API.

optional string location_hint = 350519505;

Returns
TypeDescription
boolean

Whether the locationHint field is set.

hasMachineType()

public boolean hasMachineType()

Specifies type of machine (name only) which has fixed number of vCPUs and fixed amount of memory. This also includes specifying custom machine type following custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern.

optional string machine_type = 227711026;

Returns
TypeDescription
boolean

Whether the machineType field is set.

hasMinCpuPlatform()

public boolean hasMinCpuPlatform()

Minimum cpu platform the reservation.

optional string min_cpu_platform = 242912759;

Returns
TypeDescription
boolean

Whether the minCpuPlatform field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AllocationSpecificSKUAllocationReservedInstanceProperties other)

public AllocationSpecificSKUAllocationReservedInstanceProperties.Builder mergeFrom(AllocationSpecificSKUAllocationReservedInstanceProperties other)
Parameter
NameDescription
otherAllocationSpecificSKUAllocationReservedInstanceProperties
Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeGuestAccelerators(int index)

public AllocationSpecificSKUAllocationReservedInstanceProperties.Builder removeGuestAccelerators(int index)

Specifies accelerator type and count.

repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;

Parameter
NameDescription
indexint
Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties.Builder

removeLocalSsds(int index)

public AllocationSpecificSKUAllocationReservedInstanceProperties.Builder removeLocalSsds(int index)

Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd.

repeated .google.cloud.compute.v1.AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk local_ssds = 229951299;

Parameter
NameDescription
indexint
Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setGuestAccelerators(int index, AcceleratorConfig value)

public AllocationSpecificSKUAllocationReservedInstanceProperties.Builder setGuestAccelerators(int index, AcceleratorConfig value)

Specifies accelerator type and count.

repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;

Parameters
NameDescription
indexint
valueAcceleratorConfig
Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties.Builder

setGuestAccelerators(int index, AcceleratorConfig.Builder builderForValue)

public AllocationSpecificSKUAllocationReservedInstanceProperties.Builder setGuestAccelerators(int index, AcceleratorConfig.Builder builderForValue)

Specifies accelerator type and count.

repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;

Parameters
NameDescription
indexint
builderForValueAcceleratorConfig.Builder
Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties.Builder

setLocalSsds(int index, AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk value)

public AllocationSpecificSKUAllocationReservedInstanceProperties.Builder setLocalSsds(int index, AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk value)

Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd.

repeated .google.cloud.compute.v1.AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk local_ssds = 229951299;

Parameters
NameDescription
indexint
valueAllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk
Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties.Builder

setLocalSsds(int index, AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk.Builder builderForValue)

public AllocationSpecificSKUAllocationReservedInstanceProperties.Builder setLocalSsds(int index, AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk.Builder builderForValue)

Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd.

repeated .google.cloud.compute.v1.AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk local_ssds = 229951299;

Parameters
NameDescription
indexint
builderForValueAllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk.Builder
Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties.Builder

setLocationHint(String value)

public AllocationSpecificSKUAllocationReservedInstanceProperties.Builder setLocationHint(String value)

An opaque location hint used to place the allocation close to other resources. This field is for use by internal tools that use the public API.

optional string location_hint = 350519505;

Parameter
NameDescription
valueString

The locationHint to set.

Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties.Builder

This builder for chaining.

setLocationHintBytes(ByteString value)

public AllocationSpecificSKUAllocationReservedInstanceProperties.Builder setLocationHintBytes(ByteString value)

An opaque location hint used to place the allocation close to other resources. This field is for use by internal tools that use the public API.

optional string location_hint = 350519505;

Parameter
NameDescription
valueByteString

The bytes for locationHint to set.

Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties.Builder

This builder for chaining.

setMachineType(String value)

public AllocationSpecificSKUAllocationReservedInstanceProperties.Builder setMachineType(String value)

Specifies type of machine (name only) which has fixed number of vCPUs and fixed amount of memory. This also includes specifying custom machine type following custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern.

optional string machine_type = 227711026;

Parameter
NameDescription
valueString

The machineType to set.

Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties.Builder

This builder for chaining.

setMachineTypeBytes(ByteString value)

public AllocationSpecificSKUAllocationReservedInstanceProperties.Builder setMachineTypeBytes(ByteString value)

Specifies type of machine (name only) which has fixed number of vCPUs and fixed amount of memory. This also includes specifying custom machine type following custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern.

optional string machine_type = 227711026;

Parameter
NameDescription
valueByteString

The bytes for machineType to set.

Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties.Builder

This builder for chaining.

setMinCpuPlatform(String value)

public AllocationSpecificSKUAllocationReservedInstanceProperties.Builder setMinCpuPlatform(String value)

Minimum cpu platform the reservation.

optional string min_cpu_platform = 242912759;

Parameter
NameDescription
valueString

The minCpuPlatform to set.

Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties.Builder

This builder for chaining.

setMinCpuPlatformBytes(ByteString value)

public AllocationSpecificSKUAllocationReservedInstanceProperties.Builder setMinCpuPlatformBytes(ByteString value)

Minimum cpu platform the reservation.

optional string min_cpu_platform = 242912759;

Parameter
NameDescription
valueByteString

The bytes for minCpuPlatform to set.

Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties.Builder

This builder for chaining.

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

public AllocationSpecificSKUAllocationReservedInstanceProperties.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AllocationSpecificSKUAllocationReservedInstanceProperties.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties.Builder
Overrides