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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Account.Builder>
    • clear

      public Account.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<Account.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Account.Builder>
    • getDefaultInstanceForType

      public Account getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Account build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Account buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public Account.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Account.Builder>
    • setField

      public Account.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Account.Builder>
    • clearField

      public Account.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Account.Builder>
    • clearOneof

      public Account.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Account.Builder>
    • addRepeatedField

      public Account.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Account.Builder>
    • mergeFrom

      public Account.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Account.Builder>
    • mergeFrom

      public Account.Builder mergeFrom(Account other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Account.Builder>
      Throws:
      IOException
    • hasUser

      public boolean hasUser()
       The user object.
       
      .nakama.api.User user = 1;
      Specified by:
      hasUser in interface AccountOrBuilder
      Returns:
      Whether the user field is set.
    • getUser

      public User getUser()
       The user object.
       
      .nakama.api.User user = 1;
      Specified by:
      getUser in interface AccountOrBuilder
      Returns:
      The user.
    • setUser

      public Account.Builder setUser(User value)
       The user object.
       
      .nakama.api.User user = 1;
    • setUser

      public Account.Builder setUser(User.Builder builderForValue)
       The user object.
       
      .nakama.api.User user = 1;
    • mergeUser

      public Account.Builder mergeUser(User value)
       The user object.
       
      .nakama.api.User user = 1;
    • clearUser

      public Account.Builder clearUser()
       The user object.
       
      .nakama.api.User user = 1;
    • getUserBuilder

      public User.Builder getUserBuilder()
       The user object.
       
      .nakama.api.User user = 1;
    • getUserOrBuilder

      public UserOrBuilder getUserOrBuilder()
       The user object.
       
      .nakama.api.User user = 1;
      Specified by:
      getUserOrBuilder in interface AccountOrBuilder
    • getWallet

      public String getWallet()
       The user's wallet data.
       
      string wallet = 2;
      Specified by:
      getWallet in interface AccountOrBuilder
      Returns:
      The wallet.
    • getWalletBytes

      public com.google.protobuf.ByteString getWalletBytes()
       The user's wallet data.
       
      string wallet = 2;
      Specified by:
      getWalletBytes in interface AccountOrBuilder
      Returns:
      The bytes for wallet.
    • setWallet

      public Account.Builder setWallet(String value)
       The user's wallet data.
       
      string wallet = 2;
      Parameters:
      value - The wallet to set.
      Returns:
      This builder for chaining.
    • clearWallet

      public Account.Builder clearWallet()
       The user's wallet data.
       
      string wallet = 2;
      Returns:
      This builder for chaining.
    • setWalletBytes

      public Account.Builder setWalletBytes(com.google.protobuf.ByteString value)
       The user's wallet data.
       
      string wallet = 2;
      Parameters:
      value - The bytes for wallet to set.
      Returns:
      This builder for chaining.
    • getEmail

      public String getEmail()
       The email address of the user.
       
      string email = 3;
      Specified by:
      getEmail in interface AccountOrBuilder
      Returns:
      The email.
    • getEmailBytes

      public com.google.protobuf.ByteString getEmailBytes()
       The email address of the user.
       
      string email = 3;
      Specified by:
      getEmailBytes in interface AccountOrBuilder
      Returns:
      The bytes for email.
    • setEmail

      public Account.Builder setEmail(String value)
       The email address of the user.
       
      string email = 3;
      Parameters:
      value - The email to set.
      Returns:
      This builder for chaining.
    • clearEmail

      public Account.Builder clearEmail()
       The email address of the user.
       
      string email = 3;
      Returns:
      This builder for chaining.
    • setEmailBytes

      public Account.Builder setEmailBytes(com.google.protobuf.ByteString value)
       The email address of the user.
       
      string email = 3;
      Parameters:
      value - The bytes for email to set.
      Returns:
      This builder for chaining.
    • getDevicesList

      public List<AccountDevice> getDevicesList()
       The devices which belong to the user's account.
       
      repeated .nakama.api.AccountDevice devices = 4;
      Specified by:
      getDevicesList in interface AccountOrBuilder
    • getDevicesCount

      public int getDevicesCount()
       The devices which belong to the user's account.
       
      repeated .nakama.api.AccountDevice devices = 4;
      Specified by:
      getDevicesCount in interface AccountOrBuilder
    • getDevices

      public AccountDevice getDevices(int index)
       The devices which belong to the user's account.
       
      repeated .nakama.api.AccountDevice devices = 4;
      Specified by:
      getDevices in interface AccountOrBuilder
    • setDevices

      public Account.Builder setDevices(int index, AccountDevice value)
       The devices which belong to the user's account.
       
      repeated .nakama.api.AccountDevice devices = 4;
    • setDevices

      public Account.Builder setDevices(int index, AccountDevice.Builder builderForValue)
       The devices which belong to the user's account.
       
      repeated .nakama.api.AccountDevice devices = 4;
    • addDevices

      public Account.Builder addDevices(AccountDevice value)
       The devices which belong to the user's account.
       
      repeated .nakama.api.AccountDevice devices = 4;
    • addDevices

      public Account.Builder addDevices(int index, AccountDevice value)
       The devices which belong to the user's account.
       
      repeated .nakama.api.AccountDevice devices = 4;
    • addDevices

      public Account.Builder addDevices(AccountDevice.Builder builderForValue)
       The devices which belong to the user's account.
       
      repeated .nakama.api.AccountDevice devices = 4;
    • addDevices

      public Account.Builder addDevices(int index, AccountDevice.Builder builderForValue)
       The devices which belong to the user's account.
       
      repeated .nakama.api.AccountDevice devices = 4;
    • addAllDevices

      public Account.Builder addAllDevices(Iterable<? extends AccountDevice> values)
       The devices which belong to the user's account.
       
      repeated .nakama.api.AccountDevice devices = 4;
    • clearDevices

      public Account.Builder clearDevices()
       The devices which belong to the user's account.
       
      repeated .nakama.api.AccountDevice devices = 4;
    • removeDevices

      public Account.Builder removeDevices(int index)
       The devices which belong to the user's account.
       
      repeated .nakama.api.AccountDevice devices = 4;
    • getDevicesBuilder

      public AccountDevice.Builder getDevicesBuilder(int index)
       The devices which belong to the user's account.
       
      repeated .nakama.api.AccountDevice devices = 4;
    • getDevicesOrBuilder

      public AccountDeviceOrBuilder getDevicesOrBuilder(int index)
       The devices which belong to the user's account.
       
      repeated .nakama.api.AccountDevice devices = 4;
      Specified by:
      getDevicesOrBuilder in interface AccountOrBuilder
    • getDevicesOrBuilderList

      public List<? extends AccountDeviceOrBuilder> getDevicesOrBuilderList()
       The devices which belong to the user's account.
       
      repeated .nakama.api.AccountDevice devices = 4;
      Specified by:
      getDevicesOrBuilderList in interface AccountOrBuilder
    • addDevicesBuilder

      public AccountDevice.Builder addDevicesBuilder()
       The devices which belong to the user's account.
       
      repeated .nakama.api.AccountDevice devices = 4;
    • addDevicesBuilder

      public AccountDevice.Builder addDevicesBuilder(int index)
       The devices which belong to the user's account.
       
      repeated .nakama.api.AccountDevice devices = 4;
    • getDevicesBuilderList

      public List<AccountDevice.Builder> getDevicesBuilderList()
       The devices which belong to the user's account.
       
      repeated .nakama.api.AccountDevice devices = 4;
    • getCustomId

      public String getCustomId()
       The custom id in the user's account.
       
      string custom_id = 5;
      Specified by:
      getCustomId in interface AccountOrBuilder
      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 interface AccountOrBuilder
      Returns:
      The bytes for customId.
    • setCustomId

      public Account.Builder setCustomId(String value)
       The custom id in the user's account.
       
      string custom_id = 5;
      Parameters:
      value - The customId to set.
      Returns:
      This builder for chaining.
    • clearCustomId

      public Account.Builder clearCustomId()
       The custom id in the user's account.
       
      string custom_id = 5;
      Returns:
      This builder for chaining.
    • setCustomIdBytes

      public Account.Builder setCustomIdBytes(com.google.protobuf.ByteString value)
       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 interface AccountOrBuilder
      Returns:
      Whether the verifyTime field is set.
    • getVerifyTime

      public Timestamp getVerifyTime()
       The UNIX time when the user's email was verified.
       
      .google.protobuf.Timestamp verify_time = 6;
      Specified by:
      getVerifyTime in interface AccountOrBuilder
      Returns:
      The verifyTime.
    • setVerifyTime

      public Account.Builder setVerifyTime(Timestamp value)
       The UNIX time when the user's email was verified.
       
      .google.protobuf.Timestamp verify_time = 6;
    • setVerifyTime

      public Account.Builder setVerifyTime(Timestamp.Builder builderForValue)
       The UNIX time when the user's email was verified.
       
      .google.protobuf.Timestamp verify_time = 6;
    • mergeVerifyTime

      public Account.Builder mergeVerifyTime(Timestamp value)
       The UNIX time when the user's email was verified.
       
      .google.protobuf.Timestamp verify_time = 6;
    • clearVerifyTime

      public Account.Builder clearVerifyTime()
       The UNIX time when the user's email was verified.
       
      .google.protobuf.Timestamp verify_time = 6;
    • getVerifyTimeBuilder

      public Timestamp.Builder getVerifyTimeBuilder()
       The UNIX time when the user's email was verified.
       
      .google.protobuf.Timestamp verify_time = 6;
    • getVerifyTimeOrBuilder

      public TimestampOrBuilder getVerifyTimeOrBuilder()
       The UNIX time when the user's email was verified.
       
      .google.protobuf.Timestamp verify_time = 6;
      Specified by:
      getVerifyTimeOrBuilder in interface AccountOrBuilder
    • 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 interface AccountOrBuilder
      Returns:
      Whether the disableTime field is set.
    • getDisableTime

      public Timestamp getDisableTime()
       The UNIX time when the user's account was disabled/banned.
       
      .google.protobuf.Timestamp disable_time = 7;
      Specified by:
      getDisableTime in interface AccountOrBuilder
      Returns:
      The disableTime.
    • setDisableTime

      public Account.Builder setDisableTime(Timestamp value)
       The UNIX time when the user's account was disabled/banned.
       
      .google.protobuf.Timestamp disable_time = 7;
    • setDisableTime

      public Account.Builder setDisableTime(Timestamp.Builder builderForValue)
       The UNIX time when the user's account was disabled/banned.
       
      .google.protobuf.Timestamp disable_time = 7;
    • mergeDisableTime

      public Account.Builder mergeDisableTime(Timestamp value)
       The UNIX time when the user's account was disabled/banned.
       
      .google.protobuf.Timestamp disable_time = 7;
    • clearDisableTime

      public Account.Builder clearDisableTime()
       The UNIX time when the user's account was disabled/banned.
       
      .google.protobuf.Timestamp disable_time = 7;
    • getDisableTimeBuilder

      public Timestamp.Builder getDisableTimeBuilder()
       The UNIX time when the user's account was disabled/banned.
       
      .google.protobuf.Timestamp disable_time = 7;
    • getDisableTimeOrBuilder

      public TimestampOrBuilder getDisableTimeOrBuilder()
       The UNIX time when the user's account was disabled/banned.
       
      .google.protobuf.Timestamp disable_time = 7;
      Specified by:
      getDisableTimeOrBuilder in interface AccountOrBuilder
    • setUnknownFields

      public final Account.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Account.Builder>
    • mergeUnknownFields

      public final Account.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Account.Builder>