Class ComponentSettings.DetectorSettings.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ComponentSettings.DetectorSettings.Builder>
com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings.Builder
All Implemented Interfaces:
ComponentSettings.DetectorSettingsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ComponentSettings.DetectorSettings

public static final class ComponentSettings.DetectorSettings.Builder extends com.google.protobuf.GeneratedMessage.Builder<ComponentSettings.DetectorSettings.Builder> implements ComponentSettings.DetectorSettingsOrBuilder
 Settings for each detector.
 
Protobuf type google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings
  • 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<ComponentSettings.DetectorSettings.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<ComponentSettings.DetectorSettings.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<ComponentSettings.DetectorSettings.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ComponentSettings.DetectorSettings buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ComponentSettings.DetectorSettings.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<ComponentSettings.DetectorSettings.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ComponentSettings.DetectorSettings.Builder>
    • mergeFrom

      public ComponentSettings.DetectorSettings.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<ComponentSettings.DetectorSettings.Builder>
      Throws:
      IOException
    • 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 = 1;
      Specified by:
      getStateValue in interface ComponentSettings.DetectorSettingsOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public ComponentSettings.DetectorSettings.Builder setStateValue(int value)
       ENABLE to enable component, DISABLE to disable and INHERIT to inherit
       setting from ancestors.
       
      .google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState state = 1;
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • 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 = 1;
      Specified by:
      getState in interface ComponentSettings.DetectorSettingsOrBuilder
      Returns:
      The state.
    • setState

       ENABLE to enable component, DISABLE to disable and INHERIT to inherit
       setting from ancestors.
       
      .google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState state = 1;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

       ENABLE to enable component, DISABLE to disable and INHERIT to inherit
       setting from ancestors.
       
      .google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState state = 1;
      Returns:
      This builder for chaining.