Class InstancesSetMachineResourcesRequest.Builder (1.30.0)

public static final class InstancesSetMachineResourcesRequest.Builder extends GeneratedMessageV3.Builder<InstancesSetMachineResourcesRequest.Builder> implements InstancesSetMachineResourcesRequestOrBuilder

Protobuf type google.cloud.compute.v1.InstancesSetMachineResourcesRequest

Static Methods

getDescriptor()

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

Methods

addAllGuestAccelerators(Iterable<? extends AcceleratorConfig> values)

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

A list of the type and count of accelerator cards attached to the instance.

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

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

addGuestAccelerators(AcceleratorConfig value)

public InstancesSetMachineResourcesRequest.Builder addGuestAccelerators(AcceleratorConfig value)

A list of the type and count of accelerator cards attached to the instance.

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

Parameter
NameDescription
valueAcceleratorConfig
Returns
TypeDescription
InstancesSetMachineResourcesRequest.Builder

addGuestAccelerators(AcceleratorConfig.Builder builderForValue)

public InstancesSetMachineResourcesRequest.Builder addGuestAccelerators(AcceleratorConfig.Builder builderForValue)

A list of the type and count of accelerator cards attached to the instance.

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

Parameter
NameDescription
builderForValueAcceleratorConfig.Builder
Returns
TypeDescription
InstancesSetMachineResourcesRequest.Builder

addGuestAccelerators(int index, AcceleratorConfig value)

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

A list of the type and count of accelerator cards attached to the instance.

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

Parameters
NameDescription
indexint
valueAcceleratorConfig
Returns
TypeDescription
InstancesSetMachineResourcesRequest.Builder

addGuestAccelerators(int index, AcceleratorConfig.Builder builderForValue)

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

A list of the type and count of accelerator cards attached to the instance.

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

Parameters
NameDescription
indexint
builderForValueAcceleratorConfig.Builder
Returns
TypeDescription
InstancesSetMachineResourcesRequest.Builder

addGuestAcceleratorsBuilder()

public AcceleratorConfig.Builder addGuestAcceleratorsBuilder()

A list of the type and count of accelerator cards attached to the instance.

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

Returns
TypeDescription
AcceleratorConfig.Builder

addGuestAcceleratorsBuilder(int index)

public AcceleratorConfig.Builder addGuestAcceleratorsBuilder(int index)

A list of the type and count of accelerator cards attached to the instance.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AcceleratorConfig.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InstancesSetMachineResourcesRequest build()
Returns
TypeDescription
InstancesSetMachineResourcesRequest

buildPartial()

public InstancesSetMachineResourcesRequest buildPartial()
Returns
TypeDescription
InstancesSetMachineResourcesRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearGuestAccelerators()

public InstancesSetMachineResourcesRequest.Builder clearGuestAccelerators()

A list of the type and count of accelerator cards attached to the instance.

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

Returns
TypeDescription
InstancesSetMachineResourcesRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public InstancesSetMachineResourcesRequest getDefaultInstanceForType()
Returns
TypeDescription
InstancesSetMachineResourcesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGuestAccelerators(int index)

public AcceleratorConfig getGuestAccelerators(int index)

A list of the type and count of accelerator cards attached to the instance.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AcceleratorConfig

getGuestAcceleratorsBuilder(int index)

public AcceleratorConfig.Builder getGuestAcceleratorsBuilder(int index)

A list of the type and count of accelerator cards attached to the instance.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AcceleratorConfig.Builder

getGuestAcceleratorsBuilderList()

public List<AcceleratorConfig.Builder> getGuestAcceleratorsBuilderList()

A list of the type and count of accelerator cards attached to the instance.

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

Returns
TypeDescription
List<Builder>

getGuestAcceleratorsCount()

public int getGuestAcceleratorsCount()

A list of the type and count of accelerator cards attached to the instance.

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

Returns
TypeDescription
int

getGuestAcceleratorsList()

public List<AcceleratorConfig> getGuestAcceleratorsList()

A list of the type and count of accelerator cards attached to the instance.

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

Returns
TypeDescription
List<AcceleratorConfig>

getGuestAcceleratorsOrBuilder(int index)

public AcceleratorConfigOrBuilder getGuestAcceleratorsOrBuilder(int index)

A list of the type and count of accelerator cards attached to the instance.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AcceleratorConfigOrBuilder

getGuestAcceleratorsOrBuilderList()

public List<? extends AcceleratorConfigOrBuilder> getGuestAcceleratorsOrBuilderList()

A list of the type and count of accelerator cards attached to the instance.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InstancesSetMachineResourcesRequest other)

public InstancesSetMachineResourcesRequest.Builder mergeFrom(InstancesSetMachineResourcesRequest other)
Parameter
NameDescription
otherInstancesSetMachineResourcesRequest
Returns
TypeDescription
InstancesSetMachineResourcesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeGuestAccelerators(int index)

public InstancesSetMachineResourcesRequest.Builder removeGuestAccelerators(int index)

A list of the type and count of accelerator cards attached to the instance.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
InstancesSetMachineResourcesRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setGuestAccelerators(int index, AcceleratorConfig value)

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

A list of the type and count of accelerator cards attached to the instance.

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

Parameters
NameDescription
indexint
valueAcceleratorConfig
Returns
TypeDescription
InstancesSetMachineResourcesRequest.Builder

setGuestAccelerators(int index, AcceleratorConfig.Builder builderForValue)

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

A list of the type and count of accelerator cards attached to the instance.

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

Parameters
NameDescription
indexint
builderForValueAcceleratorConfig.Builder
Returns
TypeDescription
InstancesSetMachineResourcesRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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