Class TransactionData.User.Builder (3.37.0)

public static final class TransactionData.User.Builder extends GeneratedMessageV3.Builder<TransactionData.User.Builder> implements TransactionData.UserOrBuilder

Details about a user's account involved in the transaction.

Protobuf type google.cloud.recaptchaenterprise.v1beta1.TransactionData.User

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TransactionData.User build()
Returns
TypeDescription
TransactionData.User

buildPartial()

public TransactionData.User buildPartial()
Returns
TypeDescription
TransactionData.User

clear()

public TransactionData.User.Builder clear()
Returns
TypeDescription
TransactionData.User.Builder
Overrides

clearAccountId()

public TransactionData.User.Builder clearAccountId()

Unique account identifier for this user. If using account defender, this should match the hashed_account_id field. Otherwise, a unique and persistent identifier for this account.

string account_id = 6;

Returns
TypeDescription
TransactionData.User.Builder

This builder for chaining.

clearCreationMs()

public TransactionData.User.Builder clearCreationMs()

The epoch milliseconds of the user's account creation.

int64 creation_ms = 1;

Returns
TypeDescription
TransactionData.User.Builder

This builder for chaining.

clearEmail()

public TransactionData.User.Builder clearEmail()

The email address of the user.

string email = 2;

Returns
TypeDescription
TransactionData.User.Builder

This builder for chaining.

clearEmailVerified()

public TransactionData.User.Builder clearEmailVerified()

Whether the email has been verified to be accessible by the user (OTP or similar).

bool email_verified = 3;

Returns
TypeDescription
TransactionData.User.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public TransactionData.User.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TransactionData.User.Builder
Overrides

clearPhoneNumber()

public TransactionData.User.Builder clearPhoneNumber()

The phone number of the user, with country code.

string phone_number = 4;

Returns
TypeDescription
TransactionData.User.Builder

This builder for chaining.

clearPhoneVerified()

public TransactionData.User.Builder clearPhoneVerified()

Whether the phone number has been verified to be accessible by the user (OTP or similar).

bool phone_verified = 5;

Returns
TypeDescription
TransactionData.User.Builder

This builder for chaining.

clone()

public TransactionData.User.Builder clone()
Returns
TypeDescription
TransactionData.User.Builder
Overrides

getAccountId()

public String getAccountId()

Unique account identifier for this user. If using account defender, this should match the hashed_account_id field. Otherwise, a unique and persistent identifier for this account.

string account_id = 6;

Returns
TypeDescription
String

The accountId.

getAccountIdBytes()

public ByteString getAccountIdBytes()

Unique account identifier for this user. If using account defender, this should match the hashed_account_id field. Otherwise, a unique and persistent identifier for this account.

string account_id = 6;

Returns
TypeDescription
ByteString

The bytes for accountId.

getCreationMs()

public long getCreationMs()

The epoch milliseconds of the user's account creation.

int64 creation_ms = 1;

Returns
TypeDescription
long

The creationMs.

getDefaultInstanceForType()

public TransactionData.User getDefaultInstanceForType()
Returns
TypeDescription
TransactionData.User

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEmail()

public String getEmail()

The email address of the user.

string email = 2;

Returns
TypeDescription
String

The email.

getEmailBytes()

public ByteString getEmailBytes()

The email address of the user.

string email = 2;

Returns
TypeDescription
ByteString

The bytes for email.

getEmailVerified()

public boolean getEmailVerified()

Whether the email has been verified to be accessible by the user (OTP or similar).

bool email_verified = 3;

Returns
TypeDescription
boolean

The emailVerified.

getPhoneNumber()

public String getPhoneNumber()

The phone number of the user, with country code.

string phone_number = 4;

Returns
TypeDescription
String

The phoneNumber.

getPhoneNumberBytes()

public ByteString getPhoneNumberBytes()

The phone number of the user, with country code.

string phone_number = 4;

Returns
TypeDescription
ByteString

The bytes for phoneNumber.

getPhoneVerified()

public boolean getPhoneVerified()

Whether the phone number has been verified to be accessible by the user (OTP or similar).

bool phone_verified = 5;

Returns
TypeDescription
boolean

The phoneVerified.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(TransactionData.User other)

public TransactionData.User.Builder mergeFrom(TransactionData.User other)
Parameter
NameDescription
otherTransactionData.User
Returns
TypeDescription
TransactionData.User.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TransactionData.User.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TransactionData.User.Builder
Overrides

setAccountId(String value)

public TransactionData.User.Builder setAccountId(String value)

Unique account identifier for this user. If using account defender, this should match the hashed_account_id field. Otherwise, a unique and persistent identifier for this account.

string account_id = 6;

Parameter
NameDescription
valueString

The accountId to set.

Returns
TypeDescription
TransactionData.User.Builder

This builder for chaining.

setAccountIdBytes(ByteString value)

public TransactionData.User.Builder setAccountIdBytes(ByteString value)

Unique account identifier for this user. If using account defender, this should match the hashed_account_id field. Otherwise, a unique and persistent identifier for this account.

string account_id = 6;

Parameter
NameDescription
valueByteString

The bytes for accountId to set.

Returns
TypeDescription
TransactionData.User.Builder

This builder for chaining.

setCreationMs(long value)

public TransactionData.User.Builder setCreationMs(long value)

The epoch milliseconds of the user's account creation.

int64 creation_ms = 1;

Parameter
NameDescription
valuelong

The creationMs to set.

Returns
TypeDescription
TransactionData.User.Builder

This builder for chaining.

setEmail(String value)

public TransactionData.User.Builder setEmail(String value)

The email address of the user.

string email = 2;

Parameter
NameDescription
valueString

The email to set.

Returns
TypeDescription
TransactionData.User.Builder

This builder for chaining.

setEmailBytes(ByteString value)

public TransactionData.User.Builder setEmailBytes(ByteString value)

The email address of the user.

string email = 2;

Parameter
NameDescription
valueByteString

The bytes for email to set.

Returns
TypeDescription
TransactionData.User.Builder

This builder for chaining.

setEmailVerified(boolean value)

public TransactionData.User.Builder setEmailVerified(boolean value)

Whether the email has been verified to be accessible by the user (OTP or similar).

bool email_verified = 3;

Parameter
NameDescription
valueboolean

The emailVerified to set.

Returns
TypeDescription
TransactionData.User.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setPhoneNumber(String value)

public TransactionData.User.Builder setPhoneNumber(String value)

The phone number of the user, with country code.

string phone_number = 4;

Parameter
NameDescription
valueString

The phoneNumber to set.

Returns
TypeDescription
TransactionData.User.Builder

This builder for chaining.

setPhoneNumberBytes(ByteString value)

public TransactionData.User.Builder setPhoneNumberBytes(ByteString value)

The phone number of the user, with country code.

string phone_number = 4;

Parameter
NameDescription
valueByteString

The bytes for phoneNumber to set.

Returns
TypeDescription
TransactionData.User.Builder

This builder for chaining.

setPhoneVerified(boolean value)

public TransactionData.User.Builder setPhoneVerified(boolean value)

Whether the phone number has been verified to be accessible by the user (OTP or similar).

bool phone_verified = 5;

Parameter
NameDescription
valueboolean

The phoneVerified to set.

Returns
TypeDescription
TransactionData.User.Builder

This builder for chaining.

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

public TransactionData.User.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TransactionData.User.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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