Class AccountGameCenter.Builder

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

public static final class AccountGameCenter.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AccountGameCenter.Builder> implements AccountGameCenterOrBuilder
 Send Apple's Game Center account credentials to the server. Used with authenticate/link/unlink.
 
Protobuf type nakama.api.AccountGameCenter
  • 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<AccountGameCenter.Builder>
    • internalGetMutableMapField

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

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

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

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

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

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

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

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

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

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

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

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

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

      public AccountGameCenter.Builder mergeFrom(AccountGameCenter other)
    • isInitialized

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

      public AccountGameCenter.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<AccountGameCenter.Builder>
      Throws:
      IOException
    • getPlayerId

      public String getPlayerId()
       Player ID (generated by GameCenter).
       
      string player_id = 1;
      Specified by:
      getPlayerId in interface AccountGameCenterOrBuilder
      Returns:
      The playerId.
    • getPlayerIdBytes

      public com.google.protobuf.ByteString getPlayerIdBytes()
       Player ID (generated by GameCenter).
       
      string player_id = 1;
      Specified by:
      getPlayerIdBytes in interface AccountGameCenterOrBuilder
      Returns:
      The bytes for playerId.
    • setPlayerId

      public AccountGameCenter.Builder setPlayerId(String value)
       Player ID (generated by GameCenter).
       
      string player_id = 1;
      Parameters:
      value - The playerId to set.
      Returns:
      This builder for chaining.
    • clearPlayerId

      public AccountGameCenter.Builder clearPlayerId()
       Player ID (generated by GameCenter).
       
      string player_id = 1;
      Returns:
      This builder for chaining.
    • setPlayerIdBytes

      public AccountGameCenter.Builder setPlayerIdBytes(com.google.protobuf.ByteString value)
       Player ID (generated by GameCenter).
       
      string player_id = 1;
      Parameters:
      value - The bytes for playerId to set.
      Returns:
      This builder for chaining.
    • getBundleId

      public String getBundleId()
       Bundle ID (generated by GameCenter).
       
      string bundle_id = 2;
      Specified by:
      getBundleId in interface AccountGameCenterOrBuilder
      Returns:
      The bundleId.
    • getBundleIdBytes

      public com.google.protobuf.ByteString getBundleIdBytes()
       Bundle ID (generated by GameCenter).
       
      string bundle_id = 2;
      Specified by:
      getBundleIdBytes in interface AccountGameCenterOrBuilder
      Returns:
      The bytes for bundleId.
    • setBundleId

      public AccountGameCenter.Builder setBundleId(String value)
       Bundle ID (generated by GameCenter).
       
      string bundle_id = 2;
      Parameters:
      value - The bundleId to set.
      Returns:
      This builder for chaining.
    • clearBundleId

      public AccountGameCenter.Builder clearBundleId()
       Bundle ID (generated by GameCenter).
       
      string bundle_id = 2;
      Returns:
      This builder for chaining.
    • setBundleIdBytes

      public AccountGameCenter.Builder setBundleIdBytes(com.google.protobuf.ByteString value)
       Bundle ID (generated by GameCenter).
       
      string bundle_id = 2;
      Parameters:
      value - The bytes for bundleId to set.
      Returns:
      This builder for chaining.
    • getTimestampSeconds

      public long getTimestampSeconds()
       Time since UNIX epoch when the signature was created.
       
      int64 timestamp_seconds = 3;
      Specified by:
      getTimestampSeconds in interface AccountGameCenterOrBuilder
      Returns:
      The timestampSeconds.
    • setTimestampSeconds

      public AccountGameCenter.Builder setTimestampSeconds(long value)
       Time since UNIX epoch when the signature was created.
       
      int64 timestamp_seconds = 3;
      Parameters:
      value - The timestampSeconds to set.
      Returns:
      This builder for chaining.
    • clearTimestampSeconds

      public AccountGameCenter.Builder clearTimestampSeconds()
       Time since UNIX epoch when the signature was created.
       
      int64 timestamp_seconds = 3;
      Returns:
      This builder for chaining.
    • getSalt

      public String getSalt()
       A random "NSString" used to compute the hash and keep it randomized.
       
      string salt = 4;
      Specified by:
      getSalt in interface AccountGameCenterOrBuilder
      Returns:
      The salt.
    • getSaltBytes

      public com.google.protobuf.ByteString getSaltBytes()
       A random "NSString" used to compute the hash and keep it randomized.
       
      string salt = 4;
      Specified by:
      getSaltBytes in interface AccountGameCenterOrBuilder
      Returns:
      The bytes for salt.
    • setSalt

      public AccountGameCenter.Builder setSalt(String value)
       A random "NSString" used to compute the hash and keep it randomized.
       
      string salt = 4;
      Parameters:
      value - The salt to set.
      Returns:
      This builder for chaining.
    • clearSalt

      public AccountGameCenter.Builder clearSalt()
       A random "NSString" used to compute the hash and keep it randomized.
       
      string salt = 4;
      Returns:
      This builder for chaining.
    • setSaltBytes

      public AccountGameCenter.Builder setSaltBytes(com.google.protobuf.ByteString value)
       A random "NSString" used to compute the hash and keep it randomized.
       
      string salt = 4;
      Parameters:
      value - The bytes for salt to set.
      Returns:
      This builder for chaining.
    • getSignature

      public String getSignature()
       The verification signature data generated.
       
      string signature = 5;
      Specified by:
      getSignature in interface AccountGameCenterOrBuilder
      Returns:
      The signature.
    • getSignatureBytes

      public com.google.protobuf.ByteString getSignatureBytes()
       The verification signature data generated.
       
      string signature = 5;
      Specified by:
      getSignatureBytes in interface AccountGameCenterOrBuilder
      Returns:
      The bytes for signature.
    • setSignature

      public AccountGameCenter.Builder setSignature(String value)
       The verification signature data generated.
       
      string signature = 5;
      Parameters:
      value - The signature to set.
      Returns:
      This builder for chaining.
    • clearSignature

      public AccountGameCenter.Builder clearSignature()
       The verification signature data generated.
       
      string signature = 5;
      Returns:
      This builder for chaining.
    • setSignatureBytes

      public AccountGameCenter.Builder setSignatureBytes(com.google.protobuf.ByteString value)
       The verification signature data generated.
       
      string signature = 5;
      Parameters:
      value - The bytes for signature to set.
      Returns:
      This builder for chaining.
    • getPublicKeyUrl

      public String getPublicKeyUrl()
       The URL for the public encryption key.
       
      string public_key_url = 6;
      Specified by:
      getPublicKeyUrl in interface AccountGameCenterOrBuilder
      Returns:
      The publicKeyUrl.
    • getPublicKeyUrlBytes

      public com.google.protobuf.ByteString getPublicKeyUrlBytes()
       The URL for the public encryption key.
       
      string public_key_url = 6;
      Specified by:
      getPublicKeyUrlBytes in interface AccountGameCenterOrBuilder
      Returns:
      The bytes for publicKeyUrl.
    • setPublicKeyUrl

      public AccountGameCenter.Builder setPublicKeyUrl(String value)
       The URL for the public encryption key.
       
      string public_key_url = 6;
      Parameters:
      value - The publicKeyUrl to set.
      Returns:
      This builder for chaining.
    • clearPublicKeyUrl

      public AccountGameCenter.Builder clearPublicKeyUrl()
       The URL for the public encryption key.
       
      string public_key_url = 6;
      Returns:
      This builder for chaining.
    • setPublicKeyUrlBytes

      public AccountGameCenter.Builder setPublicKeyUrlBytes(com.google.protobuf.ByteString value)
       The URL for the public encryption key.
       
      string public_key_url = 6;
      Parameters:
      value - The bytes for publicKeyUrl to set.
      Returns:
      This builder for chaining.
    • getVarsCount

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

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

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

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

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

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

      public AccountGameCenter.Builder clearVars()
    • removeVars

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

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

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

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

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

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