Class ProtectConfig.Builder (2.43.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ProtectConfig build()
Returns
TypeDescription
ProtectConfig

buildPartial()

public ProtectConfig buildPartial()
Returns
TypeDescription
ProtectConfig

clear()

public ProtectConfig.Builder clear()
Returns
TypeDescription
ProtectConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public ProtectConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtectConfig.Builder

This builder for chaining.

clone()

public ProtectConfig.Builder clone()
Returns
TypeDescription
ProtectConfig.Builder
Overrides

getDefaultInstanceForType()

public ProtectConfig getDefaultInstanceForType()
Returns
TypeDescription
ProtectConfig

getDescriptorForType()

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

Whether the workloadVulnerabilityMode field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ProtectConfig other)

public ProtectConfig.Builder mergeFrom(ProtectConfig other)
Parameter
NameDescription
otherProtectConfig
Returns
TypeDescription
ProtectConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final ProtectConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueWorkloadConfig
Returns
TypeDescription
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
NameDescription
builderForValueWorkloadConfig.Builder
Returns
TypeDescription
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
NameDescription
valueProtectConfig.WorkloadVulnerabilityMode

The workloadVulnerabilityMode to set.

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

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

Returns
TypeDescription
ProtectConfig.Builder

This builder for chaining.