public static final class Rpc.Builder extends com.google.protobuf.GeneratedMessage.Builder<Rpc.Builder> implements RpcOrBuilder
Execute an Lua function on the server.Protobuf type
nakama.api.Rpc| Modifier and Type | Method and Description |
|---|---|
Rpc |
build() |
Rpc |
buildPartial() |
Rpc.Builder |
clear() |
Rpc.Builder |
clearHttpKey()
The authentication key used when executed as a non-client HTTP request.
|
Rpc.Builder |
clearId()
The identifier of the function.
|
Rpc.Builder |
clearPayload()
The payload of the function which must be a JSON object.
|
Rpc |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getHttpKey()
The authentication key used when executed as a non-client HTTP request.
|
com.google.protobuf.ByteString |
getHttpKeyBytes()
The authentication key used when executed as a non-client HTTP request.
|
java.lang.String |
getId()
The identifier of the function.
|
com.google.protobuf.ByteString |
getIdBytes()
The identifier of the function.
|
java.lang.String |
getPayload()
The payload of the function which must be a JSON object.
|
com.google.protobuf.ByteString |
getPayloadBytes()
The payload of the function which must be a JSON object.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Rpc.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Rpc.Builder |
mergeFrom(com.google.protobuf.Message other) |
Rpc.Builder |
mergeFrom(Rpc other) |
Rpc.Builder |
setHttpKey(java.lang.String value)
The authentication key used when executed as a non-client HTTP request.
|
Rpc.Builder |
setHttpKeyBytes(com.google.protobuf.ByteString value)
The authentication key used when executed as a non-client HTTP request.
|
Rpc.Builder |
setId(java.lang.String value)
The identifier of the function.
|
Rpc.Builder |
setIdBytes(com.google.protobuf.ByteString value)
The identifier of the function.
|
Rpc.Builder |
setPayload(java.lang.String value)
The payload of the function which must be a JSON object.
|
Rpc.Builder |
setPayloadBytes(com.google.protobuf.ByteString value)
The payload of the function which must be a JSON object.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Rpc.Builder>public Rpc.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<Rpc.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Rpc.Builder>public Rpc getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Rpc build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Rpc buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Rpc.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Rpc.Builder>public Rpc.Builder mergeFrom(Rpc other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<Rpc.Builder>public Rpc.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Rpc.Builder>java.io.IOExceptionpublic java.lang.String getId()
The identifier of the function.
string id = 1 [json_name = "id"];getId in interface RpcOrBuilderpublic com.google.protobuf.ByteString getIdBytes()
The identifier of the function.
string id = 1 [json_name = "id"];getIdBytes in interface RpcOrBuilderpublic Rpc.Builder setId(java.lang.String value)
The identifier of the function.
string id = 1 [json_name = "id"];value - The id to set.public Rpc.Builder clearId()
The identifier of the function.
string id = 1 [json_name = "id"];public Rpc.Builder setIdBytes(com.google.protobuf.ByteString value)
The identifier of the function.
string id = 1 [json_name = "id"];value - The bytes for id to set.public java.lang.String getPayload()
The payload of the function which must be a JSON object.
string payload = 2 [json_name = "payload"];getPayload in interface RpcOrBuilderpublic com.google.protobuf.ByteString getPayloadBytes()
The payload of the function which must be a JSON object.
string payload = 2 [json_name = "payload"];getPayloadBytes in interface RpcOrBuilderpublic Rpc.Builder setPayload(java.lang.String value)
The payload of the function which must be a JSON object.
string payload = 2 [json_name = "payload"];value - The payload to set.public Rpc.Builder clearPayload()
The payload of the function which must be a JSON object.
string payload = 2 [json_name = "payload"];public Rpc.Builder setPayloadBytes(com.google.protobuf.ByteString value)
The payload of the function which must be a JSON object.
string payload = 2 [json_name = "payload"];value - The bytes for payload to set.public java.lang.String getHttpKey()
The authentication key used when executed as a non-client HTTP request.
string http_key = 3 [json_name = "httpKey"];getHttpKey in interface RpcOrBuilderpublic com.google.protobuf.ByteString getHttpKeyBytes()
The authentication key used when executed as a non-client HTTP request.
string http_key = 3 [json_name = "httpKey"];getHttpKeyBytes in interface RpcOrBuilderpublic Rpc.Builder setHttpKey(java.lang.String value)
The authentication key used when executed as a non-client HTTP request.
string http_key = 3 [json_name = "httpKey"];value - The httpKey to set.public Rpc.Builder clearHttpKey()
The authentication key used when executed as a non-client HTTP request.
string http_key = 3 [json_name = "httpKey"];public Rpc.Builder setHttpKeyBytes(com.google.protobuf.ByteString value)
The authentication key used when executed as a non-client HTTP request.
string http_key = 3 [json_name = "httpKey"];value - The bytes for httpKey to set.