Class IOSKeySettings.Builder

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

public static final class IOSKeySettings.Builder extends com.google.protobuf.GeneratedMessage.Builder<IOSKeySettings.Builder> implements IOSKeySettingsOrBuilder
 Settings specific to keys that can be used by iOS apps.
 
Protobuf type google.cloud.recaptchaenterprise.v1.IOSKeySettings
  • 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<IOSKeySettings.Builder>
    • clear

      public IOSKeySettings.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<IOSKeySettings.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<IOSKeySettings.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public IOSKeySettings.Builder mergeFrom(IOSKeySettings other)
    • isInitialized

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

      public IOSKeySettings.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<IOSKeySettings.Builder>
      Throws:
      IOException
    • getAllowAllBundleIds

      public boolean getAllowAllBundleIds()
       Optional. If set to true, allowed_bundle_ids are not enforced.
       
      bool allow_all_bundle_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAllowAllBundleIds in interface IOSKeySettingsOrBuilder
      Returns:
      The allowAllBundleIds.
    • setAllowAllBundleIds

      public IOSKeySettings.Builder setAllowAllBundleIds(boolean value)
       Optional. If set to true, allowed_bundle_ids are not enforced.
       
      bool allow_all_bundle_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The allowAllBundleIds to set.
      Returns:
      This builder for chaining.
    • clearAllowAllBundleIds

      public IOSKeySettings.Builder clearAllowAllBundleIds()
       Optional. If set to true, allowed_bundle_ids are not enforced.
       
      bool allow_all_bundle_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getAllowedBundleIdsList

      public com.google.protobuf.ProtocolStringList getAllowedBundleIdsList()
       Optional. iOS bundle IDs of apps allowed to use the key.
       Example: 'com.companyname.productname.appname'
       Each key supports a maximum of 250 bundle IDs. To use a key on more
       apps, set `allow_all_bundle_ids` to true. When this is set, you
       are responsible for validating the bundle id by checking the
       `token_properties.ios_bundle_id` field in each assessment response
       against your list of allowed bundle IDs.
       
      repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAllowedBundleIdsList in interface IOSKeySettingsOrBuilder
      Returns:
      A list containing the allowedBundleIds.
    • getAllowedBundleIdsCount

      public int getAllowedBundleIdsCount()
       Optional. iOS bundle IDs of apps allowed to use the key.
       Example: 'com.companyname.productname.appname'
       Each key supports a maximum of 250 bundle IDs. To use a key on more
       apps, set `allow_all_bundle_ids` to true. When this is set, you
       are responsible for validating the bundle id by checking the
       `token_properties.ios_bundle_id` field in each assessment response
       against your list of allowed bundle IDs.
       
      repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAllowedBundleIdsCount in interface IOSKeySettingsOrBuilder
      Returns:
      The count of allowedBundleIds.
    • getAllowedBundleIds

      public String getAllowedBundleIds(int index)
       Optional. iOS bundle IDs of apps allowed to use the key.
       Example: 'com.companyname.productname.appname'
       Each key supports a maximum of 250 bundle IDs. To use a key on more
       apps, set `allow_all_bundle_ids` to true. When this is set, you
       are responsible for validating the bundle id by checking the
       `token_properties.ios_bundle_id` field in each assessment response
       against your list of allowed bundle IDs.
       
      repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAllowedBundleIds in interface IOSKeySettingsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The allowedBundleIds at the given index.
    • getAllowedBundleIdsBytes

      public com.google.protobuf.ByteString getAllowedBundleIdsBytes(int index)
       Optional. iOS bundle IDs of apps allowed to use the key.
       Example: 'com.companyname.productname.appname'
       Each key supports a maximum of 250 bundle IDs. To use a key on more
       apps, set `allow_all_bundle_ids` to true. When this is set, you
       are responsible for validating the bundle id by checking the
       `token_properties.ios_bundle_id` field in each assessment response
       against your list of allowed bundle IDs.
       
      repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAllowedBundleIdsBytes in interface IOSKeySettingsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the allowedBundleIds at the given index.
    • setAllowedBundleIds

      public IOSKeySettings.Builder setAllowedBundleIds(int index, String value)
       Optional. iOS bundle IDs of apps allowed to use the key.
       Example: 'com.companyname.productname.appname'
       Each key supports a maximum of 250 bundle IDs. To use a key on more
       apps, set `allow_all_bundle_ids` to true. When this is set, you
       are responsible for validating the bundle id by checking the
       `token_properties.ios_bundle_id` field in each assessment response
       against your list of allowed bundle IDs.
       
      repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The allowedBundleIds to set.
      Returns:
      This builder for chaining.
    • addAllowedBundleIds

      public IOSKeySettings.Builder addAllowedBundleIds(String value)
       Optional. iOS bundle IDs of apps allowed to use the key.
       Example: 'com.companyname.productname.appname'
       Each key supports a maximum of 250 bundle IDs. To use a key on more
       apps, set `allow_all_bundle_ids` to true. When this is set, you
       are responsible for validating the bundle id by checking the
       `token_properties.ios_bundle_id` field in each assessment response
       against your list of allowed bundle IDs.
       
      repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The allowedBundleIds to add.
      Returns:
      This builder for chaining.
    • addAllAllowedBundleIds

      public IOSKeySettings.Builder addAllAllowedBundleIds(Iterable<String> values)
       Optional. iOS bundle IDs of apps allowed to use the key.
       Example: 'com.companyname.productname.appname'
       Each key supports a maximum of 250 bundle IDs. To use a key on more
       apps, set `allow_all_bundle_ids` to true. When this is set, you
       are responsible for validating the bundle id by checking the
       `token_properties.ios_bundle_id` field in each assessment response
       against your list of allowed bundle IDs.
       
      repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The allowedBundleIds to add.
      Returns:
      This builder for chaining.
    • clearAllowedBundleIds

      public IOSKeySettings.Builder clearAllowedBundleIds()
       Optional. iOS bundle IDs of apps allowed to use the key.
       Example: 'com.companyname.productname.appname'
       Each key supports a maximum of 250 bundle IDs. To use a key on more
       apps, set `allow_all_bundle_ids` to true. When this is set, you
       are responsible for validating the bundle id by checking the
       `token_properties.ios_bundle_id` field in each assessment response
       against your list of allowed bundle IDs.
       
      repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addAllowedBundleIdsBytes

      public IOSKeySettings.Builder addAllowedBundleIdsBytes(com.google.protobuf.ByteString value)
       Optional. iOS bundle IDs of apps allowed to use the key.
       Example: 'com.companyname.productname.appname'
       Each key supports a maximum of 250 bundle IDs. To use a key on more
       apps, set `allow_all_bundle_ids` to true. When this is set, you
       are responsible for validating the bundle id by checking the
       `token_properties.ios_bundle_id` field in each assessment response
       against your list of allowed bundle IDs.
       
      repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the allowedBundleIds to add.
      Returns:
      This builder for chaining.
    • hasAppleDeveloperId

      public boolean hasAppleDeveloperId()
       Optional. Apple Developer account details for the app that is protected by
       the reCAPTCHA Key. reCAPTCHA leverages platform-specific checks like Apple
       App Attest and Apple DeviceCheck to protect your app from abuse. Providing
       these fields allows reCAPTCHA to get a better assessment of the integrity
       of your app.
       
      .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasAppleDeveloperId in interface IOSKeySettingsOrBuilder
      Returns:
      Whether the appleDeveloperId field is set.
    • getAppleDeveloperId

      public AppleDeveloperId getAppleDeveloperId()
       Optional. Apple Developer account details for the app that is protected by
       the reCAPTCHA Key. reCAPTCHA leverages platform-specific checks like Apple
       App Attest and Apple DeviceCheck to protect your app from abuse. Providing
       these fields allows reCAPTCHA to get a better assessment of the integrity
       of your app.
       
      .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAppleDeveloperId in interface IOSKeySettingsOrBuilder
      Returns:
      The appleDeveloperId.
    • setAppleDeveloperId

      public IOSKeySettings.Builder setAppleDeveloperId(AppleDeveloperId value)
       Optional. Apple Developer account details for the app that is protected by
       the reCAPTCHA Key. reCAPTCHA leverages platform-specific checks like Apple
       App Attest and Apple DeviceCheck to protect your app from abuse. Providing
       these fields allows reCAPTCHA to get a better assessment of the integrity
       of your app.
       
      .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setAppleDeveloperId

      public IOSKeySettings.Builder setAppleDeveloperId(AppleDeveloperId.Builder builderForValue)
       Optional. Apple Developer account details for the app that is protected by
       the reCAPTCHA Key. reCAPTCHA leverages platform-specific checks like Apple
       App Attest and Apple DeviceCheck to protect your app from abuse. Providing
       these fields allows reCAPTCHA to get a better assessment of the integrity
       of your app.
       
      .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL];
    • mergeAppleDeveloperId

      public IOSKeySettings.Builder mergeAppleDeveloperId(AppleDeveloperId value)
       Optional. Apple Developer account details for the app that is protected by
       the reCAPTCHA Key. reCAPTCHA leverages platform-specific checks like Apple
       App Attest and Apple DeviceCheck to protect your app from abuse. Providing
       these fields allows reCAPTCHA to get a better assessment of the integrity
       of your app.
       
      .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearAppleDeveloperId

      public IOSKeySettings.Builder clearAppleDeveloperId()
       Optional. Apple Developer account details for the app that is protected by
       the reCAPTCHA Key. reCAPTCHA leverages platform-specific checks like Apple
       App Attest and Apple DeviceCheck to protect your app from abuse. Providing
       these fields allows reCAPTCHA to get a better assessment of the integrity
       of your app.
       
      .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getAppleDeveloperIdBuilder

      public AppleDeveloperId.Builder getAppleDeveloperIdBuilder()
       Optional. Apple Developer account details for the app that is protected by
       the reCAPTCHA Key. reCAPTCHA leverages platform-specific checks like Apple
       App Attest and Apple DeviceCheck to protect your app from abuse. Providing
       these fields allows reCAPTCHA to get a better assessment of the integrity
       of your app.
       
      .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getAppleDeveloperIdOrBuilder

      public AppleDeveloperIdOrBuilder getAppleDeveloperIdOrBuilder()
       Optional. Apple Developer account details for the app that is protected by
       the reCAPTCHA Key. reCAPTCHA leverages platform-specific checks like Apple
       App Attest and Apple DeviceCheck to protect your app from abuse. Providing
       these fields allows reCAPTCHA to get a better assessment of the integrity
       of your app.
       
      .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAppleDeveloperIdOrBuilder in interface IOSKeySettingsOrBuilder