Class Detector.Builder (0.17.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
TypeDescription
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
NameDescription
valuesIterable<String>

The detectorLabels to add.

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

The detectorLabels to add.

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

The bytes of the detectorLabels to add.

Returns
TypeDescription
Detector.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Detector build()
Returns
TypeDescription
Detector

buildPartial()

public Detector buildPartial()
Returns
TypeDescription
Detector

clear()

public Detector.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Detector.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public Detector.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Detector.Builder
Overrides

clone()

public Detector.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for component.

getDefaultInstanceForType()

public Detector getDefaultInstanceForType()
Returns
TypeDescription
Detector

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDetector()

public String getDetector()

Output only. Detector Identifier

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

Returns
TypeDescription
String

The detector.

getDetectorBytes()

public ByteString getDetectorBytes()

Output only. Detector Identifier

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

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

The index of the element to return.

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

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the detectorLabels.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Detector other)

public Detector.Builder mergeFrom(Detector other)
Parameter
NameDescription
otherDetector
Returns
TypeDescription
Detector.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Detector.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueBillingTier

The billingTier to set.

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

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

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

The component to set.

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

The bytes for component to set.

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

The detector to set.

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

The bytes for detector to set.

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

The index to set the value at.

valueString

The detectorLabels to set.

Returns
TypeDescription
Detector.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Detector.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Detector.Builder
Overrides

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

public Detector.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Detector.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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