Class EffectiveSecurityHealthAnalyticsCustomModule.Builder

  • All Implemented Interfaces:
    EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    EffectiveSecurityHealthAnalyticsCustomModule

    public static final class EffectiveSecurityHealthAnalyticsCustomModule.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<EffectiveSecurityHealthAnalyticsCustomModule.Builder>
    implements EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder
     An EffectiveSecurityHealthAnalyticsCustomModule is the representation of
     a Security Health Analytics custom module at a specified level of the
     resource hierarchy: organization, folder, or project. If a custom module is
     inherited from a parent organization or folder, the value of the
     `enablementState` property in EffectiveSecurityHealthAnalyticsCustomModule is
     set to the value that is effective in the parent, instead of  `INHERITED`.
     For example, if the module is enabled in a parent organization or folder, the
     effective enablement_state for the module in all child folders or projects is
     also `enabled`. EffectiveSecurityHealthAnalyticsCustomModule is read-only.
     
    Protobuf type google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule
    • 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<EffectiveSecurityHealthAnalyticsCustomModule.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<EffectiveSecurityHealthAnalyticsCustomModule.Builder>
      • getDefaultInstanceForType

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<EffectiveSecurityHealthAnalyticsCustomModule.Builder>
      • getName

        public String getName()
         Output only. The resource name of the custom module.
         Its format is
         "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
         or
         "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
         or
         "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. The resource name of the custom module.
         Its format is
         "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
         or
         "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
         or
         "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder
        Returns:
        The bytes for name.
      • setName

        public EffectiveSecurityHealthAnalyticsCustomModule.Builder setName​(String value)
         Output only. The resource name of the custom module.
         Its format is
         "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
         or
         "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
         or
         "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public EffectiveSecurityHealthAnalyticsCustomModule.Builder clearName()
         Output only. The resource name of the custom module.
         Its format is
         "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
         or
         "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
         or
         "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setNameBytes

        public EffectiveSecurityHealthAnalyticsCustomModule.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Output only. The resource name of the custom module.
         Its format is
         "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
         or
         "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
         or
         "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasCustomConfig

        public boolean hasCustomConfig()
         Output only. The user-specified configuration for the module.
         
        .google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCustomConfig in interface EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder
        Returns:
        Whether the customConfig field is set.
      • clearCustomConfig

        public EffectiveSecurityHealthAnalyticsCustomModule.Builder clearCustomConfig()
         Output only. The user-specified configuration for the module.
         
        .google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCustomConfigBuilder

        public CustomConfig.Builder getCustomConfigBuilder()
         Output only. The user-specified configuration for the module.
         
        .google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getEnablementStateValue

        public int getEnablementStateValue()
         Output only. The effective state of enablement for the module at the given
         level of the hierarchy.
         
        .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEnablementStateValue in interface EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder
        Returns:
        The enum numeric value on the wire for enablementState.
      • setEnablementStateValue

        public EffectiveSecurityHealthAnalyticsCustomModule.Builder setEnablementStateValue​(int value)
         Output only. The effective state of enablement for the module at the given
         level of the hierarchy.
         
        .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for enablementState to set.
        Returns:
        This builder for chaining.
      • clearEnablementState

        public EffectiveSecurityHealthAnalyticsCustomModule.Builder clearEnablementState()
         Output only. The effective state of enablement for the module at the given
         level of the hierarchy.
         
        .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getDisplayName

        public String getDisplayName()
         Output only. The display name for the custom module. The name must be
         between 1 and 128 characters, start with a lowercase letter, and contain
         alphanumeric characters or underscores only.
         
        string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getDisplayName in interface EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder
        Returns:
        The displayName.
      • getDisplayNameBytes

        public com.google.protobuf.ByteString getDisplayNameBytes()
         Output only. The display name for the custom module. The name must be
         between 1 and 128 characters, start with a lowercase letter, and contain
         alphanumeric characters or underscores only.
         
        string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getDisplayNameBytes in interface EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder
        Returns:
        The bytes for displayName.
      • setDisplayName

        public EffectiveSecurityHealthAnalyticsCustomModule.Builder setDisplayName​(String value)
         Output only. The display name for the custom module. The name must be
         between 1 and 128 characters, start with a lowercase letter, and contain
         alphanumeric characters or underscores only.
         
        string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The displayName to set.
        Returns:
        This builder for chaining.
      • clearDisplayName

        public EffectiveSecurityHealthAnalyticsCustomModule.Builder clearDisplayName()
         Output only. The display name for the custom module. The name must be
         between 1 and 128 characters, start with a lowercase letter, and contain
         alphanumeric characters or underscores only.
         
        string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setDisplayNameBytes

        public EffectiveSecurityHealthAnalyticsCustomModule.Builder setDisplayNameBytes​(com.google.protobuf.ByteString value)
         Output only. The display name for the custom module. The name must be
         between 1 and 128 characters, start with a lowercase letter, and contain
         alphanumeric characters or underscores only.
         
        string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for displayName to set.
        Returns:
        This builder for chaining.