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

/*
Package pb is a generated protocol buffer package.

It is generated from these files:
	controller.proto

It has these top-level messages:
	SetRequest
	SetResponse
	ResetRequest
	ResetResponse
	GetReportsRequest
	GetReportsResponse
*/
package policy

import proto "github.com/gogo/protobuf/proto"
import fmt "fmt"
import math "math"
import google_protobuf "github.com/golang/protobuf/ptypes/any"

import context "golang.org/x/net/context"
import 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.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package

type SetRequest struct {
	// The settings to set on the service.
	Settings map[string]string `protobuf:"bytes,1,rep,name=settings" json:"settings,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}

func (m *SetRequest) Reset()                    { *m = SetRequest{} }
func (m *SetRequest) String() string            { return proto.CompactTextString(m) }
func (*SetRequest) ProtoMessage()               {}
func (*SetRequest) Descriptor() ([]byte, []int) { return fileDescriptorController, []int{0} }

func (m *SetRequest) GetSettings() map[string]string {
	if m != nil {
		return m.Settings
	}
	return nil
}

type SetResponse struct {
}

func (m *SetResponse) Reset()                    { *m = SetResponse{} }
func (m *SetResponse) String() string            { return proto.CompactTextString(m) }
func (*SetResponse) ProtoMessage()               {}
func (*SetResponse) Descriptor() ([]byte, []int) { return fileDescriptorController, []int{1} }

type ResetRequest struct {
}

func (m *ResetRequest) Reset()                    { *m = ResetRequest{} }
func (m *ResetRequest) String() string            { return proto.CompactTextString(m) }
func (*ResetRequest) ProtoMessage()               {}
func (*ResetRequest) Descriptor() ([]byte, []int) { return fileDescriptorController, []int{2} }

type ResetResponse struct {
}

func (m *ResetResponse) Reset()                    { *m = ResetResponse{} }
func (m *ResetResponse) String() string            { return proto.CompactTextString(m) }
func (*ResetResponse) ProtoMessage()               {}
func (*ResetResponse) Descriptor() ([]byte, []int) { return fileDescriptorController, []int{3} }

type GetReportsRequest struct {
}

func (m *GetReportsRequest) Reset()                    { *m = GetReportsRequest{} }
func (m *GetReportsRequest) String() string            { return proto.CompactTextString(m) }
func (*GetReportsRequest) ProtoMessage()               {}
func (*GetReportsRequest) Descriptor() ([]byte, []int) { return fileDescriptorController, []int{4} }

type GetReportsResponse struct {
	Instances []*google_protobuf.Any `protobuf:"bytes,1,rep,name=instances" json:"instances,omitempty"`
}

func (m *GetReportsResponse) Reset()                    { *m = GetReportsResponse{} }
func (m *GetReportsResponse) String() string            { return proto.CompactTextString(m) }
func (*GetReportsResponse) ProtoMessage()               {}
func (*GetReportsResponse) Descriptor() ([]byte, []int) { return fileDescriptorController, []int{5} }

func (m *GetReportsResponse) GetInstances() []*google_protobuf.Any {
	if m != nil {
		return m.Instances
	}
	return nil
}

func init() {
	proto.RegisterType((*SetRequest)(nil), "istio.testing.mixer.policybackend.SetRequest")
	proto.RegisterType((*SetResponse)(nil), "istio.testing.mixer.policybackend.SetResponse")
	proto.RegisterType((*ResetRequest)(nil), "istio.testing.mixer.policybackend.ResetRequest")
	proto.RegisterType((*ResetResponse)(nil), "istio.testing.mixer.policybackend.ResetResponse")
	proto.RegisterType((*GetReportsRequest)(nil), "istio.testing.mixer.policybackend.GetReportsRequest")
	proto.RegisterType((*GetReportsResponse)(nil), "istio.testing.mixer.policybackend.GetReportsResponse")
}

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

type ControllerServiceClient interface {
	// Set changes settings of the fake policy backend.
	Set(ctx context.Context, in *SetRequest, opts ...grpc.CallOption) (*SetResponse, error)
	// Resets the internal state of the policy backend (i.e. all settings are reverted to the default values
	// and all accumulated state is cleared.
	Reset(ctx context.Context, in *ResetRequest, opts ...grpc.CallOption) (*ResetResponse, error)
	// GetReports returns the accumulated set of reports from the service. The server clears out its
	// accumulated cache once the call completes.
	GetReports(ctx context.Context, in *GetReportsRequest, opts ...grpc.CallOption) (*GetReportsResponse, error)
}

type controllerServiceClient struct {
	cc *grpc.ClientConn
}

func NewControllerServiceClient(cc *grpc.ClientConn) ControllerServiceClient {
	return &controllerServiceClient{cc}
}

func (c *controllerServiceClient) Set(ctx context.Context, in *SetRequest, opts ...grpc.CallOption) (*SetResponse, error) {
	out := new(SetResponse)
	err := grpc.Invoke(ctx, "/istio.testing.mixer.policybackend.ControllerService/Set", in, out, c.cc, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *controllerServiceClient) Reset(ctx context.Context, in *ResetRequest, opts ...grpc.CallOption) (*ResetResponse, error) {
	out := new(ResetResponse)
	err := grpc.Invoke(ctx, "/istio.testing.mixer.policybackend.ControllerService/Reset", in, out, c.cc, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *controllerServiceClient) GetReports(ctx context.Context, in *GetReportsRequest, opts ...grpc.CallOption) (*GetReportsResponse, error) {
	out := new(GetReportsResponse)
	err := grpc.Invoke(ctx, "/istio.testing.mixer.policybackend.ControllerService/GetReports", in, out, c.cc, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// Server API for ControllerService service

type ControllerServiceServer interface {
	// Set changes settings of the fake policy backend.
	Set(context.Context, *SetRequest) (*SetResponse, error)
	// Resets the internal state of the policy backend (i.e. all settings are reverted to the default values
	// and all accumulated state is cleared.
	Reset(context.Context, *ResetRequest) (*ResetResponse, error)
	// GetReports returns the accumulated set of reports from the service. The server clears out its
	// accumulated cache once the call completes.
	GetReports(context.Context, *GetReportsRequest) (*GetReportsResponse, error)
}

func RegisterControllerServiceServer(s *grpc.Server, srv ControllerServiceServer) {
	s.RegisterService(&_ControllerService_serviceDesc, srv)
}

func _ControllerService_Set_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(SetRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(ControllerServiceServer).Set(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/istio.testing.mixer.policybackend.ControllerService/Set",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(ControllerServiceServer).Set(ctx, req.(*SetRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _ControllerService_Reset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ResetRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(ControllerServiceServer).Reset(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/istio.testing.mixer.policybackend.ControllerService/Reset",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(ControllerServiceServer).Reset(ctx, req.(*ResetRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _ControllerService_GetReports_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetReportsRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(ControllerServiceServer).GetReports(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/istio.testing.mixer.policybackend.ControllerService/GetReports",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(ControllerServiceServer).GetReports(ctx, req.(*GetReportsRequest))
	}
	return interceptor(ctx, in, info, handler)
}

var _ControllerService_serviceDesc = grpc.ServiceDesc{
	ServiceName: "istio.testing.mixer.policybackend.ControllerService",
	HandlerType: (*ControllerServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Set",
			Handler:    _ControllerService_Set_Handler,
		},
		{
			MethodName: "Reset",
			Handler:    _ControllerService_Reset_Handler,
		},
		{
			MethodName: "GetReports",
			Handler:    _ControllerService_GetReports_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "controller.proto",
}

func init() { proto.RegisterFile("controller.proto", fileDescriptorController) }

var fileDescriptorController = []byte{
	// 331 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x51, 0x4d, 0x4f, 0xf2, 0x40,
	0x10, 0x4e, 0xcb, 0xcb, 0x1b, 0x19, 0x44, 0x61, 0xe5, 0x80, 0x3d, 0x61, 0x4f, 0x5c, 0x5c, 0x0c,
	0x6a, 0x62, 0xe4, 0xa4, 0xc6, 0xe8, 0xb9, 0x1c, 0x4c, 0xbc, 0xb5, 0x65, 0x24, 0x2b, 0x75, 0xb7,
	0x76, 0x07, 0xe2, 0xfe, 0x1d, 0x7f, 0x99, 0x3f, 0xc5, 0x74, 0x5b, 0x3e, 0x8c, 0x07, 0xcb, 0x6d,
	0x67, 0xe6, 0xf9, 0xd8, 0x79, 0x06, 0xda, 0xb1, 0x92, 0x94, 0xa9, 0x24, 0xc1, 0x8c, 0xa7, 0x99,
	0x22, 0xc5, 0x4e, 0x84, 0x26, 0xa1, 0x38, 0xa1, 0x26, 0x21, 0x67, 0xfc, 0x4d, 0x7c, 0xe4, 0x23,
	0x95, 0x88, 0xd8, 0x44, 0x61, 0x3c, 0x47, 0x39, 0xf5, 0x8e, 0x67, 0x4a, 0xcd, 0x12, 0x1c, 0x5a,
	0x42, 0xb4, 0x78, 0x19, 0x86, 0xd2, 0x14, 0x6c, 0xff, 0xd3, 0x01, 0x98, 0x20, 0x05, 0xf8, 0xbe,
	0x40, 0x4d, 0xec, 0x09, 0xf6, 0x34, 0x52, 0x2e, 0xa4, 0x7b, 0x4e, 0xbf, 0x36, 0x68, 0x8e, 0xc6,
	0xfc, 0x4f, 0x7d, 0xbe, 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