Package com.heroiclabs.nakama.api
Class Account.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Account.Builder>
com.heroiclabs.nakama.api.Account.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,AccountOrBuilder
,Cloneable
- Enclosing class:
- Account
public static final class Account.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Account.Builder>
implements AccountOrBuilder
A user with additional account details. Always the current user.Protobuf type
nakama.api.Account
-
Method Summary
Modifier and TypeMethodDescriptionaddAllDevices
(Iterable<? extends AccountDevice> values) The devices which belong to the user's account.addDevices
(int index, AccountDevice value) The devices which belong to the user's account.addDevices
(int index, AccountDevice.Builder builderForValue) The devices which belong to the user's account.addDevices
(AccountDevice value) The devices which belong to the user's account.addDevices
(AccountDevice.Builder builderForValue) The devices which belong to the user's account.The devices which belong to the user's account.addDevicesBuilder
(int index) The devices which belong to the user's account.addRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
The custom id in the user's account.The devices which belong to the user's account.The UNIX time when the user's account was disabled/banned.The email address of the user.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) The user object.The UNIX time when the user's email was verified.The user's wallet data.clone()
The custom id in the user's account.com.google.protobuf.ByteString
The custom id in the user's account.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getDevices
(int index) The devices which belong to the user's account.getDevicesBuilder
(int index) The devices which belong to the user's account.The devices which belong to the user's account.int
The devices which belong to the user's account.The devices which belong to the user's account.getDevicesOrBuilder
(int index) The devices which belong to the user's account.List<? extends AccountDeviceOrBuilder>
The devices which belong to the user's account.The UNIX time when the user's account was disabled/banned.The UNIX time when the user's account was disabled/banned.The UNIX time when the user's account was disabled/banned.getEmail()
The email address of the user.com.google.protobuf.ByteString
The email address of the user.getUser()
The user object.The user object.The user object.The UNIX time when the user's email was verified.The UNIX time when the user's email was verified.The UNIX time when the user's email was verified.The user's wallet data.com.google.protobuf.ByteString
The user's wallet data.boolean
The UNIX time when the user's account was disabled/banned.boolean
hasUser()
The user object.boolean
The UNIX time when the user's email was verified.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeDisableTime
(Timestamp value) The UNIX time when the user's account was disabled/banned.mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) final Account.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) The user object.mergeVerifyTime
(Timestamp value) The UNIX time when the user's email was verified.removeDevices
(int index) The devices which belong to the user's account.setCustomId
(String value) The custom id in the user's account.setCustomIdBytes
(com.google.protobuf.ByteString value) The custom id in the user's account.setDevices
(int index, AccountDevice value) The devices which belong to the user's account.setDevices
(int index, AccountDevice.Builder builderForValue) The devices which belong to the user's account.setDisableTime
(Timestamp value) The UNIX time when the user's account was disabled/banned.setDisableTime
(Timestamp.Builder builderForValue) The UNIX time when the user's account was disabled/banned.The email address of the user.setEmailBytes
(com.google.protobuf.ByteString value) The email address of the user.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final Account.Builder
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) The user object.setUser
(User.Builder builderForValue) The user object.setVerifyTime
(Timestamp value) The UNIX time when the user's email was verified.setVerifyTime
(Timestamp.Builder builderForValue) The UNIX time when the user's email was verified.The user's wallet data.setWalletBytes
(com.google.protobuf.ByteString value) The user's wallet data.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Account.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Account.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Account.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Account.Builder>
-
setField
public Account.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Account.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Account.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Account.Builder>
-
setRepeatedField
public Account.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Account.Builder>
-
addRepeatedField
public Account.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Account.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Account.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Account.Builder>
-
mergeFrom
public Account.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Account.Builder>
- Throws:
IOException
-
hasUser
public boolean hasUser()The user object.
.nakama.api.User user = 1;
- Specified by:
hasUser
in interfaceAccountOrBuilder
- Returns:
- Whether the user field is set.
-
getUser
The user object.
.nakama.api.User user = 1;
- Specified by:
getUser
in interfaceAccountOrBuilder
- Returns:
- The user.
-
setUser
The user object.
.nakama.api.User user = 1;
-
setUser
The user object.
.nakama.api.User user = 1;
-
mergeUser
The user object.
.nakama.api.User user = 1;
-
clearUser
The user object.
.nakama.api.User user = 1;
-
getUserBuilder
The user object.
.nakama.api.User user = 1;
-
getUserOrBuilder
The user object.
.nakama.api.User user = 1;
- Specified by:
getUserOrBuilder
in interfaceAccountOrBuilder
-
getWallet
The user's wallet data.
string wallet = 2;
- Specified by:
getWallet
in interfaceAccountOrBuilder
- Returns:
- The wallet.
-
getWalletBytes
public com.google.protobuf.ByteString getWalletBytes()The user's wallet data.
string wallet = 2;
- Specified by:
getWalletBytes
in interfaceAccountOrBuilder
- Returns:
- The bytes for wallet.
-
setWallet
The user's wallet data.
string wallet = 2;
- Parameters:
value
- The wallet to set.- Returns:
- This builder for chaining.
-
clearWallet
The user's wallet data.
string wallet = 2;
- Returns:
- This builder for chaining.
-
setWalletBytes
The user's wallet data.
string wallet = 2;
- Parameters:
value
- The bytes for wallet to set.- Returns:
- This builder for chaining.
-
getEmail
The email address of the user.
string email = 3;
- Specified by:
getEmail
in interfaceAccountOrBuilder
- Returns:
- The email.
-
getEmailBytes
public com.google.protobuf.ByteString getEmailBytes()The email address of the user.
string email = 3;
- Specified by:
getEmailBytes
in interfaceAccountOrBuilder
- Returns:
- The bytes for email.
-
setEmail
The email address of the user.
string email = 3;
- Parameters:
value
- The email to set.- Returns:
- This builder for chaining.
-
clearEmail
The email address of the user.
string email = 3;
- Returns:
- This builder for chaining.
-
setEmailBytes
The email address of the user.
string email = 3;
- Parameters:
value
- The bytes for email to set.- Returns:
- This builder for chaining.
-
getDevicesList
The devices which belong to the user's account.
repeated .nakama.api.AccountDevice devices = 4;
- Specified by:
getDevicesList
in interfaceAccountOrBuilder
-
getDevicesCount
public int getDevicesCount()The devices which belong to the user's account.
repeated .nakama.api.AccountDevice devices = 4;
- Specified by:
getDevicesCount
in interfaceAccountOrBuilder
-
getDevices
The devices which belong to the user's account.
repeated .nakama.api.AccountDevice devices = 4;
- Specified by:
getDevices
in interfaceAccountOrBuilder
-
setDevices
The devices which belong to the user's account.
repeated .nakama.api.AccountDevice devices = 4;
-
setDevices
The devices which belong to the user's account.
repeated .nakama.api.AccountDevice devices = 4;
-
addDevices
The devices which belong to the user's account.
repeated .nakama.api.AccountDevice devices = 4;
-
addDevices
The devices which belong to the user's account.
repeated .nakama.api.AccountDevice devices = 4;
-
addDevices
The devices which belong to the user's account.
repeated .nakama.api.AccountDevice devices = 4;
-
addDevices
The devices which belong to the user's account.
repeated .nakama.api.AccountDevice devices = 4;
-
addAllDevices
The devices which belong to the user's account.
repeated .nakama.api.AccountDevice devices = 4;
-
clearDevices
The devices which belong to the user's account.
repeated .nakama.api.AccountDevice devices = 4;
-
removeDevices
The devices which belong to the user's account.
repeated .nakama.api.AccountDevice devices = 4;
-
getDevicesBuilder
The devices which belong to the user's account.
repeated .nakama.api.AccountDevice devices = 4;
-
getDevicesOrBuilder
The devices which belong to the user's account.
repeated .nakama.api.AccountDevice devices = 4;
- Specified by:
getDevicesOrBuilder
in interfaceAccountOrBuilder
-
getDevicesOrBuilderList
The devices which belong to the user's account.
repeated .nakama.api.AccountDevice devices = 4;
- Specified by:
getDevicesOrBuilderList
in interfaceAccountOrBuilder
-
addDevicesBuilder
The devices which belong to the user's account.
repeated .nakama.api.AccountDevice devices = 4;
-
addDevicesBuilder
The devices which belong to the user's account.
repeated .nakama.api.AccountDevice devices = 4;
-
getDevicesBuilderList
The devices which belong to the user's account.
repeated .nakama.api.AccountDevice devices = 4;
-
getCustomId
The custom id in the user's account.
string custom_id = 5;
- Specified by:
getCustomId
in interfaceAccountOrBuilder
- Returns:
- The customId.
-
getCustomIdBytes
public com.google.protobuf.ByteString getCustomIdBytes()The custom id in the user's account.
string custom_id = 5;
- Specified by:
getCustomIdBytes
in interfaceAccountOrBuilder
- Returns:
- The bytes for customId.
-
setCustomId
The custom id in the user's account.
string custom_id = 5;
- Parameters:
value
- The customId to set.- Returns:
- This builder for chaining.
-
clearCustomId
The custom id in the user's account.
string custom_id = 5;
- Returns:
- This builder for chaining.
-
setCustomIdBytes
The custom id in the user's account.
string custom_id = 5;
- Parameters:
value
- The bytes for customId to set.- Returns:
- This builder for chaining.
-
hasVerifyTime
public boolean hasVerifyTime()The UNIX time when the user's email was verified.
.google.protobuf.Timestamp verify_time = 6;
- Specified by:
hasVerifyTime
in interfaceAccountOrBuilder
- Returns:
- Whether the verifyTime field is set.
-
getVerifyTime
The UNIX time when the user's email was verified.
.google.protobuf.Timestamp verify_time = 6;
- Specified by:
getVerifyTime
in interfaceAccountOrBuilder
- Returns:
- The verifyTime.
-
setVerifyTime
The UNIX time when the user's email was verified.
.google.protobuf.Timestamp verify_time = 6;
-
setVerifyTime
The UNIX time when the user's email was verified.
.google.protobuf.Timestamp verify_time = 6;
-
mergeVerifyTime
The UNIX time when the user's email was verified.
.google.protobuf.Timestamp verify_time = 6;
-
clearVerifyTime
The UNIX time when the user's email was verified.
.google.protobuf.Timestamp verify_time = 6;
-
getVerifyTimeBuilder
The UNIX time when the user's email was verified.
.google.protobuf.Timestamp verify_time = 6;
-
getVerifyTimeOrBuilder
The UNIX time when the user's email was verified.
.google.protobuf.Timestamp verify_time = 6;
- Specified by:
getVerifyTimeOrBuilder
in interfaceAccountOrBuilder
-
hasDisableTime
public boolean hasDisableTime()The UNIX time when the user's account was disabled/banned.
.google.protobuf.Timestamp disable_time = 7;
- Specified by:
hasDisableTime
in interfaceAccountOrBuilder
- Returns:
- Whether the disableTime field is set.
-
getDisableTime
The UNIX time when the user's account was disabled/banned.
.google.protobuf.Timestamp disable_time = 7;
- Specified by:
getDisableTime
in interfaceAccountOrBuilder
- Returns:
- The disableTime.
-
setDisableTime
The UNIX time when the user's account was disabled/banned.
.google.protobuf.Timestamp disable_time = 7;
-
setDisableTime
The UNIX time when the user's account was disabled/banned.
.google.protobuf.Timestamp disable_time = 7;
-
mergeDisableTime
The UNIX time when the user's account was disabled/banned.
.google.protobuf.Timestamp disable_time = 7;
-
clearDisableTime
The UNIX time when the user's account was disabled/banned.
.google.protobuf.Timestamp disable_time = 7;
-
getDisableTimeBuilder
The UNIX time when the user's account was disabled/banned.
.google.protobuf.Timestamp disable_time = 7;
-
getDisableTimeOrBuilder
The UNIX time when the user's account was disabled/banned.
.google.protobuf.Timestamp disable_time = 7;
- Specified by:
getDisableTimeOrBuilder
in interfaceAccountOrBuilder
-
setUnknownFields
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Account.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Account.Builder>
-