Class ComponentSettings

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings
All Implemented Interfaces:
ComponentSettingsOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class ComponentSettings extends com.google.protobuf.GeneratedMessage implements ComponentSettingsOrBuilder
 Component Settings for Security Command Center
 
Protobuf type google.cloud.securitycenter.settings.v1beta1.ComponentSettings
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • STATE_FIELD_NUMBER

      public static final int STATE_FIELD_NUMBER
      See Also:
    • PROJECT_SERVICE_ACCOUNT_FIELD_NUMBER

      public static final int PROJECT_SERVICE_ACCOUNT_FIELD_NUMBER
      See Also:
    • DETECTOR_SETTINGS_FIELD_NUMBER

      public static final int DETECTOR_SETTINGS_FIELD_NUMBER
      See Also:
    • ETAG_FIELD_NUMBER

      public static final int ETAG_FIELD_NUMBER
      See Also:
    • UPDATE_TIME_FIELD_NUMBER

      public static final int UPDATE_TIME_FIELD_NUMBER
      See Also:
    • CONTAINER_THREAT_DETECTION_SETTINGS_FIELD_NUMBER

      public static final int CONTAINER_THREAT_DETECTION_SETTINGS_FIELD_NUMBER
      See Also:
    • EVENT_THREAT_DETECTION_SETTINGS_FIELD_NUMBER

      public static final int EVENT_THREAT_DETECTION_SETTINGS_FIELD_NUMBER
      See Also:
    • SECURITY_HEALTH_ANALYTICS_SETTINGS_FIELD_NUMBER

      public static final int SECURITY_HEALTH_ANALYTICS_SETTINGS_FIELD_NUMBER
      See Also:
    • WEB_SECURITY_SCANNER_SETTINGS_FIELD_NUMBER

      public static final int WEB_SECURITY_SCANNER_SETTINGS_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getSpecificSettingsCase

      public ComponentSettings.SpecificSettingsCase getSpecificSettingsCase()
      Specified by:
      getSpecificSettingsCase in interface ComponentSettingsOrBuilder
    • getName

      public String getName()
       The relative resource name of the component settings.
       Formats:
       * `organizations/{organization}/components/{component}/settings`
       * `folders/{folder}/components/{component}/settings`
       * `projects/{project}/components/{component}/settings`
       * `projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings`
       * `projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings`
       * `projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings`
       
      string name = 1;
      Specified by:
      getName in interface ComponentSettingsOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The relative resource name of the component settings.
       Formats:
       * `organizations/{organization}/components/{component}/settings`
       * `folders/{folder}/components/{component}/settings`
       * `projects/{project}/components/{component}/settings`
       * `projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings`
       * `projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings`
       * `projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings`
       
      string name = 1;
      Specified by:
      getNameBytes in interface ComponentSettingsOrBuilder
      Returns:
      The bytes for name.
    • getStateValue

      public int getStateValue()
       ENABLE to enable component, DISABLE to disable and INHERIT to inherit
       setting from ancestors.
       
      .google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState state = 2;
      Specified by:
      getStateValue in interface ComponentSettingsOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • getState

      public ComponentEnablementState getState()
       ENABLE to enable component, DISABLE to disable and INHERIT to inherit
       setting from ancestors.
       
      .google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState state = 2;
      Specified by:
      getState in interface ComponentSettingsOrBuilder
      Returns:
      The state.
    • getProjectServiceAccount

      public String getProjectServiceAccount()
       Output only. The service account to be used for security center component.
       The component must have permission to "act as" the service account.
       
      string project_service_account = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getProjectServiceAccount in interface ComponentSettingsOrBuilder
      Returns:
      The projectServiceAccount.
    • getProjectServiceAccountBytes

      public com.google.protobuf.ByteString getProjectServiceAccountBytes()
       Output only. The service account to be used for security center component.
       The component must have permission to "act as" the service account.
       
      string project_service_account = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getProjectServiceAccountBytes in interface ComponentSettingsOrBuilder
      Returns:
      The bytes for projectServiceAccount.
    • getDetectorSettingsCount

      public int getDetectorSettingsCount()
      Description copied from interface: ComponentSettingsOrBuilder
       Settings for detectors.  Not all detectors must have settings present at
       each and every level in the hierarchy.  If it is not present the setting
       will be inherited from its ancestors folders, organizations or the
       defaults.
       
      map<string, .google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings> detector_settings = 4;
      Specified by:
      getDetectorSettingsCount in interface ComponentSettingsOrBuilder
    • containsDetectorSettings

      public boolean containsDetectorSettings(String key)
       Settings for detectors.  Not all detectors must have settings present at
       each and every level in the hierarchy.  If it is not present the setting
       will be inherited from its ancestors folders, organizations or the
       defaults.
       
      map<string, .google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings> detector_settings = 4;
      Specified by:
      containsDetectorSettings in interface ComponentSettingsOrBuilder
    • getDetectorSettings

      Deprecated.
      Specified by:
      getDetectorSettings in interface ComponentSettingsOrBuilder
    • getDetectorSettingsMap

      public Map<String,ComponentSettings.DetectorSettings> getDetectorSettingsMap()
       Settings for detectors.  Not all detectors must have settings present at
       each and every level in the hierarchy.  If it is not present the setting
       will be inherited from its ancestors folders, organizations or the
       defaults.
       
      map<string, .google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings> detector_settings = 4;
      Specified by:
      getDetectorSettingsMap in interface ComponentSettingsOrBuilder
    • getDetectorSettingsOrDefault

      public ComponentSettings.DetectorSettings getDetectorSettingsOrDefault(String key, ComponentSettings.DetectorSettings defaultValue)
       Settings for detectors.  Not all detectors must have settings present at
       each and every level in the hierarchy.  If it is not present the setting
       will be inherited from its ancestors folders, organizations or the
       defaults.
       
      map<string, .google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings> detector_settings = 4;
      Specified by:
      getDetectorSettingsOrDefault in interface ComponentSettingsOrBuilder
    • getDetectorSettingsOrThrow

      public ComponentSettings.DetectorSettings getDetectorSettingsOrThrow(String key)
       Settings for detectors.  Not all detectors must have settings present at
       each and every level in the hierarchy.  If it is not present the setting
       will be inherited from its ancestors folders, organizations or the
       defaults.
       
      map<string, .google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings> detector_settings = 4;
      Specified by:
      getDetectorSettingsOrThrow in interface ComponentSettingsOrBuilder
    • getEtag

      public String getEtag()
       Output only. An fingerprint used for optimistic concurrency. If none is provided
       on updates then the existing metadata will be blindly overwritten.
       
      string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEtag in interface ComponentSettingsOrBuilder
      Returns:
      The etag.
    • getEtagBytes

      public com.google.protobuf.ByteString getEtagBytes()
       Output only. An fingerprint used for optimistic concurrency. If none is provided
       on updates then the existing metadata will be blindly overwritten.
       
      string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEtagBytes in interface ComponentSettingsOrBuilder
      Returns:
      The bytes for etag.
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The time these settings were last updated.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface ComponentSettingsOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The time these settings were last updated.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface ComponentSettingsOrBuilder
      Returns:
      The updateTime.
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The time these settings were last updated.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface ComponentSettingsOrBuilder
    • hasContainerThreatDetectionSettings

      public boolean hasContainerThreatDetectionSettings()
       Container Threate Detection specific settings
       For component, expect CONTAINER_THREAT_DETECTION
       
      .google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings container_threat_detection_settings = 41;
      Specified by:
      hasContainerThreatDetectionSettings in interface ComponentSettingsOrBuilder
      Returns:
      Whether the containerThreatDetectionSettings field is set.
    • getContainerThreatDetectionSettings

      public ContainerThreatDetectionSettings getContainerThreatDetectionSettings()
       Container Threate Detection specific settings
       For component, expect CONTAINER_THREAT_DETECTION
       
      .google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings container_threat_detection_settings = 41;
      Specified by:
      getContainerThreatDetectionSettings in interface ComponentSettingsOrBuilder
      Returns:
      The containerThreatDetectionSettings.
    • getContainerThreatDetectionSettingsOrBuilder

      public ContainerThreatDetectionSettingsOrBuilder getContainerThreatDetectionSettingsOrBuilder()
       Container Threate Detection specific settings
       For component, expect CONTAINER_THREAT_DETECTION
       
      .google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings container_threat_detection_settings = 41;
      Specified by:
      getContainerThreatDetectionSettingsOrBuilder in interface ComponentSettingsOrBuilder
    • hasEventThreatDetectionSettings

      public boolean hasEventThreatDetectionSettings()
       Event Threat Detection specific settings
       For component, expect EVENT_THREAT_DETECTION
       
      .google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings event_threat_detection_settings = 42;
      Specified by:
      hasEventThreatDetectionSettings in interface ComponentSettingsOrBuilder
      Returns:
      Whether the eventThreatDetectionSettings field is set.
    • getEventThreatDetectionSettings

      public EventThreatDetectionSettings getEventThreatDetectionSettings()
       Event Threat Detection specific settings
       For component, expect EVENT_THREAT_DETECTION
       
      .google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings event_threat_detection_settings = 42;
      Specified by:
      getEventThreatDetectionSettings in interface ComponentSettingsOrBuilder
      Returns:
      The eventThreatDetectionSettings.
    • getEventThreatDetectionSettingsOrBuilder

      public EventThreatDetectionSettingsOrBuilder getEventThreatDetectionSettingsOrBuilder()
       Event Threat Detection specific settings
       For component, expect EVENT_THREAT_DETECTION
       
      .google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings event_threat_detection_settings = 42;
      Specified by:
      getEventThreatDetectionSettingsOrBuilder in interface ComponentSettingsOrBuilder
    • hasSecurityHealthAnalyticsSettings

      public boolean hasSecurityHealthAnalyticsSettings()
       Security Health Analytics specific settings
       For component, expect SECURITY_HEALTH_ANALYTICS
       
      .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings security_health_analytics_settings = 44;
      Specified by:
      hasSecurityHealthAnalyticsSettings in interface ComponentSettingsOrBuilder
      Returns:
      Whether the securityHealthAnalyticsSettings field is set.
    • getSecurityHealthAnalyticsSettings

      public SecurityHealthAnalyticsSettings getSecurityHealthAnalyticsSettings()
       Security Health Analytics specific settings
       For component, expect SECURITY_HEALTH_ANALYTICS
       
      .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings security_health_analytics_settings = 44;
      Specified by:
      getSecurityHealthAnalyticsSettings in interface ComponentSettingsOrBuilder
      Returns:
      The securityHealthAnalyticsSettings.
    • getSecurityHealthAnalyticsSettingsOrBuilder

      public SecurityHealthAnalyticsSettingsOrBuilder getSecurityHealthAnalyticsSettingsOrBuilder()
       Security Health Analytics specific settings
       For component, expect SECURITY_HEALTH_ANALYTICS
       
      .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings security_health_analytics_settings = 44;
      Specified by:
      getSecurityHealthAnalyticsSettingsOrBuilder in interface ComponentSettingsOrBuilder
    • hasWebSecurityScannerSettings

      public boolean hasWebSecurityScannerSettings()
       Web Security Scanner specific settings
       For component, expect WEB_SECURITY_SCANNER
       
      .google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner web_security_scanner_settings = 40;
      Specified by:
      hasWebSecurityScannerSettings in interface ComponentSettingsOrBuilder
      Returns:
      Whether the webSecurityScannerSettings field is set.
    • getWebSecurityScannerSettings

      public WebSecurityScanner getWebSecurityScannerSettings()
       Web Security Scanner specific settings
       For component, expect WEB_SECURITY_SCANNER
       
      .google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner web_security_scanner_settings = 40;
      Specified by:
      getWebSecurityScannerSettings in interface ComponentSettingsOrBuilder
      Returns:
      The webSecurityScannerSettings.
    • getWebSecurityScannerSettingsOrBuilder

      public WebSecurityScannerOrBuilder getWebSecurityScannerSettingsOrBuilder()
       Web Security Scanner specific settings
       For component, expect WEB_SECURITY_SCANNER
       
      .google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner web_security_scanner_settings = 40;
      Specified by:
      getWebSecurityScannerSettingsOrBuilder in interface ComponentSettingsOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ComponentSettings parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ComponentSettings parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ComponentSettings parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ComponentSettings parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ComponentSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ComponentSettings parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ComponentSettings parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ComponentSettings parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ComponentSettings parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ComponentSettings parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ComponentSettings parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ComponentSettings parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public ComponentSettings.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ComponentSettings.Builder newBuilder()
    • newBuilder

      public static ComponentSettings.Builder newBuilder(ComponentSettings prototype)
    • toBuilder

      public ComponentSettings.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ComponentSettings.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ComponentSettings getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ComponentSettings> parser()
    • getParserForType

      public com.google.protobuf.Parser<ComponentSettings> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public ComponentSettings getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder