Class WorkloadPolicyConfig.Builder (2.37.0)

public static final class WorkloadPolicyConfig.Builder extends GeneratedMessageV3.Builder<WorkloadPolicyConfig.Builder> implements WorkloadPolicyConfigOrBuilder

WorkloadPolicyConfig is the configuration of workload policy for autopilot clusters.

Protobuf type google.container.v1beta1.WorkloadPolicyConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public WorkloadPolicyConfig build()
Returns
TypeDescription
WorkloadPolicyConfig

buildPartial()

public WorkloadPolicyConfig buildPartial()
Returns
TypeDescription
WorkloadPolicyConfig

clear()

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

clearAllowNetAdmin()

public WorkloadPolicyConfig.Builder clearAllowNetAdmin()

If true, workloads can use NET_ADMIN capability.

optional bool allow_net_admin = 1;

Returns
TypeDescription
WorkloadPolicyConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAllowNetAdmin()

public boolean getAllowNetAdmin()

If true, workloads can use NET_ADMIN capability.

optional bool allow_net_admin = 1;

Returns
TypeDescription
boolean

The allowNetAdmin.

getDefaultInstanceForType()

public WorkloadPolicyConfig getDefaultInstanceForType()
Returns
TypeDescription
WorkloadPolicyConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

hasAllowNetAdmin()

public boolean hasAllowNetAdmin()

If true, workloads can use NET_ADMIN capability.

optional bool allow_net_admin = 1;

Returns
TypeDescription
boolean

Whether the allowNetAdmin field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(WorkloadPolicyConfig other)

public WorkloadPolicyConfig.Builder mergeFrom(WorkloadPolicyConfig other)
Parameter
NameDescription
otherWorkloadPolicyConfig
Returns
TypeDescription
WorkloadPolicyConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAllowNetAdmin(boolean value)

public WorkloadPolicyConfig.Builder setAllowNetAdmin(boolean value)

If true, workloads can use NET_ADMIN capability.

optional bool allow_net_admin = 1;

Parameter
NameDescription
valueboolean

The allowNetAdmin to set.

Returns
TypeDescription
WorkloadPolicyConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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