Class ProtectConfig.Builder (2.45.0)

public static final class ProtectConfig.Builder extends GeneratedMessageV3.Builder<ProtectConfig.Builder> implements ProtectConfigOrBuilder

ProtectConfig defines the flags needed to enable/disable features for the Protect API.

Protobuf type google.container.v1beta1.ProtectConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ProtectConfig build()
Returns
Type Description
ProtectConfig

buildPartial()

public ProtectConfig buildPartial()
Returns
Type Description
ProtectConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearWorkloadConfig()

public ProtectConfig.Builder clearWorkloadConfig()

WorkloadConfig defines which actions are enabled for a cluster's workload configurations.

optional .google.container.v1beta1.WorkloadConfig workload_config = 1;

Returns
Type Description
ProtectConfig.Builder

clearWorkloadVulnerabilityMode()

public ProtectConfig.Builder clearWorkloadVulnerabilityMode()

Sets which mode to use for Protect workload vulnerability scanning feature.

optional .google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode workload_vulnerability_mode = 2;

Returns
Type Description
ProtectConfig.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ProtectConfig getDefaultInstanceForType()
Returns
Type Description
ProtectConfig

getDescriptorForType()

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

getWorkloadConfig()

public WorkloadConfig getWorkloadConfig()

WorkloadConfig defines which actions are enabled for a cluster's workload configurations.

optional .google.container.v1beta1.WorkloadConfig workload_config = 1;

Returns
Type Description
WorkloadConfig

The workloadConfig.

getWorkloadConfigBuilder()

public WorkloadConfig.Builder getWorkloadConfigBuilder()

WorkloadConfig defines which actions are enabled for a cluster's workload configurations.

optional .google.container.v1beta1.WorkloadConfig workload_config = 1;

Returns
Type Description
WorkloadConfig.Builder

getWorkloadConfigOrBuilder()

public WorkloadConfigOrBuilder getWorkloadConfigOrBuilder()

WorkloadConfig defines which actions are enabled for a cluster's workload configurations.

optional .google.container.v1beta1.WorkloadConfig workload_config = 1;

Returns
Type Description
WorkloadConfigOrBuilder

getWorkloadVulnerabilityMode()

public ProtectConfig.WorkloadVulnerabilityMode getWorkloadVulnerabilityMode()

Sets which mode to use for Protect workload vulnerability scanning feature.

optional .google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode workload_vulnerability_mode = 2;

Returns
Type Description
ProtectConfig.WorkloadVulnerabilityMode

The workloadVulnerabilityMode.

getWorkloadVulnerabilityModeValue()

public int getWorkloadVulnerabilityModeValue()

Sets which mode to use for Protect workload vulnerability scanning feature.

optional .google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode workload_vulnerability_mode = 2;

Returns
Type Description
int

The enum numeric value on the wire for workloadVulnerabilityMode.

hasWorkloadConfig()

public boolean hasWorkloadConfig()

WorkloadConfig defines which actions are enabled for a cluster's workload configurations.

optional .google.container.v1beta1.WorkloadConfig workload_config = 1;

Returns
Type Description
boolean

Whether the workloadConfig field is set.

hasWorkloadVulnerabilityMode()

public boolean hasWorkloadVulnerabilityMode()

Sets which mode to use for Protect workload vulnerability scanning feature.

optional .google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode workload_vulnerability_mode = 2;

Returns
Type Description
boolean

Whether the workloadVulnerabilityMode field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ProtectConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeWorkloadConfig(WorkloadConfig value)

public ProtectConfig.Builder mergeWorkloadConfig(WorkloadConfig value)

WorkloadConfig defines which actions are enabled for a cluster's workload configurations.

optional .google.container.v1beta1.WorkloadConfig workload_config = 1;

Parameter
Name Description
value WorkloadConfig
Returns
Type Description
ProtectConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setWorkloadConfig(WorkloadConfig value)

public ProtectConfig.Builder setWorkloadConfig(WorkloadConfig value)

WorkloadConfig defines which actions are enabled for a cluster's workload configurations.

optional .google.container.v1beta1.WorkloadConfig workload_config = 1;

Parameter
Name Description
value WorkloadConfig
Returns
Type Description
ProtectConfig.Builder

setWorkloadConfig(WorkloadConfig.Builder builderForValue)

public ProtectConfig.Builder setWorkloadConfig(WorkloadConfig.Builder builderForValue)

WorkloadConfig defines which actions are enabled for a cluster's workload configurations.

optional .google.container.v1beta1.WorkloadConfig workload_config = 1;

Parameter
Name Description
builderForValue WorkloadConfig.Builder
Returns
Type Description
ProtectConfig.Builder

setWorkloadVulnerabilityMode(ProtectConfig.WorkloadVulnerabilityMode value)

public ProtectConfig.Builder setWorkloadVulnerabilityMode(ProtectConfig.WorkloadVulnerabilityMode value)

Sets which mode to use for Protect workload vulnerability scanning feature.

optional .google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode workload_vulnerability_mode = 2;

Parameter
Name Description
value ProtectConfig.WorkloadVulnerabilityMode

The workloadVulnerabilityMode to set.

Returns
Type Description
ProtectConfig.Builder

This builder for chaining.

setWorkloadVulnerabilityModeValue(int value)

public ProtectConfig.Builder setWorkloadVulnerabilityModeValue(int value)

Sets which mode to use for Protect workload vulnerability scanning feature.

optional .google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode workload_vulnerability_mode = 2;

Parameter
Name Description
value int

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

Returns
Type Description
ProtectConfig.Builder

This builder for chaining.