Class EndpointVerificationInfo.Builder (3.9.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public EndpointVerificationInfo build()
Returns
TypeDescription
EndpointVerificationInfo

buildPartial()

public EndpointVerificationInfo buildPartial()
Returns
TypeDescription
EndpointVerificationInfo

clear()

public EndpointVerificationInfo.Builder clear()
Returns
TypeDescription
EndpointVerificationInfo.Builder
Overrides

clearEmailAddress()

public EndpointVerificationInfo.Builder clearEmailAddress()

Email address for which to trigger a verification request.

string email_address = 1;

Returns
TypeDescription
EndpointVerificationInfo.Builder

This builder for chaining.

clearEndpoint()

public EndpointVerificationInfo.Builder clearEndpoint()
Returns
TypeDescription
EndpointVerificationInfo.Builder

clearField(Descriptors.FieldDescriptor field)

public EndpointVerificationInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
EndpointVerificationInfo.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public EndpointVerificationInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
EndpointVerificationInfo.Builder

This builder for chaining.

clone()

public EndpointVerificationInfo.Builder clone()
Returns
TypeDescription
EndpointVerificationInfo.Builder
Overrides

getDefaultInstanceForType()

public EndpointVerificationInfo getDefaultInstanceForType()
Returns
TypeDescription
EndpointVerificationInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEmailAddress()

public String getEmailAddress()

Email address for which to trigger a verification request.

string email_address = 1;

Returns
TypeDescription
String

The emailAddress.

getEmailAddressBytes()

public ByteString getEmailAddressBytes()

Email address for which to trigger a verification request.

string email_address = 1;

Returns
TypeDescription
ByteString

The bytes for emailAddress.

getEndpointCase()

public EndpointVerificationInfo.EndpointCase getEndpointCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for requestToken.

hasEmailAddress()

public boolean hasEmailAddress()

Email address for which to trigger a verification request.

string email_address = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the phoneNumber field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(EndpointVerificationInfo other)

public EndpointVerificationInfo.Builder mergeFrom(EndpointVerificationInfo other)
Parameter
NameDescription
otherEndpointVerificationInfo
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
EndpointVerificationInfo.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final EndpointVerificationInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The emailAddress to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for emailAddress to set.

Returns
TypeDescription
EndpointVerificationInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public EndpointVerificationInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The phoneNumber to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for phoneNumber to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The requestToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for requestToken to set.

Returns
TypeDescription
EndpointVerificationInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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