Class PrivatePasswordLeakVerification.Builder

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

public static final class PrivatePasswordLeakVerification.Builder extends com.google.protobuf.GeneratedMessage.Builder<PrivatePasswordLeakVerification.Builder> implements PrivatePasswordLeakVerificationOrBuilder
 Private password leak verification info.
 
Protobuf type google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification
  • 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<PrivatePasswordLeakVerification.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<PrivatePasswordLeakVerification.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<PrivatePasswordLeakVerification.Builder>
    • getDefaultInstanceForType

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

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

      public PrivatePasswordLeakVerification.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<PrivatePasswordLeakVerification.Builder>
      Throws:
      IOException
    • getLookupHashPrefix

      public com.google.protobuf.ByteString getLookupHashPrefix()
       Required. Exactly 26-bit prefix of the SHA-256 hash of the canonicalized
       username. It is used to look up password leaks associated with that hash
       prefix.
       
      bytes lookup_hash_prefix = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLookupHashPrefix in interface PrivatePasswordLeakVerificationOrBuilder
      Returns:
      The lookupHashPrefix.
    • setLookupHashPrefix

      public PrivatePasswordLeakVerification.Builder setLookupHashPrefix(com.google.protobuf.ByteString value)
       Required. Exactly 26-bit prefix of the SHA-256 hash of the canonicalized
       username. It is used to look up password leaks associated with that hash
       prefix.
       
      bytes lookup_hash_prefix = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The lookupHashPrefix to set.
      Returns:
      This builder for chaining.
    • clearLookupHashPrefix

      public PrivatePasswordLeakVerification.Builder clearLookupHashPrefix()
       Required. Exactly 26-bit prefix of the SHA-256 hash of the canonicalized
       username. It is used to look up password leaks associated with that hash
       prefix.
       
      bytes lookup_hash_prefix = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getEncryptedUserCredentialsHash

      public com.google.protobuf.ByteString getEncryptedUserCredentialsHash()
       Optional. Encrypted Scrypt hash of the canonicalized username+password. It
       is re-encrypted by the server and returned through
       `reencrypted_user_credentials_hash`.
       
      bytes encrypted_user_credentials_hash = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEncryptedUserCredentialsHash in interface PrivatePasswordLeakVerificationOrBuilder
      Returns:
      The encryptedUserCredentialsHash.
    • setEncryptedUserCredentialsHash

      public PrivatePasswordLeakVerification.Builder setEncryptedUserCredentialsHash(com.google.protobuf.ByteString value)
       Optional. Encrypted Scrypt hash of the canonicalized username+password. It
       is re-encrypted by the server and returned through
       `reencrypted_user_credentials_hash`.
       
      bytes encrypted_user_credentials_hash = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The encryptedUserCredentialsHash to set.
      Returns:
      This builder for chaining.
    • clearEncryptedUserCredentialsHash

      public PrivatePasswordLeakVerification.Builder clearEncryptedUserCredentialsHash()
       Optional. Encrypted Scrypt hash of the canonicalized username+password. It
       is re-encrypted by the server and returned through
       `reencrypted_user_credentials_hash`.
       
      bytes encrypted_user_credentials_hash = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getEncryptedLeakMatchPrefixesList

      public List<com.google.protobuf.ByteString> getEncryptedLeakMatchPrefixesList()
       Output only. List of prefixes of the encrypted potential password leaks
       that matched the given parameters. They must be compared with the
       client-side decryption prefix of `reencrypted_user_credentials_hash`
       
      repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEncryptedLeakMatchPrefixesList in interface PrivatePasswordLeakVerificationOrBuilder
      Returns:
      A list containing the encryptedLeakMatchPrefixes.
    • getEncryptedLeakMatchPrefixesCount

      public int getEncryptedLeakMatchPrefixesCount()
       Output only. List of prefixes of the encrypted potential password leaks
       that matched the given parameters. They must be compared with the
       client-side decryption prefix of `reencrypted_user_credentials_hash`
       
      repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEncryptedLeakMatchPrefixesCount in interface PrivatePasswordLeakVerificationOrBuilder
      Returns:
      The count of encryptedLeakMatchPrefixes.
    • getEncryptedLeakMatchPrefixes

      public com.google.protobuf.ByteString getEncryptedLeakMatchPrefixes(int index)
       Output only. List of prefixes of the encrypted potential password leaks
       that matched the given parameters. They must be compared with the
       client-side decryption prefix of `reencrypted_user_credentials_hash`
       
      repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEncryptedLeakMatchPrefixes in interface PrivatePasswordLeakVerificationOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The encryptedLeakMatchPrefixes at the given index.
    • setEncryptedLeakMatchPrefixes

      public PrivatePasswordLeakVerification.Builder setEncryptedLeakMatchPrefixes(int index, com.google.protobuf.ByteString value)
       Output only. List of prefixes of the encrypted potential password leaks
       that matched the given parameters. They must be compared with the
       client-side decryption prefix of `reencrypted_user_credentials_hash`
       
      repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      index - The index to set the value at.
      value - The encryptedLeakMatchPrefixes to set.
      Returns:
      This builder for chaining.
    • addEncryptedLeakMatchPrefixes

      public PrivatePasswordLeakVerification.Builder addEncryptedLeakMatchPrefixes(com.google.protobuf.ByteString value)
       Output only. List of prefixes of the encrypted potential password leaks
       that matched the given parameters. They must be compared with the
       client-side decryption prefix of `reencrypted_user_credentials_hash`
       
      repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The encryptedLeakMatchPrefixes to add.
      Returns:
      This builder for chaining.
    • addAllEncryptedLeakMatchPrefixes

      public PrivatePasswordLeakVerification.Builder addAllEncryptedLeakMatchPrefixes(Iterable<? extends com.google.protobuf.ByteString> values)
       Output only. List of prefixes of the encrypted potential password leaks
       that matched the given parameters. They must be compared with the
       client-side decryption prefix of `reencrypted_user_credentials_hash`
       
      repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      values - The encryptedLeakMatchPrefixes to add.
      Returns:
      This builder for chaining.
    • clearEncryptedLeakMatchPrefixes

      public PrivatePasswordLeakVerification.Builder clearEncryptedLeakMatchPrefixes()
       Output only. List of prefixes of the encrypted potential password leaks
       that matched the given parameters. They must be compared with the
       client-side decryption prefix of `reencrypted_user_credentials_hash`
       
      repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getReencryptedUserCredentialsHash

      public com.google.protobuf.ByteString getReencryptedUserCredentialsHash()
       Output only. Corresponds to the re-encryption of the
       `encrypted_user_credentials_hash` field. It is used to match potential
       password leaks within `encrypted_leak_match_prefixes`.
       
      bytes reencrypted_user_credentials_hash = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getReencryptedUserCredentialsHash in interface PrivatePasswordLeakVerificationOrBuilder
      Returns:
      The reencryptedUserCredentialsHash.
    • setReencryptedUserCredentialsHash

      public PrivatePasswordLeakVerification.Builder setReencryptedUserCredentialsHash(com.google.protobuf.ByteString value)
       Output only. Corresponds to the re-encryption of the
       `encrypted_user_credentials_hash` field. It is used to match potential
       password leaks within `encrypted_leak_match_prefixes`.
       
      bytes reencrypted_user_credentials_hash = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The reencryptedUserCredentialsHash to set.
      Returns:
      This builder for chaining.
    • clearReencryptedUserCredentialsHash

      public PrivatePasswordLeakVerification.Builder clearReencryptedUserCredentialsHash()
       Output only. Corresponds to the re-encryption of the
       `encrypted_user_credentials_hash` field. It is used to match potential
       password leaks within `encrypted_leak_match_prefixes`.
       
      bytes reencrypted_user_credentials_hash = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.