Class Detector.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionaddAllDetectorLabels(Iterable<String> values) Output only.addDetectorLabels(String value) Output only.addDetectorLabelsBytes(com.google.protobuf.ByteString value) Output only.build()clear()Output only.Output only.Output only.Output only.Output only.intOutput only.Output only.com.google.protobuf.ByteStringOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.getDetectorLabels(int index) Output only.com.google.protobuf.ByteStringgetDetectorLabelsBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setBillingTier(BillingTier value) Output only.setBillingTierValue(int value) Output only.setComponent(String value) Output only.setComponentBytes(com.google.protobuf.ByteString value) Output only.setDetector(String value) Output only.setDetectorBytes(com.google.protobuf.ByteString value) Output only.setDetectorLabels(int index, String value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Detector.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<Detector.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Detector.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
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
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
Output only. Detector Identifier
string detector = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setDetectorBytes
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
-