public static final class InstancesSetMachineResourcesRequest.Builder extends GeneratedMessageV3.Builder<InstancesSetMachineResourcesRequest.Builder> implements InstancesSetMachineResourcesRequestOrBuilder
Protobuf type google.cloud.compute.v1.InstancesSetMachineResourcesRequest
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
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
Returns
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
Returns
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
Returns
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
Returns
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
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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public InstancesSetMachineResourcesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public InstancesSetMachineResourcesRequest build()
Returns
buildPartial()
public InstancesSetMachineResourcesRequest buildPartial()
Returns
clear()
public InstancesSetMachineResourcesRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public InstancesSetMachineResourcesRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public InstancesSetMachineResourcesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public InstancesSetMachineResourcesRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public InstancesSetMachineResourcesRequest getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Returns
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
Returns
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
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
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
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
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(InstancesSetMachineResourcesRequest other)
public InstancesSetMachineResourcesRequest.Builder mergeFrom(InstancesSetMachineResourcesRequest other)
Parameter
Returns
public InstancesSetMachineResourcesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public InstancesSetMachineResourcesRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final InstancesSetMachineResourcesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public InstancesSetMachineResourcesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public InstancesSetMachineResourcesRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final InstancesSetMachineResourcesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides