Class TransactionData.User.Builder (3.39.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.v1.TransactionData.User

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TransactionData.User build()
Returns
Type Description
TransactionData.User

buildPartial()

public TransactionData.User buildPartial()
Returns
Type Description
TransactionData.User

clear()

public TransactionData.User.Builder clear()
Returns
Type Description
TransactionData.User.Builder
Overrides

clearAccountId()

public TransactionData.User.Builder clearAccountId()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TransactionData.User.Builder

This builder for chaining.

clearCreationMs()

public TransactionData.User.Builder clearCreationMs()

Optional. The epoch milliseconds of the user's account creation.

int64 creation_ms = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TransactionData.User.Builder

This builder for chaining.

clearEmail()

public TransactionData.User.Builder clearEmail()

Optional. The email address of the user.

string email = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TransactionData.User.Builder

This builder for chaining.

clearEmailVerified()

public TransactionData.User.Builder clearEmailVerified()

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

bool email_verified = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TransactionData.User.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPhoneNumber()

public TransactionData.User.Builder clearPhoneNumber()

Optional. The phone number of the user, with country code.

string phone_number = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TransactionData.User.Builder

This builder for chaining.

clearPhoneVerified()

public TransactionData.User.Builder clearPhoneVerified()

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

bool phone_verified = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TransactionData.User.Builder

This builder for chaining.

clone()

public TransactionData.User.Builder clone()
Returns
Type Description
TransactionData.User.Builder
Overrides

getAccountId()

public String getAccountId()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The accountId.

getAccountIdBytes()

public ByteString getAccountIdBytes()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for accountId.

getCreationMs()

public long getCreationMs()

Optional. The epoch milliseconds of the user's account creation.

int64 creation_ms = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The creationMs.

getDefaultInstanceForType()

public TransactionData.User getDefaultInstanceForType()
Returns
Type Description
TransactionData.User

getDescriptorForType()

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

getEmail()

public String getEmail()

Optional. The email address of the user.

string email = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The email.

getEmailBytes()

public ByteString getEmailBytes()

Optional. The email address of the user.

string email = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for email.

getEmailVerified()

public boolean getEmailVerified()

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

bool email_verified = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The emailVerified.

getPhoneNumber()

public String getPhoneNumber()

Optional. The phone number of the user, with country code.

string phone_number = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The phoneNumber.

getPhoneNumberBytes()

public ByteString getPhoneNumberBytes()

Optional. The phone number of the user, with country code.

string phone_number = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for phoneNumber.

getPhoneVerified()

public boolean getPhoneVerified()

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

bool phone_verified = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The phoneVerified.

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 TransactionData.User.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TransactionData.User.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(TransactionData.User other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAccountId(String value)

public TransactionData.User.Builder setAccountId(String value)

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The accountId to set.

Returns
Type Description
TransactionData.User.Builder

This builder for chaining.

setAccountIdBytes(ByteString value)

public TransactionData.User.Builder setAccountIdBytes(ByteString value)

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for accountId to set.

Returns
Type Description
TransactionData.User.Builder

This builder for chaining.

setCreationMs(long value)

public TransactionData.User.Builder setCreationMs(long value)

Optional. The epoch milliseconds of the user's account creation.

int64 creation_ms = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value long

The creationMs to set.

Returns
Type Description
TransactionData.User.Builder

This builder for chaining.

setEmail(String value)

public TransactionData.User.Builder setEmail(String value)

Optional. The email address of the user.

string email = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The email to set.

Returns
Type Description
TransactionData.User.Builder

This builder for chaining.

setEmailBytes(ByteString value)

public TransactionData.User.Builder setEmailBytes(ByteString value)

Optional. The email address of the user.

string email = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for email to set.

Returns
Type Description
TransactionData.User.Builder

This builder for chaining.

setEmailVerified(boolean value)

public TransactionData.User.Builder setEmailVerified(boolean value)

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

bool email_verified = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The emailVerified to set.

Returns
Type Description
TransactionData.User.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setPhoneNumber(String value)

public TransactionData.User.Builder setPhoneNumber(String value)

Optional. The phone number of the user, with country code.

string phone_number = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The phoneNumber to set.

Returns
Type Description
TransactionData.User.Builder

This builder for chaining.

setPhoneNumberBytes(ByteString value)

public TransactionData.User.Builder setPhoneNumberBytes(ByteString value)

Optional. The phone number of the user, with country code.

string phone_number = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for phoneNumber to set.

Returns
Type Description
TransactionData.User.Builder

This builder for chaining.

setPhoneVerified(boolean value)

public TransactionData.User.Builder setPhoneVerified(boolean value)

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

bool phone_verified = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The phoneVerified to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
TransactionData.User.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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