Class PhoneAuthenticationEvent.Builder (3.79.0)

public static final class PhoneAuthenticationEvent.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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