Class PhoneAuthenticationEvent.Builder (3.80.0)

public static final class PhoneAuthenticationEvent.Builder extends GeneratedMessage.Builder<PhoneAuthenticationEvent.Builder> implements PhoneAuthenticationEventOrBuilder

Details on a phone authentication event

Protobuf type google.cloud.recaptchaenterprise.v1.PhoneAuthenticationEvent

Static Methods

getDescriptor()

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

Methods

build()

public PhoneAuthenticationEvent build()
Returns
Type Description
PhoneAuthenticationEvent

buildPartial()

public PhoneAuthenticationEvent buildPartial()
Returns
Type Description
PhoneAuthenticationEvent

clear()

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

clearEventTime()

public PhoneAuthenticationEvent.Builder clearEventTime()

Optional. The time at which the multi-factor authentication event (challenge or verification) occurred.

.google.protobuf.Timestamp event_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PhoneAuthenticationEvent.Builder

clearPhoneNumber()

public PhoneAuthenticationEvent.Builder clearPhoneNumber()

Required. Phone number in E.164 format for which a multi-factor authentication challenge was initiated, succeeded, or failed.

string phone_number = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PhoneAuthenticationEvent.Builder

This builder for chaining.

getDefaultInstanceForType()

public PhoneAuthenticationEvent getDefaultInstanceForType()
Returns
Type Description
PhoneAuthenticationEvent

getDescriptorForType()

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

getEventTime()

public Timestamp getEventTime()

Optional. The time at which the multi-factor authentication event (challenge or verification) occurred.

.google.protobuf.Timestamp event_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Timestamp

The eventTime.

getEventTimeBuilder()

public Timestamp.Builder getEventTimeBuilder()

Optional. The time at which the multi-factor authentication event (challenge or verification) occurred.

.google.protobuf.Timestamp event_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getEventTimeOrBuilder()

public TimestampOrBuilder getEventTimeOrBuilder()

Optional. The time at which the multi-factor authentication event (challenge or verification) occurred.

.google.protobuf.Timestamp event_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimestampOrBuilder

getPhoneNumber()

public String getPhoneNumber()

Required. Phone number in E.164 format for which a multi-factor authentication challenge was initiated, succeeded, or failed.

string phone_number = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The phoneNumber.

getPhoneNumberBytes()

public ByteString getPhoneNumberBytes()

Required. Phone number in E.164 format for which a multi-factor authentication challenge was initiated, succeeded, or failed.

string phone_number = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for phoneNumber.

hasEventTime()

public boolean hasEventTime()

Optional. The time at which the multi-factor authentication event (challenge or verification) occurred.

.google.protobuf.Timestamp event_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the eventTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEventTime(Timestamp value)

public PhoneAuthenticationEvent.Builder mergeEventTime(Timestamp value)

Optional. The time at which the multi-factor authentication event (challenge or verification) occurred.

.google.protobuf.Timestamp event_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
PhoneAuthenticationEvent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(PhoneAuthenticationEvent other)

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

setEventTime(Timestamp value)

public PhoneAuthenticationEvent.Builder setEventTime(Timestamp value)

Optional. The time at which the multi-factor authentication event (challenge or verification) occurred.

.google.protobuf.Timestamp event_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
PhoneAuthenticationEvent.Builder

setEventTime(Timestamp.Builder builderForValue)

public PhoneAuthenticationEvent.Builder setEventTime(Timestamp.Builder builderForValue)

Optional. The time at which the multi-factor authentication event (challenge or verification) occurred.

.google.protobuf.Timestamp event_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
PhoneAuthenticationEvent.Builder

setPhoneNumber(String value)

public PhoneAuthenticationEvent.Builder setPhoneNumber(String value)

Required. Phone number in E.164 format for which a multi-factor authentication challenge was initiated, succeeded, or failed.

string phone_number = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The phoneNumber to set.

Returns
Type Description
PhoneAuthenticationEvent.Builder

This builder for chaining.

setPhoneNumberBytes(ByteString value)

public PhoneAuthenticationEvent.Builder setPhoneNumberBytes(ByteString value)

Required. Phone number in E.164 format for which a multi-factor authentication challenge was initiated, succeeded, or failed.

string phone_number = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for phoneNumber to set.

Returns
Type Description
PhoneAuthenticationEvent.Builder

This builder for chaining.