Class WorkloadPolicyConfig.Builder (2.49.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.v1.WorkloadPolicyConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public WorkloadPolicyConfig build()
Returns
Type Description
WorkloadPolicyConfig

buildPartial()

public WorkloadPolicyConfig buildPartial()
Returns
Type Description
WorkloadPolicyConfig

clear()

public WorkloadPolicyConfig.Builder clear()
Returns
Type Description
WorkloadPolicyConfig.Builder
Overrides

clearAllowNetAdmin()

public WorkloadPolicyConfig.Builder clearAllowNetAdmin()

If true, workloads can use NET_ADMIN capability.

optional bool allow_net_admin = 1;

Returns
Type Description
WorkloadPolicyConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public WorkloadPolicyConfig.Builder clone()
Returns
Type Description
WorkloadPolicyConfig.Builder
Overrides

getAllowNetAdmin()

public boolean getAllowNetAdmin()

If true, workloads can use NET_ADMIN capability.

optional bool allow_net_admin = 1;

Returns
Type Description
boolean

The allowNetAdmin.

getDefaultInstanceForType()

public WorkloadPolicyConfig getDefaultInstanceForType()
Returns
Type Description
WorkloadPolicyConfig

getDescriptorForType()

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

hasAllowNetAdmin()

public boolean hasAllowNetAdmin()

If true, workloads can use NET_ADMIN capability.

optional bool allow_net_admin = 1;

Returns
Type Description
boolean

Whether the allowNetAdmin field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(WorkloadPolicyConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final WorkloadPolicyConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value boolean

The allowNetAdmin to set.

Returns
Type Description
WorkloadPolicyConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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