package certs

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

var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf

const _ = proto.ProtoPackageIsVersion3 

type CertHashAlgorithm int32

const (
	CertHashAlgorithm_HASH_NONE           CertHashAlgorithm = 0
	CertHashAlgorithm_HASH_SHA256_16bytes CertHashAlgorithm = 1
	CertHashAlgorithm_HASH_SHA256_32bytes CertHashAlgorithm = 2
)

var CertHashAlgorithm_name = map[int32]string{
	0: "HASH_NONE",
	1: "HASH_SHA256_16bytes",
	2: "HASH_SHA256_32bytes",
}

var CertHashAlgorithm_value = map[string]int32{
	"HASH_NONE":           0,
	"HASH_SHA256_16bytes": 1,
	"HASH_SHA256_32bytes": 2,
}

func (x CertHashAlgorithm) String() string {
	return proto.EnumName(CertHashAlgorithm_name, int32(x))
}

func (CertHashAlgorithm) EnumDescriptor() ([]byte, []int) {
	return fileDescriptor_78c43cca93027bbd, []int{0}
}

type ZCertType int32

const (
	ZCertType_CERT_TYPE_CONTROLLER_SIGNING       ZCertType = 0
	ZCertType_CERT_TYPE_CONTROLLER_INTERMEDIATE  ZCertType = 1
	ZCertType_CERT_TYPE_CONTROLLER_ECDH_EXCHANGE ZCertType = 2
)

var ZCertType_name = map[int32]string{
	0: "CERT_TYPE_CONTROLLER_SIGNING",
	1: "CERT_TYPE_CONTROLLER_INTERMEDIATE",
	2: "CERT_TYPE_CONTROLLER_ECDH_EXCHANGE",
}

var ZCertType_value = map[string]int32{
	"CERT_TYPE_CONTROLLER_SIGNING":       0,
	"CERT_TYPE_CONTROLLER_INTERMEDIATE":  1,
	"CERT_TYPE_CONTROLLER_ECDH_EXCHANGE": 2,
}

func (x ZCertType) String() string {
	return proto.EnumName(ZCertType_name, int32(x))
}

func (ZCertType) EnumDescriptor() ([]byte, []int) {
	return fileDescriptor_78c43cca93027bbd, []int{1}
}

type ZControllerCert struct {
	Certs                []*ZCert `protobuf:"bytes,1,rep,name=certs,proto3" json:"certs,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (m *ZControllerCert) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ZControllerCert.Unmarshal(m, b)
}
func (m *ZControllerCert) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ZControllerCert.Marshal(b, m, deterministic)
}
func (m *ZControllerCert) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ZControllerCert.Merge(m, src)
}
func (m *ZControllerCert) XXX_Size() int {
	return xxx_messageInfo_ZControllerCert.Size(m)
}
func (m *ZControllerCert) XXX_DiscardUnknown() {
	xxx_messageInfo_ZControllerCert.DiscardUnknown(m)
}

var xxx_messageInfo_ZControllerCert proto.InternalMessageInfo

func (m *ZControllerCert) GetCerts() []*ZCert {
	if m != nil {
		return m.Certs
	}
	return nil
}

type ZCert struct {
	HashAlgo             CertHashAlgorithm `protobuf:"varint,1,opt,name=hashAlgo,proto3,enum=CertHashAlgorithm" json:"hashAlgo,omitempty"`
	CertHash             []byte            `protobuf:"bytes,2,opt,name=certHash,proto3" json:"certHash,omitempty"`
	Type                 ZCertType         `protobuf:"varint,3,opt,name=type,proto3,enum=ZCertType" json:"type,omitempty"`
	Cert                 []byte            `protobuf:"bytes,4,opt,name=cert,proto3" json:"cert,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

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

func (m *ZCert) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ZCert.Unmarshal(m, b)
}
func (m *ZCert) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ZCert.Marshal(b, m, deterministic)
}
func (m *ZCert) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ZCert.Merge(m, src)
}
func (m *ZCert) XXX_Size() int {
	return xxx_messageInfo_ZCert.Size(m)
}
func (m *ZCert) XXX_DiscardUnknown() {
	xxx_messageInfo_ZCert.DiscardUnknown(m)
}

var xxx_messageInfo_ZCert proto.InternalMessageInfo

func (m *ZCert) GetHashAlgo() CertHashAlgorithm {
	if m != nil {
		return m.HashAlgo
	}
	return CertHashAlgorithm_HASH_NONE
}

func (m *ZCert) GetCertHash() []byte {
	if m != nil {
		return m.CertHash
	}
	return nil
}

func (m *ZCert) GetType() ZCertType {
	if m != nil {
		return m.Type
	}
	return ZCertType_CERT_TYPE_CONTROLLER_SIGNING
}

func (m *ZCert) GetCert() []byte {
	if m != nil {
		return m.Cert
	}
	return nil
}

func init() {
	proto.RegisterEnum("CertHashAlgorithm", CertHashAlgorithm_name, CertHashAlgorithm_value)
	proto.RegisterEnum("ZCertType", ZCertType_name, ZCertType_value)
	proto.RegisterType((*ZControllerCert)(nil), "ZControllerCert")
	proto.RegisterType((*ZCert)(nil), "ZCert")
}

func init() { proto.RegisterFile("certs.proto", fileDescriptor_78c43cca93027bbd) }

var fileDescriptor_78c43cca93027bbd = []byte{

	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0x4d, 0x6f, 0xda, 0x40,
	0x10, 0x86, 0x31, 0x5f, 0x82, 0xa1, 0x1f, 0xee, 0xf6, 0x50, 0xab, 0x42, 0xad, 0x4b, 0xd5, 0x0a,
	0x21, 0x75, 0xad, 0x1a, 0x95, 0xbb, 0x6b, 0x36,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, 0x00,
	0xdd, 0x53, 0x39, 0xd2, 0xa1, 0x6f, 0x13, 0xea, 0x07, 0xfe, 0xcd, 0x15, 0x09, 0xec, 0x85, 0xe7,
	0xd3, 0xc5, 0x7c, 0x4e, 0x68, 0xb0, 0x74, 0x67, 0x9e, 0xeb, 0xcd, 0xd4, 0x1a, 0xfa, 0x05, 0x3f,
	0xce, 0x1a, 0xae, 0xe7, 0x13, 0x7a, 0x49, 0xa6, 0xae, 0xe5, 0x13, 0x55, 0x41, 0xbf, 0x61, 0x70,
	0x56, 0x23, 0xf6, 0xd4, 0x09, 0xc8, 0xb5, 0xed, 0x58, 0xde, 0x8c, 0xa8, 0xf5, 0xff, 0x17, 0xf0,
	0x3d, 0xe4, 0x5b, 0x7c, 0xcf, 0x22, 0x16, 0xad, 0x71, 0x98, 0xf1, 0x5d, 0x84, 0x77, 0x25, 0x2b,
	0xf6, 0x69, 0xc8, 0xaa, 0x8b, 0xad, 0x7e, 0xc6, 0xa9, 0x48, 0x76, 0x1b, 0x1c, 0xf2, 0xad, 0x91,
	0xdd, 0xfe, 0x61, 0x51, 0xcc, 0x0c, 0xb6, 0x67, 0xc6, 0x3a, 0x4f, 0x8d, 0x98, 0x1b, 0xf2, 0x4a,
	0x9b, 0xb6, 0x74, 0xc7, 0x4f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x31, 0x84, 0xb0, 0x26, 0xec, 0x01,
	0x00, 0x00,
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: certs.proto

package certs

import (
	fmt "fmt"
	proto "github.com/golang/protobuf/proto"
	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.ProtoPackageIsVersion3 // please upgrade the proto package

//This is same as hashAlgorithm in auth/auth.proto
//Keep these two in sync
//XXX: import auth/auth.proto and avoid this duplication
type CertHashAlgorithm int32

const (
	CertHashAlgorithm_HASH_NONE           CertHashAlgorithm = 0
	CertHashAlgorithm_HASH_SHA256_16bytes CertHashAlgorithm = 1
	CertHashAlgorithm_HASH_SHA256_32bytes CertHashAlgorithm = 2
)

var CertHashAlgorithm_name = map[int32]string{
	0: "HASH_NONE",
	1: "HASH_SHA256_16bytes",
	2: "HASH_SHA256_32bytes",
}

var CertHashAlgorithm_value = map[string]int32{
	"HASH_NONE":           0,
	"HASH_SHA256_16bytes": 1,
	"HASH_SHA256_32bytes": 2,
}

func (x CertHashAlgorithm) String() string {
	return proto.EnumName(CertHashAlgorithm_name, int32(x))
}

func (CertHashAlgorithm) EnumDescriptor() ([]byte, []int) {
	return fileDescriptor_78c43cca93027bbd, []int{0}
}

type ZCertType int32

const (
	ZCertType_CERT_TYPE_CONTROLLER_SIGNING       ZCertType = 0
	ZCertType_CERT_TYPE_CONTROLLER_INTERMEDIATE  ZCertType = 1
	ZCertType_CERT_TYPE_CONTROLLER_ECDH_EXCHANGE ZCertType = 2
)

var ZCertType_name = map[int32]string{
	0: "CERT_TYPE_CONTROLLER_SIGNING",
	1: "CERT_TYPE_CONTROLLER_INTERMEDIATE",
	2: "CERT_TYPE_CONTROLLER_ECDH_EXCHANGE",
}

var ZCertType_value = map[string]int32{
	"CERT_TYPE_CONTROLLER_SIGNING":       0,
	"CERT_TYPE_CONTROLLER_INTERMEDIATE":  1,
	"CERT_TYPE_CONTROLLER_ECDH_EXCHANGE": 2,
}

func (x ZCertType) String() string {
	return proto.EnumName(ZCertType_name, int32(x))
}

func (ZCertType) EnumDescriptor() ([]byte, []int) {
	return fileDescriptor_78c43cca93027bbd, []int{1}
}

// This is the response payload for GET /api/v1/edgeDevice/certs
// or /api/v2/edgeDevice/certs
// ZControllerCert carries a set of X.509 certificate and their properties
// from Controller to EVE.
type ZControllerCert struct {
	Certs                []*ZCert `protobuf:"bytes,1,rep,name=certs,proto3" json:"certs,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (m *ZControllerCert) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ZControllerCert.Unmarshal(m, b)
}
func (m *ZControllerCert) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ZControllerCert.Marshal(b, m, deterministic)
}
func (m *ZControllerCert) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ZControllerCert.Merge(m, src)
}
func (m *ZControllerCert) XXX_Size() int {
	return xxx_messageInfo_ZControllerCert.Size(m)
}
func (m *ZControllerCert) XXX_DiscardUnknown() {
	xxx_messageInfo_ZControllerCert.DiscardUnknown(m)
}

var xxx_messageInfo_ZControllerCert proto.InternalMessageInfo

func (m *ZControllerCert) GetCerts() []*ZCert {
	if m != nil {
		return m.Certs
	}
	return nil
}

type ZCert struct {
	HashAlgo             CertHashAlgorithm `protobuf:"varint,1,opt,name=hashAlgo,proto3,enum=CertHashAlgorithm" json:"hashAlgo,omitempty"`
	CertHash             []byte            `protobuf:"bytes,2,opt,name=certHash,proto3" json:"certHash,omitempty"`
	Type                 ZCertType         `protobuf:"varint,3,opt,name=type,proto3,enum=ZCertType" json:"type,omitempty"`
	Cert                 []byte            `protobuf:"bytes,4,opt,name=cert,proto3" json:"cert,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

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

func (m *ZCert) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ZCert.Unmarshal(m, b)
}
func (m *ZCert) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ZCert.Marshal(b, m, deterministic)
}
func (m *ZCert) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ZCert.Merge(m, src)
}
func (m *ZCert) XXX_Size() int {
	return xxx_messageInfo_ZCert.Size(m)
}
func (m *ZCert) XXX_DiscardUnknown() {
	xxx_messageInfo_ZCert.DiscardUnknown(m)
}

var xxx_messageInfo_ZCert proto.InternalMessageInfo

func (m *ZCert) GetHashAlgo() CertHashAlgorithm {
	if m != nil {
		return m.HashAlgo
	}
	return CertHashAlgorithm_HASH_NONE
}

func (m *ZCert) GetCertHash() []byte {
	if m != nil {
		return m.CertHash
	}
	return nil
}

func (m *ZCert) GetType() ZCertType {
	if m != nil {
		return m.Type
	}
	return ZCertType_CERT_TYPE_CONTROLLER_SIGNING
}

func (m *ZCert) GetCert() []byte {
	if m != nil {
		return m.Cert
	}
	return nil
}

func init() {
	proto.RegisterEnum("CertHashAlgorithm", CertHashAlgorithm_name, CertHashAlgorithm_value)
	proto.RegisterEnum("ZCertType", ZCertType_name, ZCertType_value)
	proto.RegisterType((*ZControllerCert)(nil), "ZControllerCert")
	proto.RegisterType((*ZCert)(nil), "ZCert")
}

func init() { proto.RegisterFile("certs.proto", fileDescriptor_78c43cca93027bbd) }

var fileDescriptor_78c43cca93027bbd = []byte{
	// 354 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0x4d, 0x6f, 0xda, 0x40,
	0x10, 0x86, 0x31, 0x5f, 0x82, 0xa1, 0x1f, 0xee, 0xf6, 0x50, 0xab, 0x42, 0xad, 0x4b, 0xd5, 0x0a,
	0x21, 0x75, 0xad, 0x1a, 0x95, 0xbb, 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