Class LinuxNodeConfig.HugepagesConfig.Builder (2.55.0)

public static final class LinuxNodeConfig.HugepagesConfig.Builder extends GeneratedMessageV3.Builder<LinuxNodeConfig.HugepagesConfig.Builder> implements LinuxNodeConfig.HugepagesConfigOrBuilder

Hugepages amount in both 2m and 1g size

Protobuf type google.container.v1beta1.LinuxNodeConfig.HugepagesConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LinuxNodeConfig.HugepagesConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LinuxNodeConfig.HugepagesConfig.Builder
Overrides

build()

public LinuxNodeConfig.HugepagesConfig build()
Returns
Type Description
LinuxNodeConfig.HugepagesConfig

buildPartial()

public LinuxNodeConfig.HugepagesConfig buildPartial()
Returns
Type Description
LinuxNodeConfig.HugepagesConfig

clear()

public LinuxNodeConfig.HugepagesConfig.Builder clear()
Returns
Type Description
LinuxNodeConfig.HugepagesConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public LinuxNodeConfig.HugepagesConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
LinuxNodeConfig.HugepagesConfig.Builder
Overrides

clearHugepageSize1G()

public LinuxNodeConfig.HugepagesConfig.Builder clearHugepageSize1G()

Optional. Amount of 1G hugepages

optional int32 hugepage_size1g = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LinuxNodeConfig.HugepagesConfig.Builder

This builder for chaining.

clearHugepageSize2M()

public LinuxNodeConfig.HugepagesConfig.Builder clearHugepageSize2M()

Optional. Amount of 2M hugepages

optional int32 hugepage_size2m = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LinuxNodeConfig.HugepagesConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public LinuxNodeConfig.HugepagesConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
LinuxNodeConfig.HugepagesConfig.Builder
Overrides

clone()

public LinuxNodeConfig.HugepagesConfig.Builder clone()
Returns
Type Description
LinuxNodeConfig.HugepagesConfig.Builder
Overrides

getDefaultInstanceForType()

public LinuxNodeConfig.HugepagesConfig getDefaultInstanceForType()
Returns
Type Description
LinuxNodeConfig.HugepagesConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getHugepageSize1G()

public int getHugepageSize1G()

Optional. Amount of 1G hugepages

optional int32 hugepage_size1g = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The hugepageSize1g.

getHugepageSize2M()

public int getHugepageSize2M()

Optional. Amount of 2M hugepages

optional int32 hugepage_size2m = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The hugepageSize2m.

hasHugepageSize1G()

public boolean hasHugepageSize1G()

Optional. Amount of 1G hugepages

optional int32 hugepage_size1g = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the hugepageSize1g field is set.

hasHugepageSize2M()

public boolean hasHugepageSize2M()

Optional. Amount of 2M hugepages

optional int32 hugepage_size2m = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the hugepageSize2m field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(LinuxNodeConfig.HugepagesConfig other)

public LinuxNodeConfig.HugepagesConfig.Builder mergeFrom(LinuxNodeConfig.HugepagesConfig other)
Parameter
Name Description
other LinuxNodeConfig.HugepagesConfig
Returns
Type Description
LinuxNodeConfig.HugepagesConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LinuxNodeConfig.HugepagesConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LinuxNodeConfig.HugepagesConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public LinuxNodeConfig.HugepagesConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
LinuxNodeConfig.HugepagesConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LinuxNodeConfig.HugepagesConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LinuxNodeConfig.HugepagesConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public LinuxNodeConfig.HugepagesConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LinuxNodeConfig.HugepagesConfig.Builder
Overrides

setHugepageSize1G(int value)

public LinuxNodeConfig.HugepagesConfig.Builder setHugepageSize1G(int value)

Optional. Amount of 1G hugepages

optional int32 hugepage_size1g = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The hugepageSize1g to set.

Returns
Type Description
LinuxNodeConfig.HugepagesConfig.Builder

This builder for chaining.

setHugepageSize2M(int value)

public LinuxNodeConfig.HugepagesConfig.Builder setHugepageSize2M(int value)

Optional. Amount of 2M hugepages

optional int32 hugepage_size2m = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The hugepageSize2m to set.

Returns
Type Description
LinuxNodeConfig.HugepagesConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public LinuxNodeConfig.HugepagesConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
LinuxNodeConfig.HugepagesConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final LinuxNodeConfig.HugepagesConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LinuxNodeConfig.HugepagesConfig.Builder
Overrides