Class EndpointVerificationInfo.Builder (3.46.0)

public static final class EndpointVerificationInfo.Builder extends GeneratedMessageV3.Builder<EndpointVerificationInfo.Builder> implements EndpointVerificationInfoOrBuilder

Information about a verification endpoint that can be used for 2FA.

Protobuf type google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public EndpointVerificationInfo build()
Returns
Type Description
EndpointVerificationInfo

buildPartial()

public EndpointVerificationInfo buildPartial()
Returns
Type Description
EndpointVerificationInfo

clear()

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

clearEmailAddress()

public EndpointVerificationInfo.Builder clearEmailAddress()

Email address for which to trigger a verification request.

string email_address = 1;

Returns
Type Description
EndpointVerificationInfo.Builder

This builder for chaining.

clearEndpoint()

public EndpointVerificationInfo.Builder clearEndpoint()
Returns
Type Description
EndpointVerificationInfo.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLastVerificationTime()

public EndpointVerificationInfo.Builder clearLastVerificationTime()

Output only. Timestamp of the last successful verification for the endpoint, if any.

.google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EndpointVerificationInfo.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPhoneNumber()

public EndpointVerificationInfo.Builder clearPhoneNumber()

Phone number for which to trigger a verification request. Should be given in E.164 format.

string phone_number = 2;

Returns
Type Description
EndpointVerificationInfo.Builder

This builder for chaining.

clearRequestToken()

public EndpointVerificationInfo.Builder clearRequestToken()

Output only. Token to provide to the client to trigger endpoint verification. It must be used within 15 minutes.

string request_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EndpointVerificationInfo.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public EndpointVerificationInfo getDefaultInstanceForType()
Returns
Type Description
EndpointVerificationInfo

getDescriptorForType()

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

getEmailAddress()

public String getEmailAddress()

Email address for which to trigger a verification request.

string email_address = 1;

Returns
Type Description
String

The emailAddress.

getEmailAddressBytes()

public ByteString getEmailAddressBytes()

Email address for which to trigger a verification request.

string email_address = 1;

Returns
Type Description
ByteString

The bytes for emailAddress.

getEndpointCase()

public EndpointVerificationInfo.EndpointCase getEndpointCase()
Returns
Type Description
EndpointVerificationInfo.EndpointCase

getLastVerificationTime()

public Timestamp getLastVerificationTime()

Output only. Timestamp of the last successful verification for the endpoint, if any.

.google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The lastVerificationTime.

getLastVerificationTimeBuilder()

public Timestamp.Builder getLastVerificationTimeBuilder()

Output only. Timestamp of the last successful verification for the endpoint, if any.

.google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getLastVerificationTimeOrBuilder()

public TimestampOrBuilder getLastVerificationTimeOrBuilder()

Output only. Timestamp of the last successful verification for the endpoint, if any.

.google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getPhoneNumber()

public String getPhoneNumber()

Phone number for which to trigger a verification request. Should be given in E.164 format.

string phone_number = 2;

Returns
Type Description
String

The phoneNumber.

getPhoneNumberBytes()

public ByteString getPhoneNumberBytes()

Phone number for which to trigger a verification request. Should be given in E.164 format.

string phone_number = 2;

Returns
Type Description
ByteString

The bytes for phoneNumber.

getRequestToken()

public String getRequestToken()

Output only. Token to provide to the client to trigger endpoint verification. It must be used within 15 minutes.

string request_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The requestToken.

getRequestTokenBytes()

public ByteString getRequestTokenBytes()

Output only. Token to provide to the client to trigger endpoint verification. It must be used within 15 minutes.

string request_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for requestToken.

hasEmailAddress()

public boolean hasEmailAddress()

Email address for which to trigger a verification request.

string email_address = 1;

Returns
Type Description
boolean

Whether the emailAddress field is set.

hasLastVerificationTime()

public boolean hasLastVerificationTime()

Output only. Timestamp of the last successful verification for the endpoint, if any.

.google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the lastVerificationTime field is set.

hasPhoneNumber()

public boolean hasPhoneNumber()

Phone number for which to trigger a verification request. Should be given in E.164 format.

string phone_number = 2;

Returns
Type Description
boolean

Whether the phoneNumber field is set.

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

mergeFrom(Message other)

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

mergeFrom(EndpointVerificationInfo other)

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

mergeLastVerificationTime(Timestamp value)

public EndpointVerificationInfo.Builder mergeLastVerificationTime(Timestamp value)

Output only. Timestamp of the last successful verification for the endpoint, if any.

.google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
EndpointVerificationInfo.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEmailAddress(String value)

public EndpointVerificationInfo.Builder setEmailAddress(String value)

Email address for which to trigger a verification request.

string email_address = 1;

Parameter
Name Description
value String

The emailAddress to set.

Returns
Type Description
EndpointVerificationInfo.Builder

This builder for chaining.

setEmailAddressBytes(ByteString value)

public EndpointVerificationInfo.Builder setEmailAddressBytes(ByteString value)

Email address for which to trigger a verification request.

string email_address = 1;

Parameter
Name Description
value ByteString

The bytes for emailAddress to set.

Returns
Type Description
EndpointVerificationInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setLastVerificationTime(Timestamp value)

public EndpointVerificationInfo.Builder setLastVerificationTime(Timestamp value)

Output only. Timestamp of the last successful verification for the endpoint, if any.

.google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
EndpointVerificationInfo.Builder

setLastVerificationTime(Timestamp.Builder builderForValue)

public EndpointVerificationInfo.Builder setLastVerificationTime(Timestamp.Builder builderForValue)

Output only. Timestamp of the last successful verification for the endpoint, if any.

.google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
EndpointVerificationInfo.Builder

setPhoneNumber(String value)

public EndpointVerificationInfo.Builder setPhoneNumber(String value)

Phone number for which to trigger a verification request. Should be given in E.164 format.

string phone_number = 2;

Parameter
Name Description
value String

The phoneNumber to set.

Returns
Type Description
EndpointVerificationInfo.Builder

This builder for chaining.

setPhoneNumberBytes(ByteString value)

public EndpointVerificationInfo.Builder setPhoneNumberBytes(ByteString value)

Phone number for which to trigger a verification request. Should be given in E.164 format.

string phone_number = 2;

Parameter
Name Description
value ByteString

The bytes for phoneNumber to set.

Returns
Type Description
EndpointVerificationInfo.Builder

This builder for chaining.

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

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

setRequestToken(String value)

public EndpointVerificationInfo.Builder setRequestToken(String value)

Output only. Token to provide to the client to trigger endpoint verification. It must be used within 15 minutes.

string request_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The requestToken to set.

Returns
Type Description
EndpointVerificationInfo.Builder

This builder for chaining.

setRequestTokenBytes(ByteString value)

public EndpointVerificationInfo.Builder setRequestTokenBytes(ByteString value)

Output only. Token to provide to the client to trigger endpoint verification. It must be used within 15 minutes.

string request_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for requestToken to set.

Returns
Type Description
EndpointVerificationInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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