// Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/appcelerator/amp/api/rpc/object_store/object_store.proto

/*
Package object_store is a generated protocol buffer package.

It is generated from these files:
	github.com/appcelerator/amp/api/rpc/object_store/object_store.proto

It has these top-level messages:
	CreateRequest
	CreateReply
	ListRequest
	ListReply
	ObjectStoreEntry
	RemoveRequest
	RemoveReply
	ForgetRequest
	ForgetReply
*/
package object_store

import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import object_stores "github.com/appcelerator/amp/data/object_stores"
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 _ = 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.ProtoPackageIsVersion2 // please upgrade the proto package

type CreateRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Acl  string `protobuf:"bytes,2,opt,name=acl" json:"acl,omitempty"`
}

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

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

func (m *CreateRequest) GetAcl() string {
	if m != nil {
		return m.Acl
	}
	return ""
}

type CreateReply struct {
	Id       string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	Name     string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	Location string `protobuf:"bytes,3,opt,name=location" json:"location,omitempty"`
}

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

func (m *CreateReply) GetId() string {
	if m != nil {
		return m.Id
	}
	return ""
}

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

func (m *CreateReply) GetLocation() string {
	if m != nil {
		return m.Location
	}
	return ""
}

type ListRequest struct {
}

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

type ListReply struct {
	Entries []*ObjectStoreEntry `protobuf:"bytes,1,rep,name=entries" json:"entries,omitempty"`
}

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

func (m *ListReply) GetEntries() []*ObjectStoreEntry {
	if m != nil {
		return m.Entries
	}
	return nil
}

type ObjectStoreEntry struct {
	ObjectStore *object_stores.ObjectStore `protobuf:"bytes,1,opt,name=object_store,json=objectStore" json:"object_store,omitempty"`
	Region      string                     `protobuf:"bytes,2,opt,name=region" json:"region,omitempty"`
	Acl         string                     `protobuf:"bytes,3,opt,name=acl" json:"acl,omitempty"`
	Missing     bool                       `protobuf:"varint,4,opt,name=missing" json:"missing,omitempty"`
}

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

func (m *ObjectStoreEntry) GetObjectStore() *object_stores.ObjectStore {
	if m != nil {
		return m.ObjectStore
	}
	return nil
}

func (m *ObjectStoreEntry) GetRegion() string {
	if m != nil {
		return m.Region
	}
	return ""
}

func (m *ObjectStoreEntry) GetAcl() string {
	if m != nil {
		return m.Acl
	}
	return ""
}

func (m *ObjectStoreEntry) GetMissing() bool {
	if m != nil {
		return m.Missing
	}
	return false
}

type RemoveRequest struct {
	Name  string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Force bool   `protobuf:"varint,2,opt,name=force" json:"force,omitempty"`
}

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

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

func (m *RemoveRequest) GetForce() bool {
	if m != nil {
		return m.Force
	}
	return false
}

type RemoveReply struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

func (m *RemoveReply) Reset()                    { *m = RemoveReply{} }
func (m *RemoveReply) String() string            { return proto.CompactTextString(m) }
func (*RemoveReply) ProtoMessage()               {}
func (*RemoveReply) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }

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

type ForgetRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

func (m *ForgetRequest) Reset()                    { *m = ForgetRequest{} }
func (m *ForgetRequest) String() string            { return proto.CompactTextString(m) }
func (*ForgetRequest) ProtoMessage()               {}
func (*ForgetRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }

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

type ForgetReply struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

func (m *ForgetReply) Reset()                    { *m = ForgetReply{} }
func (m *ForgetReply) String() string            { return proto.CompactTextString(m) }
func (*ForgetReply) ProtoMessage()               {}
func (*ForgetReply) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }

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

func init() {
	proto.RegisterType((*CreateRequest)(nil), "object_store.CreateRequest")
	proto.RegisterType((*CreateReply)(nil), "object_store.CreateReply")
	proto.RegisterType((*ListRequest)(nil), "object_store.ListRequest")
	proto.RegisterType((*ListReply)(nil), "object_store.ListReply")
	proto.RegisterType((*ObjectStoreEntry)(nil), "object_store.ObjectStoreEntry")
	proto.RegisterType((*RemoveRequest)(nil), "object_store.RemoveRequest")
	proto.RegisterType((*RemoveReply)(nil), "object_store.RemoveReply")
	proto.RegisterType((*ForgetRequest)(nil), "object_store.ForgetRequest")
	proto.RegisterType((*ForgetReply)(nil), "object_store.ForgetReply")
}

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

type ObjectStoreClient interface {
	Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateReply, error)
	List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListReply, error)
	Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveReply, error)
	Forget(ctx context.Context, in *ForgetRequest, opts ...grpc.CallOption) (*ForgetReply, error)
}

type objectStoreClient struct {
	cc *grpc.ClientConn
}

func NewObjectStoreClient(cc *grpc.ClientConn) ObjectStoreClient {
	return &objectStoreClient{cc}
}

func (c *objectStoreClient) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateReply, error) {
	out := new(CreateReply)
	err := grpc.Invoke(ctx, "/object_store.ObjectStore/Create", in, out, c.cc, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *objectStoreClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListReply, error) {
	out := new(ListReply)
	err := grpc.Invoke(ctx, "/object_store.ObjectStore/List", in, out, c.cc, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *objectStoreClient) Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveReply, error) {
	out := new(RemoveReply)
	err := grpc.Invoke(ctx, "/object_store.ObjectStore/Remove", in, out, c.cc, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *objectStoreClient) Forget(ctx context.Context, in *ForgetRequest, opts ...grpc.CallOption) (*ForgetReply, error) {
	out := new(ForgetReply)
	err := grpc.Invoke(ctx, "/object_store.ObjectStore/Forget", in, out, c.cc, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// Server API for ObjectStore service

type ObjectStoreServer interface {
	Create(context.Context, *CreateRequest) (*CreateReply, error)
	List(context.Context, *ListRequest) (*ListReply, error)
	Remove(context.Context, *RemoveRequest) (*RemoveReply, error)
	Forget(context.Context, *ForgetRequest) (*ForgetReply, error)
}

func RegisterObjectStoreServer(s *grpc.Server, srv ObjectStoreServer) {
	s.RegisterService(&_ObjectStore_serviceDesc, srv)
}

func _ObjectStore_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(CreateRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(ObjectStoreServer).Create(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/object_store.ObjectStore/Create",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(ObjectStoreServer).Create(ctx, req.(*CreateRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _ObjectStore_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ListRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(ObjectStoreServer).List(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/object_store.ObjectStore/List",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(ObjectStoreServer).List(ctx, req.(*ListRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _ObjectStore_Remove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(RemoveRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(ObjectStoreServer).Remove(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/object_store.ObjectStore/Remove",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(ObjectStoreServer).Remove(ctx, req.(*RemoveRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _ObjectStore_Forget_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ForgetRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(ObjectStoreServer).Forget(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/object_store.ObjectStore/Forget",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(ObjectStoreServer).Forget(ctx, req.(*ForgetRequest))
	}
	return interceptor(ctx, in, info, handler)
}

var _ObjectStore_serviceDesc = grpc.ServiceDesc{
	ServiceName: "object_store.ObjectStore",
	HandlerType: (*ObjectStoreServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _ObjectStore_Create_Handler,
		},
		{
			MethodName: "List",
			Handler:    _ObjectStore_List_Handler,
		},
		{
			MethodName: "Remove",
			Handler:    _ObjectStore_Remove_Handler,
		},
		{
			MethodName: "Forget",
			Handler:    _ObjectStore_Forget_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "github.com/appcelerator/amp/api/rpc/object_store/object_store.proto",
}

func init() {
	proto.RegisterFile("github.com/appcelerator/amp/api/rpc/object_store/object_store.proto", fileDescriptor0)
}

var fileDescriptor0 = []byte{
	// 480 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0xc1, 0x8e, 0xd3, 0x30,
	0x10, 0x86, 0x95, 0xa4, 0x74, 0xbb, 0x13, 0x8a, 0x2a, 0x0b, 0xd8, 0x6c, 0x16, 0x41, 0x31, 0x97,
	0x6a, 0x0f, 0x89, 0x28, 0x42, 0x02, 0x24, 0x2e, 0xac, 0x96, 0x13, 0x08, 0x29, 0x70, 0x45, 0xc8,
	0x4d, 0x4d, 0x30, 0x4a, 0x62, 0xe3, 0x78, 0x57, 0xaa, 0x10, 0x17, 0x4e, 0xdc, 0x11, 0x4f, 0xc6,
	0x2b, 0xf0, 0x20, 0xc8, 0x76, 0x52, 0xe2, 0x50, 0xca, 0xcd, 0xbf, 0x27, 0xf3, 0xcf, 0xf8, 0x9b,
	0x09, 0x9c, 0x15, 0x4c, 0x7d, 0xb8, 0x58, 0x25, 0x39, 0xaf, 0x52, 0x22, 0x44, 0x4e, 0x4b, 0x2a,
	0x89, 0xe2, 0x32, 0x25, 0x95, 0x48, 0x89, 0x60, 0xa9, 0x14, 0x79, 0xca, 0x57, 0x1f, 0x69, 0xae,
	0xde, 0x35, 0x8a, 0x4b, 0xea, 0x88, 0x44, 0x48, 0xae, 0x38, 0xba, 0xda, 0xbf, 0x8b, 0x9f, 0xed,
	0xb3, 0x5c, 0x13, 0x45, 0x1c, 0x8b, 0xc6, 0x55, 0xd6, 0x31, 0xbe, 0x55, 0x70, 0x5e, 0x94, 0xd4,
	0x74, 0x40, 0xea, 0x9a, 0x2b, 0xa2, 0x18, 0xaf, 0xdb, 0x28, 0x7e, 0x08, 0xd3, 0x33, 0x49, 0x89,
	0xa2, 0x19, 0xfd, 0x74, 0x41, 0x1b, 0x85, 0x10, 0x8c, 0x6a, 0x52, 0xd1, 0xc8, 0x9b, 0x7b, 0x8b,
	0xc3, 0xcc, 0x9c,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