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