Class ComponentSettings

  • All Implemented Interfaces:
    ComponentSettingsOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class ComponentSettings
    extends com.google.protobuf.GeneratedMessageV3
    implements ComponentSettingsOrBuilder
     Component Settings for Security Command Center
     
    Protobuf type google.cloud.securitycenter.settings.v1beta1.ComponentSettings
    See Also:
    Serialized Form
    • Field Detail

      • PROJECT_SERVICE_ACCOUNT_FIELD_NUMBER

        public static final int PROJECT_SERVICE_ACCOUNT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DETECTOR_SETTINGS_FIELD_NUMBER

        public static final int DETECTOR_SETTINGS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • UPDATE_TIME_FIELD_NUMBER

        public static final int UPDATE_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CONTAINER_THREAT_DETECTION_SETTINGS_FIELD_NUMBER

        public static final int CONTAINER_THREAT_DETECTION_SETTINGS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • EVENT_THREAT_DETECTION_SETTINGS_FIELD_NUMBER

        public static final int EVENT_THREAT_DETECTION_SETTINGS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SECURITY_HEALTH_ANALYTICS_SETTINGS_FIELD_NUMBER

        public static final int SECURITY_HEALTH_ANALYTICS_SETTINGS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • WEB_SECURITY_SCANNER_SETTINGS_FIELD_NUMBER

        public static final int WEB_SECURITY_SCANNER_SETTINGS_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

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

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

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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​(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
      • 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.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
      • getDefaultInstanceForType

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