Package com.google.container.v1
Class LinuxNodeConfig.SwapConfig.BootDiskProfile.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LinuxNodeConfig.SwapConfig.BootDiskProfile.Builder>
com.google.container.v1.LinuxNodeConfig.SwapConfig.BootDiskProfile.Builder
- All Implemented Interfaces:
LinuxNodeConfig.SwapConfig.BootDiskProfileOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- LinuxNodeConfig.SwapConfig.BootDiskProfile
public static final class LinuxNodeConfig.SwapConfig.BootDiskProfile.Builder
extends com.google.protobuf.GeneratedMessage.Builder<LinuxNodeConfig.SwapConfig.BootDiskProfile.Builder>
implements LinuxNodeConfig.SwapConfig.BootDiskProfileOrBuilder
Swap on the node's boot disk.Protobuf type
google.container.v1.LinuxNodeConfig.SwapConfig.BootDiskProfile-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Specifies the size of the swap space in gibibytes (GiB).Specifies the size of the swap space as a percentage of the boot disk size.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongSpecifies the size of the swap space in gibibytes (GiB).intSpecifies the size of the swap space as a percentage of the boot disk size.booleanSpecifies the size of the swap space in gibibytes (GiB).booleanSpecifies the size of the swap space as a percentage of the boot disk size.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setSwapSizeGib(long value) Specifies the size of the swap space in gibibytes (GiB).setSwapSizePercent(int value) Specifies the size of the swap space as a percentage of the boot disk size.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<LinuxNodeConfig.SwapConfig.BootDiskProfile.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<LinuxNodeConfig.SwapConfig.BootDiskProfile.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<LinuxNodeConfig.SwapConfig.BootDiskProfile.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
public LinuxNodeConfig.SwapConfig.BootDiskProfile.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LinuxNodeConfig.SwapConfig.BootDiskProfile.Builder>
-
mergeFrom
public LinuxNodeConfig.SwapConfig.BootDiskProfile.Builder mergeFrom(LinuxNodeConfig.SwapConfig.BootDiskProfile other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<LinuxNodeConfig.SwapConfig.BootDiskProfile.Builder>
-
mergeFrom
public LinuxNodeConfig.SwapConfig.BootDiskProfile.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<LinuxNodeConfig.SwapConfig.BootDiskProfile.Builder>- Throws:
IOException
-
getSwapSizeCase
- Specified by:
getSwapSizeCasein interfaceLinuxNodeConfig.SwapConfig.BootDiskProfileOrBuilder
-
clearSwapSize
-
hasSwapSizeGib
public boolean hasSwapSizeGib()Specifies the size of the swap space in gibibytes (GiB).
int64 swap_size_gib = 1;- Specified by:
hasSwapSizeGibin interfaceLinuxNodeConfig.SwapConfig.BootDiskProfileOrBuilder- Returns:
- Whether the swapSizeGib field is set.
-
getSwapSizeGib
public long getSwapSizeGib()Specifies the size of the swap space in gibibytes (GiB).
int64 swap_size_gib = 1;- Specified by:
getSwapSizeGibin interfaceLinuxNodeConfig.SwapConfig.BootDiskProfileOrBuilder- Returns:
- The swapSizeGib.
-
setSwapSizeGib
Specifies the size of the swap space in gibibytes (GiB).
int64 swap_size_gib = 1;- Parameters:
value- The swapSizeGib to set.- Returns:
- This builder for chaining.
-
clearSwapSizeGib
Specifies the size of the swap space in gibibytes (GiB).
int64 swap_size_gib = 1;- Returns:
- This builder for chaining.
-
hasSwapSizePercent
public boolean hasSwapSizePercent()Specifies the size of the swap space as a percentage of the boot disk size.
int32 swap_size_percent = 2;- Specified by:
hasSwapSizePercentin interfaceLinuxNodeConfig.SwapConfig.BootDiskProfileOrBuilder- Returns:
- Whether the swapSizePercent field is set.
-
getSwapSizePercent
public int getSwapSizePercent()Specifies the size of the swap space as a percentage of the boot disk size.
int32 swap_size_percent = 2;- Specified by:
getSwapSizePercentin interfaceLinuxNodeConfig.SwapConfig.BootDiskProfileOrBuilder- Returns:
- The swapSizePercent.
-
setSwapSizePercent
Specifies the size of the swap space as a percentage of the boot disk size.
int32 swap_size_percent = 2;- Parameters:
value- The swapSizePercent to set.- Returns:
- This builder for chaining.
-
clearSwapSizePercent
Specifies the size of the swap space as a percentage of the boot disk size.
int32 swap_size_percent = 2;- Returns:
- This builder for chaining.
-