Class ComponentSettings.DetectorSettings.Builder (0.15.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ComponentSettings.DetectorSettings build()
Returns
TypeDescription
ComponentSettings.DetectorSettings

buildPartial()

public ComponentSettings.DetectorSettings buildPartial()
Returns
TypeDescription
ComponentSettings.DetectorSettings

clear()

public ComponentSettings.DetectorSettings.Builder clear()
Returns
TypeDescription
ComponentSettings.DetectorSettings.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

public ComponentSettings.DetectorSettings.Builder clone()
Returns
TypeDescription
ComponentSettings.DetectorSettings.Builder
Overrides

getDefaultInstanceForType()

public ComponentSettings.DetectorSettings getDefaultInstanceForType()
Returns
TypeDescription
ComponentSettings.DetectorSettings

getDescriptorForType()

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

The enum numeric value on the wire for state.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ComponentSettings.DetectorSettings other)

public ComponentSettings.DetectorSettings.Builder mergeFrom(ComponentSettings.DetectorSettings other)
Parameter
NameDescription
otherComponentSettings.DetectorSettings
Returns
TypeDescription
ComponentSettings.DetectorSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ComponentSettings.DetectorSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ComponentSettings.DetectorSettings.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ComponentSettings.DetectorSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueComponentEnablementState

The state to set.

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

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

Returns
TypeDescription
ComponentSettings.DetectorSettings.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ComponentSettings.DetectorSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ComponentSettings.DetectorSettings.Builder
Overrides