Class AndroidKeySettings

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.recaptchaenterprise.v1.AndroidKeySettings
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, AndroidKeySettingsOrBuilder, Serializable

@Generated public final class AndroidKeySettings extends com.google.protobuf.GeneratedMessage implements AndroidKeySettingsOrBuilder
 Settings specific to keys that can be used by Android apps.
 
Protobuf type google.cloud.recaptchaenterprise.v1.AndroidKeySettings
See Also:
  • Field Details

    • ALLOW_ALL_PACKAGE_NAMES_FIELD_NUMBER

      public static final int ALLOW_ALL_PACKAGE_NAMES_FIELD_NUMBER
      See Also:
    • ALLOWED_PACKAGE_NAMES_FIELD_NUMBER

      public static final int ALLOWED_PACKAGE_NAMES_FIELD_NUMBER
      See Also:
    • SUPPORT_NON_GOOGLE_APP_STORE_DISTRIBUTION_FIELD_NUMBER

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

      public boolean getAllowAllPackageNames()
       Optional. If set to true, allowed_package_names are not enforced.
       
      bool allow_all_package_names = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAllowAllPackageNames in interface AndroidKeySettingsOrBuilder
      Returns:
      The allowAllPackageNames.
    • getAllowedPackageNamesList

      public com.google.protobuf.ProtocolStringList getAllowedPackageNamesList()
       Optional. Android package names of apps allowed to use the key.
       Example: 'com.companyname.appname'
       Each key supports a maximum of 250 package names. To use a key on more
       apps, set `allow_all_package_names` to true. When this is set, you
       are responsible for validating the package name by checking the
       `token_properties.android_package_name` field in each assessment response
       against your list of allowed package names.
       
      repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAllowedPackageNamesList in interface AndroidKeySettingsOrBuilder
      Returns:
      A list containing the allowedPackageNames.
    • getAllowedPackageNamesCount

      public int getAllowedPackageNamesCount()
       Optional. Android package names of apps allowed to use the key.
       Example: 'com.companyname.appname'
       Each key supports a maximum of 250 package names. To use a key on more
       apps, set `allow_all_package_names` to true. When this is set, you
       are responsible for validating the package name by checking the
       `token_properties.android_package_name` field in each assessment response
       against your list of allowed package names.
       
      repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAllowedPackageNamesCount in interface AndroidKeySettingsOrBuilder
      Returns:
      The count of allowedPackageNames.
    • getAllowedPackageNames

      public String getAllowedPackageNames(int index)
       Optional. Android package names of apps allowed to use the key.
       Example: 'com.companyname.appname'
       Each key supports a maximum of 250 package names. To use a key on more
       apps, set `allow_all_package_names` to true. When this is set, you
       are responsible for validating the package name by checking the
       `token_properties.android_package_name` field in each assessment response
       against your list of allowed package names.
       
      repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAllowedPackageNames in interface AndroidKeySettingsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The allowedPackageNames at the given index.
    • getAllowedPackageNamesBytes

      public com.google.protobuf.ByteString getAllowedPackageNamesBytes(int index)
       Optional. Android package names of apps allowed to use the key.
       Example: 'com.companyname.appname'
       Each key supports a maximum of 250 package names. To use a key on more
       apps, set `allow_all_package_names` to true. When this is set, you
       are responsible for validating the package name by checking the
       `token_properties.android_package_name` field in each assessment response
       against your list of allowed package names.
       
      repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAllowedPackageNamesBytes in interface AndroidKeySettingsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the allowedPackageNames at the given index.
    • getSupportNonGoogleAppStoreDistribution

      public boolean getSupportNonGoogleAppStoreDistribution()
       Optional. Set to true for keys that are used in an Android application that
       is available for download in app stores in addition to the Google Play
       Store.
       
      bool support_non_google_app_store_distribution = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSupportNonGoogleAppStoreDistribution in interface AndroidKeySettingsOrBuilder
      Returns:
      The supportNonGoogleAppStoreDistribution.
    • 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 AndroidKeySettings parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static AndroidKeySettings parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static AndroidKeySettings parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static AndroidKeySettings.Builder newBuilder()
    • newBuilder

      public static AndroidKeySettings.Builder newBuilder(AndroidKeySettings prototype)
    • toBuilder

      public AndroidKeySettings.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static AndroidKeySettings getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<AndroidKeySettings> 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 AndroidKeySettings getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder