Class PrivatePasswordLeakVerification.Builder (3.13.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.protobuf.ByteString>

The encryptedLeakMatchPrefixes to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The encryptedLeakMatchPrefixes to add.

Returns
TypeDescription
PrivatePasswordLeakVerification.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PrivatePasswordLeakVerification.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PrivatePasswordLeakVerification.Builder
Overrides

build()

public PrivatePasswordLeakVerification build()
Returns
TypeDescription
PrivatePasswordLeakVerification

buildPartial()

public PrivatePasswordLeakVerification buildPartial()
Returns
TypeDescription
PrivatePasswordLeakVerification

clear()

public PrivatePasswordLeakVerification.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
PrivatePasswordLeakVerification.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PrivatePasswordLeakVerification.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PrivatePasswordLeakVerification.Builder
Overrides

clearLookupHashPrefix()

public PrivatePasswordLeakVerification.Builder clearLookupHashPrefix()

Optional. 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) = OPTIONAL];

Returns
TypeDescription
PrivatePasswordLeakVerification.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PrivatePasswordLeakVerification.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
PrivatePasswordLeakVerification.Builder

This builder for chaining.

clone()

public PrivatePasswordLeakVerification.Builder clone()
Returns
TypeDescription
PrivatePasswordLeakVerification.Builder
Overrides

getDefaultInstanceForType()

public PrivatePasswordLeakVerification getDefaultInstanceForType()
Returns
TypeDescription
PrivatePasswordLeakVerification

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The encryptedUserCredentialsHash.

getLookupHashPrefix()

public ByteString getLookupHashPrefix()

Optional. 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) = OPTIONAL];

Returns
TypeDescription
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
TypeDescription
ByteString

The reencryptedUserCredentialsHash.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PrivatePasswordLeakVerification.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PrivatePasswordLeakVerification.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PrivatePasswordLeakVerification.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PrivatePasswordLeakVerification.Builder
Overrides

mergeFrom(PrivatePasswordLeakVerification other)

public PrivatePasswordLeakVerification.Builder mergeFrom(PrivatePasswordLeakVerification other)
Parameter
NameDescription
otherPrivatePasswordLeakVerification
Returns
TypeDescription
PrivatePasswordLeakVerification.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PrivatePasswordLeakVerification.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueByteString

The encryptedLeakMatchPrefixes to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The encryptedUserCredentialsHash to set.

Returns
TypeDescription
PrivatePasswordLeakVerification.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PrivatePasswordLeakVerification.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PrivatePasswordLeakVerification.Builder
Overrides

setLookupHashPrefix(ByteString value)

public PrivatePasswordLeakVerification.Builder setLookupHashPrefix(ByteString value)

Optional. 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) = OPTIONAL];

Parameter
NameDescription
valueByteString

The lookupHashPrefix to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The reencryptedUserCredentialsHash to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PrivatePasswordLeakVerification.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PrivatePasswordLeakVerification.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PrivatePasswordLeakVerification.Builder
Overrides