Package com.google.cloud.compute.v1
Class LocalDisk.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LocalDisk.Builder>
com.google.cloud.compute.v1.LocalDisk.Builder
- All Implemented Interfaces:
LocalDiskOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- LocalDisk
public static final class LocalDisk.Builder
extends com.google.protobuf.GeneratedMessage.Builder<LocalDisk.Builder>
implements LocalDiskOrBuilder
Protobuf type
google.cloud.compute.v1.LocalDisk-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Specifies the number of such disks.Specifies the size of the disk in base-2 GB.Specifies the desired disk type on the node.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintSpecifies the number of such disks.intSpecifies the size of the disk in base-2 GB.Specifies the desired disk type on the node.com.google.protobuf.ByteStringSpecifies the desired disk type on the node.booleanSpecifies the number of such disks.booleanSpecifies the size of the disk in base-2 GB.booleanSpecifies the desired disk type on the node.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDiskCount(int value) Specifies the number of such disks.setDiskSizeGb(int value) Specifies the size of the disk in base-2 GB.setDiskType(String value) Specifies the desired disk type on the node.setDiskTypeBytes(com.google.protobuf.ByteString value) Specifies the desired disk type on the node.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<LocalDisk.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<LocalDisk.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<LocalDisk.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<LocalDisk.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<LocalDisk.Builder>
-
mergeFrom
public LocalDisk.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<LocalDisk.Builder>- Throws:
IOException
-
hasDiskCount
public boolean hasDiskCount()Specifies the number of such disks.
optional int32 disk_count = 182933485;- Specified by:
hasDiskCountin interfaceLocalDiskOrBuilder- Returns:
- Whether the diskCount field is set.
-
getDiskCount
public int getDiskCount()Specifies the number of such disks.
optional int32 disk_count = 182933485;- Specified by:
getDiskCountin interfaceLocalDiskOrBuilder- Returns:
- The diskCount.
-
setDiskCount
Specifies the number of such disks.
optional int32 disk_count = 182933485;- Parameters:
value- The diskCount to set.- Returns:
- This builder for chaining.
-
clearDiskCount
Specifies the number of such disks.
optional int32 disk_count = 182933485;- Returns:
- This builder for chaining.
-
hasDiskSizeGb
public boolean hasDiskSizeGb()Specifies the size of the disk in base-2 GB.
optional int32 disk_size_gb = 316263735;- Specified by:
hasDiskSizeGbin interfaceLocalDiskOrBuilder- Returns:
- Whether the diskSizeGb field is set.
-
getDiskSizeGb
public int getDiskSizeGb()Specifies the size of the disk in base-2 GB.
optional int32 disk_size_gb = 316263735;- Specified by:
getDiskSizeGbin interfaceLocalDiskOrBuilder- Returns:
- The diskSizeGb.
-
setDiskSizeGb
Specifies the size of the disk in base-2 GB.
optional int32 disk_size_gb = 316263735;- Parameters:
value- The diskSizeGb to set.- Returns:
- This builder for chaining.
-
clearDiskSizeGb
Specifies the size of the disk in base-2 GB.
optional int32 disk_size_gb = 316263735;- Returns:
- This builder for chaining.
-
hasDiskType
public boolean hasDiskType()Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its URL.
optional string disk_type = 93009052;- Specified by:
hasDiskTypein interfaceLocalDiskOrBuilder- Returns:
- Whether the diskType field is set.
-
getDiskType
Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its URL.
optional string disk_type = 93009052;- Specified by:
getDiskTypein interfaceLocalDiskOrBuilder- Returns:
- The diskType.
-
getDiskTypeBytes
public com.google.protobuf.ByteString getDiskTypeBytes()Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its URL.
optional string disk_type = 93009052;- Specified by:
getDiskTypeBytesin interfaceLocalDiskOrBuilder- Returns:
- The bytes for diskType.
-
setDiskType
Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its URL.
optional string disk_type = 93009052;- Parameters:
value- The diskType to set.- Returns:
- This builder for chaining.
-
clearDiskType
Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its URL.
optional string disk_type = 93009052;- Returns:
- This builder for chaining.
-
setDiskTypeBytes
Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its URL.
optional string disk_type = 93009052;- Parameters:
value- The bytes for diskType to set.- Returns:
- This builder for chaining.
-