Class InstancesSetMachineResourcesRequest.Builder (1.55.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
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.compute.v1.AcceleratorConfig>
Returns
Type Description
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
Name Description
value AcceleratorConfig
Returns
Type Description
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
Name Description
builderForValue AcceleratorConfig.Builder
Returns
Type Description
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
Name Description
index int
value AcceleratorConfig
Returns
Type Description
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
Name Description
index int
builderForValue AcceleratorConfig.Builder
Returns
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
AcceleratorConfig.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InstancesSetMachineResourcesRequest build()
Returns
Type Description
InstancesSetMachineResourcesRequest

buildPartial()

public InstancesSetMachineResourcesRequest buildPartial()
Returns
Type Description
InstancesSetMachineResourcesRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public InstancesSetMachineResourcesRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
InstancesSetMachineResourcesRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public InstancesSetMachineResourcesRequest getDefaultInstanceForType()
Returns
Type Description
InstancesSetMachineResourcesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
List<? extends com.google.cloud.compute.v1.AcceleratorConfigOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InstancesSetMachineResourcesRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InstancesSetMachineResourcesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
Returns
Type Description
InstancesSetMachineResourcesRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public InstancesSetMachineResourcesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
index int
value AcceleratorConfig
Returns
Type Description
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
Name Description
index int
builderForValue AcceleratorConfig.Builder
Returns
Type Description
InstancesSetMachineResourcesRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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