Class ComponentSettings.DetectorSettings.Builder (0.52.0)

public static final class ComponentSettings.DetectorSettings.Builder extends GeneratedMessageV3.Builder<ComponentSettings.DetectorSettings.Builder> implements ComponentSettings.DetectorSettingsOrBuilder

Settings for each detector.

Protobuf type google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ComponentSettings.DetectorSettings build()
Returns
Type Description
ComponentSettings.DetectorSettings

buildPartial()

public ComponentSettings.DetectorSettings buildPartial()
Returns
Type Description
ComponentSettings.DetectorSettings

clear()

public ComponentSettings.DetectorSettings.Builder clear()
Returns
Type Description
ComponentSettings.DetectorSettings.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public ComponentSettings.DetectorSettings.Builder clearState()

ENABLE to enable component, DISABLE to disable and INHERIT to inherit setting from ancestors.

.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState state = 1;

Returns
Type Description
ComponentSettings.DetectorSettings.Builder

This builder for chaining.

clone()

public ComponentSettings.DetectorSettings.Builder clone()
Returns
Type Description
ComponentSettings.DetectorSettings.Builder
Overrides

getDefaultInstanceForType()

public ComponentSettings.DetectorSettings getDefaultInstanceForType()
Returns
Type Description
ComponentSettings.DetectorSettings

getDescriptorForType()

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

getState()

public ComponentEnablementState getState()

ENABLE to enable component, DISABLE to disable and INHERIT to inherit setting from ancestors.

.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState state = 1;

Returns
Type Description
ComponentEnablementState

The state.

getStateValue()

public int getStateValue()

ENABLE to enable component, DISABLE to disable and INHERIT to inherit setting from ancestors.

.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState state = 1;

Returns
Type Description
int

The enum numeric value on the wire for state.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ComponentSettings.DetectorSettings other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setState(ComponentEnablementState value)

public ComponentSettings.DetectorSettings.Builder setState(ComponentEnablementState value)

ENABLE to enable component, DISABLE to disable and INHERIT to inherit setting from ancestors.

.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState state = 1;

Parameter
Name Description
value ComponentEnablementState

The state to set.

Returns
Type Description
ComponentSettings.DetectorSettings.Builder

This builder for chaining.

setStateValue(int value)

public ComponentSettings.DetectorSettings.Builder setStateValue(int value)

ENABLE to enable component, DISABLE to disable and INHERIT to inherit setting from ancestors.

.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState state = 1;

Parameter
Name Description
value int

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

Returns
Type Description
ComponentSettings.DetectorSettings.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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