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 Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public Detector.Builder mergeFrom(Detector other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      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.