Class AccountCustom.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<AccountCustom.Builder>
com.heroiclabs.nakama.api.AccountCustom.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, AccountCustomOrBuilder, Cloneable
Enclosing class:
AccountCustom

public static final class AccountCustom.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AccountCustom.Builder> implements AccountCustomOrBuilder
 Send a custom ID to the server. Used with authenticate/link/unlink.
 
Protobuf type nakama.api.AccountCustom
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapField internalGetMapField(int number)
      Overrides:
      internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<AccountCustom.Builder>
    • internalGetMutableMapField

      protected com.google.protobuf.MapField internalGetMutableMapField(int number)
      Overrides:
      internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<AccountCustom.Builder>
    • internalGetFieldAccessorTable

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

      public AccountCustom.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<AccountCustom.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<AccountCustom.Builder>
    • getDefaultInstanceForType

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

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

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

      public AccountCustom.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<AccountCustom.Builder>
    • setField

      public AccountCustom.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<AccountCustom.Builder>
    • clearField

      public AccountCustom.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<AccountCustom.Builder>
    • clearOneof

      public AccountCustom.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<AccountCustom.Builder>
    • setRepeatedField

      public AccountCustom.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<AccountCustom.Builder>
    • addRepeatedField

      public AccountCustom.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<AccountCustom.Builder>
    • mergeFrom

      public AccountCustom.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<AccountCustom.Builder>
    • mergeFrom

      public AccountCustom.Builder mergeFrom(AccountCustom other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AccountCustom.Builder>
    • mergeFrom

      public AccountCustom.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<AccountCustom.Builder>
      Throws:
      IOException
    • getId

      public String getId()
       A custom identifier.
       
      string id = 1;
      Specified by:
      getId in interface AccountCustomOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       A custom identifier.
       
      string id = 1;
      Specified by:
      getIdBytes in interface AccountCustomOrBuilder
      Returns:
      The bytes for id.
    • setId

      public AccountCustom.Builder setId(String value)
       A custom identifier.
       
      string id = 1;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public AccountCustom.Builder clearId()
       A custom identifier.
       
      string id = 1;
      Returns:
      This builder for chaining.
    • setIdBytes

      public AccountCustom.Builder setIdBytes(com.google.protobuf.ByteString value)
       A custom identifier.
       
      string id = 1;
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getVarsCount

      public int getVarsCount()
      Description copied from interface: AccountCustomOrBuilder
       Extra information that will be bundled in the session token.
       
      map<string, string> vars = 2;
      Specified by:
      getVarsCount in interface AccountCustomOrBuilder
    • containsVars

      public boolean containsVars(String key)
       Extra information that will be bundled in the session token.
       
      map<string, string> vars = 2;
      Specified by:
      containsVars in interface AccountCustomOrBuilder
    • getVars

      @Deprecated public Map<String,String> getVars()
      Deprecated.
      Use getVarsMap() instead.
      Specified by:
      getVars in interface AccountCustomOrBuilder
    • getVarsMap

      public Map<String,String> getVarsMap()
       Extra information that will be bundled in the session token.
       
      map<string, string> vars = 2;
      Specified by:
      getVarsMap in interface AccountCustomOrBuilder
    • getVarsOrDefault

      public String getVarsOrDefault(String key, String defaultValue)
       Extra information that will be bundled in the session token.
       
      map<string, string> vars = 2;
      Specified by:
      getVarsOrDefault in interface AccountCustomOrBuilder
    • getVarsOrThrow

      public String getVarsOrThrow(String key)
       Extra information that will be bundled in the session token.
       
      map<string, string> vars = 2;
      Specified by:
      getVarsOrThrow in interface AccountCustomOrBuilder
    • clearVars

      public AccountCustom.Builder clearVars()
    • removeVars

      public AccountCustom.Builder removeVars(String key)
       Extra information that will be bundled in the session token.
       
      map<string, string> vars = 2;
    • getMutableVars

      @Deprecated public Map<String,String> getMutableVars()
      Deprecated.
      Use alternate mutation accessors instead.
    • putVars

      public AccountCustom.Builder putVars(String key, String value)
       Extra information that will be bundled in the session token.
       
      map<string, string> vars = 2;
    • putAllVars

      public AccountCustom.Builder putAllVars(Map<String,String> values)
       Extra information that will be bundled in the session token.
       
      map<string, string> vars = 2;
    • setUnknownFields

      public final AccountCustom.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<AccountCustom.Builder>
    • mergeUnknownFields

      public final AccountCustom.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<AccountCustom.Builder>