Package com.google.container.v1
Class LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile.Builder>
com.google.container.v1.LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile.Builder
- All Implemented Interfaces:
LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfileOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile
public static final class LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile.Builder
extends com.google.protobuf.GeneratedMessage.Builder<LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile.Builder>
implements LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfileOrBuilder
Swap on the local SSD shared with pod ephemeral storage.Protobuf type
google.container.v1.LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile-
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 ephemeral local SSD capacity.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 ephemeral local SSD capacity.booleanSpecifies the size of the swap space in gibibytes (GiB).booleanSpecifies the size of the swap space as a percentage of the ephemeral local SSD capacity.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 ephemeral local SSD capacity.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.EphemeralLocalSsdProfile.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.EphemeralLocalSsdProfile.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.EphemeralLocalSsdProfile.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.EphemeralLocalSsdProfile.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile.Builder>
-
mergeFrom
public LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile.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.EphemeralLocalSsdProfile.Builder>- Throws:
IOException
-
getSwapSizeCase
- Specified by:
getSwapSizeCasein interfaceLinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfileOrBuilder
-
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.EphemeralLocalSsdProfileOrBuilder- 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.EphemeralLocalSsdProfileOrBuilder- 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 ephemeral local SSD capacity.
int32 swap_size_percent = 2;- Specified by:
hasSwapSizePercentin interfaceLinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfileOrBuilder- Returns:
- Whether the swapSizePercent field is set.
-
getSwapSizePercent
public int getSwapSizePercent()Specifies the size of the swap space as a percentage of the ephemeral local SSD capacity.
int32 swap_size_percent = 2;- Specified by:
getSwapSizePercentin interfaceLinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfileOrBuilder- Returns:
- The swapSizePercent.
-
setSwapSizePercent
Specifies the size of the swap space as a percentage of the ephemeral local SSD capacity.
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 ephemeral local SSD capacity.
int32 swap_size_percent = 2;- Returns:
- This builder for chaining.
-