Class WorkloadConfig.Builder (2.14.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public WorkloadConfig build()
Returns
TypeDescription
WorkloadConfig

buildPartial()

public WorkloadConfig buildPartial()
Returns
TypeDescription
WorkloadConfig

clear()

public WorkloadConfig.Builder clear()
Returns
TypeDescription
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
TypeDescription
WorkloadConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public WorkloadConfig.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for auditMode.

getDefaultInstanceForType()

public WorkloadConfig getDefaultInstanceForType()
Returns
TypeDescription
WorkloadConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
boolean

Whether the auditMode field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(WorkloadConfig other)

public WorkloadConfig.Builder mergeFrom(WorkloadConfig other)
Parameter
NameDescription
otherWorkloadConfig
Returns
TypeDescription
WorkloadConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final WorkloadConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueWorkloadConfig.Mode

The auditMode to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
WorkloadConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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