Class 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 type google.cloud.securitycenter.settings.v1beta1.Detector
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Detector.Builder>
      • clear

        public Detector.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Detector.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Detector.Builder>
      • getDefaultInstanceForType

        public Detector getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Detector build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Detector buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Detector.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Detector.Builder>
      • setField

        public Detector.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                         Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Detector.Builder>
      • clearField

        public Detector.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Detector.Builder>
      • clearOneof

        public Detector.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Detector.Builder>
      • addRepeatedField

        public Detector.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Detector.Builder>
      • mergeFrom

        public Detector.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Detector.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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 interface DetectorOrBuilder
        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 interface DetectorOrBuilder
        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 interface DetectorOrBuilder
        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 interface DetectorOrBuilder
        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 interface DetectorOrBuilder
        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 interface DetectorOrBuilder
        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 interface DetectorOrBuilder
        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 interface DetectorOrBuilder
        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 interface DetectorOrBuilder
        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 interface DetectorOrBuilder
        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 interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Detector.Builder>
      • mergeUnknownFields

        public final Detector.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Detector.Builder>