Send feedback
Class InstancesSetMachineResourcesRequest.Builder (1.12.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.12.0 keyboard_arrow_down
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
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
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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]