Class HierarchyControllerConfig.Builder (1.4.0)

public static final class HierarchyControllerConfig.Builder extends GeneratedMessageV3.Builder<HierarchyControllerConfig.Builder> implements HierarchyControllerConfigOrBuilder

Configuration for Hierarchy Controller

Protobuf type google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public HierarchyControllerConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
HierarchyControllerConfig.Builder
Overrides

build()

public HierarchyControllerConfig build()
Returns
TypeDescription
HierarchyControllerConfig

buildPartial()

public HierarchyControllerConfig buildPartial()
Returns
TypeDescription
HierarchyControllerConfig

clear()

public HierarchyControllerConfig.Builder clear()
Returns
TypeDescription
HierarchyControllerConfig.Builder
Overrides

clearEnableHierarchicalResourceQuota()

public HierarchyControllerConfig.Builder clearEnableHierarchicalResourceQuota()

Whether hierarchical resource quota is enabled in this cluster.

bool enable_hierarchical_resource_quota = 3;

Returns
TypeDescription
HierarchyControllerConfig.Builder

This builder for chaining.

clearEnablePodTreeLabels()

public HierarchyControllerConfig.Builder clearEnablePodTreeLabels()

Whether pod tree labels are enabled in this cluster.

bool enable_pod_tree_labels = 2;

Returns
TypeDescription
HierarchyControllerConfig.Builder

This builder for chaining.

clearEnabled()

public HierarchyControllerConfig.Builder clearEnabled()

Whether Hierarchy Controller is enabled in this cluster.

bool enabled = 1;

Returns
TypeDescription
HierarchyControllerConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public HierarchyControllerConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
HierarchyControllerConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public HierarchyControllerConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
HierarchyControllerConfig.Builder
Overrides

clone()

public HierarchyControllerConfig.Builder clone()
Returns
TypeDescription
HierarchyControllerConfig.Builder
Overrides

getDefaultInstanceForType()

public HierarchyControllerConfig getDefaultInstanceForType()
Returns
TypeDescription
HierarchyControllerConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnableHierarchicalResourceQuota()

public boolean getEnableHierarchicalResourceQuota()

Whether hierarchical resource quota is enabled in this cluster.

bool enable_hierarchical_resource_quota = 3;

Returns
TypeDescription
boolean

The enableHierarchicalResourceQuota.

getEnablePodTreeLabels()

public boolean getEnablePodTreeLabels()

Whether pod tree labels are enabled in this cluster.

bool enable_pod_tree_labels = 2;

Returns
TypeDescription
boolean

The enablePodTreeLabels.

getEnabled()

public boolean getEnabled()

Whether Hierarchy Controller is enabled in this cluster.

bool enabled = 1;

Returns
TypeDescription
boolean

The enabled.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(HierarchyControllerConfig other)

public HierarchyControllerConfig.Builder mergeFrom(HierarchyControllerConfig other)
Parameter
NameDescription
otherHierarchyControllerConfig
Returns
TypeDescription
HierarchyControllerConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public HierarchyControllerConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HierarchyControllerConfig.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public HierarchyControllerConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
HierarchyControllerConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final HierarchyControllerConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
HierarchyControllerConfig.Builder
Overrides

setEnableHierarchicalResourceQuota(boolean value)

public HierarchyControllerConfig.Builder setEnableHierarchicalResourceQuota(boolean value)

Whether hierarchical resource quota is enabled in this cluster.

bool enable_hierarchical_resource_quota = 3;

Parameter
NameDescription
valueboolean

The enableHierarchicalResourceQuota to set.

Returns
TypeDescription
HierarchyControllerConfig.Builder

This builder for chaining.

setEnablePodTreeLabels(boolean value)

public HierarchyControllerConfig.Builder setEnablePodTreeLabels(boolean value)

Whether pod tree labels are enabled in this cluster.

bool enable_pod_tree_labels = 2;

Parameter
NameDescription
valueboolean

The enablePodTreeLabels to set.

Returns
TypeDescription
HierarchyControllerConfig.Builder

This builder for chaining.

setEnabled(boolean value)

public HierarchyControllerConfig.Builder setEnabled(boolean value)

Whether Hierarchy Controller is enabled in this cluster.

bool enabled = 1;

Parameter
NameDescription
valueboolean

The enabled to set.

Returns
TypeDescription
HierarchyControllerConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public HierarchyControllerConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
HierarchyControllerConfig.Builder
Overrides

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

public HierarchyControllerConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
HierarchyControllerConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final HierarchyControllerConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
HierarchyControllerConfig.Builder
Overrides