Class Settings

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

    public final class Settings
    extends com.google.protobuf.GeneratedMessageV3
    implements SettingsOrBuilder
     Common configuration settings for all of Security Center.
     
    Protobuf type google.cloud.securitycenter.settings.v1beta1.Settings
    See Also:
    Serialized Form
    • Field Detail

      • BILLING_SETTINGS_FIELD_NUMBER

        public static final int BILLING_SETTINGS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ORG_SERVICE_ACCOUNT_FIELD_NUMBER

        public static final int ORG_SERVICE_ACCOUNT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SINK_SETTINGS_FIELD_NUMBER

        public static final int SINK_SETTINGS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • COMPONENT_SETTINGS_FIELD_NUMBER

        public static final int COMPONENT_SETTINGS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DETECTOR_GROUP_SETTINGS_FIELD_NUMBER

        public static final int DETECTOR_GROUP_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
    • 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 settings resource.
         Formats:
          * `organizations/{organization}/settings`
          * `folders/{folder}/settings`
          * `projects/{project}/settings`
          * `projects/{project}/locations/{location}/clusters/{cluster}/settings`
          * `projects/{project}/regions/{region}/clusters/{cluster}/settings`
          * `projects/{project}/zones/{zone}/clusters/{cluster}/settings`
         
        string name = 1;
        Specified by:
        getName in interface SettingsOrBuilder
        Returns:
        The name.
      • getNameBytes

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

        public boolean hasBillingSettings()
         Billing settings
         
        .google.cloud.securitycenter.settings.v1beta1.BillingSettings billing_settings = 2;
        Specified by:
        hasBillingSettings in interface SettingsOrBuilder
        Returns:
        Whether the billingSettings field is set.
      • getBillingSettings

        public BillingSettings getBillingSettings()
         Billing settings
         
        .google.cloud.securitycenter.settings.v1beta1.BillingSettings billing_settings = 2;
        Specified by:
        getBillingSettings in interface SettingsOrBuilder
        Returns:
        The billingSettings.
      • getStateValue

        public int getStateValue()
         An enum representing the current on boarding state of SCC.
         
        .google.cloud.securitycenter.settings.v1beta1.Settings.OnboardingState state = 3;
        Specified by:
        getStateValue in interface SettingsOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • getState

        public Settings.OnboardingState getState()
         An enum representing the current on boarding state of SCC.
         
        .google.cloud.securitycenter.settings.v1beta1.Settings.OnboardingState state = 3;
        Specified by:
        getState in interface SettingsOrBuilder
        Returns:
        The state.
      • getOrgServiceAccount

        public String getOrgServiceAccount()
         Output only. The organization-level service account to be used for security center
         components. The component must have permission to "act as" the service
         account.
         
        string org_service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getOrgServiceAccount in interface SettingsOrBuilder
        Returns:
        The orgServiceAccount.
      • getOrgServiceAccountBytes

        public com.google.protobuf.ByteString getOrgServiceAccountBytes()
         Output only. The organization-level service account to be used for security center
         components. The component must have permission to "act as" the service
         account.
         
        string org_service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getOrgServiceAccountBytes in interface SettingsOrBuilder
        Returns:
        The bytes for orgServiceAccount.
      • hasSinkSettings

        public boolean hasSinkSettings()
         Sink settings.
         
        .google.cloud.securitycenter.settings.v1beta1.SinkSettings sink_settings = 6;
        Specified by:
        hasSinkSettings in interface SettingsOrBuilder
        Returns:
        Whether the sinkSettings field is set.
      • getSinkSettings

        public SinkSettings getSinkSettings()
         Sink settings.
         
        .google.cloud.securitycenter.settings.v1beta1.SinkSettings sink_settings = 6;
        Specified by:
        getSinkSettings in interface SettingsOrBuilder
        Returns:
        The sinkSettings.
      • getComponentSettingsCount

        public int getComponentSettingsCount()
        Description copied from interface: SettingsOrBuilder
         The settings for detectors and/or scanners.
         
        map<string, .google.cloud.securitycenter.settings.v1beta1.ComponentSettings> component_settings = 7;
        Specified by:
        getComponentSettingsCount in interface SettingsOrBuilder
      • containsComponentSettings

        public boolean containsComponentSettings​(String key)
         The settings for detectors and/or scanners.
         
        map<string, .google.cloud.securitycenter.settings.v1beta1.ComponentSettings> component_settings = 7;
        Specified by:
        containsComponentSettings in interface SettingsOrBuilder
      • getDetectorGroupSettingsCount

        public int getDetectorGroupSettingsCount()
        Description copied from interface: SettingsOrBuilder
         Detector group settings for all Security Center components.
         The key is the name of the detector group and the value is the settings for
         that group.
         
        map<string, .google.cloud.securitycenter.settings.v1beta1.Settings.DetectorGroupSettings> detector_group_settings = 8;
        Specified by:
        getDetectorGroupSettingsCount in interface SettingsOrBuilder
      • containsDetectorGroupSettings

        public boolean containsDetectorGroupSettings​(String key)
         Detector group settings for all Security Center components.
         The key is the name of the detector group and the value is the settings for
         that group.
         
        map<string, .google.cloud.securitycenter.settings.v1beta1.Settings.DetectorGroupSettings> detector_group_settings = 8;
        Specified by:
        containsDetectorGroupSettings in interface SettingsOrBuilder
      • getDetectorGroupSettingsMap

        public Map<String,​Settings.DetectorGroupSettings> getDetectorGroupSettingsMap()
         Detector group settings for all Security Center components.
         The key is the name of the detector group and the value is the settings for
         that group.
         
        map<string, .google.cloud.securitycenter.settings.v1beta1.Settings.DetectorGroupSettings> detector_group_settings = 8;
        Specified by:
        getDetectorGroupSettingsMap in interface SettingsOrBuilder
      • getDetectorGroupSettingsOrThrow

        public Settings.DetectorGroupSettings getDetectorGroupSettingsOrThrow​(String key)
         Detector group settings for all Security Center components.
         The key is the name of the detector group and the value is the settings for
         that group.
         
        map<string, .google.cloud.securitycenter.settings.v1beta1.Settings.DetectorGroupSettings> detector_group_settings = 8;
        Specified by:
        getDetectorGroupSettingsOrThrow in interface SettingsOrBuilder
      • getEtag

        public String getEtag()
         A fingerprint used for optimistic concurrency. If none is provided
         on updates then the existing metadata will be blindly overwritten.
         
        string etag = 9;
        Specified by:
        getEtag in interface SettingsOrBuilder
        Returns:
        The etag.
      • getEtagBytes

        public com.google.protobuf.ByteString getEtagBytes()
         A fingerprint used for optimistic concurrency. If none is provided
         on updates then the existing metadata will be blindly overwritten.
         
        string etag = 9;
        Specified by:
        getEtagBytes in interface SettingsOrBuilder
        Returns:
        The bytes for etag.
      • hasUpdateTime

        public boolean hasUpdateTime()
         Output only. The time these settings were last updated.
         
        .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasUpdateTime in interface SettingsOrBuilder
        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 = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface SettingsOrBuilder
        Returns:
        The updateTime.
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. The time these settings were last updated.
         
        .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface SettingsOrBuilder
      • 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 Settings parseFrom​(ByteBuffer data)
                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

        protected Settings.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static Settings getDefaultInstance()
      • parser

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

        public com.google.protobuf.Parser<Settings> 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 Settings getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder