// Code generated by protoc-gen-go.
// source: op.proto
// DO NOT EDIT!

/*
Package sinkpb is a generated protocol buffer package.

It is generated from these files:
	op.proto
	snapshot.proto

It has these top-level messages:
	Op
	Cond
	Instruction
	Snapshot
*/
package sinkpb

import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"

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

const (
	Op_SET    Op_Type = 0
	Op_DELETE Op_Type = 1
)

var Op_Type_name = map[int32]string{
	0: "SET",
	1: "DELETE",
}
var Op_Type_value = map[string]int32{
	"SET":    0,
	"DELETE": 1,
}

func (x Op_Type) String() string {
	return proto.EnumName(Op_Type_name, int32(x))
}
func (Op_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }

type Cond_Type int32

const (
	Cond_KEY_EXISTS      Cond_Type = 0
	Cond_NOT_KEY_EXISTS  Cond_Type = 1
	Cond_VALUE_EQUAL     Cond_Type = 2
	Cond_NOT_VALUE_EQUAL Cond_Type = 3
	Cond_INDEX_EQUAL     Cond_Type = 4
	Cond_NOT_INDEX_EQUAL Cond_Type = 5
)

var Cond_Type_name = map[int32]string{
	0: "KEY_EXISTS",
	1: "NOT_KEY_EXISTS",
	2: "VALUE_EQUAL",
	3: "NOT_VALUE_EQUAL",
	4: "INDEX_EQUAL",
	5: "NOT_INDEX_EQUAL",
}
var Cond_Type_value = map[string]int32{
	"KEY_EXISTS":      0,
	"NOT_KEY_EXISTS":  1,
	"VALUE_EQUAL":     2,
	"NOT_VALUE_EQUAL": 3,
	"INDEX_EQUAL":     4,
	"NOT_INDEX_EQUAL": 5,
}

func (x Cond_Type) String() string {
	return proto.EnumName(Cond_Type_name, int32(x))
}
func (Cond_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1, 0} }

type Op struct {
	Type  Op_Type `protobuf:"varint,1,opt,name=type,enum=sinkpb.Op_Type" json:"type,omitempty"`
	Key   string  `protobuf:"bytes,2,opt,name=key" json:"key,omitempty"`
	Value []byte  `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
}

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

func (m *Op) GetType() Op_Type {
	if m != nil {
		return m.Type
	}
	return Op_SET
}

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

func (m *Op) GetValue() []byte {
	if m != nil {
		return m.Value
	}
	return nil
}

type Cond struct {
	Type  Cond_Type `protobuf:"varint,1,opt,name=type,enum=sinkpb.Cond_Type" json:"type,omitempty"`
	Key   string    `protobuf:"bytes,2,opt,name=key" json:"key,omitempty"`
	Value []byte    `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	Index uint64    `protobuf:"varint,4,opt,name=index" json:"index,omitempty"`
}

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

func (m *Cond) GetType() Cond_Type {
	if m != nil {
		return m.Type
	}
	return Cond_KEY_EXISTS
}

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

func (m *Cond) GetValue() []byte {
	if m != nil {
		return m.Value
	}
	return nil
}

func (m *Cond) GetIndex() uint64 {
	if m != nil {
		return m.Index
	}
	return 0
}

type Instruction struct {
	Conditions []*Cond `protobuf:"bytes,1,rep,name=conditions" json:"conditions,omitempty"`
	Operations []*Op   `protobuf:"bytes,2,rep,name=operations" json:"operations,omitempty"`
}

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

func (m *Instruction) GetConditions() []*Cond {
	if m != nil {
		return m.Conditions
	}
	return nil
}

func (m *Instruction) GetOperations() []*Op {
	if m != nil {
		return m.Operations
	}
	return nil
}

func init() {
	proto.RegisterType((*Op)(nil), "sinkpb.Op")
	proto.RegisterType((*Cond)(nil), "sinkpb.Cond")
	proto.RegisterType((*Instruction)(nil), "sinkpb.Instruction")
	proto.RegisterEnum("sinkpb.Op_Type", Op_Type_name, Op_Type_value)
	proto.RegisterEnum("sinkpb.Cond_Type", Cond_Type_name, Cond_Type_value)
}

func init() { proto.RegisterFile("op.proto", fileDescriptor0) }

var fileDescriptor0 = []byte{
	// 300 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x91, 0x51, 0x6b, 0xf2, 0x30,
	0x14, 0x86, 0x4d, 0x1b, 0xfd, 0xbe, 0x1d, 0x45, 0xbb, 0xb3, 0x5d, 0x14, 0x76, 0x53, 0x3a, 0x06,
	0x65, 0x8c, 0x5e, 0xb8, 0x5f, 0x20, 0x33, 0x17, 0x32, 0x51, 0x16, 0xeb, 0x70, 0x57, 0xa2, 0x36,
	0x8c, 0xe2, 0x48, 0x42, 0x5b, 0x65, 0xfd, 0xbd, 0xfb, 0x23, 0x23, 0xad, 0xb2, 0xec, 0x76, 0x77,
	0x39, 0xef, 0xf3, 0x84, 0x37, 0xe1, 0xc0, 0x7f, 0xa5, 0x63, 0x9d, 0xab, 0x52, 0x61, 0xa7, 0xc8,
	0xe4, 0x5e, 0x6f, 0x43, 0x09, 0xce, 0x5c, 0xe3, 0x2d, 0xd0, 0xb2, 0xd2, 0xc2, 0x27, 0x01, 0x89,
	0xfa, 0xc3, 0x41, 0xdc, 0xc0, 0x78, 0xae, 0xe3, 0xa4, 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