Class UserRetrieveResponse.Builder
-
- All Implemented Interfaces:
public final class UserRetrieveResponse.BuilderA builder for UserRetrieveResponse.
-
-
Method Summary
-
-
Method Detail
-
id
final UserRetrieveResponse.Builder id(String id)
Identifier for the user.
-
id
final UserRetrieveResponse.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
email
final UserRetrieveResponse.Builder email(String email)
Email address of the user, or
nullfor users without an email.
-
email
final UserRetrieveResponse.Builder email(Optional<String> email)
Alias for calling Builder.email with
email.orElse(null).
-
email
final UserRetrieveResponse.Builder email(JsonField<String> email)
Sets Builder.email to an arbitrary JSON value.
You should usually call Builder.email with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
isServiceAccount
final UserRetrieveResponse.Builder isServiceAccount(Boolean isServiceAccount)
Whether the user is a service account.
-
isServiceAccount
final UserRetrieveResponse.Builder isServiceAccount(Boolean isServiceAccount)
Alias for Builder.isServiceAccount.
This unboxed primitive overload exists for backwards compatibility.
-
isServiceAccount
final UserRetrieveResponse.Builder isServiceAccount(Optional<Boolean> isServiceAccount)
Alias for calling Builder.isServiceAccount with
isServiceAccount.orElse(null).
-
isServiceAccount
final UserRetrieveResponse.Builder isServiceAccount(JsonField<Boolean> isServiceAccount)
Sets Builder.isServiceAccount to an arbitrary JSON value.
You should usually call Builder.isServiceAccount with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final UserRetrieveResponse.Builder name(String name)
Display name of the user.
-
name
final UserRetrieveResponse.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
picture
final UserRetrieveResponse.Builder picture(String picture)
URL of the user's profile picture, if available.
-
picture
final UserRetrieveResponse.Builder picture(Optional<String> picture)
Alias for calling Builder.picture with
picture.orElse(null).
-
picture
final UserRetrieveResponse.Builder picture(JsonField<String> picture)
Sets Builder.picture to an arbitrary JSON value.
You should usually call Builder.picture with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
userType
final UserRetrieveResponse.Builder userType(UserRetrieveResponse.UserType userType)
The type of user.
-
userType
final UserRetrieveResponse.Builder userType(JsonField<UserRetrieveResponse.UserType> userType)
Sets Builder.userType to an arbitrary JSON value.
You should usually call Builder.userType with a well-typed UserType value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final UserRetrieveResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final UserRetrieveResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final UserRetrieveResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final UserRetrieveResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final UserRetrieveResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final UserRetrieveResponse build()
Returns an immutable instance of UserRetrieveResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .email() .isServiceAccount() .name() .picture() .userType()
-
-
-
-