Class WebKeySettings.ChallengeSettings

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

public static final class WebKeySettings.ChallengeSettings extends com.google.protobuf.GeneratedMessage implements WebKeySettings.ChallengeSettingsOrBuilder
 Settings for POLICY_BASED_CHALLENGE keys to control when a challenge is
 triggered.
 
Protobuf type google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSettings
See Also:
  • Field Details

    • DEFAULT_SETTINGS_FIELD_NUMBER

      public static final int DEFAULT_SETTINGS_FIELD_NUMBER
      See Also:
    • ACTION_SETTINGS_FIELD_NUMBER

      public static final int ACTION_SETTINGS_FIELD_NUMBER
      See Also:
  • 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
    • internalGetFieldAccessorTable

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

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

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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 WebKeySettings.ChallengeSettings parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static WebKeySettings.ChallengeSettings parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static WebKeySettings.ChallengeSettings parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static WebKeySettings.ChallengeSettings parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static WebKeySettings.ChallengeSettings parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static WebKeySettings.ChallengeSettings parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public WebKeySettings.ChallengeSettings.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static WebKeySettings.ChallengeSettings.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected WebKeySettings.ChallengeSettings.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static WebKeySettings.ChallengeSettings getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<WebKeySettings.ChallengeSettings> 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.GeneratedMessage
    • getDefaultInstanceForType

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