Class ComponentSettings.DetectorSettings.Builder (0.24.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

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

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
Overrides

build()

public ComponentSettings.DetectorSettings build()

buildPartial()

public ComponentSettings.DetectorSettings buildPartial()

clear()

public ComponentSettings.DetectorSettings.Builder clear()
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

getDefaultInstanceForType()

public ComponentSettings.DetectorSettings getDefaultInstanceForType()

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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