Class WorkloadConfig.Builder (2.86.0)

public static final class WorkloadConfig.Builder extends GeneratedMessage.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

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.

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 GeneratedMessage.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

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.