Class AuthEventData.Builder (0.14.1)

public static final class AuthEventData.Builder extends GeneratedMessageV3.Builder<AuthEventData.Builder> implements AuthEventDataOrBuilder

The data within all Firebase Auth events.

Protobuf type google.events.firebase.auth.v1.AuthEventData

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllProviderData(Iterable<? extends UserInfo> values)

public AuthEventData.Builder addAllProviderData(Iterable<? extends UserInfo> values)

User's info at the providers

repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8;

Parameter
NameDescription
valuesIterable<? extends com.google.events.firebase.auth.v1.UserInfo>
Returns
TypeDescription
AuthEventData.Builder

addProviderData(UserInfo value)

public AuthEventData.Builder addProviderData(UserInfo value)

User's info at the providers

repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8;

Parameter
NameDescription
valueUserInfo
Returns
TypeDescription
AuthEventData.Builder

addProviderData(UserInfo.Builder builderForValue)

public AuthEventData.Builder addProviderData(UserInfo.Builder builderForValue)

User's info at the providers

repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8;

Parameter
NameDescription
builderForValueUserInfo.Builder
Returns
TypeDescription
AuthEventData.Builder

addProviderData(int index, UserInfo value)

public AuthEventData.Builder addProviderData(int index, UserInfo value)

User's info at the providers

repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8;

Parameters
NameDescription
indexint
valueUserInfo
Returns
TypeDescription
AuthEventData.Builder

addProviderData(int index, UserInfo.Builder builderForValue)

public AuthEventData.Builder addProviderData(int index, UserInfo.Builder builderForValue)

User's info at the providers

repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8;

Parameters
NameDescription
indexint
builderForValueUserInfo.Builder
Returns
TypeDescription
AuthEventData.Builder

addProviderDataBuilder()

public UserInfo.Builder addProviderDataBuilder()

User's info at the providers

repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8;

Returns
TypeDescription
UserInfo.Builder

addProviderDataBuilder(int index)

public UserInfo.Builder addProviderDataBuilder(int index)

User's info at the providers

repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
UserInfo.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AuthEventData build()
Returns
TypeDescription
AuthEventData

buildPartial()

public AuthEventData buildPartial()
Returns
TypeDescription
AuthEventData

clear()

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

clearCustomClaims()

public AuthEventData.Builder clearCustomClaims()

User's custom claims, typically used to define user roles and propagated to an authenticated user's ID token.

.google.protobuf.Struct custom_claims = 10;

Returns
TypeDescription
AuthEventData.Builder

clearDisabled()

public AuthEventData.Builder clearDisabled()

Whether the user is disabled.

bool disabled = 6;

Returns
TypeDescription
AuthEventData.Builder

This builder for chaining.

clearDisplayName()

public AuthEventData.Builder clearDisplayName()

The user's display name.

string display_name = 4;

Returns
TypeDescription
AuthEventData.Builder

This builder for chaining.

clearEmail()

public AuthEventData.Builder clearEmail()

The user's primary email, if set.

string email = 2;

Returns
TypeDescription
AuthEventData.Builder

This builder for chaining.

clearEmailVerified()

public AuthEventData.Builder clearEmailVerified()

Whether or not the user's primary email is verified.

bool email_verified = 3;

Returns
TypeDescription
AuthEventData.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AuthEventData.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AuthEventData.Builder
Overrides

clearMetadata()

public AuthEventData.Builder clearMetadata()

Additional metadata about the user.

.google.events.firebase.auth.v1.UserMetadata metadata = 7;

Returns
TypeDescription
AuthEventData.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public AuthEventData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AuthEventData.Builder
Overrides

clearPhoneNumber()

public AuthEventData.Builder clearPhoneNumber()

The user's phone number.

string phone_number = 9;

Returns
TypeDescription
AuthEventData.Builder

This builder for chaining.

clearPhotoURL()

public AuthEventData.Builder clearPhotoURL()

The user's photo URL.

string photo_URL = 5;

Returns
TypeDescription
AuthEventData.Builder

This builder for chaining.

clearProviderData()

public AuthEventData.Builder clearProviderData()

User's info at the providers

repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8;

Returns
TypeDescription
AuthEventData.Builder

clearUid()

public AuthEventData.Builder clearUid()

The user identifier in the Firebase app.

string uid = 1;

Returns
TypeDescription
AuthEventData.Builder

This builder for chaining.

clone()

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

getCustomClaims()

public Struct getCustomClaims()

User's custom claims, typically used to define user roles and propagated to an authenticated user's ID token.

.google.protobuf.Struct custom_claims = 10;

Returns
TypeDescription
Struct

The customClaims.

getCustomClaimsBuilder()

public Struct.Builder getCustomClaimsBuilder()

User's custom claims, typically used to define user roles and propagated to an authenticated user's ID token.

.google.protobuf.Struct custom_claims = 10;

Returns
TypeDescription
Builder

getCustomClaimsOrBuilder()

public StructOrBuilder getCustomClaimsOrBuilder()

User's custom claims, typically used to define user roles and propagated to an authenticated user's ID token.

.google.protobuf.Struct custom_claims = 10;

Returns
TypeDescription
StructOrBuilder

getDefaultInstanceForType()

public AuthEventData getDefaultInstanceForType()
Returns
TypeDescription
AuthEventData

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisabled()

public boolean getDisabled()

Whether the user is disabled.

bool disabled = 6;

Returns
TypeDescription
boolean

The disabled.

getDisplayName()

public String getDisplayName()

The user's display name.

string display_name = 4;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The user's display name.

string display_name = 4;

Returns
TypeDescription
ByteString

The bytes for displayName.

getEmail()

public String getEmail()

The user's primary email, if set.

string email = 2;

Returns
TypeDescription
String

The email.

getEmailBytes()

public ByteString getEmailBytes()

The user's primary email, if set.

string email = 2;

Returns
TypeDescription
ByteString

The bytes for email.

getEmailVerified()

public boolean getEmailVerified()

Whether or not the user's primary email is verified.

bool email_verified = 3;

Returns
TypeDescription
boolean

The emailVerified.

getMetadata()

public UserMetadata getMetadata()

Additional metadata about the user.

.google.events.firebase.auth.v1.UserMetadata metadata = 7;

Returns
TypeDescription
UserMetadata

The metadata.

getMetadataBuilder()

public UserMetadata.Builder getMetadataBuilder()

Additional metadata about the user.

.google.events.firebase.auth.v1.UserMetadata metadata = 7;

Returns
TypeDescription
UserMetadata.Builder

getMetadataOrBuilder()

public UserMetadataOrBuilder getMetadataOrBuilder()

Additional metadata about the user.

.google.events.firebase.auth.v1.UserMetadata metadata = 7;

Returns
TypeDescription
UserMetadataOrBuilder

getPhoneNumber()

public String getPhoneNumber()

The user's phone number.

string phone_number = 9;

Returns
TypeDescription
String

The phoneNumber.

getPhoneNumberBytes()

public ByteString getPhoneNumberBytes()

The user's phone number.

string phone_number = 9;

Returns
TypeDescription
ByteString

The bytes for phoneNumber.

getPhotoURL()

public String getPhotoURL()

The user's photo URL.

string photo_URL = 5;

Returns
TypeDescription
String

The photoURL.

getPhotoURLBytes()

public ByteString getPhotoURLBytes()

The user's photo URL.

string photo_URL = 5;

Returns
TypeDescription
ByteString

The bytes for photoURL.

getProviderData(int index)

public UserInfo getProviderData(int index)

User's info at the providers

repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
UserInfo

getProviderDataBuilder(int index)

public UserInfo.Builder getProviderDataBuilder(int index)

User's info at the providers

repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
UserInfo.Builder

getProviderDataBuilderList()

public List<UserInfo.Builder> getProviderDataBuilderList()

User's info at the providers

repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8;

Returns
TypeDescription
List<Builder>

getProviderDataCount()

public int getProviderDataCount()

User's info at the providers

repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8;

Returns
TypeDescription
int

getProviderDataList()

public List<UserInfo> getProviderDataList()

User's info at the providers

repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8;

Returns
TypeDescription
List<UserInfo>

getProviderDataOrBuilder(int index)

public UserInfoOrBuilder getProviderDataOrBuilder(int index)

User's info at the providers

repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
UserInfoOrBuilder

getProviderDataOrBuilderList()

public List<? extends UserInfoOrBuilder> getProviderDataOrBuilderList()

User's info at the providers

repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8;

Returns
TypeDescription
List<? extends com.google.events.firebase.auth.v1.UserInfoOrBuilder>

getUid()

public String getUid()

The user identifier in the Firebase app.

string uid = 1;

Returns
TypeDescription
String

The uid.

getUidBytes()

public ByteString getUidBytes()

The user identifier in the Firebase app.

string uid = 1;

Returns
TypeDescription
ByteString

The bytes for uid.

hasCustomClaims()

public boolean hasCustomClaims()

User's custom claims, typically used to define user roles and propagated to an authenticated user's ID token.

.google.protobuf.Struct custom_claims = 10;

Returns
TypeDescription
boolean

Whether the customClaims field is set.

hasMetadata()

public boolean hasMetadata()

Additional metadata about the user.

.google.events.firebase.auth.v1.UserMetadata metadata = 7;

Returns
TypeDescription
boolean

Whether the metadata field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCustomClaims(Struct value)

public AuthEventData.Builder mergeCustomClaims(Struct value)

User's custom claims, typically used to define user roles and propagated to an authenticated user's ID token.

.google.protobuf.Struct custom_claims = 10;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
AuthEventData.Builder

mergeFrom(AuthEventData other)

public AuthEventData.Builder mergeFrom(AuthEventData other)
Parameter
NameDescription
otherAuthEventData
Returns
TypeDescription
AuthEventData.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMetadata(UserMetadata value)

public AuthEventData.Builder mergeMetadata(UserMetadata value)

Additional metadata about the user.

.google.events.firebase.auth.v1.UserMetadata metadata = 7;

Parameter
NameDescription
valueUserMetadata
Returns
TypeDescription
AuthEventData.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AuthEventData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AuthEventData.Builder
Overrides

removeProviderData(int index)

public AuthEventData.Builder removeProviderData(int index)

User's info at the providers

repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
AuthEventData.Builder

setCustomClaims(Struct value)

public AuthEventData.Builder setCustomClaims(Struct value)

User's custom claims, typically used to define user roles and propagated to an authenticated user's ID token.

.google.protobuf.Struct custom_claims = 10;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
AuthEventData.Builder

setCustomClaims(Struct.Builder builderForValue)

public AuthEventData.Builder setCustomClaims(Struct.Builder builderForValue)

User's custom claims, typically used to define user roles and propagated to an authenticated user's ID token.

.google.protobuf.Struct custom_claims = 10;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
AuthEventData.Builder

setDisabled(boolean value)

public AuthEventData.Builder setDisabled(boolean value)

Whether the user is disabled.

bool disabled = 6;

Parameter
NameDescription
valueboolean

The disabled to set.

Returns
TypeDescription
AuthEventData.Builder

This builder for chaining.

setDisplayName(String value)

public AuthEventData.Builder setDisplayName(String value)

The user's display name.

string display_name = 4;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
AuthEventData.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public AuthEventData.Builder setDisplayNameBytes(ByteString value)

The user's display name.

string display_name = 4;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
AuthEventData.Builder

This builder for chaining.

setEmail(String value)

public AuthEventData.Builder setEmail(String value)

The user's primary email, if set.

string email = 2;

Parameter
NameDescription
valueString

The email to set.

Returns
TypeDescription
AuthEventData.Builder

This builder for chaining.

setEmailBytes(ByteString value)

public AuthEventData.Builder setEmailBytes(ByteString value)

The user's primary email, if set.

string email = 2;

Parameter
NameDescription
valueByteString

The bytes for email to set.

Returns
TypeDescription
AuthEventData.Builder

This builder for chaining.

setEmailVerified(boolean value)

public AuthEventData.Builder setEmailVerified(boolean value)

Whether or not the user's primary email is verified.

bool email_verified = 3;

Parameter
NameDescription
valueboolean

The emailVerified to set.

Returns
TypeDescription
AuthEventData.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMetadata(UserMetadata value)

public AuthEventData.Builder setMetadata(UserMetadata value)

Additional metadata about the user.

.google.events.firebase.auth.v1.UserMetadata metadata = 7;

Parameter
NameDescription
valueUserMetadata
Returns
TypeDescription
AuthEventData.Builder

setMetadata(UserMetadata.Builder builderForValue)

public AuthEventData.Builder setMetadata(UserMetadata.Builder builderForValue)

Additional metadata about the user.

.google.events.firebase.auth.v1.UserMetadata metadata = 7;

Parameter
NameDescription
builderForValueUserMetadata.Builder
Returns
TypeDescription
AuthEventData.Builder

setPhoneNumber(String value)

public AuthEventData.Builder setPhoneNumber(String value)

The user's phone number.

string phone_number = 9;

Parameter
NameDescription
valueString

The phoneNumber to set.

Returns
TypeDescription
AuthEventData.Builder

This builder for chaining.

setPhoneNumberBytes(ByteString value)

public AuthEventData.Builder setPhoneNumberBytes(ByteString value)

The user's phone number.

string phone_number = 9;

Parameter
NameDescription
valueByteString

The bytes for phoneNumber to set.

Returns
TypeDescription
AuthEventData.Builder

This builder for chaining.

setPhotoURL(String value)

public AuthEventData.Builder setPhotoURL(String value)

The user's photo URL.

string photo_URL = 5;

Parameter
NameDescription
valueString

The photoURL to set.

Returns
TypeDescription
AuthEventData.Builder

This builder for chaining.

setPhotoURLBytes(ByteString value)

public AuthEventData.Builder setPhotoURLBytes(ByteString value)

The user's photo URL.

string photo_URL = 5;

Parameter
NameDescription
valueByteString

The bytes for photoURL to set.

Returns
TypeDescription
AuthEventData.Builder

This builder for chaining.

setProviderData(int index, UserInfo value)

public AuthEventData.Builder setProviderData(int index, UserInfo value)

User's info at the providers

repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8;

Parameters
NameDescription
indexint
valueUserInfo
Returns
TypeDescription
AuthEventData.Builder

setProviderData(int index, UserInfo.Builder builderForValue)

public AuthEventData.Builder setProviderData(int index, UserInfo.Builder builderForValue)

User's info at the providers

repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8;

Parameters
NameDescription
indexint
builderForValueUserInfo.Builder
Returns
TypeDescription
AuthEventData.Builder

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

public AuthEventData.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AuthEventData.Builder
Overrides

setUid(String value)

public AuthEventData.Builder setUid(String value)

The user identifier in the Firebase app.

string uid = 1;

Parameter
NameDescription
valueString

The uid to set.

Returns
TypeDescription
AuthEventData.Builder

This builder for chaining.

setUidBytes(ByteString value)

public AuthEventData.Builder setUidBytes(ByteString value)

The user identifier in the Firebase app.

string uid = 1;

Parameter
NameDescription
valueByteString

The bytes for uid to set.

Returns
TypeDescription
AuthEventData.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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