public static final class AcceleratorConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AcceleratorConfig.Builder> implements AcceleratorConfigOrBuilder
A specification of the type and number of accelerator cards attached to the instance.Protobuf type
google.cloud.compute.v1.AcceleratorConfig| Modifier and Type | Method and Description |
|---|---|
AcceleratorConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AcceleratorConfig |
build() |
AcceleratorConfig |
buildPartial() |
AcceleratorConfig.Builder |
clear() |
AcceleratorConfig.Builder |
clearAcceleratorCount()
The number of the guest accelerator cards exposed to this instance.
|
AcceleratorConfig.Builder |
clearAcceleratorType()
Full or partial URL of the accelerator type resource to attach to this instance.
|
AcceleratorConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
AcceleratorConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
AcceleratorConfig.Builder |
clone() |
int |
getAcceleratorCount()
The number of the guest accelerator cards exposed to this instance.
|
String |
getAcceleratorType()
Full or partial URL of the accelerator type resource to attach to this instance.
|
com.google.protobuf.ByteString |
getAcceleratorTypeBytes()
Full or partial URL of the accelerator type resource to attach to this instance.
|
AcceleratorConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
hasAcceleratorCount()
The number of the guest accelerator cards exposed to this instance.
|
boolean |
hasAcceleratorType()
Full or partial URL of the accelerator type resource to attach to this instance.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
AcceleratorConfig.Builder |
mergeFrom(AcceleratorConfig other) |
AcceleratorConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AcceleratorConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
AcceleratorConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AcceleratorConfig.Builder |
setAcceleratorCount(int value)
The number of the guest accelerator cards exposed to this instance.
|
AcceleratorConfig.Builder |
setAcceleratorType(String value)
Full or partial URL of the accelerator type resource to attach to this instance.
|
AcceleratorConfig.Builder |
setAcceleratorTypeBytes(com.google.protobuf.ByteString value)
Full or partial URL of the accelerator type resource to attach to this instance.
|
AcceleratorConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AcceleratorConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
AcceleratorConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AcceleratorConfig.Builder>public AcceleratorConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AcceleratorConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AcceleratorConfig.Builder>public AcceleratorConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AcceleratorConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AcceleratorConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AcceleratorConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AcceleratorConfig.Builder>public AcceleratorConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AcceleratorConfig.Builder>public AcceleratorConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AcceleratorConfig.Builder>public AcceleratorConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AcceleratorConfig.Builder>public AcceleratorConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AcceleratorConfig.Builder>public AcceleratorConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AcceleratorConfig.Builder>public AcceleratorConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AcceleratorConfig.Builder>public AcceleratorConfig.Builder mergeFrom(AcceleratorConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AcceleratorConfig.Builder>public AcceleratorConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AcceleratorConfig.Builder>IOExceptionpublic boolean hasAcceleratorCount()
The number of the guest accelerator cards exposed to this instance.
optional int32 accelerator_count = 504879675;hasAcceleratorCount in interface AcceleratorConfigOrBuilderpublic int getAcceleratorCount()
The number of the guest accelerator cards exposed to this instance.
optional int32 accelerator_count = 504879675;getAcceleratorCount in interface AcceleratorConfigOrBuilderpublic AcceleratorConfig.Builder setAcceleratorCount(int value)
The number of the guest accelerator cards exposed to this instance.
optional int32 accelerator_count = 504879675;value - The acceleratorCount to set.public AcceleratorConfig.Builder clearAcceleratorCount()
The number of the guest accelerator cards exposed to this instance.
optional int32 accelerator_count = 504879675;public boolean hasAcceleratorType()
Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
optional string accelerator_type = 138031246;hasAcceleratorType in interface AcceleratorConfigOrBuilderpublic String getAcceleratorType()
Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
optional string accelerator_type = 138031246;getAcceleratorType in interface AcceleratorConfigOrBuilderpublic com.google.protobuf.ByteString getAcceleratorTypeBytes()
Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
optional string accelerator_type = 138031246;getAcceleratorTypeBytes in interface AcceleratorConfigOrBuilderpublic AcceleratorConfig.Builder setAcceleratorType(String value)
Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
optional string accelerator_type = 138031246;value - The acceleratorType to set.public AcceleratorConfig.Builder clearAcceleratorType()
Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
optional string accelerator_type = 138031246;public AcceleratorConfig.Builder setAcceleratorTypeBytes(com.google.protobuf.ByteString value)
Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
optional string accelerator_type = 138031246;value - The bytes for acceleratorType to set.public final AcceleratorConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AcceleratorConfig.Builder>public final AcceleratorConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AcceleratorConfig.Builder>Copyright © 2023 Google LLC. All rights reserved.