Class Detector.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Detector.Builder>
-
- com.google.cloud.securitycenter.settings.v1beta1.Detector.Builder
-
- All Implemented Interfaces:
DetectorOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Detector
public static final class Detector.Builder extends com.google.protobuf.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 typegoogle.cloud.securitycenter.settings.v1beta1.Detector
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Detector.Builder
addAllDetectorLabels(Iterable<String> values)
Output only.Detector.Builder
addDetectorLabels(String value)
Output only.Detector.Builder
addDetectorLabelsBytes(com.google.protobuf.ByteString value)
Output only.Detector.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Detector
build()
Detector
buildPartial()
Detector.Builder
clear()
Detector.Builder
clearBillingTier()
Output only.Detector.Builder
clearComponent()
Output only.Detector.Builder
clearDetector()
Output only.Detector.Builder
clearDetectorLabels()
Output only.Detector.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Detector.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Detector.Builder
clone()
BillingTier
getBillingTier()
Output only.int
getBillingTierValue()
Output only.String
getComponent()
Output only.com.google.protobuf.ByteString
getComponentBytes()
Output only.Detector
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getDetector()
Output only.com.google.protobuf.ByteString
getDetectorBytes()
Output only.String
getDetectorLabels(int index)
Output only.com.google.protobuf.ByteString
getDetectorLabelsBytes(int index)
Output only.int
getDetectorLabelsCount()
Output only.com.google.protobuf.ProtocolStringList
getDetectorLabelsList()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Detector.Builder
mergeFrom(Detector other)
Detector.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Detector.Builder
mergeFrom(com.google.protobuf.Message other)
Detector.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Detector.Builder
setBillingTier(BillingTier value)
Output only.Detector.Builder
setBillingTierValue(int value)
Output only.Detector.Builder
setComponent(String value)
Output only.Detector.Builder
setComponentBytes(com.google.protobuf.ByteString value)
Output only.Detector.Builder
setDetector(String value)
Output only.Detector.Builder
setDetectorBytes(com.google.protobuf.ByteString value)
Output only.Detector.Builder
setDetectorLabels(int index, String value)
Output only.Detector.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Detector.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Detector.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Detector.Builder>
-
clear
public Detector.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Detector.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Detector.Builder>
-
getDefaultInstanceForType
public Detector getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Detector build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Detector buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Detector.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Detector.Builder>
-
setField
public Detector.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Detector.Builder>
-
clearField
public Detector.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Detector.Builder>
-
clearOneof
public Detector.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Detector.Builder>
-
setRepeatedField
public Detector.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Detector.Builder>
-
addRepeatedField
public Detector.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Detector.Builder>
-
mergeFrom
public Detector.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Detector.Builder>
-
mergeFrom
public Detector.Builder mergeFrom(Detector other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Detector.Builder>
-
mergeFrom
public Detector.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Detector.Builder>
- Throws:
IOException
-
getDetector
public String getDetector()
Output only. Detector Identifier
string detector = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getDetector
in interfaceDetectorOrBuilder
- Returns:
- The detector.
-
getDetectorBytes
public com.google.protobuf.ByteString getDetectorBytes()
Output only. Detector Identifier
string detector = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getDetectorBytes
in interfaceDetectorOrBuilder
- Returns:
- The bytes for detector.
-
setDetector
public Detector.Builder setDetector(String value)
Output only. Detector Identifier
string detector = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The detector to set.- Returns:
- This builder for chaining.
-
clearDetector
public Detector.Builder clearDetector()
Output only. Detector Identifier
string detector = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setDetectorBytes
public Detector.Builder setDetectorBytes(com.google.protobuf.ByteString value)
Output only. Detector Identifier
string detector = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The bytes for detector to set.- Returns:
- This builder for chaining.
-
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];
- Specified by:
getComponent
in interfaceDetectorOrBuilder
- Returns:
- The component.
-
getComponentBytes
public com.google.protobuf.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];
- Specified by:
getComponentBytes
in interfaceDetectorOrBuilder
- Returns:
- The bytes for component.
-
setComponent
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];
- Parameters:
value
- The component to set.- Returns:
- 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:
- This builder for chaining.
-
setComponentBytes
public Detector.Builder setComponentBytes(com.google.protobuf.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];
- Parameters:
value
- The bytes for component to set.- Returns:
- This builder for chaining.
-
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];
- Specified by:
getBillingTierValue
in interfaceDetectorOrBuilder
- Returns:
- The enum numeric value on the wire for billingTier.
-
setBillingTierValue
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];
- Parameters:
value
- The enum numeric value on the wire for billingTier to set.- Returns:
- This builder for chaining.
-
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];
- Specified by:
getBillingTier
in interfaceDetectorOrBuilder
- Returns:
- The billingTier.
-
setBillingTier
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];
- Parameters:
value
- The billingTier to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
getDetectorLabelsList
public com.google.protobuf.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];
- Specified by:
getDetectorLabelsList
in interfaceDetectorOrBuilder
- Returns:
- A list containing the detectorLabels.
-
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];
- Specified by:
getDetectorLabelsCount
in interfaceDetectorOrBuilder
- Returns:
- The count of detectorLabels.
-
getDetectorLabels
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];
- Specified by:
getDetectorLabels
in interfaceDetectorOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The detectorLabels at the given index.
-
getDetectorLabelsBytes
public com.google.protobuf.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];
- Specified by:
getDetectorLabelsBytes
in interfaceDetectorOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the detectorLabels at the given index.
-
setDetectorLabels
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:
index
- The index to set the value at.value
- The detectorLabels to set.- Returns:
- This builder for chaining.
-
addDetectorLabels
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];
- Parameters:
value
- The detectorLabels to add.- Returns:
- This builder for chaining.
-
addAllDetectorLabels
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];
- Parameters:
values
- The detectorLabels to add.- Returns:
- 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:
- This builder for chaining.
-
addDetectorLabelsBytes
public Detector.Builder addDetectorLabelsBytes(com.google.protobuf.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];
- Parameters:
value
- The bytes of the detectorLabels to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Detector.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Detector.Builder>
-
mergeUnknownFields
public final Detector.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Detector.Builder>
-
-