// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: ray_client.proto

package ray_rpc

import (
	bytes "bytes"
	context "context"
	encoding_binary "encoding/binary"
	fmt "fmt"
	proto "github.com/gogo/protobuf/proto"
	grpc "google.golang.org/grpc"
	codes "google.golang.org/grpc/codes"
	status "google.golang.org/grpc/status"
	io "io"
	math "math"
	math_bits "math/bits"
	reflect "reflect"
	strconv "strconv"
	strings "strings"
)

// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf

// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package

type Type int32

const (
	DEFAULT Type = 0
)

var Type_name = map[int32]string{
	0: "DEFAULT",
}

var Type_value = map[string]int32{
	"DEFAULT": 0,
}

func (Type) EnumDescriptor() ([]byte, []int) {
	return fileDescriptor_b171423e2687a533, []int{0}
}

type Arg_Locality int32

const (
	INTERNED  Arg_Locality = 0
	REFERENCE Arg_Locality = 1
)

var Arg_Locality_name = map[int32]string{
	0: "INTERNED",
	1: "REFERENCE",
}

var Arg_Locality_value = map[string]int32{
	"INTERNED":  0,
	"REFERENCE": 1,
}

func (Arg_Locality) EnumDescriptor() ([]byte, []int) {
	return fileDescriptor_b171423e2687a533, []int{0, 0}
}

type ClientTask_RemoteExecType int32

const (
	FUNCTION      ClientTask_RemoteExecType = 0
	ACTOR         ClientTask_RemoteExecType = 1
	METHOD        ClientTask_RemoteExecType = 2
	STATIC_METHOD ClientTask_RemoteExecType = 3
)

var ClientTask_RemoteExecType_name = map[int32]string{
	0: "FUNCTION",
	1: "ACTOR",
	2: "METHOD",
	3: "STATIC_METHOD",
}

var ClientTask_RemoteExecType_value = map[string]int32{
	"FUNCTION":      0,
	"ACTOR":         1,
	"METHOD":        2,
	"STATIC_METHOD": 3,
}

func (ClientTask_RemoteExecType) EnumDescriptor() ([]byte, []int) {
	return fileDescriptor_b171423e2687a533, []int{1, 0}
}

type WorkStatus_StatusCode int32

const (
	COMPLETE WorkStatus_StatusCode = 0
	ERROR    WorkStatus_StatusCode = 1
	READY    WorkStatus_StatusCode = 2
)

var WorkStatus_StatusCode_name = map[int32]string{
	0: "COMPLETE",
	1: "ERROR",
	2: "READY",
}

var WorkStatus_StatusCode_value = map[string]int32{
	"COMPLETE": 0,
	"ERROR":    1,
	"READY":    2,
}

func (WorkStatus_StatusCode) EnumDescriptor() ([]byte, []int) {
	return fileDescriptor_b171423e2687a533, []int{9, 0}
}

type Arg struct {
	Local       Arg_Locality `protobuf:"varint,1,opt,name=local,proto3,enum=ray.rpc.Arg_Locality" json:"local,omitempty"`
	ReferenceId []byte       `protobuf:"bytes,2,opt,name=reference_id,json=referenceId,proto3" json:"reference_id,omitempty"`
	Data        []byte       `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	Type        Type         `protobuf:"varint,4,opt,name=type,proto3,enum=ray.rpc.Type" json:"type,omitempty"`
}

func (m *Arg) Reset()      { *m = Arg{} }
func (*Arg) ProtoMessage() {}
func (*Arg) Descriptor() ([]byte, []int) {
	return fileDescriptor_b171423e2687a533, []int{0}
}
func (m *Arg) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *Arg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_Arg.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
		n, err := m.MarshalToSizedBuffer(b)
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
func (m *Arg) XXX_Merge(src proto.Message) {
	xxx_messageInfo_Arg.Merge(m, src)
}
func (m *Arg) XXX_Size() int {
	return m.Size()
}
func (m *Arg) XXX_DiscardUnknown() {
	xxx_messageInfo_Arg.DiscardUnknown(m)
}

var xxx_messageInfo_Arg proto.InternalMessageInfo

func (m *Arg) GetLocal() Arg_Locality {
	if m != nil {
		return m.Local
	}
	return INTERNED
}

func (m *Arg) GetReferenceId() []byte {
	if m != nil {
		return m.ReferenceId
	}
	return nil
}

func (m *Arg) GetData() []byte {
	if m != nil {
		return m.Data
	}
	return nil
}

func (m *Arg) GetType() Type {
	if m != nil {
		return m.Type
	}
	return DEFAULT
}

type ClientTask struct {
	Type      ClientTask_RemoteExecType `protobuf:"varint,1,opt,name=type,proto3,enum=ray.rpc.ClientTask_RemoteExecType" json:"type,omitempty"`
	Name      string                    `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	PayloadId []byte                    `protobuf:"bytes,3,opt,name=payload_id,json=payloadId,proto3" json:"payload_id,omitempty"`
	Args      []*Arg                    `protobuf:"bytes,4,rep,name=args,proto3" json:"args,omitempty"`
}

func (m *ClientTask) Reset()      { *m = ClientTask{} }
func (*ClientTask) ProtoMessage() {}
func (*ClientTask) Descriptor() ([]byte, []int) {
	return fileDescriptor_b171423e2687a533, []int{1}
}
func (m *ClientTask) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *ClientTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_ClientTask.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
		n, err := m.MarshalToSizedBuffer(b)
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
func (m *ClientTask) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ClientTask.Merge(m, src)
}
func (m *ClientTask) XXX_Size() int {
	return m.Size()
}
func (m *ClientTask) XXX_DiscardUnknown() {
	xxx_messageInfo_ClientTask.DiscardUnknown(m)
}

var xxx_messageInfo_ClientTask proto.InternalMessageInfo

func (m *ClientTask) GetType() ClientTask_RemoteExecType {
	if m != nil {
		return m.Type
	}
	return FUNCTION
}

func (m *ClientTask) GetName() string {
	if m != nil {
		return m.Name
	}
	return ""
}

func (m *ClientTask) GetPayloadId() []byte {
	if m != nil {
		return m.PayloadId
	}
	return nil
}

func (m *ClientTask) GetArgs() []*Arg {
	if m != nil {
		return m.Args
	}
	return nil
}

type ClientTaskTicket struct {
	ReturnId []byte `protobuf:"bytes,1,opt,name=return_id,json=returnId,proto3" json:"return_id,omitempty"`
}

func (m *ClientTaskTicket) Reset()      { *m = ClientTaskTicket{} }
func (*ClientTaskTicket) ProtoMessage() {}
func (*ClientTaskTicket) Descriptor() ([]byte, []int) {
	return fileDescriptor_b171423e2687a533, []int{2}
}
func (m *ClientTaskTicket) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *ClientTaskTicket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_ClientTaskTicket.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
		n, err := m.MarshalToSizedBuffer(b)
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
func (m *ClientTaskTicket) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ClientTaskTicket.Merge(m, src)
}
func (m *ClientTaskTicket) XXX_Size() int {
	return m.Size()
}
func (m *ClientTaskTicket) XXX_DiscardUnknown() {
	xxx_messageInfo_ClientTaskTicket.DiscardUnknown(m)
}

var xxx_messageInfo_ClientTaskTicket proto.InternalMessageInfo

func (m *ClientTaskTicket) GetReturnId() []byte {
	if m != nil {
		return m.ReturnId
	}
	return nil
}

type PutRequest struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}

func (m *PutRequest) Reset()      { *m = PutRequest{} }
func (*PutRequest) ProtoMessage() {}
func (*PutRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_b171423e2687a533, []int{3}
}
func (m *PutRequest) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *PutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_PutRequest.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
		n, err := m.MarshalToSizedBuffer(b)
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
func (m *PutRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_PutRequest.Merge(m, src)
}
func (m *PutRequest) XXX_Size() int {
	return m.Size()
}
func (m *PutRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_PutRequest.DiscardUnknown(m)
}

var xxx_messageInfo_PutRequest proto.InternalMessageInfo

func (m *PutRequest) GetData() []byte {
	if m != nil {
		return m.Data
	}
	return nil
}

type PutResponse struct {
	Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}

func (m *PutResponse) Reset()      { *m = PutResponse{} }
func (*PutResponse) ProtoMessage() {}
func (*PutResponse) Descriptor() ([]byte, []int) {
	return fileDescriptor_b171423e2687a533, []int{4}
}
func (m *PutResponse) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *PutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_PutResponse.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
		n, err := m.MarshalToSizedBuffer(b)
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
func (m *PutResponse) XXX_Merge(src proto.Message) {
	xxx_messageInfo_PutResponse.Merge(m, src)
}
func (m *PutResponse) XXX_Size() int {
	return m.Size()
}
func (m *PutResponse) XXX_DiscardUnknown() {
	xxx_messageInfo_PutResponse.DiscardUnknown(m)
}

var xxx_messageInfo_PutResponse proto.InternalMessageInfo

func (m *PutResponse) GetId() []byte {
	if m != nil {
		return m.Id
	}
	return nil
}

type GetRequest struct {
	Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}

func (m *GetRequest) Reset()      { *m = GetRequest{} }
func (*GetRequest) ProtoMessage() {}
func (*GetRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_b171423e2687a533, []int{5}
}
func (m *GetRequest) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_GetRequest.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
		n, err := m.MarshalToSizedBuffer(b)
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
func (m *GetRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_GetRequest.Merge(m, src)
}
func (m *GetRequest) XXX_Size() int {
	return m.Size()
}
func (m *GetRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_GetRequest.DiscardUnknown(m)
}

var xxx_messageInfo_GetRequest proto.InternalMessageInfo

func (m *GetRequest) GetId() []byte {
	if m != nil {
		return m.Id
	}
	return nil
}

type GetResponse struct {
	Valid bool   `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`
	Data  []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
}

func (m *GetResponse) Reset()      { *m = GetResponse{} }
func (*GetResponse) ProtoMessage() {}
func (*GetResponse) Descriptor() ([]byte, []int) {
	return fileDescriptor_b171423e2687a533, []int{6}
}
func (m *GetResponse) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_GetResponse.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
		n, err := m.MarshalToSizedBuffer(b)
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
func (m *GetResponse) XXX_Merge(src proto.Message) {
	xxx_messageInfo_GetResponse.Merge(m, src)
}
func (m *GetResponse) XXX_Size() int {
	return m.Size()
}
func (m *GetResponse) XXX_DiscardUnknown() {
	xxx_messageInfo_GetResponse.DiscardUnknown(m)
}

var xxx_messageInfo_GetResponse proto.InternalMessageInfo

func (m *GetResponse) GetValid() bool {
	if m != nil {
		return m.Valid
	}
	return false
}

func (m *GetResponse) GetData() []byte {
	if m != nil {
		return m.Data
	}
	return nil
}

type WaitRequest struct {
	ObjectRefs [][]byte `protobuf:"bytes,1,rep,name=object_refs,json=objectRefs,proto3" json:"object_refs,omitempty"`
	NumReturns int64    `protobuf:"varint,2,opt,name=num_returns,json=numReturns,proto3" json:"num_returns,omitempty"`
	Timeout    float64  `protobuf:"fixed64,3,opt,name=timeout,proto3" json:"timeout,omitempty"`
}

func (m *WaitRequest) Reset()      { *m = WaitRequest{} }
func (*WaitRequest) ProtoMessage() {}
func (*WaitRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_b171423e2687a533, []int{7}
}
func (m *WaitRequest) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *WaitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_WaitRequest.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
		n, err := m.MarshalToSizedBuffer(b)
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
func (m *WaitRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_WaitRequest.Merge(m, src)
}
func (m *WaitRequest) XXX_Size() int {
	return m.Size()
}
func (m *WaitRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_WaitRequest.DiscardUnknown(m)
}

var xxx_messageInfo_WaitRequest proto.InternalMessageInfo

func (m *WaitRequest) GetObjectRefs() [][]byte {
	if m != nil {
		return m.ObjectRefs
	}
	return nil
}

func (m *WaitRequest) GetNumReturns() int64 {
	if m != nil {
		return m.NumReturns
	}
	return 0
}

func (m *WaitRequest) GetTimeout() float64 {
	if m != nil {
		return m.Timeout
	}
	return 0
}

type WaitResponse struct {
	Valid              bool     `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`
	ReadyObjectIds     [][]byte `protobuf:"bytes,2,rep,name=ready_object_ids,json=readyObjectIds,proto3" json:"ready_object_ids,omitempty"`
	RemainingObjectIds [][]byte `protobuf:"bytes,3,rep,name=remaining_object_ids,json=remainingObjectIds,proto3" json:"remaining_object_ids,omitempty"`
}

func (m *WaitResponse) Reset()      { *m = WaitResponse{} }
func (*WaitResponse) ProtoMessage() {}
func (*WaitResponse) Descriptor() ([]byte, []int) {
	return fileDescriptor_b171423e2687a533, []int{8}
}
func (m *WaitResponse) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *WaitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_WaitResponse.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
		n, err := m.MarshalToSizedBuffer(b)
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
func (m *WaitResponse) XXX_Merge(src proto.Message) {
	xxx_messageInfo_WaitResponse.Merge(m, src)
}
func (m *WaitResponse) XXX_Size() int {
	return m.Size()
}
func (m *WaitResponse) XXX_DiscardUnknown() {
	xxx_messageInfo_WaitResponse.DiscardUnknown(m)
}

var xxx_messageInfo_WaitResponse proto.InternalMessageInfo

func (m *WaitResponse) GetValid() bool {
	if m != nil {
		return m.Valid
	}
	return false
}

func (m *WaitResponse) GetReadyObjectIds() [][]byte {
	if m != nil {
		return m.ReadyObjectIds
	}
	return nil
}

func (m *WaitResponse) GetRemainingObjectIds() [][]byte {
	if m != nil {
		return m.RemainingObjectIds
	}
	return nil
}

type WorkStatus struct {
	Status         WorkStatus_StatusCode `protobuf:"varint,1,opt,name=status,proto3,enum=ray.rpc.WorkStatus_StatusCode" json:"status,omitempty"`
	CompleteData   []byte                `protobuf:"bytes,2,opt,name=complete_data,json=completeData,proto3" json:"complete_data,omitempty"`
	FinishedTicket *ClientTaskTicket     `protobuf:"bytes,3,opt,name=finished_ticket,json=finishedTicket,proto3" json:"finished_ticket,omitempty"`
	ErrorMsg       string                `protobuf:"bytes,4,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"`
}

func (m *WorkStatus) Reset()      { *m = WorkStatus{} }
func (*WorkStatus) ProtoMessage() {}
func (*WorkStatus) Descriptor() ([]byte, []int) {
	return fileDescriptor_b171423e2687a533, []int{9}
}
func (m *WorkStatus) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *WorkStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_WorkStatus.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
		n, err := m.MarshalToSizedBuffer(b)
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
func (m *WorkStatus) XXX_Merge(src proto.Message) {
	xxx_messageInfo_WorkStatus.Merge(m, src)
}
func (m *WorkStatus) XXX_Size() int {
	return m.Size()
}
func (m *WorkStatus) XXX_DiscardUnknown() {
	xxx_messageInfo_WorkStatus.DiscardUnknown(m)
}

var xxx_messageInfo_WorkStatus proto.InternalMessageInfo

func (m *WorkStatus) GetStatus() WorkStatus_StatusCode {
	if m != nil {
		return m.Status
	}
	return COMPLETE
}

func (m *WorkStatus) GetCompleteData() []byte {
	if m != nil {
		return m.CompleteData
	}
	return nil
}

func (m *WorkStatus) GetFinishedTicket() *ClientTaskTicket {
	if m != nil {
		return m.FinishedTicket
	}
	return nil
}

func (m *WorkStatus) GetErrorMsg() string {
	if m != nil {
		return m.ErrorMsg
	}
	return ""
}

type Work struct {
	Task   *ClientTask       `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"`
	Ticket *ClientTaskTicket `protobuf:"bytes,2,opt,name=ticket,proto3" json:"ticket,omitempty"`
}

func (m *Work) Reset()      { *m = Work{} }
func (*Work) ProtoMessage() {}
func (*Work) Descriptor() ([]byte, []int) {
	return fileDescriptor_b171423e2687a533, []int{10}
}
func (m *Work) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *Work) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_Work.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
		n, err := m.MarshalToSizedBuffer(b)
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
func (m *Work) XXX_Merge(src proto.Message) {
	xxx_messageInfo_Work.Merge(m, src)
}
func (m *Work) XXX_Size() int {
	return m.Size()
}
func (m *Work) XXX_DiscardUnknown() {
	xxx_messageInfo_Work.DiscardUnknown(m)
}

var xxx_messageInfo_Work proto.InternalMessageInfo

func (m *Work) GetTask() *ClientTask {
	if m != nil {
		return m.Task
	}
	return nil
}

func (m *Work) GetTicket() *ClientTaskTicket {
	if m != nil {
		return m.Ticket
	}
	return nil
}

func init() {
	proto.RegisterEnum("ray.rpc.Type", Type_name, Type_value)
	proto.RegisterEnum("ray.rpc.Arg_Locality", Arg_Locality_name, Arg_Locality_value)
	proto.RegisterEnum("ray.rpc.ClientTask_RemoteExecType", ClientTask_RemoteExecType_name, ClientTask_RemoteExecType_value)
	proto.RegisterEnum("ray.rpc.WorkStatus_StatusCode", WorkStatus_StatusCode_name, WorkStatus_StatusCode_value)
	proto.RegisterType((*Arg)(nil), "ray.rpc.Arg")
	proto.RegisterType((*ClientTask)(nil), "ray.rpc.ClientTask")
	proto.RegisterType((*ClientTaskTicket)(nil), "ray.rpc.ClientTaskTicket")
	proto.RegisterType((*PutRequest)(nil), "ray.rpc.PutRequest")
	proto.RegisterType((*PutResponse)(nil), "ray.rpc.PutResponse")
	proto.RegisterType((*GetRequest)(nil), "ray.rpc.GetRequest")
	proto.RegisterType((*GetResponse)(nil), "ray.rpc.GetResponse")
	proto.RegisterType((*WaitRequest)(nil), "ray.rpc.WaitRequest")
	proto.RegisterType((*WaitResponse)(nil), "ray.rpc.WaitResponse")
	proto.RegisterType((*WorkStatus)(nil), "ray.rpc.WorkStatus")
	proto.RegisterType((*Work)(nil), "ray.rpc.Work")
}

func init() { proto.RegisterFile("ray_client.proto", fileDescriptor_b171423e2687a533) }

var fileDescriptor_b171423e2687a533 = []byte{
	// 887 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x55, 0xcd, 0x6e, 0xdb, 0x46,
	0x10, 0xe6, 0x4a, 0xb2, 0x2d, 0x8d, 0x7e, 0xca, 0x6e, 0x9c, 0x42, 0x75, 0x1b, 0x56, 0x61, 0x0f,
	0x11, 0x5a, 0x40, 0x75, 0xd5, 0xc2, 0x2d, 0xd0, 0x5e, 0x14, 0x89, 0x4e, 0x04, 0xd8, 0x92, 0xb1,
	0x66, 0x10, 0xf4, 0x24, 0xac, 0xc9, 0xb1, 0xc2, 0x5a, 0x24, 0xd5, 0xe5, 0x32, 0xa8, 0x6e, 0x79,
	0x84, 0x3e, 0x46, 0x5f, 0xa0, 0xef, 0xd0, 0xa3, 0x8f, 0x39, 0xd6, 0xf2, 0xa5, 0xc7, 0x3c, 0x40,
	0x0b, 0x14, 0x5c, 0xd2, 0xa4, 0x9c, 0xba, 0xcd, 0x49, 0xcb, 0x6f, 0xbe, 0x99, 0xf9, 0x66, 0xf7,
	0x1b, 0x08, 0x74, 0xc1, 0x57, 0x33, 0x67, 0xe1, 0x61, 0x20, 0x7b, 0x4b, 0x11, 0xca, 0x90, 0xee,
	0x08, 0xbe, 0xea, 0x89, 0xa5, 0x63, 0xfe, 0x46, 0xa0, 0x3c, 0x10, 0x73, 0xfa, 0x39, 0x6c, 0x2d,
	0x42, 0x87, 0x2f, 0xda, 0xa4, 0x43, 0xba, 0xad, 0xfe, 0xfd, 0x5e, 0x46, 0xe8, 0x0d, 0xc4, 0xbc,
	0x77, 0x94, 0x44, 0x3c, 0xb9, 0x62, 0x29, 0x87, 0x3e, 0x84, 0x86, 0xc0, 0x73, 0x14, 0x18, 0x38,
	0x38, 0xf3, 0xdc, 0x76, 0xa9, 0x43, 0xba, 0x0d, 0x56, 0xcf, 0xb1, 0xb1, 0x4b, 0x29, 0x54, 0x5c,
	0x2e, 0x79, 0xbb, 0xac, 0x42, 0xea, 0x4c, 0x1f, 0x42, 0x45, 0xae, 0x96, 0xd8, 0xae, 0xa8, 0x16,
	0xcd, 0xbc, 0x85, 0xbd, 0x5a, 0x22, 0x53, 0x21, 0xf3, 0x11, 0x54, 0x6f, 0x9a, 0xd1, 0x06, 0x54,
	0xc7, 0x13, 0xdb, 0x62, 0x13, 0x6b, 0xa4, 0x6b, 0xb4, 0x09, 0x35, 0x66, 0x1d, 0x5a, 0xcc, 0x9a,
	0x0c, 0x2d, 0x9d, 0x98, 0xd7, 0x04, 0x60, 0xa8, 0x26, 0xb2, 0x79, 0x74, 0x41, 0x0f, 0xb2, 0xd2,
	0xa9, 0x7a, 0x33, 0x2f, 0x5d, 0x50, 0x7a, 0x0c, 0xfd, 0x50, 0xa2, 0xf5, 0x33, 0x3a, 0x45, 0xbf,
	0x44, 0x66, 0xc0, 0x7d, 0x54, 0x13, 0xd4, 0x98, 0x3a, 0xd3, 0x07, 0x00, 0x4b, 0xbe, 0x5a, 0x84,
	0xdc, 0x4d, 0x66, 0x4b, 0x07, 0xa8, 0x65, 0xc8, 0xd8, 0xa5, 0x1d, 0xa8, 0x70, 0x31, 0x8f, 0xda,
	0x95, 0x4e, 0xb9, 0x5b, 0xef, 0x37, 0x36, 0x2f, 0x8a, 0xa9, 0x88, 0xf9, 0x14, 0x5a, 0xb7, 0x9b,
	0x25, 0xa3, 0x1c, 0x3e, 0x9b, 0x0c, 0xed, 0xf1, 0x74, 0xa2, 0x6b, 0xb4, 0x06, 0x5b, 0x83, 0xa1,
	0x3d, 0x65, 0x3a, 0xa1, 0x00, 0xdb, 0xc7, 0x96, 0xfd, 0x74, 0x3a, 0xd2, 0x4b, 0xf4, 0x7d, 0x68,
	0x9e, 0xda, 0x03, 0x7b, 0x3c, 0x9c, 0x65, 0x50, 0xd9, 0xfc, 0x02, 0xf4, 0x62, 0x02, 0xdb, 0x73,
	0x2e, 0x50, 0xd2, 0x8f, 0xa0, 0x26, 0x50, 0xc6, 0x22, 0x48, 0xd4, 0x11, 0xa5, 0xae, 0x9a, 0x02,
	0x63, 0xd7, 0xec, 0x00, 0x9c, 0xc4, 0x92, 0xe1, 0x4f, 0x31, 0x46, 0x32, 0x7f, 0x04, 0x52, 0x3c,
	0x82, 0xf9, 0x00, 0xea, 0x8a, 0x11, 0x2d, 0xc3, 0x20, 0x42, 0xda, 0x82, 0x52, 0x5e, 0xa6, 0xe4,
	0xb9, 0xe6, 0xc7, 0x00, 0x4f, 0x30, 0x2f, 0xf0, 0x76, 0xf4, 0x1b, 0xa8, 0xab, 0x68, 0x96, 0xbc,
	0x0b, 0x5b, 0x2f, 0xf9, 0x22, 0x63, 0x54, 0x59, 0xfa, 0x91, 0x77, 0x2d, 0x6d, 0x74, 0xf5, 0xa0,
	0xfe, 0x9c, 0x7b, 0x79, 0xdd, 0x4f, 0xa0, 0x1e, 0x9e, 0xfd, 0x88, 0x8e, 0x9c, 0x09, 0x3c, 0x8f,
	0xda, 0xa4, 0x53, 0xee, 0x36, 0x18, 0xa4, 0x10, 0xc3, 0xf3, 0x28, 0x21, 0x04, 0xb1, 0x3f, 0x4b,
	0xe7, 0x8a, 0x54, 0xa9, 0x32, 0x83, 0x20, 0xf6, 0x59, 0x8a, 0xd0, 0x36, 0xec, 0x48, 0xcf, 0xc7,
	0x30, 0x96, 0xea, 0x85, 0x08, 0xbb, 0xf9, 0x34, 0x5f, 0x11, 0x68, 0xa4, 0xbd, 0xfe, 0x57, 0x65,
	0x17, 0x74, 0x81, 0xdc, 0x5d, 0xcd, 0x32, 0x21, 0x9e, 0x9b, 0xb4, 0x49, 0x74, 0xb4, 0x14, 0x3e,
	0x55, 0xf0, 0xd8, 0x8d, 0xe8, 0x3e, 0xec, 0x0a, 0xf4, 0xb9, 0x17, 0x78, 0xc1, 0x7c, 0x93, 0x5d,
	0x56, 0x6c, 0x9a, 0xc7, 0xf2, 0x0c, 0xf3, 0x2f, 0x02, 0xf0, 0x3c, 0x14, 0x17, 0xa7, 0x92, 0xcb,
	0x38, 0xa2, 0x07, 0xb0, 0x1d, 0xa9, 0x53, 0x66, 0x4f, 0x23, 0xf7, 0x4c, 0x41, 0xea, 0xa5, 0x3f,
	0xc3, 0xd0, 0x45, 0x96, 0xb1, 0xe9, 0xa7, 0xd0, 0x74, 0x42, 0x7f, 0xb9, 0x40, 0x89, 0xb3, 0x8d,
	0x1b, 0x6d, 0xdc, 0x80, 0xa3, 0x64, 0xa9, 0x1e, 0xc3, 0x7b, 0xe7, 0x5e, 0xe0, 0x45, 0x2f, 0xd0,
	0x9d, 0x49, 0xe5, 0x10, 0x75, 0x21, 0xf5, 0xfe, 0x87, 0x77, 0x2c, 0x41, 0x6a, 0x21, 0xd6, 0xba,
	0xc9, 0x28, 0x2c, 0x85, 0x42, 0x84, 0x62, 0xe6, 0x47, 0x73, 0xb5, 0x9d, 0x35, 0x56, 0x55, 0xc0,
	0x71, 0x34, 0x37, 0xf7, 0x01, 0x0a, 0x6d, 0x89, 0x93, 0x87, 0xd3, 0xe3, 0x93, 0x23, 0xcb, 0xb6,
	0x52, 0x27, 0x5b, 0x8c, 0x29, 0x27, 0xd7, 0x60, 0x8b, 0x59, 0x83, 0xd1, 0x0f, 0x7a, 0xc9, 0x3c,
	0x83, 0x4a, 0x32, 0x18, 0x7d, 0x04, 0x15, 0xc9, 0xa3, 0x0b, 0x35, 0x75, 0xbd, 0x7f, 0xef, 0x0e,
	0x3d, 0x4c, 0x11, 0xe8, 0x97, 0xb0, 0x9d, 0x49, 0x2f, 0xbd, 0x4b, 0x7a, 0x46, 0xfc, 0xec, 0x1e,
	0x54, 0xd4, 0x66, 0xd5, 0x61, 0x67, 0x64, 0x1d, 0x0e, 0x9e, 0x1d, 0xd9, 0xba, 0xd6, 0xff, 0x9b,
	0x40, 0x83, 0xf1, 0xd5, 0x02, 0xe5, 0x48, 0x78, 0x2f, 0x51, 0xd0, 0x6f, 0xa1, 0xf6, 0x04, 0x65,
	0xfa, 0x30, 0xb4, 0x10, 0x50, 0x38, 0x7c, 0x6f, 0xf7, 0x36, 0x98, 0x5a, 0xc6, 0xd4, 0x92, 0xcc,
	0x93, 0xf8, 0xdf, 0x99, 0xc5, 0x72, 0x6d, 0x64, 0x6e, 0xec, 0x93, 0xa9, 0xd1, 0xef, 0x00, 0x12,
	0xfb, 0x65, 0xa9, 0x05, 0x6b, 0xc3, 0xff, 0x7b, 0xf7, 0xdf, 0x42, 0xf3, 0xe4, 0xef, 0xa1, 0x7a,
	0xea, 0xbc, 0x40, 0x37, 0x5e, 0x20, 0xbd, 0xeb, 0xc2, 0xf6, 0xfe, 0xfb, 0x6a, 0x4c, 0xad, 0x7f,
	0x02, 0x1f, 0xa4, 0xe3, 0x27, 0xd7, 0x8f, 0x62, 0x18, 0x06, 0x01, 0x3a, 0xd2, 0x0b, 0x03, 0x7a,
	0x90, 0x1a, 0x32, 0x92, 0x02, 0xb9, 0xbf, 0x51, 0xb9, 0x30, 0xe0, 0x5e, 0xf3, 0x16, 0x68, 0x6a,
	0x5d, 0xb2, 0x4f, 0x1e, 0x7f, 0x7d, 0x79, 0x65, 0x68, 0xaf, 0xaf, 0x0c, 0xed, 0xcd, 0x95, 0x41,
	0x5e, 0xad, 0x0d, 0xf2, 0xeb, 0xda, 0x20, 0xbf, 0xaf, 0x0d, 0x72, 0xb9, 0x36, 0xc8, 0x1f, 0x6b,
	0x83, 0xfc, 0xb9, 0x36, 0xb4, 0x37, 0x6b, 0x83, 0xfc, 0x72, 0x6d, 0x68, 0x97, 0xd7, 0x86, 0xf6,
	0xfa, 0xda, 0xd0, 0xce, 0xb6, 0xd5, 0x9f, 0xcc, 0x57, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x3d,
	0xce, 0xb0, 0x31, 0x78, 0x06, 0x00, 0x00,
}

func (x Type) String() string {
	s, ok := Type_name[int32(x)]
	if ok {
		return s
	}
	return strconv.Itoa(int(x))
}
func (x Arg_Locality) String() string {
	s, ok := Arg_Locality_name[int32(x)]
	if ok {
		return s
	}
	return strconv.Itoa(int(x))
}
func (x ClientTask_RemoteExecType) String() string {
	s, ok := ClientTask_RemoteExecType_name[int32(x)]
	if ok {
		return s
	}
	return strconv.Itoa(int(x))
}
func (x WorkStatus_StatusCode) String() string {
	s, ok := WorkStatus_StatusCode_name[int32(x)]
	if ok {
		return s
	}
	return strconv.Itoa(int(x))
}
func (this *Arg) Equal(that interface{}) bool {
	if that == nil {
		return this == nil
	}

	that1, ok := that.(*Arg)
	if !ok {
		that2, ok := that.(Arg)
		if ok {
			that1 = &that2
		} else {
			return false
		}
	}
	if that1 == nil {
		return this == nil
	} else if this == nil {
		return false
	}
	if this.Local != that1.Local {
		return false
	}
	if !bytes.Equal(this.ReferenceId, that1.ReferenceId) {
		return false
	}
	if !bytes.Equal(this.Data, that1.Data) {
		return false
	}
	if this.Type != that1.Type {
		return false
	}
	return true
}
func (this *ClientTask) Equal(that interface{}) bool {
	if that == nil {
		return this == nil
	}

	that1, ok := that.(*ClientTask)
	if !ok {
		that2, ok := that.(ClientTask)
		if ok {
			that1 = &that2
		} else {
			return false
		}
	}
	if that1 == nil {
		return this == nil
	} else if this == nil {
		return false
	}
	if this.Type != that1.Type {
		return false
	}
	if this.Name != that1.Name {
		return false
	}
	if !bytes.Equal(this.PayloadId, that1.PayloadId) {
		return false
	}
	if len(this.Args) != len(that1.Args) {
		return false
	}
	for i := range this.Args {
		if !this.Args[i].Equal(that1.Args[i]) {
			return false
		}
	}
	return true
}
func (this *ClientTaskTicket) Equal(that interface{}) bool {
	if that == nil {
		return this == nil
	}

	that1, ok := that.(*ClientTaskTicket)
	if !ok {
		that2, ok := that.(ClientTaskTicket)
		if ok {
			that1 = &that2
		} else {
			return false
		}
	}
	if that1 == nil {
		return this == nil
	} else if this == nil {
		return false
	}
	if !bytes.Equal(this.ReturnId, that1.ReturnId) {
		return false
	}
	return true
}
func (this *PutRequest) Equal(that interface{}) bool {
	if that == nil {
		return this == nil
	}

	that1, ok := that.(*PutRequest)
	if !ok {
		that2, ok := that.(PutRequest)
		if ok {
			that1 = &that2
		} else {
			return false
		}
	}
	if that1 == nil {
		return this == nil
	} else if this == nil {
		return false
	}
	if !bytes.Equal(this.Data, that1.Data) {
		return false
	}
	return true
}
func (this *PutResponse) Equal(that interface{}) bool {
	if that == nil {
		return this == nil
	}

	that1, ok := that.(*PutResponse)
	if !ok {
		that2, ok := that.(PutResponse)
		if ok {
			that1 = &that2
		} else {
			return false
		}
	}
	if that1 == nil {
		return this == nil
	} else if this == nil {
		return false
	}
	if !bytes.Equal(this.Id, that1.Id) {
		return false
	}
	return true
}
func (this *GetRequest) Equal(that interface{}) bool {
	if that == nil {
		return this == nil
	}

	that1, ok := that.(*GetRequest)
	if !ok {
		that2, ok := that.(GetRequest)
		if ok {
			that1 = &that2
		} else {
			return false
		}
	}
	if that1 == nil {
		return this == nil
	} else if this == nil {
		return false
	}
	if !bytes.Equal(this.Id, that1.Id) {
		return false
	}
	return true
}
func (this *GetResponse) Equal(that interface{}) bool {
	if that == nil {
		return this == nil
	}

	that1, ok := that.(*GetResponse)
	if !ok {
		that2, ok := that.(GetResponse)
		if ok {
			that1 = &that2
		} else {
			return false
		}
	}
	if that1 == nil {
		return this == nil
	} else if this == nil {
		return false
	}
	if this.Valid != that1.Valid {
		return false
	}
	if !bytes.Equal(this.Data, that1.Data) {
		return false
	}
	return true
}
func (this *WaitRequest) Equal(that interface{}) bool {
	if that == nil {
		return this == nil
	}

	that1, ok := that.(*WaitRequest)
	if !ok {
		that2, ok := that.(WaitRequest)
		if ok {
			that1 = &that2
		} else {
			return false
		}
	}
	if that1 == nil {
		return this == nil
	} else if this == nil {
		return false
	}
	if len(this.ObjectRefs) != len(that1.ObjectRefs) {
		return false
	}
	for i := range this.ObjectRefs {
		if !bytes.Equal(this.ObjectRefs[i], that1.ObjectRefs[i]) {
			return false
		}
	}
	if this.NumReturns != that1.NumReturns {
		return false
	}
	if this.Timeout != that1.Timeout {
		return false
	}
	return true
}
func (this *WaitResponse) Equal(that interface{}) bool {
	if that == nil {
		return this == nil
	}

	that1, ok := that.(*WaitResponse)
	if !ok {
		that2, ok := that.(WaitResponse)
		if ok {
			that1 = &that2
		} else {
			return false
		}
	}
	if that1 == nil {
		return this == nil
	} else if this == nil {
		return false
	}
	if this.Valid != that1.Valid {
		return false
	}
	if len(this.ReadyObjectIds) != len(that1.ReadyObjectIds) {
		return false
	}
	for i := range this.ReadyObjectIds {
		if !bytes.Equal(this.ReadyObjectIds[i], that1.ReadyObjectIds[i]) {
			return false
		}
	}
	if len(this.RemainingObjectIds) != len(that1.RemainingObjectIds) {
		return false
	}
	for i := range this.RemainingObjectIds {
		if !bytes.Equal(this.RemainingObjectIds[i], that1.RemainingObjectIds[i]) {
			return false
		}
	}
	return true
}
func (this *WorkStatus) Equal(that interface{}) bool {
	if that == nil {
		return this == nil
	}

	that1, ok := that.(*WorkStatus)
	if !ok {
		that2, ok := that.(WorkStatus)
		if ok {
			that1 = &that2
		} else {
			return false
		}
	}
	if that1 == nil {
		return this == nil
	} else if this == nil {
		return false
	}
	if this.Status != that1.Status {
		return false
	}
	if !bytes.Equal(this.CompleteData, that1.CompleteData) {
		return false
	}
	if !this.FinishedTicket.Equal(that1.FinishedTicket) {
		return false
	}
	if this.ErrorMsg != that1.ErrorMsg {
		return false
	}
	return true
}
func (this *Work) Equal(that interface{}) bool {
	if that == nil {
		return this == nil
	}

	that1, ok := that.(*Work)
	if !ok {
		that2, ok := that.(Work)
		if ok {
			that1 = &that2
		} else {
			return false
		}
	}
	if that1 == nil {
		return this == nil
	} else if this == nil {
		return false
	}
	if !this.Task.Equal(that1.Task) {
		return false
	}
	if !this.Ticket.Equal(that1.Ticket) {
		return false
	}
	return true
}
func (this *Arg) GoString() string {
	if this == nil {
		return "nil"
	}
	s := make([]string, 0, 8)
	s = append(s, "&ray_rpc.Arg{")
	s = append(s, "Local: "+fmt.Sprintf("%#v", this.Local)+",\n")
	s = append(s, "ReferenceId: "+fmt.Sprintf("%#v", this.ReferenceId)+",\n")
	s = append(s, "Data: "+fmt.Sprintf("%#v", this.Data)+",\n")
	s = append(s, "Type: "+fmt.Sprintf("%#v", this.Type)+",\n")
	s = append(s, "}")
	return strings.Join(s, "")
}
func (this *ClientTask) GoString() string {
	if this == nil {
		return "nil"
	}
	s := make([]string, 0, 8)
	s = append(s, "&ray_rpc.ClientTask{")
	s = append(s, "Type: "+fmt.Sprintf("%#v", this.Type)+",\n")
	s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n")
	s = append(s, "PayloadId: "+fmt.Sprintf("%#v", this.PayloadId)+",\n")
	if this.Args != nil {
		s = append(s, "Args: "+fmt.Sprintf("%#v", this.Args)+",\n")
	}
	s = append(s, "}")
	return strings.Join(s, "")
}
func (this *ClientTaskTicket) GoString() string {
	if this == nil {
		return "nil"
	}
	s := make([]string, 0, 5)
	s = append(s, "&ray_rpc.ClientTaskTicket{")
	s = append(s, "ReturnId: "+fmt.Sprintf("%#v", this.ReturnId)+",\n")
	s = append(s, "}")
	return strings.Join(s, "")
}
func (this *PutRequest) GoString() string {
	if this == nil {
		return "nil"
	}
	s := make([]string, 0, 5)
	s = append(s, "&ray_rpc.PutRequest{")
	s = append(s, "Data: "+fmt.Sprintf("%#v", this.Data)+",\n")
	s = append(s, "}")
	return strings.Join(s, "")
}
func (this *PutResponse) GoString() string {
	if this == nil {
		return "nil"
	}
	s := make([]string, 0, 5)
	s = append(s, "&ray_rpc.PutResponse{")
	s = append(s, "Id: "+fmt.Sprintf("%#v", this.Id)+",\n")
	s = append(s, "}")
	return strings.Join(s, "")
}
func (this *GetRequest) GoString() string {
	if this == nil {
		return "nil"
	}
	s := make([]string, 0, 5)
	s = append(s, "&ray_rpc.GetRequest{")
	s = append(s, "Id: "+fmt.Sprintf("%#v", this.Id)+",\n")
	s = append(s, "}")
	return strings.Join(s, "")
}
func (this *GetResponse) GoString() string {
	if this == nil {
		return "nil"
	}
	s := make([]string, 0, 6)
	s = append(s, "&ray_rpc.GetResponse{")
	s = append(s, "Valid: "+fmt.Sprintf("%#v", this.Valid)+",\n")
	s = append(s, "Data: "+fmt.Sprintf("%#v", this.Data)+",\n")
	s = append(s, "}")
	return strings.Join(s, "")
}
func (this *WaitRequest) GoString() string {
	if this == nil {
		return "nil"
	}
	s := make([]string, 0, 7)
	s = append(s, "&ray_rpc.WaitRequest{")
	s = append(s, "ObjectRefs: "+fmt.Sprintf("%#v", this.ObjectRefs)+",\n")
	s = append(s, "NumReturns: "+fmt.Sprintf("%#v", this.NumReturns)+",\n")
	s = append(s, "Timeout: "+fmt.Sprintf("%#v", this.Timeout)+",\n")
	s = append(s, "}")
	return strings.Join(s, "")
}
func (this *WaitResponse) GoString() string {
	if this == nil {
		return "nil"
	}
	s := make([]string, 0, 7)
	s = append(s, "&ray_rpc.WaitResponse{")
	s = append(s, "Valid: "+fmt.Sprintf("%#v", this.Valid)+",\n")
	s = append(s, "ReadyObjectIds: "+fmt.Sprintf("%#v", this.ReadyObjectIds)+",\n")
	s = append(s, "RemainingObjectIds: "+fmt.Sprintf("%#v", this.RemainingObjectIds)+",\n")
	s = append(s, "}")
	return strings.Join(s, "")
}
func (this *WorkStatus) GoString() string {
	if this == nil {
		return "nil"
	}
	s := make([]string, 0, 8)
	s = append(s, "&ray_rpc.WorkStatus{")
	s = append(s, "Status: "+fmt.Sprintf("%#v", this.Status)+",\n")
	s = append(s, "CompleteData: "+fmt.Sprintf("%#v", this.CompleteData)+",\n")
	if this.FinishedTicket != nil {
		s = append(s, "FinishedTicket: "+fmt.Sprintf("%#v", this.FinishedTicket)+",\n")
	}
	s = append(s, "ErrorMsg: "+fmt.Sprintf("%#v", this.ErrorMsg)+",\n")
	s = append(s, "}")
	return strings.Join(s, "")
}
func (this *Work) GoString() string {
	if this == nil {
		return "nil"
	}
	s := make([]string, 0, 6)
	s = append(s, "&ray_rpc.Work{")
	if this.Task != nil {
		s = append(s, "Task: "+fmt.Sprintf("%#v", this.Task)+",\n")
	}
	if this.Ticket != nil {
		s = append(s, "Ticket: "+fmt.Sprintf("%#v", this.Ticket)+",\n")
	}
	s = append(s, "}")
	return strings.Join(s, "")
}
func valueToGoStringRayClient(v interface{}, typ string) string {
	rv := reflect.ValueOf(v)
	if rv.IsNil() {
		return "nil"
	}
	pv := reflect.Indirect(rv).Interface()
	return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
}

// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn

// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4

// RayletDriverClient is the client API for RayletDriver service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type RayletDriverClient interface {
	GetObject(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
	PutObject(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*PutResponse, error)
	WaitObject(ctx context.Context, in *WaitRequest, opts ...grpc.CallOption) (*WaitResponse, error)
	Schedule(ctx context.Context, in *ClientTask, opts ...grpc.CallOption) (*ClientTaskTicket, error)
}

type rayletDriverClient struct {
	cc *grpc.ClientConn
}

func NewRayletDriverClient(cc *grpc.ClientConn) RayletDriverClient {
	return &rayletDriverClient{cc}
}

func (c *rayletDriverClient) GetObject(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) {
	out := new(GetResponse)
	err := c.cc.Invoke(ctx, "/ray.rpc.RayletDriver/GetObject", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *rayletDriverClient) PutObject(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*PutResponse, error) {
	out := new(PutResponse)
	err := c.cc.Invoke(ctx, "/ray.rpc.RayletDriver/PutObject", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *rayletDriverClient) WaitObject(ctx context.Context, in *WaitRequest, opts ...grpc.CallOption) (*WaitResponse, error) {
	out := new(WaitResponse)
	err := c.cc.Invoke(ctx, "/ray.rpc.RayletDriver/WaitObject", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *rayletDriverClient) Schedule(ctx context.Context, in *ClientTask, opts ...grpc.CallOption) (*ClientTaskTicket, error) {
	out := new(ClientTaskTicket)
	err := c.cc.Invoke(ctx, "/ray.rpc.RayletDriver/Schedule", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// RayletDriverServer is the server API for RayletDriver service.
type RayletDriverServer interface {
	GetObject(context.Context, *GetRequest) (*GetResponse, error)
	PutObject(context.Context, *PutRequest) (*PutResponse, error)
	WaitObject(context.Context, *WaitRequest) (*WaitResponse, error)
	Schedule(context.Context, *ClientTask) (*ClientTaskTicket, error)
}

// UnimplementedRayletDriverServer can be embedded to have forward compatible implementations.
type UnimplementedRayletDriverServer struct {
}

func (*UnimplementedRayletDriverServer) GetObject(ctx context.Context, req *GetRequest) (*GetResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetObject not implemented")
}
func (*UnimplementedRayletDriverServer) PutObject(ctx context.Context, req *PutRequest) (*PutResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method PutObject not implemented")
}
func (*UnimplementedRayletDriverServer) WaitObject(ctx context.Context, req *WaitRequest) (*WaitResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method WaitObject not implemented")
}
func (*UnimplementedRayletDriverServer) Schedule(ctx context.Context, req *ClientTask) (*ClientTaskTicket, error) {
	return nil, status.Errorf(codes.Unimplemented, "method Schedule not implemented")
}

func RegisterRayletDriverServer(s *grpc.Server, srv RayletDriverServer) {
	s.RegisterService(&_RayletDriver_serviceDesc, srv)
}

func _RayletDriver_GetObject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(RayletDriverServer).GetObject(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/ray.rpc.RayletDriver/GetObject",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(RayletDriverServer).GetObject(ctx, req.(*GetRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _RayletDriver_PutObject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(PutRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(RayletDriverServer).PutObject(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/ray.rpc.RayletDriver/PutObject",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(RayletDriverServer).PutObject(ctx, req.(*PutRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _RayletDriver_WaitObject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(WaitRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(RayletDriverServer).WaitObject(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/ray.rpc.RayletDriver/WaitObject",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(RayletDriverServer).WaitObject(ctx, req.(*WaitRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _RayletDriver_Schedule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ClientTask)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(RayletDriverServer).Schedule(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/ray.rpc.RayletDriver/Schedule",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(RayletDriverServer).Schedule(ctx, req.(*ClientTask))
	}
	return interceptor(ctx, in, info, handler)
}

var _RayletDriver_serviceDesc = grpc.ServiceDesc{
	ServiceName: "ray.rpc.RayletDriver",
	HandlerType: (*RayletDriverServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetObject",
			Handler:    _RayletDriver_GetObject_Handler,
		},
		{
			MethodName: "PutObject",
			Handler:    _RayletDriver_PutObject_Handler,
		},
		{
			MethodName: "WaitObject",
			Handler:    _RayletDriver_WaitObject_Handler,
		},
		{
			MethodName: "Schedule",
			Handler:    _RayletDriver_Schedule_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "ray_client.proto",
}

// RayletWorkerConnectionClient is the client API for RayletWorkerConnection service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type RayletWorkerConnectionClient interface {
	Workstream(ctx context.Context, opts ...grpc.CallOption) (RayletWorkerConnection_WorkstreamClient, error)
}

type rayletWorkerConnectionClient struct {
	cc *grpc.ClientConn
}

func NewRayletWorkerConnectionClient(cc *grpc.ClientConn) RayletWorkerConnectionClient {
	return &rayletWorkerConnectionClient{cc}
}

func (c *rayletWorkerConnectionClient) Workstream(ctx context.Context, opts ...grpc.CallOption) (RayletWorkerConnection_WorkstreamClient, error) {
	stream, err := c.cc.NewStream(ctx, &_RayletWorkerConnection_serviceDesc.Streams[0], "/ray.rpc.RayletWorkerConnection/Workstream", opts...)
	if err != nil {
		return nil, err
	}
	x := &rayletWorkerConnectionWorkstreamClient{stream}
	return x, nil
}

type RayletWorkerConnection_WorkstreamClient interface {
	Send(*WorkStatus) error
	Recv() (*Work, error)
	grpc.ClientStream
}

type rayletWorkerConnectionWorkstreamClient struct {
	grpc.ClientStream
}

func (x *rayletWorkerConnectionWorkstreamClient) Send(m *WorkStatus) error {
	return x.ClientStream.SendMsg(m)
}

func (x *rayletWorkerConnectionWorkstreamClient) Recv() (*Work, error) {
	m := new(Work)
	if err := x.ClientStream.RecvMsg(m); err != nil {
		return nil, err
	}
	return m, nil
}

// RayletWorkerConnectionServer is the server API for RayletWorkerConnection service.
type RayletWorkerConnectionServer interface {
	Workstream(RayletWorkerConnection_WorkstreamServer) error
}

// UnimplementedRayletWorkerConnectionServer can be embedded to have forward compatible implementations.
type UnimplementedRayletWorkerConnectionServer struct {
}

func (*UnimplementedRayletWorkerConnectionServer) Workstream(srv RayletWorkerConnection_WorkstreamServer) error {
	return status.Errorf(codes.Unimplemented, "method Workstream not implemented")
}

func RegisterRayletWorkerConnectionServer(s *grpc.Server, srv RayletWorkerConnectionServer) {
	s.RegisterService(&_RayletWorkerConnection_serviceDesc, srv)
}

func _RayletWorkerConnection_Workstream_Handler(srv interface{}, stream grpc.ServerStream) error {
	return srv.(RayletWorkerConnectionServer).Workstream(&rayletWorkerConnectionWorkstreamServer{stream})
}

type RayletWorkerConnection_WorkstreamServer interface {
	Send(*Work) error
	Recv() (*WorkStatus, error)
	grpc.ServerStream
}

type rayletWorkerConnectionWorkstreamServer struct {
	grpc.ServerStream
}

func (x *rayletWorkerConnectionWorkstreamServer) Send(m *Work) error {
	return x.ServerStream.SendMsg(m)
}

func (x *rayletWorkerConnectionWorkstreamServer) Recv() (*WorkStatus, error) {
	m := new(WorkStatus)
	if err := x.ServerStream.RecvMsg(m); err != nil {
		return nil, err
	}
	return m, nil
}

var _RayletWorkerConnection_serviceDesc = grpc.ServiceDesc{
	ServiceName: "ray.rpc.RayletWorkerConnection",
	HandlerType: (*RayletWorkerConnectionServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Workstream",
			Handler:       _RayletWorkerConnection_Workstream_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "ray_client.proto",
}

func (m *Arg) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
	n, err := m.MarshalToSizedBuffer(dAtA[:size])
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *Arg) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *Arg) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	if m.Type != 0 {
		i = encodeVarintRayClient(dAtA, i, uint64(m.Type))
		i--
		dAtA[i] = 0x20
	}
	if len(m.Data) > 0 {
		i -= len(m.Data)
		copy(dAtA[i:], m.Data)
		i = encodeVarintRayClient(dAtA, i, uint64(len(m.Data)))
		i--
		dAtA[i] = 0x1a
	}
	if len(m.ReferenceId) > 0 {
		i -= len(m.ReferenceId)
		copy(dAtA[i:], m.ReferenceId)
		i = encodeVarintRayClient(dAtA, i, uint64(len(m.ReferenceId)))
		i--
		dAtA[i] = 0x12
	}
	if m.Local != 0 {
		i = encodeVarintRayClient(dAtA, i, uint64(m.Local))
		i--
		dAtA[i] = 0x8
	}
	return len(dAtA) - i, nil
}

func (m *ClientTask) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
	n, err := m.MarshalToSizedBuffer(dAtA[:size])
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *ClientTask) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *ClientTask) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	if len(m.Args) > 0 {
		for iNdEx := len(m.Args) - 1; iNdEx >= 0; iNdEx-- {
			{
				size, err := m.Args[iNdEx].MarshalToSizedBuffer(dAtA[:i])
				if err != nil {
					return 0, err
				}
				i -= size
				i = encodeVarintRayClient(dAtA, i, uint64(size))
			}
			i--
			dAtA[i] = 0x22
		}
	}
	if len(m.PayloadId) > 0 {
		i -= len(m.PayloadId)
		copy(dAtA[i:], m.PayloadId)
		i = encodeVarintRayClient(dAtA, i, uint64(len(m.PayloadId)))
		i--
		dAtA[i] = 0x1a
	}
	if len(m.Name) > 0 {
		i -= len(m.Name)
		copy(dAtA[i:], m.Name)
		i = encodeVarintRayClient(dAtA, i, uint64(len(m.Name)))
		i--
		dAtA[i] = 0x12
	}
	if m.Type != 0 {
		i = encodeVarintRayClient(dAtA, i, uint64(m.Type))
		i--
		dAtA[i] = 0x8
	}
	return len(dAtA) - i, nil
}

func (m *ClientTaskTicket) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
	n, err := m.MarshalToSizedBuffer(dAtA[:size])
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *ClientTaskTicket) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *ClientTaskTicket) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	if len(m.ReturnId) > 0 {
		i -= len(m.ReturnId)
		copy(dAtA[i:], m.ReturnId)
		i = encodeVarintRayClient(dAtA, i, uint64(len(m.ReturnId)))
		i--
		dAtA[i] = 0xa
	}
	return len(dAtA) - i, nil
}

func (m *PutRequest) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
	n, err := m.MarshalToSizedBuffer(dAtA[:size])
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *PutRequest) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *PutRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	if len(m.Data) > 0 {
		i -= len(m.Data)
		copy(dAtA[i:], m.Data)
		i = encodeVarintRayClient(dAtA, i, uint64(len(m.Data)))
		i--
		dAtA[i] = 0xa
	}
	return len(dAtA) - i, nil
}

func (m *PutResponse) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
	n, err := m.MarshalToSizedBuffer(dAtA[:size])
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *PutResponse) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *PutResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	if len(m.Id) > 0 {
		i -= len(m.Id)
		copy(dAtA[i:], m.Id)
		i = encodeVarintRayClient(dAtA, i, uint64(len(m.Id)))
		i--
		dAtA[i] = 0xa
	}
	return len(dAtA) - i, nil
}

func (m *GetRequest) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
	n, err := m.MarshalToSizedBuffer(dAtA[:size])
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *GetRequest) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *GetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	if len(m.Id) > 0 {
		i -= len(m.Id)
		copy(dAtA[i:], m.Id)
		i = encodeVarintRayClient(dAtA, i, uint64(len(m.Id)))
		i--
		dAtA[i] = 0xa
	}
	return len(dAtA) - i, nil
}

func (m *GetResponse) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
	n, err := m.MarshalToSizedBuffer(dAtA[:size])
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *GetResponse) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *GetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	if len(m.Data) > 0 {
		i -= len(m.Data)
		copy(dAtA[i:], m.Data)
		i = encodeVarintRayClient(dAtA, i, uint64(len(m.Data)))
		i--
		dAtA[i] = 0x12
	}
	if m.Valid {
		i--
		if m.Valid {
			dAtA[i] = 1
		} else {
			dAtA[i] = 0
		}
		i--
		dAtA[i] = 0x8
	}
	return len(dAtA) - i, nil
}

func (m *WaitRequest) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
	n, err := m.MarshalToSizedBuffer(dAtA[:size])
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *WaitRequest) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *WaitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	if m.Timeout != 0 {
		i -= 8
		encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Timeout))))
		i--
		dAtA[i] = 0x19
	}
	if m.NumReturns != 0 {
		i = encodeVarintRayClient(dAtA, i, uint64(m.NumReturns))
		i--
		dAtA[i] = 0x10
	}
	if len(m.ObjectRefs) > 0 {
		for iNdEx := len(m.ObjectRefs) - 1; iNdEx >= 0; iNdEx-- {
			i -= len(m.ObjectRefs[iNdEx])
			copy(dAtA[i:], m.ObjectRefs[iNdEx])
			i = encodeVarintRayClient(dAtA, i, uint64(len(m.ObjectRefs[iNdEx])))
			i--
			dAtA[i] = 0xa
		}
	}
	return len(dAtA) - i, nil
}

func (m *WaitResponse) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
	n, err := m.MarshalToSizedBuffer(dAtA[:size])
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *WaitResponse) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *WaitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	if len(m.RemainingObjectIds) > 0 {
		for iNdEx := len(m.RemainingObjectIds) - 1; iNdEx >= 0; iNdEx-- {
			i -= len(m.RemainingObjectIds[iNdEx])
			copy(dAtA[i:], m.RemainingObjectIds[iNdEx])
			i = encodeVarintRayClient(dAtA, i, uint64(len(m.RemainingObjectIds[iNdEx])))
			i--
			dAtA[i] = 0x1a
		}
	}
	if len(m.ReadyObjectIds) > 0 {
		for iNdEx := len(m.ReadyObjectIds) - 1; iNdEx >= 0; iNdEx-- {
			i -= len(m.ReadyObjectIds[iNdEx])
			copy(dAtA[i:], m.ReadyObjectIds[iNdEx])
			i = encodeVarintRayClient(dAtA, i, uint64(len(m.ReadyObjectIds[iNdEx])))
			i--
			dAtA[i] = 0x12
		}
	}
	if m.Valid {
		i--
		if m.Valid {
			dAtA[i] = 1
		} else {
			dAtA[i] = 0
		}
		i--
		dAtA[i] = 0x8
	}
	return len(dAtA) - i, nil
}

func (m *WorkStatus) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
	n, err := m.MarshalToSizedBuffer(dAtA[:size])
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *WorkStatus) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *WorkStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	if len(m.ErrorMsg) > 0 {
		i -= len(m.ErrorMsg)
		copy(dAtA[i:], m.ErrorMsg)
		i = encodeVarintRayClient(dAtA, i, uint64(len(m.ErrorMsg)))
		i--
		dAtA[i] = 0x22
	}
	if m.FinishedTicket != nil {
		{
			size, err := m.FinishedTicket.MarshalToSizedBuffer(dAtA[:i])
			if err != nil {
				return 0, err
			}
			i -= size
			i = encodeVarintRayClient(dAtA, i, uint64(size))
		}
		i--
		dAtA[i] = 0x1a
	}
	if len(m.CompleteData) > 0 {
		i -= len(m.CompleteData)
		copy(dAtA[i:], m.CompleteData)
		i = encodeVarintRayClient(dAtA, i, uint64(len(m.CompleteData)))
		i--
		dAtA[i] = 0x12
	}
	if m.Status != 0 {
		i = encodeVarintRayClient(dAtA, i, uint64(m.Status))
		i--
		dAtA[i] = 0x8
	}
	return len(dAtA) - i, nil
}

func (m *Work) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
	n, err := m.MarshalToSizedBuffer(dAtA[:size])
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *Work) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *Work) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	if m.Ticket != nil {
		{
			size, err := m.Ticket.MarshalToSizedBuffer(dAtA[:i])
			if err != nil {
				return 0, err
			}
			i -= size
			i = encodeVarintRayClient(dAtA, i, uint64(size))
		}
		i--
		dAtA[i] = 0x12
	}
	if m.Task != nil {
		{
			size, err := m.Task.MarshalToSizedBuffer(dAtA[:i])
			if err != nil {
				return 0, err
			}
			i -= size
			i = encodeVarintRayClient(dAtA, i, uint64(size))
		}
		i--
		dAtA[i] = 0xa
	}
	return len(dAtA) - i, nil
}

func encodeVarintRayClient(dAtA []byte, offset int, v uint64) int {
	offset -= sovRayClient(v)
	base := offset
	for v >= 1<<7 {
		dAtA[offset] = uint8(v&0x7f | 0x80)
		v >>= 7
		offset++
	}
	dAtA[offset] = uint8(v)
	return base
}
func (m *Arg) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.Local != 0 {
		n += 1 + sovRayClient(uint64(m.Local))
	}
	l = len(m.ReferenceId)
	if l > 0 {
		n += 1 + l + sovRayClient(uint64(l))
	}
	l = len(m.Data)
	if l > 0 {
		n += 1 + l + sovRayClient(uint64(l))
	}
	if m.Type != 0 {
		n += 1 + sovRayClient(uint64(m.Type))
	}
	return n
}

func (m *ClientTask) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.Type != 0 {
		n += 1 + sovRayClient(uint64(m.Type))
	}
	l = len(m.Name)
	if l > 0 {
		n += 1 + l + sovRayClient(uint64(l))
	}
	l = len(m.PayloadId)
	if l > 0 {
		n += 1 + l + sovRayClient(uint64(l))
	}
	if len(m.Args) > 0 {
		for _, e := range m.Args {
			l = e.Size()
			n += 1 + l + sovRayClient(uint64(l))
		}
	}
	return n
}

func (m *ClientTaskTicket) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	l = len(m.ReturnId)
	if l > 0 {
		n += 1 + l + sovRayClient(uint64(l))
	}
	return n
}

func (m *PutRequest) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	l = len(m.Data)
	if l > 0 {
		n += 1 + l + sovRayClient(uint64(l))
	}
	return n
}

func (m *PutResponse) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	l = len(m.Id)
	if l > 0 {
		n += 1 + l + sovRayClient(uint64(l))
	}
	return n
}

func (m *GetRequest) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	l = len(m.Id)
	if l > 0 {
		n += 1 + l + sovRayClient(uint64(l))
	}
	return n
}

func (m *GetResponse) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.Valid {
		n += 2
	}
	l = len(m.Data)
	if l > 0 {
		n += 1 + l + sovRayClient(uint64(l))
	}
	return n
}

func (m *WaitRequest) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if len(m.ObjectRefs) > 0 {
		for _, b := range m.ObjectRefs {
			l = len(b)
			n += 1 + l + sovRayClient(uint64(l))
		}
	}
	if m.NumReturns != 0 {
		n += 1 + sovRayClient(uint64(m.NumReturns))
	}
	if m.Timeout != 0 {
		n += 9
	}
	return n
}

func (m *WaitResponse) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.Valid {
		n += 2
	}
	if len(m.ReadyObjectIds) > 0 {
		for _, b := range m.ReadyObjectIds {
			l = len(b)
			n += 1 + l + sovRayClient(uint64(l))
		}
	}
	if len(m.RemainingObjectIds) > 0 {
		for _, b := range m.RemainingObjectIds {
			l = len(b)
			n += 1 + l + sovRayClient(uint64(l))
		}
	}
	return n
}

func (m *WorkStatus) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.Status != 0 {
		n += 1 + sovRayClient(uint64(m.Status))
	}
	l = len(m.CompleteData)
	if l > 0 {
		n += 1 + l + sovRayClient(uint64(l))
	}
	if m.FinishedTicket != nil {
		l = m.FinishedTicket.Size()
		n += 1 + l + sovRayClient(uint64(l))
	}
	l = len(m.ErrorMsg)
	if l > 0 {
		n += 1 + l + sovRayClient(uint64(l))
	}
	return n
}

func (m *Work) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.Task != nil {
		l = m.Task.Size()
		n += 1 + l + sovRayClient(uint64(l))
	}
	if m.Ticket != nil {
		l = m.Ticket.Size()
		n += 1 + l + sovRayClient(uint64(l))
	}
	return n
}

func sovRayClient(x uint64) (n int) {
	return (math_bits.Len64(x|1) + 6) / 7
}
func sozRayClient(x uint64) (n int) {
	return sovRayClient(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (this *Arg) String() string {
	if this == nil {
		return "nil"
	}
	s := strings.Join([]string{`&Arg{`,
		`Local:` + fmt.Sprintf("%v", this.Local) + `,`,
		`ReferenceId:` + fmt.Sprintf("%v", this.ReferenceId) + `,`,
		`Data:` + fmt.Sprintf("%v", this.Data) + `,`,
		`Type:` + fmt.Sprintf("%v", this.Type) + `,`,
		`}`,
	}, "")
	return s
}
func (this *ClientTask) String() string {
	if this == nil {
		return "nil"
	}
	repeatedStringForArgs := "[]*Arg{"
	for _, f := range this.Args {
		repeatedStringForArgs += strings.Replace(f.String(), "Arg", "Arg", 1) + ","
	}
	repeatedStringForArgs += "}"
	s := strings.Join([]string{`&ClientTask{`,
		`Type:` + fmt.Sprintf("%v", this.Type) + `,`,
		`Name:` + fmt.Sprintf("%v", this.Name) + `,`,
		`PayloadId:` + fmt.Sprintf("%v", this.PayloadId) + `,`,
		`Args:` + repeatedStringForArgs + `,`,
		`}`,
	}, "")
	return s
}
func (this *ClientTaskTicket) String() string {
	if this == nil {
		return "nil"
	}
	s := strings.Join([]string{`&ClientTaskTicket{`,
		`ReturnId:` + fmt.Sprintf("%v", this.ReturnId) + `,`,
		`}`,
	}, "")
	return s
}
func (this *PutRequest) String() string {
	if this == nil {
		return "nil"
	}
	s := strings.Join([]string{`&PutRequest{`,
		`Data:` + fmt.Sprintf("%v", this.Data) + `,`,
		`}`,
	}, "")
	return s
}
func (this *PutResponse) String() string {
	if this == nil {
		return "nil"
	}
	s := strings.Join([]string{`&PutResponse{`,
		`Id:` + fmt.Sprintf("%v", this.Id) + `,`,
		`}`,
	}, "")
	return s
}
func (this *GetRequest) String() string {
	if this == nil {
		return "nil"
	}
	s := strings.Join([]string{`&GetRequest{`,
		`Id:` + fmt.Sprintf("%v", this.Id) + `,`,
		`}`,
	}, "")
	return s
}
func (this *GetResponse) String() string {
	if this == nil {
		return "nil"
	}
	s := strings.Join([]string{`&GetResponse{`,
		`Valid:` + fmt.Sprintf("%v", this.Valid) + `,`,
		`Data:` + fmt.Sprintf("%v", this.Data) + `,`,
		`}`,
	}, "")
	return s
}
func (this *WaitRequest) String() string {
	if this == nil {
		return "nil"
	}
	s := strings.Join([]string{`&WaitRequest{`,
		`ObjectRefs:` + fmt.Sprintf("%v", this.ObjectRefs) + `,`,
		`NumReturns:` + fmt.Sprintf("%v", this.NumReturns) + `,`,
		`Timeout:` + fmt.Sprintf("%v", this.Timeout) + `,`,
		`}`,
	}, "")
	return s
}
func (this *WaitResponse) String() string {
	if this == nil {
		return "nil"
	}
	s := strings.Join([]string{`&WaitResponse{`,
		`Valid:` + fmt.Sprintf("%v", this.Valid) + `,`,
		`ReadyObjectIds:` + fmt.Sprintf("%v", this.ReadyObjectIds) + `,`,
		`RemainingObjectIds:` + fmt.Sprintf("%v", this.RemainingObjectIds) + `,`,
		`}`,
	}, "")
	return s
}
func (this *WorkStatus) String() string {
	if this == nil {
		return "nil"
	}
	s := strings.Join([]string{`&WorkStatus{`,
		`Status:` + fmt.Sprintf("%v", this.Status) + `,`,
		`CompleteData:` + fmt.Sprintf("%v", this.CompleteData) + `,`,
		`FinishedTicket:` + strings.Replace(this.FinishedTicket.String(), "ClientTaskTicket", "ClientTaskTicket", 1) + `,`,
		`ErrorMsg:` + fmt.Sprintf("%v", this.ErrorMsg) + `,`,
		`}`,
	}, "")
	return s
}
func (this *Work) String() string {
	if this == nil {
		return "nil"
	}
	s := strings.Join([]string{`&Work{`,
		`Task:` + strings.Replace(this.Task.String(), "ClientTask", "ClientTask", 1) + `,`,
		`Ticket:` + strings.Replace(this.Ticket.String(), "ClientTaskTicket", "ClientTaskTicket", 1) + `,`,
		`}`,
	}, "")
	return s
}
func valueToStringRayClient(v interface{}) string {
	rv := reflect.ValueOf(v)
	if rv.IsNil() {
		return "nil"
	}
	pv := reflect.Indirect(rv).Interface()
	return fmt.Sprintf("*%v", pv)
}
func (m *Arg) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowRayClient
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
			wire |= uint64(b&0x7F) << shift
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: Arg: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: Arg: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 0 {
				return fmt.Errorf("proto: wrong wireType = %d for field Local", wireType)
			}
			m.Local = 0
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowRayClient
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				m.Local |= Arg_Locality(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field ReferenceId", wireType)
			}
			var byteLen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowRayClient
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				byteLen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if byteLen < 0 {
				return ErrInvalidLengthRayClient
			}
			postIndex := iNdEx + byteLen
			if postIndex < 0 {
				return ErrInvalidLengthRayClient
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.ReferenceId = append(m.ReferenceId[:0], dAtA[iNdEx:postIndex]...)
			if m.ReferenceId == nil {
				m.ReferenceId = []byte{}
			}
			iNdEx = postIndex
		case 3:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
			}
			var byteLen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowRayClient
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				byteLen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if byteLen < 0 {
				return ErrInvalidLengthRayClient
			}
			postIndex := iNdEx + byteLen
			if postIndex < 0 {
				return ErrInvalidLengthRayClient
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
			if m.Data == nil {
				m.Data = []byte{}
			}
			iNdEx = postIndex
		case 4:
			if wireType != 0 {
				return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
			}
			m.Type = 0
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowRayClient
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				m.Type |= Type(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
		default:
			iNdEx = preIndex
			skippy, err := skipRayClient(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if skippy < 0 {
				return ErrInvalidLengthRayClient
			}
			if (iNdEx + skippy) < 0 {
				return ErrInvalidLengthRayClient
			}
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *ClientTask) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowRayClient
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
			wire |= uint64(b&0x7F) << shift
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: ClientTask: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: ClientTask: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 0 {
				return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
			}
			m.Type = 0
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowRayClient
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				m.Type |= ClientTask_RemoteExecType(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
			}
			var stringLen uint64
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowRayClient
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				stringLen |= uint64(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			intStringLen := int(stringLen)
			if intStringLen < 0 {
				return ErrInvalidLengthRayClient
			}
			postIndex := iNdEx + intStringLen
			if postIndex < 0 {
				return ErrInvalidLengthRayClient
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.Name = string(dAtA[iNdEx:postIndex])
			iNdEx = postIndex
		case 3:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field PayloadId", wireType)
			}
			var byteLen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowRayClient
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				byteLen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if byteLen < 0 {
				return ErrInvalidLengthRayClient
			}
			postIndex := iNdEx + byteLen
			if postIndex < 0 {
				return ErrInvalidLengthRayClient
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.PayloadId = append(m.PayloadId[:0], dAtA[iNdEx:postIndex]...)
			if m.PayloadId == nil {
				m.PayloadId = []byte{}
			}
			iNdEx = postIndex
		case 4:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Args", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowRayClient
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				msglen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthRayClient
			}
			postIndex := iNdEx + msglen
			if postIndex < 0 {
				return ErrInvalidLengthRayClient
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.Args = append(m.Args, &Arg{})
			if err := m.Args[len(m.Args)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipRayClient(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if skippy < 0 {
				return ErrInvalidLengthRayClient
			}
			if (iNdEx + skippy) < 0 {
				return ErrInvalidLengthRayClient
			}
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *ClientTaskTicket) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowRayClient
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
			wire |= uint64(b&0x7F) << shift
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: ClientTaskTicket: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: ClientTaskTicket: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field ReturnId", wireType)
			}
			var byteLen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowRayClient
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				byteLen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if byteLen < 0 {
				return ErrInvalidLengthRayClient
			}
			postIndex := iNdEx + byteLen
			if postIndex < 0 {
				return ErrInvalidLengthRayClient
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.ReturnId = append(m.ReturnId[:0], dAtA[iNdEx:postIndex]...)
			if m.ReturnId == nil {
				m.ReturnId = []byte{}
			}
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipRayClient(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if skippy < 0 {
				return ErrInvalidLengthRayClient
			}
			if (iNdEx + skippy) < 0 {
				return ErrInvalidLengthRayClient
			}
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *PutRequest) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowRayClient
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
			wire |= uint64(b&0x7F) << shift
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: PutRequest: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: PutRequest: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
			}
			var byteLen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowRayClient
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				byteLen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if byteLen < 0 {
				return ErrInvalidLengthRayClient
			}
			postIndex := iNdEx + byteLen
			if postIndex < 0 {
				return ErrInvalidLengthRayClient
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
			if m.Data == nil {
				m.Data = []byte{}
			}
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipRayClient(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if skippy < 0 {
				return ErrInvalidLengthRayClient
			}
			if (iNdEx + skippy) < 0 {
				return ErrInvalidLengthRayClient
			}
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *PutResponse) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowRayClient
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
			wire |= uint64(b&0x7F) << shift
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: PutResponse: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: PutResponse: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
			}
			var byteLen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowRayClient
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				byteLen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if byteLen < 0 {
				return ErrInvalidLengthRayClient
			}
			postIndex := iNdEx + byteLen
			if postIndex < 0 {
				return ErrInvalidLengthRayClient
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.Id = append(m.Id[:0], dAtA[iNdEx:postIndex]...)
			if m.Id == nil {
				m.Id = []byte{}
			}
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipRayClient(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if skippy < 0 {
				return ErrInvalidLengthRayClient
			}
			if (iNdEx + skippy) < 0 {
				return ErrInvalidLengthRayClient
			}
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *GetRequest) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowRayClient
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
			wire |= uint64(b&0x7F) << shift
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: GetRequest: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: GetRequest: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
			}
			var byteLen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowRayClient
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				byteLen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if byteLen < 0 {
				return ErrInvalidLengthRayClient
			}
			postIndex := iNdEx + byteLen
			if postIndex < 0 {
				return ErrInvalidLengthRayClient
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.Id = append(m.Id[:0], dAtA[iNdEx:postIndex]...)
			if m.Id == nil {
				m.Id = []byte{}
			}
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipRayClient(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if skippy < 0 {
				return ErrInvalidLengthRayClient
			}
			if (iNdEx + skippy) < 0 {
				return ErrInvalidLengthRayClient
			}
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *GetResponse) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowRayClient
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
			wire |= uint64(b&0x7F) << shift
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: GetResponse: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: GetResponse: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 0 {
				return fmt.Errorf("proto: wrong wireType = %d for field Valid", wireType)
			}
			var v int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowRayClient
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				v |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			m.Valid = bool(v != 0)
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
			}
			var byteLen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowRayClient
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				byteLen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if byteLen < 0 {
				return ErrInvalidLengthRayClient
			}
			postIndex := iNdEx + byteLen
			if postIndex < 0 {
				return ErrInvalidLengthRayClient
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
			if m.Data == nil {
				m.Data = []byte{}
			}
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipRayClient(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if skippy < 0 {
				return ErrInvalidLengthRayClient
			}
			if (iNdEx + skippy) < 0 {
				return ErrInvalidLengthRayClient
			}
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *WaitRequest) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowRayClient
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
			wire |= uint64(b&0x7F) << shift
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: WaitRequest: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: WaitRequest: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field ObjectRefs", wireType)
			}
			var byteLen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowRayClient
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				byteLen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if byteLen < 0 {
				return ErrInvalidLengthRayClient
			}
			postIndex := iNdEx + byteLen
			if postIndex < 0 {
				return ErrInvalidLengthRayClient
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.ObjectRefs = append(m.ObjectRefs, make([]byte, postIndex-iNdEx))
			copy(m.ObjectRefs[len(m.ObjectRefs)-1], dAtA[iNdEx:postIndex])
			iNdEx = postIndex
		case 2:
			if wireType != 0 {
				return fmt.Errorf("proto: wrong wireType = %d for field NumReturns", wireType)
			}
			m.NumReturns = 0
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowRayClient
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				m.NumReturns |= int64(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
		case 3:
			if wireType != 1 {
				return fmt.Errorf("proto: wrong wireType = %d for field Timeout", wireType)
			}
			var v uint64
			if (iNdEx + 8) > l {
				return io.ErrUnexpectedEOF
			}
			v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
			iNdEx += 8
			m.Timeout = float64(math.Float64frombits(v))
		default:
			iNdEx = preIndex
			skippy, err := skipRayClient(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if skippy < 0 {
				return ErrInvalidLengthRayClient
			}
			if (iNdEx + skippy) < 0 {
				return ErrInvalidLengthRayClient
			}
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *WaitResponse) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowRayClient
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
			wire |= uint64(b&0x7F) << shift
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: WaitResponse: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: WaitResponse: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 0 {
				return fmt.Errorf("proto: wrong wireType = %d for field Valid", wireType)
			}
			var v int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowRayClient
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				v |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			m.Valid = bool(v != 0)
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field ReadyObjectIds", wireType)
			}
			var byteLen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowRayClient
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				byteLen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if byteLen < 0 {
				return ErrInvalidLengthRayClient
			}
			postIndex := iNdEx + byteLen
			if postIndex < 0 {
				return ErrInvalidLengthRayClient
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.ReadyObjectIds = append(m.ReadyObjectIds, make([]byte, postIndex-iNdEx))
			copy(m.ReadyObjectIds[len(m.ReadyObjectIds)-1], dAtA[iNdEx:postIndex])
			iNdEx = postIndex
		case 3:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field RemainingObjectIds", wireType)
			}
			var byteLen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowRayClient
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				byteLen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if byteLen < 0 {
				return ErrInvalidLengthRayClient
			}
			postIndex := iNdEx + byteLen
			if postIndex < 0 {
				return ErrInvalidLengthRayClient
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.RemainingObjectIds = append(m.RemainingObjectIds, make([]byte, postIndex-iNdEx))
			copy(m.RemainingObjectIds[len(m.RemainingObjectIds)-1], dAtA[iNdEx:postIndex])
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipRayClient(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if skippy < 0 {
				return ErrInvalidLengthRayClient
			}
			if (iNdEx + skippy) < 0 {
				return ErrInvalidLengthRayClient
			}
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *WorkStatus) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowRayClient
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
			wire |= uint64(b&0x7F) << shift
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: WorkStatus: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: WorkStatus: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 0 {
				return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
			}
			m.Status = 0
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowRayClient
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				m.Status |= WorkStatus_StatusCode(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field CompleteData", wireType)
			}
			var byteLen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowRayClient
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				byteLen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if byteLen < 0 {
				return ErrInvalidLengthRayClient
			}
			postIndex := iNdEx + byteLen
			if postIndex < 0 {
				return ErrInvalidLengthRayClient
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.CompleteData = append(m.CompleteData[:0], dAtA[iNdEx:postIndex]...)
			if m.CompleteData == nil {
				m.CompleteData = []byte{}
			}
			iNdEx = postIndex
		case 3:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field FinishedTicket", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowRayClient
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				msglen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthRayClient
			}
			postIndex := iNdEx + msglen
			if postIndex < 0 {
				return ErrInvalidLengthRayClient
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			if m.FinishedTicket == nil {
				m.FinishedTicket = &ClientTaskTicket{}
			}
			if err := m.FinishedTicket.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		case 4:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field ErrorMsg", wireType)
			}
			var stringLen uint64
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowRayClient
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				stringLen |= uint64(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			intStringLen := int(stringLen)
			if intStringLen < 0 {
				return ErrInvalidLengthRayClient
			}
			postIndex := iNdEx + intStringLen
			if postIndex < 0 {
				return ErrInvalidLengthRayClient
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.ErrorMsg = string(dAtA[iNdEx:postIndex])
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipRayClient(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if skippy < 0 {
				return ErrInvalidLengthRayClient
			}
			if (iNdEx + skippy) < 0 {
				return ErrInvalidLengthRayClient
			}
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *Work) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowRayClient
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
			wire |= uint64(b&0x7F) << shift
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: Work: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: Work: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Task", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowRayClient
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				msglen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthRayClient
			}
			postIndex := iNdEx + msglen
			if postIndex < 0 {
				return ErrInvalidLengthRayClient
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			if m.Task == nil {
				m.Task = &ClientTask{}
			}
			if err := m.Task.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Ticket", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowRayClient
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				msglen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthRayClient
			}
			postIndex := iNdEx + msglen
			if postIndex < 0 {
				return ErrInvalidLengthRayClient
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			if m.Ticket == nil {
				m.Ticket = &ClientTaskTicket{}
			}
			if err := m.Ticket.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipRayClient(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if skippy < 0 {
				return ErrInvalidLengthRayClient
			}
			if (iNdEx + skippy) < 0 {
				return ErrInvalidLengthRayClient
			}
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func skipRayClient(dAtA []byte) (n int, err error) {
	l := len(dAtA)
	iNdEx := 0
	depth := 0
	for iNdEx < l {
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return 0, ErrIntOverflowRayClient
			}
			if iNdEx >= l {
				return 0, io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
			wire |= (uint64(b) & 0x7F) << shift
			if b < 0x80 {
				break
			}
		}
		wireType := int(wire & 0x7)
		switch wireType {
		case 0:
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return 0, ErrIntOverflowRayClient
				}
				if iNdEx >= l {
					return 0, io.ErrUnexpectedEOF
				}
				iNdEx++
				if dAtA[iNdEx-1] < 0x80 {
					break
				}
			}
		case 1:
			iNdEx += 8
		case 2:
			var length int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return 0, ErrIntOverflowRayClient
				}
				if iNdEx >= l {
					return 0, io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				length |= (int(b) & 0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if length < 0 {
				return 0, ErrInvalidLengthRayClient
			}
			iNdEx += length
		case 3:
			depth++
		case 4:
			if depth == 0 {
				return 0, ErrUnexpectedEndOfGroupRayClient
			}
			depth--
		case 5:
			iNdEx += 4
		default:
			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
		}
		if iNdEx < 0 {
			return 0, ErrInvalidLengthRayClient
		}
		if depth == 0 {
			return iNdEx, nil
		}
	}
	return 0, io.ErrUnexpectedEOF
}

var (
	ErrInvalidLengthRayClient        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRayClient          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupRayClient = fmt.Errorf("proto: unexpected end of group")
)
