Class CompliancePostureConfig.Builder (2.55.0)

public static final class CompliancePostureConfig.Builder extends GeneratedMessageV3.Builder<CompliancePostureConfig.Builder> implements CompliancePostureConfigOrBuilder

CompliancePostureConfig defines the settings needed to enable/disable features for the Compliance Posture.

Protobuf type google.container.v1beta1.CompliancePostureConfig

Static Methods

getDescriptor()

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

Methods

addAllComplianceStandards(Iterable<? extends CompliancePostureConfig.ComplianceStandard> values)

public CompliancePostureConfig.Builder addAllComplianceStandards(Iterable<? extends CompliancePostureConfig.ComplianceStandard> values)

List of enabled compliance standards.

repeated .google.container.v1beta1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2;

Parameter
Name Description
values Iterable<? extends com.google.container.v1beta1.CompliancePostureConfig.ComplianceStandard>
Returns
Type Description
CompliancePostureConfig.Builder

addComplianceStandards(CompliancePostureConfig.ComplianceStandard value)

public CompliancePostureConfig.Builder addComplianceStandards(CompliancePostureConfig.ComplianceStandard value)

List of enabled compliance standards.

repeated .google.container.v1beta1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2;

Parameter
Name Description
value CompliancePostureConfig.ComplianceStandard
Returns
Type Description
CompliancePostureConfig.Builder

addComplianceStandards(CompliancePostureConfig.ComplianceStandard.Builder builderForValue)

public CompliancePostureConfig.Builder addComplianceStandards(CompliancePostureConfig.ComplianceStandard.Builder builderForValue)

List of enabled compliance standards.

repeated .google.container.v1beta1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2;

Parameter
Name Description
builderForValue CompliancePostureConfig.ComplianceStandard.Builder
Returns
Type Description
CompliancePostureConfig.Builder

addComplianceStandards(int index, CompliancePostureConfig.ComplianceStandard value)

public CompliancePostureConfig.Builder addComplianceStandards(int index, CompliancePostureConfig.ComplianceStandard value)

List of enabled compliance standards.

repeated .google.container.v1beta1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2;

Parameters
Name Description
index int
value CompliancePostureConfig.ComplianceStandard
Returns
Type Description
CompliancePostureConfig.Builder

addComplianceStandards(int index, CompliancePostureConfig.ComplianceStandard.Builder builderForValue)

public CompliancePostureConfig.Builder addComplianceStandards(int index, CompliancePostureConfig.ComplianceStandard.Builder builderForValue)

List of enabled compliance standards.

repeated .google.container.v1beta1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2;

Parameters
Name Description
index int
builderForValue CompliancePostureConfig.ComplianceStandard.Builder
Returns
Type Description
CompliancePostureConfig.Builder

addComplianceStandardsBuilder()

public CompliancePostureConfig.ComplianceStandard.Builder addComplianceStandardsBuilder()

List of enabled compliance standards.

repeated .google.container.v1beta1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2;

Returns
Type Description
CompliancePostureConfig.ComplianceStandard.Builder

addComplianceStandardsBuilder(int index)

public CompliancePostureConfig.ComplianceStandard.Builder addComplianceStandardsBuilder(int index)

List of enabled compliance standards.

repeated .google.container.v1beta1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2;

Parameter
Name Description
index int
Returns
Type Description
CompliancePostureConfig.ComplianceStandard.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CompliancePostureConfig build()
Returns
Type Description
CompliancePostureConfig

buildPartial()

public CompliancePostureConfig buildPartial()
Returns
Type Description
CompliancePostureConfig

clear()

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

clearComplianceStandards()

public CompliancePostureConfig.Builder clearComplianceStandards()

List of enabled compliance standards.

repeated .google.container.v1beta1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2;

Returns
Type Description
CompliancePostureConfig.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMode()

public CompliancePostureConfig.Builder clearMode()

Defines the enablement mode for Compliance Posture.

optional .google.container.v1beta1.CompliancePostureConfig.Mode mode = 1;

Returns
Type Description
CompliancePostureConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getComplianceStandards(int index)

public CompliancePostureConfig.ComplianceStandard getComplianceStandards(int index)

List of enabled compliance standards.

repeated .google.container.v1beta1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2;

Parameter
Name Description
index int
Returns
Type Description
CompliancePostureConfig.ComplianceStandard

getComplianceStandardsBuilder(int index)

public CompliancePostureConfig.ComplianceStandard.Builder getComplianceStandardsBuilder(int index)

List of enabled compliance standards.

repeated .google.container.v1beta1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2;

Parameter
Name Description
index int
Returns
Type Description
CompliancePostureConfig.ComplianceStandard.Builder

getComplianceStandardsBuilderList()

public List<CompliancePostureConfig.ComplianceStandard.Builder> getComplianceStandardsBuilderList()

List of enabled compliance standards.

repeated .google.container.v1beta1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2;

Returns
Type Description
List<Builder>

getComplianceStandardsCount()

public int getComplianceStandardsCount()

List of enabled compliance standards.

repeated .google.container.v1beta1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2;

Returns
Type Description
int

getComplianceStandardsList()

public List<CompliancePostureConfig.ComplianceStandard> getComplianceStandardsList()

List of enabled compliance standards.

repeated .google.container.v1beta1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2;

Returns
Type Description
List<ComplianceStandard>

getComplianceStandardsOrBuilder(int index)

public CompliancePostureConfig.ComplianceStandardOrBuilder getComplianceStandardsOrBuilder(int index)

List of enabled compliance standards.

repeated .google.container.v1beta1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2;

Parameter
Name Description
index int
Returns
Type Description
CompliancePostureConfig.ComplianceStandardOrBuilder

getComplianceStandardsOrBuilderList()

public List<? extends CompliancePostureConfig.ComplianceStandardOrBuilder> getComplianceStandardsOrBuilderList()

List of enabled compliance standards.

repeated .google.container.v1beta1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2;

Returns
Type Description
List<? extends com.google.container.v1beta1.CompliancePostureConfig.ComplianceStandardOrBuilder>

getDefaultInstanceForType()

public CompliancePostureConfig getDefaultInstanceForType()
Returns
Type Description
CompliancePostureConfig

getDescriptorForType()

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

getMode()

public CompliancePostureConfig.Mode getMode()

Defines the enablement mode for Compliance Posture.

optional .google.container.v1beta1.CompliancePostureConfig.Mode mode = 1;

Returns
Type Description
CompliancePostureConfig.Mode

The mode.

getModeValue()

public int getModeValue()

Defines the enablement mode for Compliance Posture.

optional .google.container.v1beta1.CompliancePostureConfig.Mode mode = 1;

Returns
Type Description
int

The enum numeric value on the wire for mode.

hasMode()

public boolean hasMode()

Defines the enablement mode for Compliance Posture.

optional .google.container.v1beta1.CompliancePostureConfig.Mode mode = 1;

Returns
Type Description
boolean

Whether the mode field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CompliancePostureConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeComplianceStandards(int index)

public CompliancePostureConfig.Builder removeComplianceStandards(int index)

List of enabled compliance standards.

repeated .google.container.v1beta1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2;

Parameter
Name Description
index int
Returns
Type Description
CompliancePostureConfig.Builder

setComplianceStandards(int index, CompliancePostureConfig.ComplianceStandard value)

public CompliancePostureConfig.Builder setComplianceStandards(int index, CompliancePostureConfig.ComplianceStandard value)

List of enabled compliance standards.

repeated .google.container.v1beta1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2;

Parameters
Name Description
index int
value CompliancePostureConfig.ComplianceStandard
Returns
Type Description
CompliancePostureConfig.Builder

setComplianceStandards(int index, CompliancePostureConfig.ComplianceStandard.Builder builderForValue)

public CompliancePostureConfig.Builder setComplianceStandards(int index, CompliancePostureConfig.ComplianceStandard.Builder builderForValue)

List of enabled compliance standards.

repeated .google.container.v1beta1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2;

Parameters
Name Description
index int
builderForValue CompliancePostureConfig.ComplianceStandard.Builder
Returns
Type Description
CompliancePostureConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMode(CompliancePostureConfig.Mode value)

public CompliancePostureConfig.Builder setMode(CompliancePostureConfig.Mode value)

Defines the enablement mode for Compliance Posture.

optional .google.container.v1beta1.CompliancePostureConfig.Mode mode = 1;

Parameter
Name Description
value CompliancePostureConfig.Mode

The mode to set.

Returns
Type Description
CompliancePostureConfig.Builder

This builder for chaining.

setModeValue(int value)

public CompliancePostureConfig.Builder setModeValue(int value)

Defines the enablement mode for Compliance Posture.

optional .google.container.v1beta1.CompliancePostureConfig.Mode mode = 1;

Parameter
Name Description
value int

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

Returns
Type Description
CompliancePostureConfig.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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