Package com.heroiclabs.nakama.api
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 Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
Bundle ID (generated by GameCenter).clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) Player ID (generated by GameCenter).The URL for the public encryption key.A random "NSString" used to compute the hash and keep it randomized.The verification signature data generated.Time since UNIX epoch when the signature was created.clone()
boolean
containsVars
(String key) Extra information that will be bundled in the session token.Bundle ID (generated by GameCenter).com.google.protobuf.ByteString
Bundle ID (generated by GameCenter).static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Deprecated.Player ID (generated by GameCenter).com.google.protobuf.ByteString
Player ID (generated by GameCenter).The URL for the public encryption key.com.google.protobuf.ByteString
The URL for the public encryption key.getSalt()
A random "NSString" used to compute the hash and keep it randomized.com.google.protobuf.ByteString
A random "NSString" used to compute the hash and keep it randomized.The verification signature data generated.com.google.protobuf.ByteString
The verification signature data generated.long
Time since UNIX epoch when the signature was created.getVars()
Deprecated.int
Extra information that will be bundled in the session token.Extra information that will be bundled in the session token.getVarsOrDefault
(String key, String defaultValue) Extra information that will be bundled in the session token.getVarsOrThrow
(String key) Extra information that will be bundled in the session token.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
protected com.google.protobuf.MapField
internalGetMapField
(int number) protected com.google.protobuf.MapField
internalGetMutableMapField
(int number) final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(AccountGameCenter other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) putAllVars
(Map<String, String> values) Extra information that will be bundled in the session token.Extra information that will be bundled in the session token.removeVars
(String key) Extra information that will be bundled in the session token.setBundleId
(String value) Bundle ID (generated by GameCenter).setBundleIdBytes
(com.google.protobuf.ByteString value) Bundle ID (generated by GameCenter).setPlayerId
(String value) Player ID (generated by GameCenter).setPlayerIdBytes
(com.google.protobuf.ByteString value) Player ID (generated by GameCenter).setPublicKeyUrl
(String value) The URL for the public encryption key.setPublicKeyUrlBytes
(com.google.protobuf.ByteString value) The URL for the public encryption key.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) A random "NSString" used to compute the hash and keep it randomized.setSaltBytes
(com.google.protobuf.ByteString value) A random "NSString" used to compute the hash and keep it randomized.setSignature
(String value) The verification signature data generated.setSignatureBytes
(com.google.protobuf.ByteString value) The verification signature data generated.setTimestampSeconds
(long value) Time since UNIX epoch when the signature was created.setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, 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() -
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number) - Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AccountGameCenter.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number) - Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AccountGameCenter.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AccountGameCenter.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<AccountGameCenter.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<AccountGameCenter.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<AccountGameCenter.Builder>
-
setField
public AccountGameCenter.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<AccountGameCenter.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AccountGameCenter.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AccountGameCenter.Builder>
-
addRepeatedField
public AccountGameCenter.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<AccountGameCenter.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AccountGameCenter.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AccountGameCenter.Builder>
- Throws:
IOException
-
getPlayerId
Player ID (generated by GameCenter).
string player_id = 1;
- Specified by:
getPlayerId
in interfaceAccountGameCenterOrBuilder
- Returns:
- The playerId.
-
getPlayerIdBytes
public com.google.protobuf.ByteString getPlayerIdBytes()Player ID (generated by GameCenter).
string player_id = 1;
- Specified by:
getPlayerIdBytes
in interfaceAccountGameCenterOrBuilder
- Returns:
- The bytes for playerId.
-
setPlayerId
Player ID (generated by GameCenter).
string player_id = 1;
- Parameters:
value
- The playerId to set.- Returns:
- This builder for chaining.
-
clearPlayerId
Player ID (generated by GameCenter).
string player_id = 1;
- Returns:
- This builder for chaining.
-
setPlayerIdBytes
Player ID (generated by GameCenter).
string player_id = 1;
- Parameters:
value
- The bytes for playerId to set.- Returns:
- This builder for chaining.
-
getBundleId
Bundle ID (generated by GameCenter).
string bundle_id = 2;
- Specified by:
getBundleId
in interfaceAccountGameCenterOrBuilder
- Returns:
- The bundleId.
-
getBundleIdBytes
public com.google.protobuf.ByteString getBundleIdBytes()Bundle ID (generated by GameCenter).
string bundle_id = 2;
- Specified by:
getBundleIdBytes
in interfaceAccountGameCenterOrBuilder
- Returns:
- The bytes for bundleId.
-
setBundleId
Bundle ID (generated by GameCenter).
string bundle_id = 2;
- Parameters:
value
- The bundleId to set.- Returns:
- This builder for chaining.
-
clearBundleId
Bundle ID (generated by GameCenter).
string bundle_id = 2;
- Returns:
- This builder for chaining.
-
setBundleIdBytes
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 interfaceAccountGameCenterOrBuilder
- Returns:
- The timestampSeconds.
-
setTimestampSeconds
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
Time since UNIX epoch when the signature was created.
int64 timestamp_seconds = 3;
- Returns:
- This builder for chaining.
-
getSalt
A random "NSString" used to compute the hash and keep it randomized.
string salt = 4;
- Specified by:
getSalt
in interfaceAccountGameCenterOrBuilder
- 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 interfaceAccountGameCenterOrBuilder
- Returns:
- The bytes for salt.
-
setSalt
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
A random "NSString" used to compute the hash and keep it randomized.
string salt = 4;
- Returns:
- This builder for chaining.
-
setSaltBytes
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
The verification signature data generated.
string signature = 5;
- Specified by:
getSignature
in interfaceAccountGameCenterOrBuilder
- Returns:
- The signature.
-
getSignatureBytes
public com.google.protobuf.ByteString getSignatureBytes()The verification signature data generated.
string signature = 5;
- Specified by:
getSignatureBytes
in interfaceAccountGameCenterOrBuilder
- Returns:
- The bytes for signature.
-
setSignature
The verification signature data generated.
string signature = 5;
- Parameters:
value
- The signature to set.- Returns:
- This builder for chaining.
-
clearSignature
The verification signature data generated.
string signature = 5;
- Returns:
- This builder for chaining.
-
setSignatureBytes
The verification signature data generated.
string signature = 5;
- Parameters:
value
- The bytes for signature to set.- Returns:
- This builder for chaining.
-
getPublicKeyUrl
The URL for the public encryption key.
string public_key_url = 6;
- Specified by:
getPublicKeyUrl
in interfaceAccountGameCenterOrBuilder
- 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 interfaceAccountGameCenterOrBuilder
- Returns:
- The bytes for publicKeyUrl.
-
setPublicKeyUrl
The URL for the public encryption key.
string public_key_url = 6;
- Parameters:
value
- The publicKeyUrl to set.- Returns:
- This builder for chaining.
-
clearPublicKeyUrl
The URL for the public encryption key.
string public_key_url = 6;
- Returns:
- This builder for chaining.
-
setPublicKeyUrlBytes
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 interfaceAccountGameCenterOrBuilder
-
containsVars
Extra information that will be bundled in the session token.
map<string, string> vars = 7;
- Specified by:
containsVars
in interfaceAccountGameCenterOrBuilder
-
getVars
Deprecated.UsegetVarsMap()
instead.- Specified by:
getVars
in interfaceAccountGameCenterOrBuilder
-
getVarsMap
Extra information that will be bundled in the session token.
map<string, string> vars = 7;
- Specified by:
getVarsMap
in interfaceAccountGameCenterOrBuilder
-
getVarsOrDefault
Extra information that will be bundled in the session token.
map<string, string> vars = 7;
- Specified by:
getVarsOrDefault
in interfaceAccountGameCenterOrBuilder
-
getVarsOrThrow
Extra information that will be bundled in the session token.
map<string, string> vars = 7;
- Specified by:
getVarsOrThrow
in interfaceAccountGameCenterOrBuilder
-
clearVars
-
removeVars
Extra information that will be bundled in the session token.
map<string, string> vars = 7;
-
getMutableVars
Deprecated.Use alternate mutation accessors instead. -
putVars
Extra information that will be bundled in the session token.
map<string, string> vars = 7;
-
putAllVars
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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AccountGameCenter.Builder>
-
mergeUnknownFields
public final AccountGameCenter.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AccountGameCenter.Builder>
-