Class Rpc.Builder

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

public static final class Rpc.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Rpc.Builder> implements RpcOrBuilder
 Execute an Lua function on the server.
 
Protobuf type nakama.api.Rpc
  • Method Summary

    Modifier and Type
    Method
    Description
    addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
     
     
     
     
    clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
     
    The authentication key used when executed as a non-client HTTP request.
    The identifier of the function.
    clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
     
    The payload of the function which must be a JSON object.
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    The authentication key used when executed as a non-client HTTP request.
    com.google.protobuf.ByteString
    The authentication key used when executed as a non-client HTTP request.
    The identifier of the function.
    com.google.protobuf.ByteString
    The identifier of the function.
    The payload of the function which must be a JSON object.
    com.google.protobuf.ByteString
    The payload of the function which must be a JSON object.
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    mergeFrom(Rpc other)
     
    mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
     
    setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
     
    The authentication key used when executed as a non-client HTTP request.
    setHttpKeyBytes(com.google.protobuf.ByteString value)
    The authentication key used when executed as a non-client HTTP request.
    setId(String value)
    The identifier of the function.
    setIdBytes(com.google.protobuf.ByteString value)
    The identifier of the function.
    The payload of the function which must be a JSON object.
    setPayloadBytes(com.google.protobuf.ByteString value)
    The payload of the function which must be a JSON object.
    setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
     
    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, internalGetMapField, internalGetMutableMapField, 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()
    • internalGetFieldAccessorTable

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

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

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

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

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

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

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

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

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

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

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

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

      public Rpc.Builder mergeFrom(Rpc other)
    • isInitialized

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

      public Rpc.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<Rpc.Builder>
      Throws:
      IOException
    • getId

      public String getId()
       The identifier of the function.
       
      string id = 1;
      Specified by:
      getId in interface RpcOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       The identifier of the function.
       
      string id = 1;
      Specified by:
      getIdBytes in interface RpcOrBuilder
      Returns:
      The bytes for id.
    • setId

      public Rpc.Builder setId(String value)
       The identifier of the function.
       
      string id = 1;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public Rpc.Builder clearId()
       The identifier of the function.
       
      string id = 1;
      Returns:
      This builder for chaining.
    • setIdBytes

      public Rpc.Builder setIdBytes(com.google.protobuf.ByteString value)
       The identifier of the function.
       
      string id = 1;
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getPayload

      public String getPayload()
       The payload of the function which must be a JSON object.
       
      string payload = 2;
      Specified by:
      getPayload in interface RpcOrBuilder
      Returns:
      The payload.
    • getPayloadBytes

      public com.google.protobuf.ByteString getPayloadBytes()
       The payload of the function which must be a JSON object.
       
      string payload = 2;
      Specified by:
      getPayloadBytes in interface RpcOrBuilder
      Returns:
      The bytes for payload.
    • setPayload

      public Rpc.Builder setPayload(String value)
       The payload of the function which must be a JSON object.
       
      string payload = 2;
      Parameters:
      value - The payload to set.
      Returns:
      This builder for chaining.
    • clearPayload

      public Rpc.Builder clearPayload()
       The payload of the function which must be a JSON object.
       
      string payload = 2;
      Returns:
      This builder for chaining.
    • setPayloadBytes

      public Rpc.Builder setPayloadBytes(com.google.protobuf.ByteString value)
       The payload of the function which must be a JSON object.
       
      string payload = 2;
      Parameters:
      value - The bytes for payload to set.
      Returns:
      This builder for chaining.
    • getHttpKey

      public String getHttpKey()
       The authentication key used when executed as a non-client HTTP request.
       
      string http_key = 3;
      Specified by:
      getHttpKey in interface RpcOrBuilder
      Returns:
      The httpKey.
    • getHttpKeyBytes

      public com.google.protobuf.ByteString getHttpKeyBytes()
       The authentication key used when executed as a non-client HTTP request.
       
      string http_key = 3;
      Specified by:
      getHttpKeyBytes in interface RpcOrBuilder
      Returns:
      The bytes for httpKey.
    • setHttpKey

      public Rpc.Builder setHttpKey(String value)
       The authentication key used when executed as a non-client HTTP request.
       
      string http_key = 3;
      Parameters:
      value - The httpKey to set.
      Returns:
      This builder for chaining.
    • clearHttpKey

      public Rpc.Builder clearHttpKey()
       The authentication key used when executed as a non-client HTTP request.
       
      string http_key = 3;
      Returns:
      This builder for chaining.
    • setHttpKeyBytes

      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;
      Parameters:
      value - The bytes for httpKey to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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