Class PrivatePasswordLeakVerification.Builder (3.52.0)

public static final class PrivatePasswordLeakVerification.Builder extends GeneratedMessageV3.Builder<PrivatePasswordLeakVerification.Builder> implements PrivatePasswordLeakVerificationOrBuilder

Private password leak verification info.

Protobuf type google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllEncryptedLeakMatchPrefixes(Iterable<? extends ByteString> values)

public PrivatePasswordLeakVerification.Builder addAllEncryptedLeakMatchPrefixes(Iterable<? extends 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];

Parameter
Name Description
values Iterable<? extends com.google.protobuf.ByteString>

The encryptedLeakMatchPrefixes to add.

Returns
Type Description
PrivatePasswordLeakVerification.Builder

This builder for chaining.

addEncryptedLeakMatchPrefixes(ByteString value)

public PrivatePasswordLeakVerification.Builder addEncryptedLeakMatchPrefixes(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];

Parameter
Name Description
value ByteString

The encryptedLeakMatchPrefixes to add.

Returns
Type Description
PrivatePasswordLeakVerification.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PrivatePasswordLeakVerification.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PrivatePasswordLeakVerification.Builder
Overrides

build()

public PrivatePasswordLeakVerification build()
Returns
Type Description
PrivatePasswordLeakVerification

buildPartial()

public PrivatePasswordLeakVerification buildPartial()
Returns
Type Description
PrivatePasswordLeakVerification

clear()

public PrivatePasswordLeakVerification.Builder clear()
Returns
Type Description
PrivatePasswordLeakVerification.Builder
Overrides

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
Type Description
PrivatePasswordLeakVerification.Builder

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
Type Description
PrivatePasswordLeakVerification.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PrivatePasswordLeakVerification.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PrivatePasswordLeakVerification.Builder
Overrides

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
Type Description
PrivatePasswordLeakVerification.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PrivatePasswordLeakVerification.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PrivatePasswordLeakVerification.Builder
Overrides

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
Type Description
PrivatePasswordLeakVerification.Builder

This builder for chaining.

clone()

public PrivatePasswordLeakVerification.Builder clone()
Returns
Type Description
PrivatePasswordLeakVerification.Builder
Overrides

getDefaultInstanceForType()

public PrivatePasswordLeakVerification getDefaultInstanceForType()
Returns
Type Description
PrivatePasswordLeakVerification

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEncryptedLeakMatchPrefixes(int index)

public 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];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
ByteString

The encryptedLeakMatchPrefixes at the given index.

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];

Returns
Type Description
int

The count of encryptedLeakMatchPrefixes.

getEncryptedLeakMatchPrefixesList()

public List<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];

Returns
Type Description
List<ByteString>

A list containing the encryptedLeakMatchPrefixes.

getEncryptedUserCredentialsHash()

public 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];

Returns
Type Description
ByteString

The encryptedUserCredentialsHash.

getLookupHashPrefix()

public 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];

Returns
Type Description
ByteString

The lookupHashPrefix.

getReencryptedUserCredentialsHash()

public 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];

Returns
Type Description
ByteString

The reencryptedUserCredentialsHash.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PrivatePasswordLeakVerification.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrivatePasswordLeakVerification.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PrivatePasswordLeakVerification.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PrivatePasswordLeakVerification.Builder
Overrides

mergeFrom(PrivatePasswordLeakVerification other)

public PrivatePasswordLeakVerification.Builder mergeFrom(PrivatePasswordLeakVerification other)
Parameter
Name Description
other PrivatePasswordLeakVerification
Returns
Type Description
PrivatePasswordLeakVerification.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PrivatePasswordLeakVerification.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PrivatePasswordLeakVerification.Builder
Overrides

setEncryptedLeakMatchPrefixes(int index, ByteString value)

public PrivatePasswordLeakVerification.Builder setEncryptedLeakMatchPrefixes(int index, 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
Name Description
index int

The index to set the value at.

value ByteString

The encryptedLeakMatchPrefixes to set.

Returns
Type Description
PrivatePasswordLeakVerification.Builder

This builder for chaining.

setEncryptedUserCredentialsHash(ByteString value)

public PrivatePasswordLeakVerification.Builder setEncryptedUserCredentialsHash(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];

Parameter
Name Description
value ByteString

The encryptedUserCredentialsHash to set.

Returns
Type Description
PrivatePasswordLeakVerification.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PrivatePasswordLeakVerification.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PrivatePasswordLeakVerification.Builder
Overrides

setLookupHashPrefix(ByteString value)

public PrivatePasswordLeakVerification.Builder setLookupHashPrefix(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];

Parameter
Name Description
value ByteString

The lookupHashPrefix to set.

Returns
Type Description
PrivatePasswordLeakVerification.Builder

This builder for chaining.

setReencryptedUserCredentialsHash(ByteString value)

public PrivatePasswordLeakVerification.Builder setReencryptedUserCredentialsHash(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];

Parameter
Name Description
value ByteString

The reencryptedUserCredentialsHash to set.

Returns
Type Description
PrivatePasswordLeakVerification.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PrivatePasswordLeakVerification.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PrivatePasswordLeakVerification.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PrivatePasswordLeakVerification.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PrivatePasswordLeakVerification.Builder
Overrides