public static final class AccountDevice.Builder extends com.google.protobuf.GeneratedMessage.Builder<AccountDevice.Builder> implements AccountDeviceOrBuilder
Send a device to the server. Used with authenticate/link/unlink and user.Protobuf type
nakama.api.AccountDevice
Modifier and Type | Method and Description |
---|---|
AccountDevice |
build() |
AccountDevice |
buildPartial() |
AccountDevice.Builder |
clear() |
AccountDevice.Builder |
clearId()
A device identifier.
|
AccountDevice.Builder |
clearVars() |
boolean |
containsVars(java.lang.String key)
Extra information that will be bundled in the session token.
|
AccountDevice |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getId()
A device identifier.
|
com.google.protobuf.ByteString |
getIdBytes()
A device identifier.
|
java.util.Map<java.lang.String,java.lang.String> |
getMutableVars()
Deprecated.
|
java.util.Map<java.lang.String,java.lang.String> |
getVars()
Deprecated.
|
int |
getVarsCount()
Extra information that will be bundled in the session token.
|
java.util.Map<java.lang.String,java.lang.String> |
getVarsMap()
Extra information that will be bundled in the session token.
|
java.lang.String |
getVarsOrDefault(java.lang.String key,
java.lang.String defaultValue)
Extra information that will be bundled in the session token.
|
java.lang.String |
getVarsOrThrow(java.lang.String key)
Extra information that will be bundled in the session token.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number) |
boolean |
isInitialized() |
AccountDevice.Builder |
mergeFrom(AccountDevice other) |
AccountDevice.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AccountDevice.Builder |
mergeFrom(com.google.protobuf.Message other) |
AccountDevice.Builder |
putAllVars(java.util.Map<java.lang.String,java.lang.String> values)
Extra information that will be bundled in the session token.
|
AccountDevice.Builder |
putVars(java.lang.String key,
java.lang.String value)
Extra information that will be bundled in the session token.
|
AccountDevice.Builder |
removeVars(java.lang.String key)
Extra information that will be bundled in the session token.
|
AccountDevice.Builder |
setId(java.lang.String value)
A device identifier.
|
AccountDevice.Builder |
setIdBytes(com.google.protobuf.ByteString value)
A device identifier.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection
in class com.google.protobuf.GeneratedMessage.Builder<AccountDevice.Builder>
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
internalGetMutableMapFieldReflection
in class com.google.protobuf.GeneratedMessage.Builder<AccountDevice.Builder>
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage.Builder<AccountDevice.Builder>
public AccountDevice.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessage.Builder<AccountDevice.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessage.Builder<AccountDevice.Builder>
public AccountDevice getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public AccountDevice build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public AccountDevice buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public AccountDevice.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<AccountDevice.Builder>
public AccountDevice.Builder mergeFrom(AccountDevice other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage.Builder<AccountDevice.Builder>
public AccountDevice.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<AccountDevice.Builder>
java.io.IOException
public java.lang.String getId()
A device identifier. Should be obtained by a platform-specific device API.
string id = 1 [json_name = "id"];
getId
in interface AccountDeviceOrBuilder
public com.google.protobuf.ByteString getIdBytes()
A device identifier. Should be obtained by a platform-specific device API.
string id = 1 [json_name = "id"];
getIdBytes
in interface AccountDeviceOrBuilder
public AccountDevice.Builder setId(java.lang.String value)
A device identifier. Should be obtained by a platform-specific device API.
string id = 1 [json_name = "id"];
value
- The id to set.public AccountDevice.Builder clearId()
A device identifier. Should be obtained by a platform-specific device API.
string id = 1 [json_name = "id"];
public AccountDevice.Builder setIdBytes(com.google.protobuf.ByteString value)
A device identifier. Should be obtained by a platform-specific device API.
string id = 1 [json_name = "id"];
value
- The bytes for id to set.public int getVarsCount()
AccountDeviceOrBuilder
Extra information that will be bundled in the session token.
map<string, string> vars = 2 [json_name = "vars"];
getVarsCount
in interface AccountDeviceOrBuilder
public boolean containsVars(java.lang.String key)
Extra information that will be bundled in the session token.
map<string, string> vars = 2 [json_name = "vars"];
containsVars
in interface AccountDeviceOrBuilder
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getVars()
getVarsMap()
instead.getVars
in interface AccountDeviceOrBuilder
public java.util.Map<java.lang.String,java.lang.String> getVarsMap()
Extra information that will be bundled in the session token.
map<string, string> vars = 2 [json_name = "vars"];
getVarsMap
in interface AccountDeviceOrBuilder
public java.lang.String getVarsOrDefault(java.lang.String key, java.lang.String defaultValue)
Extra information that will be bundled in the session token.
map<string, string> vars = 2 [json_name = "vars"];
getVarsOrDefault
in interface AccountDeviceOrBuilder
public java.lang.String getVarsOrThrow(java.lang.String key)
Extra information that will be bundled in the session token.
map<string, string> vars = 2 [json_name = "vars"];
getVarsOrThrow
in interface AccountDeviceOrBuilder
public AccountDevice.Builder clearVars()
public AccountDevice.Builder removeVars(java.lang.String key)
Extra information that will be bundled in the session token.
map<string, string> vars = 2 [json_name = "vars"];
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMutableVars()
public AccountDevice.Builder putVars(java.lang.String key, java.lang.String value)
Extra information that will be bundled in the session token.
map<string, string> vars = 2 [json_name = "vars"];
public AccountDevice.Builder putAllVars(java.util.Map<java.lang.String,java.lang.String> values)
Extra information that will be bundled in the session token.
map<string, string> vars = 2 [json_name = "vars"];