public static final class Accelerators.Builder extends GeneratedMessageV3.Builder<Accelerators.Builder> implements AcceleratorsOrBuilder
Protobuf type google.cloud.compute.v1.Accelerators
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Accelerators.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public Accelerators build()
buildPartial()
public Accelerators buildPartial()
clear()
public Accelerators.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public Accelerators.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearGuestAcceleratorCount()
public Accelerators.Builder clearGuestAcceleratorCount()
Number of accelerator cards exposed to the guest.
optional int32 guest_accelerator_count = 479079316;
clearGuestAcceleratorType()
public Accelerators.Builder clearGuestAcceleratorType()
The accelerator type resource name, not a full URL, e.g. nvidia-tesla-t4.
optional string guest_accelerator_type = 293064725;
clearOneof(Descriptors.OneofDescriptor oneof)
public Accelerators.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public Accelerators.Builder clone()
Overrides
getDefaultInstanceForType()
public Accelerators getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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-t4.
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-t4.
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-t4.
optional string guest_accelerator_type = 293064725;
Returns |
---|
Type | Description |
boolean | Whether the guestAcceleratorType field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Accelerators other)
public Accelerators.Builder mergeFrom(Accelerators other)
public Accelerators.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Accelerators.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Accelerators.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Accelerators.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
setGuestAcceleratorType(String value)
public Accelerators.Builder setGuestAcceleratorType(String value)
The accelerator type resource name, not a full URL, e.g. nvidia-tesla-t4.
optional string guest_accelerator_type = 293064725;
Parameter |
---|
Name | Description |
value | String
The guestAcceleratorType to set.
|
setGuestAcceleratorTypeBytes(ByteString value)
public Accelerators.Builder setGuestAcceleratorTypeBytes(ByteString value)
The accelerator type resource name, not a full URL, e.g. nvidia-tesla-t4.
optional string guest_accelerator_type = 293064725;
Parameter |
---|
Name | Description |
value | ByteString
The bytes for guestAcceleratorType to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Accelerators.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Accelerators.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides