// Code generated by protoc-gen-go. DO NOT EDIT.
// source: internal/wire/header.proto

package wire

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

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

const (
	MessageType_DEFAULT MessageType = 0
	MessageType_NOOP    MessageType = 1
)

var MessageType_name = map[int32]string{
	0: "DEFAULT",
	1: "NOOP",
}
var MessageType_value = map[string]int32{
	"DEFAULT": 0,
	"NOOP":    1,
}

func (x MessageType) String() string {
	return proto.EnumName(MessageType_name, int32(x))
}
func (MessageType) EnumDescriptor() ([]byte, []int) {
	return fileDescriptor_header_11a89c8727a5f5b2, []int{0}
}

type HeaderV1 struct {
	// A message ID generated for the purpose of deduplication.
	MessageId []byte `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
	// The type name for this message.
	EventType string `protobuf:"bytes,2,opt,name=event_type,json=eventType,proto3" json:"event_type,omitempty"`
	// This is the time the client library created the message for sending.
	// While the Timestamp object supports up to nanosecond precision, we
	// only expect out of our producers at least millisecond precision, though
	// more can be given if available.
	CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Used to denote special messages
	Type MessageType `protobuf:"varint,4,opt,name=type,proto3,enum=MessageType" json:"type,omitempty"`
	// The environment from which the event was published
	Environment          string   `protobuf:"bytes,5,opt,name=environment,proto3" json:"environment,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *HeaderV1) Reset()         { *m = HeaderV1{} }
func (m *HeaderV1) String() string { return proto.CompactTextString(m) }
func (*HeaderV1) ProtoMessage()    {}
func (*HeaderV1) Descriptor() ([]byte, []int) {
	return fileDescriptor_header_11a89c8727a5f5b2, []int{0}
}
func (m *HeaderV1) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_HeaderV1.Unmarshal(m, b)
}
func (m *HeaderV1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_HeaderV1.Marshal(b, m, deterministic)
}
func (dst *HeaderV1) XXX_Merge(src proto.Message) {
	xxx_messageInfo_HeaderV1.Merge(dst, src)
}
func (m *HeaderV1) XXX_Size() int {
	return xxx_messageInfo_HeaderV1.Size(m)
}
func (m *HeaderV1) XXX_DiscardUnknown() {
	xxx_messageInfo_HeaderV1.DiscardUnknown(m)
}

var xxx_messageInfo_HeaderV1 proto.InternalMessageInfo

func (m *HeaderV1) GetMessageId() []byte {
	if m != nil {
		return m.MessageId
	}
	return nil
}

func (m *HeaderV1) GetEventType() string {
	if m != nil {
		return m.EventType
	}
	return ""
}

func (m *HeaderV1) GetCreatedAt() *timestamp.Timestamp {
	if m != nil {
		return m.CreatedAt
	}
	return nil
}

func (m *HeaderV1) GetType() MessageType {
	if m != nil {
		return m.Type
	}
	return MessageType_DEFAULT
}

func (m *HeaderV1) GetEnvironment() string {
	if m != nil {
		return m.Environment
	}
	return ""
}

func init() {
	proto.RegisterType((*HeaderV1)(nil), "HeaderV1")
	proto.RegisterEnum("MessageType", MessageType_name, MessageType_value)
}

func init() { proto.RegisterFile("internal/wire/header.proto", fileDescriptor_header_11a89c8727a5f5b2) }

var fileDescriptor_header_11a89c8727a5f5b2 = []byte{
	// 274 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x90, 0x41, 0x4b, 0xc3, 0x30,
	0x1c, 0xc5, 0x8d, 0xd6, 0xb9, 0xa6, 0x43, 0x46, 0x4e, 0xa5, 0x20, 0x04, 0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