Class Detector (0.43.0)

public final class Detector extends GeneratedMessageV3 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 Fields

BILLING_TIER_FIELD_NUMBER

public static final int BILLING_TIER_FIELD_NUMBER
Field Value
TypeDescription
int

COMPONENT_FIELD_NUMBER

public static final int COMPONENT_FIELD_NUMBER
Field Value
TypeDescription
int

DETECTOR_FIELD_NUMBER

public static final int DETECTOR_FIELD_NUMBER
Field Value
TypeDescription
int

DETECTOR_LABELS_FIELD_NUMBER

public static final int DETECTOR_LABELS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Detector getDefaultInstance()
Returns
TypeDescription
Detector

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Detector.Builder newBuilder()
Returns
TypeDescription
Detector.Builder

newBuilder(Detector prototype)

public static Detector.Builder newBuilder(Detector prototype)
Parameter
NameDescription
prototypeDetector
Returns
TypeDescription
Detector.Builder

parseDelimitedFrom(InputStream input)

public static Detector parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Detector
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Detector parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Detector
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Detector parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Detector
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Detector parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Detector
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Detector parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Detector
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Detector parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Detector
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Detector parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Detector
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Detector parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Detector
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Detector parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Detector
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Detector parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Detector
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Detector parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Detector
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Detector parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Detector
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Detector> parser()
Returns
TypeDescription
Parser<Detector>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

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.

getParserForType()

public Parser<Detector> getParserForType()
Returns
TypeDescription
Parser<Detector>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Detector.Builder newBuilderForType()
Returns
TypeDescription
Detector.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Detector.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Detector.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Detector.Builder toBuilder()
Returns
TypeDescription
Detector.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException