Class WebKeySettings.ChallengeSettings.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<WebKeySettings.ChallengeSettings.Builder>
com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSettings.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, WebKeySettings.ChallengeSettingsOrBuilder, Cloneable
Enclosing class:
WebKeySettings.ChallengeSettings

public static final class WebKeySettings.ChallengeSettings.Builder extends com.google.protobuf.GeneratedMessage.Builder<WebKeySettings.ChallengeSettings.Builder> implements WebKeySettings.ChallengeSettingsOrBuilder
 Settings for POLICY_BASED_CHALLENGE keys to control when a challenge is
 triggered.
 
Protobuf type google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSettings
  • 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.Builder<WebKeySettings.ChallengeSettings.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<WebKeySettings.ChallengeSettings.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<WebKeySettings.ChallengeSettings.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<WebKeySettings.ChallengeSettings.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<WebKeySettings.ChallengeSettings.Builder>
    • getDefaultInstanceForType

      public WebKeySettings.ChallengeSettings 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 WebKeySettings.ChallengeSettings buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public WebKeySettings.ChallengeSettings.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<WebKeySettings.ChallengeSettings.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<WebKeySettings.ChallengeSettings.Builder>
    • mergeFrom

      public WebKeySettings.ChallengeSettings.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<WebKeySettings.ChallengeSettings.Builder>
      Throws:
      IOException
    • hasDefaultSettings

      public boolean hasDefaultSettings()
       Required. Defines when a challenge is triggered (unless the default
       threshold is overridden for the given action, see `action_settings`).
       
      .google.cloud.recaptchaenterprise.v1.WebKeySettings.ActionSettings default_settings = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasDefaultSettings in interface WebKeySettings.ChallengeSettingsOrBuilder
      Returns:
      Whether the defaultSettings field is set.
    • getDefaultSettings

      public WebKeySettings.ActionSettings getDefaultSettings()
       Required. Defines when a challenge is triggered (unless the default
       threshold is overridden for the given action, see `action_settings`).
       
      .google.cloud.recaptchaenterprise.v1.WebKeySettings.ActionSettings default_settings = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDefaultSettings in interface WebKeySettings.ChallengeSettingsOrBuilder
      Returns:
      The defaultSettings.
    • setDefaultSettings

       Required. Defines when a challenge is triggered (unless the default
       threshold is overridden for the given action, see `action_settings`).
       
      .google.cloud.recaptchaenterprise.v1.WebKeySettings.ActionSettings default_settings = 1 [(.google.api.field_behavior) = REQUIRED];
    • setDefaultSettings

       Required. Defines when a challenge is triggered (unless the default
       threshold is overridden for the given action, see `action_settings`).
       
      .google.cloud.recaptchaenterprise.v1.WebKeySettings.ActionSettings default_settings = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeDefaultSettings

       Required. Defines when a challenge is triggered (unless the default
       threshold is overridden for the given action, see `action_settings`).
       
      .google.cloud.recaptchaenterprise.v1.WebKeySettings.ActionSettings default_settings = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearDefaultSettings

      public WebKeySettings.ChallengeSettings.Builder clearDefaultSettings()
       Required. Defines when a challenge is triggered (unless the default
       threshold is overridden for the given action, see `action_settings`).
       
      .google.cloud.recaptchaenterprise.v1.WebKeySettings.ActionSettings default_settings = 1 [(.google.api.field_behavior) = REQUIRED];
    • getDefaultSettingsBuilder

      public WebKeySettings.ActionSettings.Builder getDefaultSettingsBuilder()
       Required. Defines when a challenge is triggered (unless the default
       threshold is overridden for the given action, see `action_settings`).
       
      .google.cloud.recaptchaenterprise.v1.WebKeySettings.ActionSettings default_settings = 1 [(.google.api.field_behavior) = REQUIRED];
    • getDefaultSettingsOrBuilder

      public WebKeySettings.ActionSettingsOrBuilder getDefaultSettingsOrBuilder()
       Required. Defines when a challenge is triggered (unless the default
       threshold is overridden for the given action, see `action_settings`).
       
      .google.cloud.recaptchaenterprise.v1.WebKeySettings.ActionSettings default_settings = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDefaultSettingsOrBuilder in interface WebKeySettings.ChallengeSettingsOrBuilder
    • getActionSettingsCount

      public int getActionSettingsCount()
      Description copied from interface: WebKeySettings.ChallengeSettingsOrBuilder
       Optional. The action to score threshold map.
       The action name should be the same as the action name passed in the
       `data-action` attribute
       (see https://cloud.google.com/recaptcha/docs/actions-website).
       Action names are case-insensitive.
       There is a maximum of 100 action settings.
       An action name has a maximum length of 100.
       
      map<string, .google.cloud.recaptchaenterprise.v1.WebKeySettings.ActionSettings> action_settings = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getActionSettingsCount in interface WebKeySettings.ChallengeSettingsOrBuilder
    • containsActionSettings

      public boolean containsActionSettings(String key)
       Optional. The action to score threshold map.
       The action name should be the same as the action name passed in the
       `data-action` attribute
       (see https://cloud.google.com/recaptcha/docs/actions-website).
       Action names are case-insensitive.
       There is a maximum of 100 action settings.
       An action name has a maximum length of 100.
       
      map<string, .google.cloud.recaptchaenterprise.v1.WebKeySettings.ActionSettings> action_settings = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsActionSettings in interface WebKeySettings.ChallengeSettingsOrBuilder
    • getActionSettings

      @Deprecated public Map<String,WebKeySettings.ActionSettings> getActionSettings()
      Deprecated.
      Specified by:
      getActionSettings in interface WebKeySettings.ChallengeSettingsOrBuilder
    • getActionSettingsMap

      public Map<String,WebKeySettings.ActionSettings> getActionSettingsMap()
       Optional. The action to score threshold map.
       The action name should be the same as the action name passed in the
       `data-action` attribute
       (see https://cloud.google.com/recaptcha/docs/actions-website).
       Action names are case-insensitive.
       There is a maximum of 100 action settings.
       An action name has a maximum length of 100.
       
      map<string, .google.cloud.recaptchaenterprise.v1.WebKeySettings.ActionSettings> action_settings = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getActionSettingsMap in interface WebKeySettings.ChallengeSettingsOrBuilder
    • getActionSettingsOrDefault

      public WebKeySettings.ActionSettings getActionSettingsOrDefault(String key, WebKeySettings.ActionSettings defaultValue)
       Optional. The action to score threshold map.
       The action name should be the same as the action name passed in the
       `data-action` attribute
       (see https://cloud.google.com/recaptcha/docs/actions-website).
       Action names are case-insensitive.
       There is a maximum of 100 action settings.
       An action name has a maximum length of 100.
       
      map<string, .google.cloud.recaptchaenterprise.v1.WebKeySettings.ActionSettings> action_settings = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getActionSettingsOrDefault in interface WebKeySettings.ChallengeSettingsOrBuilder
    • getActionSettingsOrThrow

      public WebKeySettings.ActionSettings getActionSettingsOrThrow(String key)
       Optional. The action to score threshold map.
       The action name should be the same as the action name passed in the
       `data-action` attribute
       (see https://cloud.google.com/recaptcha/docs/actions-website).
       Action names are case-insensitive.
       There is a maximum of 100 action settings.
       An action name has a maximum length of 100.
       
      map<string, .google.cloud.recaptchaenterprise.v1.WebKeySettings.ActionSettings> action_settings = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getActionSettingsOrThrow in interface WebKeySettings.ChallengeSettingsOrBuilder
    • clearActionSettings

      public WebKeySettings.ChallengeSettings.Builder clearActionSettings()
    • removeActionSettings

      public WebKeySettings.ChallengeSettings.Builder removeActionSettings(String key)
       Optional. The action to score threshold map.
       The action name should be the same as the action name passed in the
       `data-action` attribute
       (see https://cloud.google.com/recaptcha/docs/actions-website).
       Action names are case-insensitive.
       There is a maximum of 100 action settings.
       An action name has a maximum length of 100.
       
      map<string, .google.cloud.recaptchaenterprise.v1.WebKeySettings.ActionSettings> action_settings = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableActionSettings

      @Deprecated public Map<String,WebKeySettings.ActionSettings> getMutableActionSettings()
      Deprecated.
      Use alternate mutation accessors instead.
    • putActionSettings

       Optional. The action to score threshold map.
       The action name should be the same as the action name passed in the
       `data-action` attribute
       (see https://cloud.google.com/recaptcha/docs/actions-website).
       Action names are case-insensitive.
       There is a maximum of 100 action settings.
       An action name has a maximum length of 100.
       
      map<string, .google.cloud.recaptchaenterprise.v1.WebKeySettings.ActionSettings> action_settings = 2 [(.google.api.field_behavior) = OPTIONAL];
    • putAllActionSettings

       Optional. The action to score threshold map.
       The action name should be the same as the action name passed in the
       `data-action` attribute
       (see https://cloud.google.com/recaptcha/docs/actions-website).
       Action names are case-insensitive.
       There is a maximum of 100 action settings.
       An action name has a maximum length of 100.
       
      map<string, .google.cloud.recaptchaenterprise.v1.WebKeySettings.ActionSettings> action_settings = 2 [(.google.api.field_behavior) = OPTIONAL];
    • putActionSettingsBuilderIfAbsent

      public WebKeySettings.ActionSettings.Builder putActionSettingsBuilderIfAbsent(String key)
       Optional. The action to score threshold map.
       The action name should be the same as the action name passed in the
       `data-action` attribute
       (see https://cloud.google.com/recaptcha/docs/actions-website).
       Action names are case-insensitive.
       There is a maximum of 100 action settings.
       An action name has a maximum length of 100.
       
      map<string, .google.cloud.recaptchaenterprise.v1.WebKeySettings.ActionSettings> action_settings = 2 [(.google.api.field_behavior) = OPTIONAL];