Class Detector.Builder (0.46.0)

public static final class Detector.Builder extends GeneratedMessageV3.Builder<Detector.Builder> implements DetectorOrBuilder

Detector is a set of detectors or scanners act as individual checks done within a component e.g. bad IP, bad domains, IAM anomaly, cryptomining, open firewall, etc. Detector is independent of Organization, meaning each detector must be defined for a given Security Center component under a specified billing tier. Organizations can configure the list of detectors based on their subscribed billing tier.

Defines a detector, its billing tier and any applicable labels.

Protobuf type google.cloud.securitycenter.settings.v1beta1.Detector

Implements

DetectorOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllDetectorLabels(Iterable<String> values)

public Detector.Builder addAllDetectorLabels(Iterable<String> values)

Output only. Google curated detector labels. These are alphanumeric tags that are not necessarily human readable. Labels can be used to group detectors together in the future. An example might be tagging all detectors “PCI” that help with PCI compliance.

repeated string detector_labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<String>

The detectorLabels to add.

Returns
Type Description
Detector.Builder

This builder for chaining.

addDetectorLabels(String value)

public Detector.Builder addDetectorLabels(String value)

Output only. Google curated detector labels. These are alphanumeric tags that are not necessarily human readable. Labels can be used to group detectors together in the future. An example might be tagging all detectors “PCI” that help with PCI compliance.

repeated string detector_labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The detectorLabels to add.

Returns
Type Description
Detector.Builder

This builder for chaining.

addDetectorLabelsBytes(ByteString value)

public Detector.Builder addDetectorLabelsBytes(ByteString value)

Output only. Google curated detector labels. These are alphanumeric tags that are not necessarily human readable. Labels can be used to group detectors together in the future. An example might be tagging all detectors “PCI” that help with PCI compliance.

repeated string detector_labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes of the detectorLabels to add.

Returns
Type Description
Detector.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Detector build()
Returns
Type Description
Detector

buildPartial()

public Detector buildPartial()
Returns
Type Description
Detector

clear()

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

clearBillingTier()

public Detector.Builder clearBillingTier()

Output only. The billing tier may be different for a detector of the same name in another component.

.google.cloud.securitycenter.settings.v1beta1.BillingTier billing_tier = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Detector.Builder

This builder for chaining.

clearComponent()

public Detector.Builder clearComponent()

Output only. Component that supports detector type. Multiple components may support the same detector.

string component = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Detector.Builder

This builder for chaining.

clearDetector()

public Detector.Builder clearDetector()

Output only. Detector Identifier

string detector = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Detector.Builder

This builder for chaining.

clearDetectorLabels()

public Detector.Builder clearDetectorLabels()

Output only. Google curated detector labels. These are alphanumeric tags that are not necessarily human readable. Labels can be used to group detectors together in the future. An example might be tagging all detectors “PCI” that help with PCI compliance.

repeated string detector_labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Detector.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getBillingTier()

public BillingTier getBillingTier()

Output only. The billing tier may be different for a detector of the same name in another component.

.google.cloud.securitycenter.settings.v1beta1.BillingTier billing_tier = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BillingTier

The billingTier.

getBillingTierValue()

public int getBillingTierValue()

Output only. The billing tier may be different for a detector of the same name in another component.

.google.cloud.securitycenter.settings.v1beta1.BillingTier billing_tier = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for billingTier.

getComponent()

public String getComponent()

Output only. Component that supports detector type. Multiple components may support the same detector.

string component = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The component.

getComponentBytes()

public ByteString getComponentBytes()

Output only. Component that supports detector type. Multiple components may support the same detector.

string component = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for component.

getDefaultInstanceForType()

public Detector getDefaultInstanceForType()
Returns
Type Description
Detector

getDescriptorForType()

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

getDetector()

public String getDetector()

Output only. Detector Identifier

string detector = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The detector.

getDetectorBytes()

public ByteString getDetectorBytes()

Output only. Detector Identifier

string detector = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for detector.

getDetectorLabels(int index)

public String getDetectorLabels(int index)

Output only. Google curated detector labels. These are alphanumeric tags that are not necessarily human readable. Labels can be used to group detectors together in the future. An example might be tagging all detectors “PCI” that help with PCI compliance.

repeated string detector_labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The detectorLabels at the given index.

getDetectorLabelsBytes(int index)

public ByteString getDetectorLabelsBytes(int index)

Output only. Google curated detector labels. These are alphanumeric tags that are not necessarily human readable. Labels can be used to group detectors together in the future. An example might be tagging all detectors “PCI” that help with PCI compliance.

repeated string detector_labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the detectorLabels at the given index.

getDetectorLabelsCount()

public int getDetectorLabelsCount()

Output only. Google curated detector labels. These are alphanumeric tags that are not necessarily human readable. Labels can be used to group detectors together in the future. An example might be tagging all detectors “PCI” that help with PCI compliance.

repeated string detector_labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of detectorLabels.

getDetectorLabelsList()

public ProtocolStringList getDetectorLabelsList()

Output only. Google curated detector labels. These are alphanumeric tags that are not necessarily human readable. Labels can be used to group detectors together in the future. An example might be tagging all detectors “PCI” that help with PCI compliance.

repeated string detector_labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProtocolStringList

A list containing the detectorLabels.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Detector other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBillingTier(BillingTier value)

public Detector.Builder setBillingTier(BillingTier value)

Output only. The billing tier may be different for a detector of the same name in another component.

.google.cloud.securitycenter.settings.v1beta1.BillingTier billing_tier = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value BillingTier

The billingTier to set.

Returns
Type Description
Detector.Builder

This builder for chaining.

setBillingTierValue(int value)

public Detector.Builder setBillingTierValue(int value)

Output only. The billing tier may be different for a detector of the same name in another component.

.google.cloud.securitycenter.settings.v1beta1.BillingTier billing_tier = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
Detector.Builder

This builder for chaining.

setComponent(String value)

public Detector.Builder setComponent(String value)

Output only. Component that supports detector type. Multiple components may support the same detector.

string component = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The component to set.

Returns
Type Description
Detector.Builder

This builder for chaining.

setComponentBytes(ByteString value)

public Detector.Builder setComponentBytes(ByteString value)

Output only. Component that supports detector type. Multiple components may support the same detector.

string component = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for component to set.

Returns
Type Description
Detector.Builder

This builder for chaining.

setDetector(String value)

public Detector.Builder setDetector(String value)

Output only. Detector Identifier

string detector = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The detector to set.

Returns
Type Description
Detector.Builder

This builder for chaining.

setDetectorBytes(ByteString value)

public Detector.Builder setDetectorBytes(ByteString value)

Output only. Detector Identifier

string detector = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for detector to set.

Returns
Type Description
Detector.Builder

This builder for chaining.

setDetectorLabels(int index, String value)

public Detector.Builder setDetectorLabels(int index, String value)

Output only. Google curated detector labels. These are alphanumeric tags that are not necessarily human readable. Labels can be used to group detectors together in the future. An example might be tagging all detectors “PCI” that help with PCI compliance.

repeated string detector_labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value String

The detectorLabels to set.

Returns
Type Description
Detector.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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