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.BuilderaddAllDetectorLabels(Iterable<String> values)Output only.Detector.BuilderaddDetectorLabels(String value)Output only.Detector.BuilderaddDetectorLabelsBytes(com.google.protobuf.ByteString value)Output only.Detector.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Detectorbuild()DetectorbuildPartial()Detector.Builderclear()Detector.BuilderclearBillingTier()Output only.Detector.BuilderclearComponent()Output only.Detector.BuilderclearDetector()Output only.Detector.BuilderclearDetectorLabels()Output only.Detector.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Detector.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Detector.Builderclone()BillingTiergetBillingTier()Output only.intgetBillingTierValue()Output only.StringgetComponent()Output only.com.google.protobuf.ByteStringgetComponentBytes()Output only.DetectorgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDetector()Output only.com.google.protobuf.ByteStringgetDetectorBytes()Output only.StringgetDetectorLabels(int index)Output only.com.google.protobuf.ByteStringgetDetectorLabelsBytes(int index)Output only.intgetDetectorLabelsCount()Output only.com.google.protobuf.ProtocolStringListgetDetectorLabelsList()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Detector.BuildermergeFrom(Detector other)Detector.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Detector.BuildermergeFrom(com.google.protobuf.Message other)Detector.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Detector.BuildersetBillingTier(BillingTier value)Output only.Detector.BuildersetBillingTierValue(int value)Output only.Detector.BuildersetComponent(String value)Output only.Detector.BuildersetComponentBytes(com.google.protobuf.ByteString value)Output only.Detector.BuildersetDetector(String value)Output only.Detector.BuildersetDetectorBytes(com.google.protobuf.ByteString value)Output only.Detector.BuildersetDetectorLabels(int index, String value)Output only.Detector.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Detector.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Detector.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Detector.Builder>
-
clear
public Detector.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Detector.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Detector.Builder>
-
getDefaultInstanceForType
public Detector getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Detector build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Detector buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Detector.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Detector.Builder>
-
setField
public Detector.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Detector.Builder>
-
clearField
public Detector.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Detector.Builder>
-
clearOneof
public Detector.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Detector.Builder>
-
setRepeatedField
public Detector.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Detector.Builder>
-
addRepeatedField
public Detector.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Detector.Builder>
-
mergeFrom
public Detector.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Detector.Builder>
-
mergeFrom
public Detector.Builder mergeFrom(Detector other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
getDetectorin 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:
getDetectorBytesin 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:
getComponentin 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:
getComponentBytesin 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:
getBillingTierValuein 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:
getBillingTierin 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:
getDetectorLabelsListin 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:
getDetectorLabelsCountin 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:
getDetectorLabelsin 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:
getDetectorLabelsBytesin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Detector.Builder>
-
mergeUnknownFields
public final Detector.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Detector.Builder>
-
-