Class ProtectConfig.Builder (2.5.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

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

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.

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