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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public WorkloadConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public WorkloadConfig build()
Returns
buildPartial()
public WorkloadConfig buildPartial()
Returns
clear()
public WorkloadConfig.Builder clear()
Returns
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
clearField(Descriptors.FieldDescriptor field)
public WorkloadConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public WorkloadConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public WorkloadConfig.Builder clone()
Returns
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
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
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(WorkloadConfig other)
public WorkloadConfig.Builder mergeFrom(WorkloadConfig other)
Parameter
Returns
public WorkloadConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public WorkloadConfig.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final WorkloadConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
setField(Descriptors.FieldDescriptor field, Object value)
public WorkloadConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public WorkloadConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final WorkloadConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides