Send feedback
Class Accelerators.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 Accelerators . Builder extends GeneratedMessageV3 . Builder<Accelerators . Builder > implements AcceleratorsOrBuilder
Protobuf type google.cloud.compute.v1.Accelerators
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Accelerators . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public Accelerators build ()
Returns
buildPartial()
public Accelerators buildPartial ()
Returns
clear()
public Accelerators . Builder clear ()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public Accelerators . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearGuestAcceleratorCount()
public Accelerators . Builder clearGuestAcceleratorCount ()
Number of accelerator cards exposed to the guest.
optional int32 guest_accelerator_count = 479079316;
Returns
clearGuestAcceleratorType()
public Accelerators . Builder clearGuestAcceleratorType ()
The accelerator type resource name, not a full URL, e.g. 'nvidia-tesla-k80'.
optional string guest_accelerator_type = 293064725;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public Accelerators . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clone()
public Accelerators . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public Accelerators getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getGuestAcceleratorCount()
public int getGuestAcceleratorCount ()
Number of accelerator cards exposed to the guest.
optional int32 guest_accelerator_count = 479079316;
Returns
Type Description int The guestAcceleratorCount.
getGuestAcceleratorType()
public String getGuestAcceleratorType ()
The accelerator type resource name, not a full URL, e.g. 'nvidia-tesla-k80'.
optional string guest_accelerator_type = 293064725;
Returns
Type Description String The guestAcceleratorType.
getGuestAcceleratorTypeBytes()
public ByteString getGuestAcceleratorTypeBytes ()
The accelerator type resource name, not a full URL, e.g. 'nvidia-tesla-k80'.
optional string guest_accelerator_type = 293064725;
Returns
Type Description ByteString The bytes for guestAcceleratorType.
hasGuestAcceleratorCount()
public boolean hasGuestAcceleratorCount ()
Number of accelerator cards exposed to the guest.
optional int32 guest_accelerator_count = 479079316;
Returns
Type Description boolean Whether the guestAcceleratorCount field is set.
hasGuestAcceleratorType()
public boolean hasGuestAcceleratorType ()
The accelerator type resource name, not a full URL, e.g. 'nvidia-tesla-k80'.
optional string guest_accelerator_type = 293064725;
Returns
Type Description boolean Whether the guestAcceleratorType field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(Accelerators other)
public Accelerators . Builder mergeFrom ( Accelerators other )
Parameter
Returns
public Accelerators . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Accelerators . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Accelerators . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Accelerators . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setGuestAcceleratorCount(int value)
public Accelerators . Builder setGuestAcceleratorCount ( int value )
Number of accelerator cards exposed to the guest.
optional int32 guest_accelerator_count = 479079316;
Parameter
Name Description value int
The guestAcceleratorCount to set.
Returns
setGuestAcceleratorType(String value)
public Accelerators . Builder setGuestAcceleratorType ( String value )
The accelerator type resource name, not a full URL, e.g. 'nvidia-tesla-k80'.
optional string guest_accelerator_type = 293064725;
Parameter
Name Description value String
The guestAcceleratorType to set.
Returns
setGuestAcceleratorTypeBytes(ByteString value)
public Accelerators . Builder setGuestAcceleratorTypeBytes ( ByteString value )
The accelerator type resource name, not a full URL, e.g. 'nvidia-tesla-k80'.
optional string guest_accelerator_type = 293064725;
Parameter
Name Description value ByteString
The bytes for guestAcceleratorType to set.
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Accelerators . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Accelerators . 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."],[],[]]