// Code generated by protoc-gen-go.
// source: code.justin.tv/dta/rockpaperscissors/proto/event_service.proto
// DO NOT EDIT!

package proto

import proto1 "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"

import (
	context "golang.org/x/net/context"
	grpc "google.golang.org/grpc"
)

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

type AddEventRequest struct {
	Event *Event `protobuf:"bytes,1,opt,name=event" json:"event,omitempty"`
}

func (m *AddEventRequest) Reset()                    { *m = AddEventRequest{} }
func (m *AddEventRequest) String() string            { return proto1.CompactTextString(m) }
func (*AddEventRequest) ProtoMessage()               {}
func (*AddEventRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }

func (m *AddEventRequest) GetEvent() *Event {
	if m != nil {
		return m.Event
	}
	return nil
}

type AddEventResponse struct {
}

func (m *AddEventResponse) Reset()                    { *m = AddEventResponse{} }
func (m *AddEventResponse) String() string            { return proto1.CompactTextString(m) }
func (*AddEventResponse) ProtoMessage()               {}
func (*AddEventResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} }

type GetEventRequest struct {
	Uuid        []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	EncodedUuid string `protobuf:"bytes,2,opt,name=encoded_uuid,json=encodedUuid" json:"encoded_uuid,omitempty"`
}

func (m *GetEventRequest) Reset()                    { *m = GetEventRequest{} }
func (m *GetEventRequest) String() string            { return proto1.CompactTextString(m) }
func (*GetEventRequest) ProtoMessage()               {}
func (*GetEventRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{2} }

func (m *GetEventRequest) GetUuid() []byte {
	if m != nil {
		return m.Uuid
	}
	return nil
}

func (m *GetEventRequest) GetEncodedUuid() string {
	if m != nil {
		return m.EncodedUuid
	}
	return ""
}

type GetEventResponse struct {
	Event *Event `protobuf:"bytes,1,opt,name=event" json:"event,omitempty"`
}

func (m *GetEventResponse) Reset()                    { *m = GetEventResponse{} }
func (m *GetEventResponse) String() string            { return proto1.CompactTextString(m) }
func (*GetEventResponse) ProtoMessage()               {}
func (*GetEventResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{3} }

func (m *GetEventResponse) GetEvent() *Event {
	if m != nil {
		return m.Event
	}
	return nil
}

type QueryEventsRequest struct {
	Timerange *TimeRange `protobuf:"bytes,1,opt,name=timerange" json:"timerange,omitempty"`
	Type      string     `protobuf:"bytes,2,opt,name=type" json:"type,omitempty"`
	// Deprecated: use AttributeFilters, instead.
	Project   string                                `protobuf:"bytes,3,opt,name=project" json:"project,omitempty"`
	Developer string                                `protobuf:"bytes,4,opt,name=developer" json:"developer,omitempty"`
	Filters   []*QueryEventsRequest_AttributeFilter `protobuf:"bytes,5,rep,name=filters" json:"filters,omitempty"`
}

func (m *QueryEventsRequest) Reset()                    { *m = QueryEventsRequest{} }
func (m *QueryEventsRequest) String() string            { return proto1.CompactTextString(m) }
func (*QueryEventsRequest) ProtoMessage()               {}
func (*QueryEventsRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{4} }

func (m *QueryEventsRequest) GetTimerange() *TimeRange {
	if m != nil {
		return m.Timerange
	}
	return nil
}

func (m *QueryEventsRequest) GetType() string {
	if m != nil {
		return m.Type
	}
	return ""
}

func (m *QueryEventsRequest) GetProject() string {
	if m != nil {
		return m.Project
	}
	return ""
}

func (m *QueryEventsRequest) GetDeveloper() string {
	if m != nil {
		return m.Developer
	}
	return ""
}

func (m *QueryEventsRequest) GetFilters() []*QueryEventsRequest_AttributeFilter {
	if m != nil {
		return m.Filters
	}
	return nil
}

type QueryEventsRequest_AttributeFilter struct {
	Key   string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
}

func (m *QueryEventsRequest_AttributeFilter) Reset()         { *m = QueryEventsRequest_AttributeFilter{} }
func (m *QueryEventsRequest_AttributeFilter) String() string { return proto1.CompactTextString(m) }
func (*QueryEventsRequest_AttributeFilter) ProtoMessage()    {}
func (*QueryEventsRequest_AttributeFilter) Descriptor() ([]byte, []int) {
	return fileDescriptor2, []int{4, 0}
}

func (m *QueryEventsRequest_AttributeFilter) GetKey() string {
	if m != nil {
		return m.Key
	}
	return ""
}

func (m *QueryEventsRequest_AttributeFilter) GetValue() string {
	if m != nil {
		return m.Value
	}
	return ""
}

type QueryEventsResponse struct {
	Events      []*Event `protobuf:"bytes,1,rep,name=events" json:"events,omitempty"`
	TotalEvents int64    `protobuf:"varint,2,opt,name=total_events,json=totalEvents" json:"total_events,omitempty"`
}

func (m *QueryEventsResponse) Reset()                    { *m = QueryEventsResponse{} }
func (m *QueryEventsResponse) String() string            { return proto1.CompactTextString(m) }
func (*QueryEventsResponse) ProtoMessage()               {}
func (*QueryEventsResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{5} }

func (m *QueryEventsResponse) GetEvents() []*Event {
	if m != nil {
		return m.Events
	}
	return nil
}

func (m *QueryEventsResponse) GetTotalEvents() int64 {
	if m != nil {
		return m.TotalEvents
	}
	return 0
}

func init() {
	proto1.RegisterType((*AddEventRequest)(nil), "rockpaperscissors.AddEventRequest")
	proto1.RegisterType((*AddEventResponse)(nil), "rockpaperscissors.AddEventResponse")
	proto1.RegisterType((*GetEventRequest)(nil), "rockpaperscissors.GetEventRequest")
	proto1.RegisterType((*GetEventResponse)(nil), "rockpaperscissors.GetEventResponse")
	proto1.RegisterType((*QueryEventsRequest)(nil), "rockpaperscissors.QueryEventsRequest")
	proto1.RegisterType((*QueryEventsRequest_AttributeFilter)(nil), "rockpaperscissors.QueryEventsRequest.AttributeFilter")
	proto1.RegisterType((*QueryEventsResponse)(nil), "rockpaperscissors.QueryEventsResponse")
}

// 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

// Client API for EventService service

type EventServiceClient interface {
	// Directly add an Event to the datastore.
	// This skips any subscribers to the event bus.
	AddEvent(ctx context.Context, in *AddEventRequest, opts ...grpc.CallOption) (*AddEventResponse, error)
	// Get details of an Event.
	GetEvent(ctx context.Context, in *GetEventRequest, opts ...grpc.CallOption) (*GetEventResponse, error)
	// Query for a list of Events.
	QueryEvents(ctx context.Context, in *QueryEventsRequest, opts ...grpc.CallOption) (*QueryEventsResponse, error)
}

type eventServiceClient struct {
	cc *grpc.ClientConn
}

func NewEventServiceClient(cc *grpc.ClientConn) EventServiceClient {
	return &eventServiceClient{cc}
}

func (c *eventServiceClient) AddEvent(ctx context.Context, in *AddEventRequest, opts ...grpc.CallOption) (*AddEventResponse, error) {
	out := new(AddEventResponse)
	err := grpc.Invoke(ctx, "/rockpaperscissors.EventService/AddEvent", in, out, c.cc, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *eventServiceClient) GetEvent(ctx context.Context, in *GetEventRequest, opts ...grpc.CallOption) (*GetEventResponse, error) {
	out := new(GetEventResponse)
	err := grpc.Invoke(ctx, "/rockpaperscissors.EventService/GetEvent", in, out, c.cc, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *eventServiceClient) QueryEvents(ctx context.Context, in *QueryEventsRequest, opts ...grpc.CallOption) (*QueryEventsResponse, error) {
	out := new(QueryEventsResponse)
	err := grpc.Invoke(ctx, "/rockpaperscissors.EventService/QueryEvents", in, out, c.cc, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// Server API for EventService service

type EventServiceServer interface {
	// Directly add an Event to the datastore.
	// This skips any subscribers to the event bus.
	AddEvent(context.Context, *AddEventRequest) (*AddEventResponse, error)
	// Get details of an Event.
	GetEvent(context.Context, *GetEventRequest) (*GetEventResponse, error)
	// Query for a list of Events.
	QueryEvents(context.Context, *QueryEventsRequest) (*QueryEventsResponse, error)
}

func RegisterEventServiceServer(s *grpc.Server, srv EventServiceServer) {
	s.RegisterService(&_EventService_serviceDesc, srv)
}

func _EventService_AddEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(AddEventRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(EventServiceServer).AddEvent(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/rockpaperscissors.EventService/AddEvent",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(EventServiceServer).AddEvent(ctx, req.(*AddEventRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _EventService_GetEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetEventRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(EventServiceServer).GetEvent(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/rockpaperscissors.EventService/GetEvent",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(EventServiceServer).GetEvent(ctx, req.(*GetEventRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _EventService_QueryEvents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(QueryEventsRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(EventServiceServer).QueryEvents(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/rockpaperscissors.EventService/QueryEvents",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(EventServiceServer).QueryEvents(ctx, req.(*QueryEventsRequest))
	}
	return interceptor(ctx, in, info, handler)
}

var _EventService_serviceDesc = grpc.ServiceDesc{
	ServiceName: "rockpaperscissors.EventService",
	HandlerType: (*EventServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AddEvent",
			Handler:    _EventService_AddEvent_Handler,
		},
		{
			MethodName: "GetEvent",
			Handler:    _EventService_GetEvent_Handler,
		},
		{
			MethodName: "QueryEvents",
			Handler:    _EventService_QueryEvents_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "code.justin.tv/dta/rockpaperscissors/proto/event_service.proto",
}

func init() {
	proto1.RegisterFile("code.justin.tv/dta/rockpaperscissors/proto/event_service.proto", fileDescriptor2)
}

var fileDescriptor2 = []byte{
	// 563 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xcd, 0x6e, 0xd3, 0x4c,
	0x14, 0x95, 0x93, 0xa6, 0x69, 0x6e, 0xa2, 0x2f, 0xf9, 0xa6, 0x2c, 0x4c, 0x14, 0x44, 0x30, 0x2a,
	0x8a, 0x58, 0xd8, 0x10, 0x04, 0x12, 0x59, 0x20, 0x25, 0x12, 0x3f, 0x1b, 0x54, 0x61, 0xe8, 0x86,
	0x4d, 0xe4, 0xda, 0x97, 0x68, 0xd2, 0x74, 0xc6, 0xcc, 0x8c, 0x2d, 0x85, 0xa8, 0x1b, 0x5e, 0x81,
	0x17, 0xa9, 0xc4, 0xa3, 0xf0, 0x0a, 0x3c, 0x08, 0xf2, 0x78, 0x9c, 0x34, 0x3f, 0xfc, 0x64, 0xe5,
	0xf1, 0x9d, 0x73, 0xcf, 0x39, 0x73, 0x7d, 0xc6, 0xf0, 0x22, 0xe4, 0x11, 0xba, 0xd3, 0x44, 0x2a,
	0xca, 0x5c, 0x95, 0x7a, 0x91, 0x0a, 0x3c, 0xc1, 0xc3, 0x8b, 0x38, 0x88, 0x51, 0xc8, 0x90, 0x4a,
	0xc9, 0x85, 0xf4, 0x62, 0xc1, 0x15, 0xf7, 0x30, 0x45, 0xa6, 0xc6, 0x12, 0x45, 0x4a, 0x43, 0x74,
	0x75, 0x8d, 0xfc, 0xbf, 0x05, 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