Sha256: ad86e9608fb4c65ece4532d52998bd9635d76e86e7a5759028b261d38d776e52

Contents?: true

Size: 1.18 KB

Versions: 2

Compression:

Stored size: 1.18 KB

Contents

##
# This file is auto-generated. DO NOT EDIT!
#
require 'protobuf/message'

module Protobuf
  module Socketrpc

    ##
    # Enum Classes
    #
    class ErrorReason < ::Protobuf::Enum
      define :BAD_REQUEST_DATA, 0
      define :BAD_REQUEST_PROTO, 1
      define :SERVICE_NOT_FOUND, 2
      define :METHOD_NOT_FOUND, 3
      define :RPC_ERROR, 4
      define :RPC_FAILED, 5
      define :UNAUTHORIZED_REQUEST, 10
      define :FORBIDDEN_REQUEST, 11
      define :DATA_NOT_FOUND, 12
      define :INVALID_REQUEST_PROTO, 6
      define :BAD_RESPONSE_PROTO, 7
      define :UNKNOWN_HOST, 8
      define :IO_ERROR, 9
    end


    ##
    # Message Classes
    #
    class Request < ::Protobuf::Message; end
    class Response < ::Protobuf::Message; end


    ##
    # Message Fields
    #
    class Request
      required :string, :service_name, 1
      required :string, :method_name, 2
      optional :bytes, :request_proto, 3
      optional :string, :caller, 4
    end

    class Response
      optional :bytes, :response_proto, 1
      optional :string, :error, 2
      optional :bool, :callback, 3, :default => false
      optional ::Protobuf::Socketrpc::ErrorReason, :error_reason, 4
    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
protobuffy-3.6.0 lib/protobuf/rpc/rpc.pb.rb
protobuffy-3.5.1 lib/protobuf/rpc/rpc.pb.rb