Class WorkloadConfig.Builder (2.50.0)

public static final class WorkloadConfig.Builder extends GeneratedMessageV3.Builder<WorkloadConfig.Builder> implements WorkloadConfigOrBuilder

WorkloadConfig defines the flags to enable or disable the workload configurations for the cluster.

Protobuf type google.container.v1beta1.WorkloadConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public WorkloadConfig build()
Returns
Type Description
WorkloadConfig

buildPartial()

public WorkloadConfig buildPartial()
Returns
Type Description
WorkloadConfig

clear()

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

clearAuditMode()

public WorkloadConfig.Builder clearAuditMode()

Sets which mode of auditing should be used for the cluster's workloads.

optional .google.container.v1beta1.WorkloadConfig.Mode audit_mode = 1;

Returns
Type Description
WorkloadConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAuditMode()

public WorkloadConfig.Mode getAuditMode()

Sets which mode of auditing should be used for the cluster's workloads.

optional .google.container.v1beta1.WorkloadConfig.Mode audit_mode = 1;

Returns
Type Description
WorkloadConfig.Mode

The auditMode.

getAuditModeValue()

public int getAuditModeValue()

Sets which mode of auditing should be used for the cluster's workloads.

optional .google.container.v1beta1.WorkloadConfig.Mode audit_mode = 1;

Returns
Type Description
int

The enum numeric value on the wire for auditMode.

getDefaultInstanceForType()

public WorkloadConfig getDefaultInstanceForType()
Returns
Type Description
WorkloadConfig

getDescriptorForType()

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

hasAuditMode()

public boolean hasAuditMode()

Sets which mode of auditing should be used for the cluster's workloads.

optional .google.container.v1beta1.WorkloadConfig.Mode audit_mode = 1;

Returns
Type Description
boolean

Whether the auditMode field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(WorkloadConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAuditMode(WorkloadConfig.Mode value)

public WorkloadConfig.Builder setAuditMode(WorkloadConfig.Mode value)

Sets which mode of auditing should be used for the cluster's workloads.

optional .google.container.v1beta1.WorkloadConfig.Mode audit_mode = 1;

Parameter
Name Description
value WorkloadConfig.Mode

The auditMode to set.

Returns
Type Description
WorkloadConfig.Builder

This builder for chaining.

setAuditModeValue(int value)

public WorkloadConfig.Builder setAuditModeValue(int value)

Sets which mode of auditing should be used for the cluster's workloads.

optional .google.container.v1beta1.WorkloadConfig.Mode audit_mode = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for auditMode to set.

Returns
Type Description
WorkloadConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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