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, 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage.Builder<Rpc.Builder>
public Rpc.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<Rpc.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<Rpc.Builder>
public Rpc getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Rpc build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Rpc buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Rpc.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Rpc.Builder>
java.io.IOException
public java.lang.String getId()
The identifier of the function.
string id = 1 [json_name = "id"];
getId
in interface RpcOrBuilder
public com.google.protobuf.ByteString getIdBytes()
The identifier of the function.
string id = 1 [json_name = "id"];
getIdBytes
in interface RpcOrBuilder
public 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 RpcOrBuilder
public 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 RpcOrBuilder
public 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 RpcOrBuilder
public 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 RpcOrBuilder
public 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.