Skip to content
Snippets Groups Projects
graphresponse.pb.go 7.62 KiB
Newer Older
  • Learn to ignore specific revisions
  • Pawan Rawal's avatar
    Pawan Rawal committed
    // Code generated by protoc-gen-go.
    // source: graphresponse.proto
    // DO NOT EDIT!
    
    /*
    Package graph is a generated protocol buffer package.
    
    It is generated from these files:
    	graphresponse.proto
    
    It has these top-level messages:
    	Request
    
    Pawan Rawal's avatar
    Pawan Rawal committed
    	Node
    
    Pawan Rawal's avatar
    Pawan Rawal committed
    */
    package graph
    
    import proto "github.com/golang/protobuf/proto"
    import fmt "fmt"
    import math "math"
    
    import (
    	context "golang.org/x/net/context"
    	grpc "google.golang.org/grpc"
    )
    
    // 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.
    const _ = proto.ProtoPackageIsVersion1
    
    type Request struct {
    	Query string `protobuf:"bytes,1,opt,name=query" json:"query,omitempty"`
    }
    
    func (m *Request) Reset()                    { *m = Request{} }
    func (m *Request) String() string            { return proto.CompactTextString(m) }
    func (*Request) ProtoMessage()               {}
    func (*Request) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
    
    
    type Latency struct {
    	Parsing    string `protobuf:"bytes,1,opt,name=parsing" json:"parsing,omitempty"`
    	Processing string `protobuf:"bytes,2,opt,name=processing" json:"processing,omitempty"`
    	Pb         string `protobuf:"bytes,3,opt,name=pb" json:"pb,omitempty"`
    }
    
    func (m *Latency) Reset()                    { *m = Latency{} }
    func (m *Latency) String() string            { return proto.CompactTextString(m) }
    func (*Latency) ProtoMessage()               {}
    
    func (*Latency) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
    
    type Property struct {
    	Prop string `protobuf:"bytes,1,opt,name=prop" json:"prop,omitempty"`
    
    	Val  []byte `protobuf:"bytes,2,opt,name=val,proto3" json:"val,omitempty"`
    
    }
    
    func (m *Property) Reset()                    { *m = Property{} }
    func (m *Property) String() string            { return proto.CompactTextString(m) }
    func (*Property) ProtoMessage()               {}
    
    func (*Property) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
    
    Pawan Rawal's avatar
    Pawan Rawal committed
    type Node struct {
    
    	Uid        uint64      `protobuf:"varint,1,opt,name=uid" json:"uid,omitempty"`
    	Xid        string      `protobuf:"bytes,2,opt,name=xid" json:"xid,omitempty"`
    	Attribute  string      `protobuf:"bytes,3,opt,name=attribute" json:"attribute,omitempty"`
    	Properties []*Property `protobuf:"bytes,4,rep,name=properties" json:"properties,omitempty"`
    	Children   []*Node     `protobuf:"bytes,5,rep,name=children" json:"children,omitempty"`
    
    Pawan Rawal's avatar
    Pawan Rawal committed
    }
    
    func (m *Node) Reset()                    { *m = Node{} }
    func (m *Node) String() string            { return proto.CompactTextString(m) }
    func (*Node) ProtoMessage()               {}
    
    func (*Node) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
    
    Pawan Rawal's avatar
    Pawan Rawal committed
    
    
    func (m *Node) GetProperties() []*Property {
    
    Pawan Rawal's avatar
    Pawan Rawal committed
    	if m != nil {
    		return m.Properties
    	}
    	return nil
    }
    
    func (m *Node) GetChildren() []*Node {
    	if m != nil {
    		return m.Children
    	}
    	return nil
    }
    
    
    type Response struct {
    	N *Node    `protobuf:"bytes,1,opt,name=n" json:"n,omitempty"`
    	L *Latency `protobuf:"bytes,2,opt,name=l" json:"l,omitempty"`
    }
    
    func (m *Response) Reset()                    { *m = Response{} }
    func (m *Response) String() string            { return proto.CompactTextString(m) }
    func (*Response) ProtoMessage()               {}
    
    func (*Response) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
    
    
    func (m *Response) GetN() *Node {
    	if m != nil {
    		return m.N
    	}
    	return nil
    }
    
    func (m *Response) GetL() *Latency {
    	if m != nil {
    		return m.L
    	}
    	return nil
    }
    
    
    Pawan Rawal's avatar
    Pawan Rawal committed
    func init() {
    	proto.RegisterType((*Request)(nil), "graph.Request")
    
    	proto.RegisterType((*Latency)(nil), "graph.Latency")
    
    	proto.RegisterType((*Property)(nil), "graph.Property")
    
    Pawan Rawal's avatar
    Pawan Rawal committed
    	proto.RegisterType((*Node)(nil), "graph.Node")
    
    	proto.RegisterType((*Response)(nil), "graph.Response")
    
    Pawan Rawal's avatar
    Pawan Rawal committed
    }
    
    // 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.SupportPackageIsVersion2
    
    // Client API for DGraph service
    
    type DGraphClient interface {
    
    	Query(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
    
    Pawan Rawal's avatar
    Pawan Rawal committed
    }
    
    type dGraphClient struct {
    	cc *grpc.ClientConn
    }
    
    func NewDGraphClient(cc *grpc.ClientConn) DGraphClient {
    	return &dGraphClient{cc}
    }
    
    
    func (c *dGraphClient) Query(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
    	out := new(Response)
    
    Pawan Rawal's avatar
    Pawan Rawal committed
    	err := grpc.Invoke(ctx, "/graph.DGraph/Query", in, out, c.cc, opts...)
    	if err != nil {
    		return nil, err
    	}
    	return out, nil
    }
    
    // Server API for DGraph service
    
    type DGraphServer interface {
    
    	Query(context.Context, *Request) (*Response, error)
    
    Pawan Rawal's avatar
    Pawan Rawal committed
    }
    
    func RegisterDGraphServer(s *grpc.Server, srv DGraphServer) {
    	s.RegisterService(&_DGraph_serviceDesc, srv)
    }
    
    func _DGraph_Query_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
    	in := new(Request)
    	if err := dec(in); err != nil {
    		return nil, err
    	}
    	if interceptor == nil {
    		return srv.(DGraphServer).Query(ctx, in)
    	}
    	info := &grpc.UnaryServerInfo{
    		Server:     srv,
    		FullMethod: "/graph.DGraph/Query",
    	}
    	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
    		return srv.(DGraphServer).Query(ctx, req.(*Request))
    	}
    	return interceptor(ctx, in, info, handler)
    }
    
    var _DGraph_serviceDesc = grpc.ServiceDesc{
    	ServiceName: "graph.DGraph",
    	HandlerType: (*DGraphServer)(nil),
    	Methods: []grpc.MethodDesc{
    		{
    			MethodName: "Query",
    			Handler:    _DGraph_Query_Handler,
    		},
    	},
    	Streams: []grpc.StreamDesc{},
    }
    
    var fileDescriptor0 = []byte{
    
    	// 310 bytes of a gzipped FileDescriptorProto
    	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x5c, 0x51, 0xcd, 0x4e, 0xf3, 0x30,
    	0x10, 0xfc, 0xdc, 0x26, 0xfd, 0xd9, 0x7e, 0x6a, 0xd1, 0xc2, 0x21, 0x20, 0x04, 0x95, 0x2f, 0x54,
    	0x1c, 0x0a, 0x2a, 0xbc, 0x01, 0x48, 0x5c, 0x10, 0x02, 0xf3, 0x04, 0x69, 0x6b, 0xb5, 0x91, 0x2a,
    	0xc7, 0xd8, 0x0e, 0x22, 0xaf, 0xc3, 0x93, 0x62, 0x6f, 0x9c, 0x52, 0x71, 0x1b, 0xcf, 0x8c, 0x76,
    	0xc6, 0xbb, 0x70, 0xbc, 0x31, 0xb9, 0xde, 0x1a, 0x69, 0x75, 0xa9, 0xac, 0x9c, 0x6b, 0x53, 0xba,
    	0x12, 0x53, 0x22, 0xf9, 0x25, 0xf4, 0x85, 0xfc, 0xa8, 0xa4, 0x75, 0x78, 0x02, 0xa9, 0x07, 0xa6,
    	0xce, 0xd8, 0x94, 0xcd, 0x86, 0xa2, 0x79, 0xf0, 0x77, 0xe8, 0x3f, 0xe7, 0x4e, 0xaa, 0x55, 0x8d,
    	0x19, 0xf4, 0x75, 0x6e, 0x6c, 0xa1, 0x36, 0xd1, 0xd2, 0x3e, 0xf1, 0x02, 0xc0, 0x4f, 0x5d, 0x49,
    	0x4b, 0x62, 0x87, 0xc4, 0x03, 0x06, 0xc7, 0xd0, 0xd1, 0xcb, 0xac, 0x4b, 0xbc, 0x47, 0xfc, 0x16,
    	0x06, 0xaf, 0xa6, 0xd4, 0xd2, 0xb8, 0x1a, 0x11, 0x12, 0xef, 0xd4, 0x71, 0x24, 0x61, 0x3c, 0x82,
    	0xee, 0x67, 0xbe, 0xa3, 0x41, 0xff, 0x45, 0x80, 0xfc, 0x9b, 0x41, 0xf2, 0x52, 0xae, 0x65, 0x90,
    	0xaa, 0x62, 0x4d, 0xee, 0x44, 0x04, 0x18, 0x98, 0x2f, 0xcf, 0x34, 0xa9, 0x01, 0xe2, 0x39, 0x0c,
    	0x73, 0xe7, 0x4c, 0xb1, 0xac, 0x9c, 0x8c, 0xa9, 0xbf, 0x04, 0xde, 0x50, 0xd9, 0x10, 0x5e, 0x48,
    	0x9b, 0x25, 0xd3, 0xee, 0x6c, 0xb4, 0x98, 0xcc, 0x69, 0x1d, 0xf3, 0xb6, 0x95, 0x38, 0xb0, 0xe0,
    	0x15, 0x0c, 0x56, 0xdb, 0x62, 0xb7, 0x36, 0x52, 0x65, 0x29, 0xd9, 0x47, 0xd1, 0x1e, 0x1a, 0x89,
    	0xbd, 0xc8, 0x1f, 0x60, 0x20, 0xe2, 0x96, 0xf1, 0x14, 0x98, 0xa2, 0x96, 0x7f, 0xdc, 0x4c, 0xf9,
    	0x7a, 0xac, 0xf9, 0xdb, 0x68, 0x31, 0x8e, 0x52, 0x5c, 0xb1, 0x60, 0xbb, 0xc5, 0x3d, 0xf4, 0x1e,
    	0x9f, 0x02, 0x89, 0xd7, 0x90, 0xbe, 0x85, 0x1b, 0x60, 0xeb, 0x8a, 0x97, 0x3a, 0x9b, 0xec, 0xdf,
    	0x4d, 0x18, 0xff, 0xb7, 0xec, 0xd1, 0x55, 0xef, 0x7e, 0x02, 0x00, 0x00, 0xff, 0xff, 0x62, 0xcc,
    	0xa3, 0x13, 0xec, 0x01, 0x00, 0x00,
    
    Pawan Rawal's avatar
    Pawan Rawal committed
    }