Package com.google.cloud.compute.v1
Class AcceleratorConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AcceleratorConfig.Builder>
com.google.cloud.compute.v1.AcceleratorConfig.Builder
- All Implemented Interfaces:
AcceleratorConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AcceleratorConfig
public static final class AcceleratorConfig.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The number of the guest accelerator cards exposed to this instance.Full or partial URL of the accelerator type resource to attach to this instance.intThe number of the guest accelerator cards exposed to this instance.Full or partial URL of the accelerator type resource to attach to this instance.com.google.protobuf.ByteStringFull or partial URL of the accelerator type resource to attach to this instance.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanThe number of the guest accelerator cards exposed to this instance.booleanFull or partial URL of the accelerator type resource to attach to this instance.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(AcceleratorConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAcceleratorCount(int value) The number of the guest accelerator cards exposed to this instance.setAcceleratorType(String value) Full or partial URL of the accelerator type resource to attach to this instance.setAcceleratorTypeBytes(com.google.protobuf.ByteString value) Full or partial URL of the accelerator type resource to attach to this instance.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AcceleratorConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AcceleratorConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AcceleratorConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AcceleratorConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AcceleratorConfig.Builder>
-
mergeFrom
public AcceleratorConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AcceleratorConfig.Builder>- Throws:
IOException
-
hasAcceleratorCount
public boolean hasAcceleratorCount()The number of the guest accelerator cards exposed to this instance.
optional int32 accelerator_count = 504879675;- Specified by:
hasAcceleratorCountin interfaceAcceleratorConfigOrBuilder- Returns:
- Whether the acceleratorCount field is set.
-
getAcceleratorCount
public int getAcceleratorCount()The number of the guest accelerator cards exposed to this instance.
optional int32 accelerator_count = 504879675;- Specified by:
getAcceleratorCountin interfaceAcceleratorConfigOrBuilder- Returns:
- The acceleratorCount.
-
setAcceleratorCount
The number of the guest accelerator cards exposed to this instance.
optional int32 accelerator_count = 504879675;- Parameters:
value- The acceleratorCount to set.- Returns:
- This builder for chaining.
-
clearAcceleratorCount
The number of the guest accelerator cards exposed to this instance.
optional int32 accelerator_count = 504879675;- Returns:
- This builder for chaining.
-
hasAcceleratorType
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;- Specified by:
hasAcceleratorTypein interfaceAcceleratorConfigOrBuilder- Returns:
- Whether the acceleratorType field is set.
-
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;- Specified by:
getAcceleratorTypein interfaceAcceleratorConfigOrBuilder- Returns:
- The acceleratorType.
-
getAcceleratorTypeBytes
public 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;- Specified by:
getAcceleratorTypeBytesin interfaceAcceleratorConfigOrBuilder- Returns:
- The bytes for acceleratorType.
-
setAcceleratorType
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;- Parameters:
value- The acceleratorType to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setAcceleratorTypeBytes
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;- Parameters:
value- The bytes for acceleratorType to set.- Returns:
- This builder for chaining.
-