// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v3.19.0
// source: components/automate-deployment/pkg/persistence/boltdb/internal/v1/schema/v1.proto

package schema

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

type Service_DeploymentState int32

const (
	Service_SKIP      Service_DeploymentState = 0
	Service_INSTALLED Service_DeploymentState = 1
	Service_RUNNING   Service_DeploymentState = 2
	Service_REMOVED   Service_DeploymentState = 3
)

// Enum value maps for Service_DeploymentState.
var (
	Service_DeploymentState_name = map[int32]string{
		0: "SKIP",
		1: "INSTALLED",
		2: "RUNNING",
		3: "REMOVED",
	}
	Service_DeploymentState_value = map[string]int32{
		"SKIP":      0,
		"INSTALLED": 1,
		"RUNNING":   2,
		"REMOVED":   3,
	}
)

func (x Service_DeploymentState) Enum() *Service_DeploymentState {
	p := new(Service_DeploymentState)
	*p = x
	return p
}

func (x Service_DeploymentState) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (Service_DeploymentState) Descriptor() protoreflect.EnumDescriptor {
	return file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_enumTypes[0].Descriptor()
}

func (Service_DeploymentState) Type() protoreflect.EnumType {
	return &file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_enumTypes[0]
}

func (x Service_DeploymentState) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use Service_DeploymentState.Descriptor instead.
func (Service_DeploymentState) EnumDescriptor() ([]byte, []int) {
	return file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_rawDescGZIP(), []int{3, 0}
}

type Service_InstallType int32

const (
	Service_DEPOT Service_InstallType = 0
	Service_HART  Service_InstallType = 1
)

// Enum value maps for Service_InstallType.
var (
	Service_InstallType_name = map[int32]string{
		0: "DEPOT",
		1: "HART",
	}
	Service_InstallType_value = map[string]int32{
		"DEPOT": 0,
		"HART":  1,
	}
)

func (x Service_InstallType) Enum() *Service_InstallType {
	p := new(Service_InstallType)
	*p = x
	return p
}

func (x Service_InstallType) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (Service_InstallType) Descriptor() protoreflect.EnumDescriptor {
	return file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_enumTypes[1].Descriptor()
}

func (Service_InstallType) Type() protoreflect.EnumType {
	return &file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_enumTypes[1]
}

func (x Service_InstallType) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use Service_InstallType.Descriptor instead.
func (Service_InstallType) EnumDescriptor() ([]byte, []int) {
	return file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_rawDescGZIP(), []int{3, 1}
}

type Deployment struct {
	state                  protoimpl.MessageState `protogen:"open.v1"`
	Id                     string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" toml:"id,omitempty" mapstructure:"id,omitempty"`
	CreatedAt              *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty" toml:"created_at,omitempty" mapstructure:"created_at,omitempty"`
	LastAction             string                 `protobuf:"bytes,3,opt,name=last_action,json=lastAction,proto3" json:"last_action,omitempty" toml:"last_action,omitempty" mapstructure:"last_action,omitempty"`
	Deployed               bool                   `protobuf:"varint,4,opt,name=deployed,proto3" json:"deployed,omitempty" toml:"deployed,omitempty" mapstructure:"deployed,omitempty"`
	Services               []*Service             `protobuf:"bytes,5,rep,name=services,proto3" json:"services,omitempty" toml:"services,omitempty" mapstructure:"services,omitempty"`
	CurrentReleaseManifest *ReleaseManifest       `protobuf:"bytes,6,opt,name=current_release_manifest,json=currentReleaseManifest,proto3" json:"current_release_manifest,omitempty" toml:"current_release_manifest,omitempty" mapstructure:"current_release_manifest,omitempty"`
	unknownFields          protoimpl.UnknownFields
	sizeCache              protoimpl.SizeCache
}

func (x *Deployment) Reset() {
	*x = Deployment{}
	mi := &file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *Deployment) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*Deployment) ProtoMessage() {}

func (x *Deployment) ProtoReflect() protoreflect.Message {
	mi := &file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_msgTypes[0]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use Deployment.ProtoReflect.Descriptor instead.
func (*Deployment) Descriptor() ([]byte, []int) {
	return file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_rawDescGZIP(), []int{0}
}

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

func (x *Deployment) GetCreatedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.CreatedAt
	}
	return nil
}

func (x *Deployment) GetLastAction() string {
	if x != nil {
		return x.LastAction
	}
	return ""
}

func (x *Deployment) GetDeployed() bool {
	if x != nil {
		return x.Deployed
	}
	return false
}

func (x *Deployment) GetServices() []*Service {
	if x != nil {
		return x.Services
	}
	return nil
}

func (x *Deployment) GetCurrentReleaseManifest() *ReleaseManifest {
	if x != nil {
		return x.CurrentReleaseManifest
	}
	return nil
}

type ReleaseManifest struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Build         string                 `protobuf:"bytes,1,opt,name=build,proto3" json:"build,omitempty" toml:"build,omitempty" mapstructure:"build,omitempty"`
	BuildSHA      string                 `protobuf:"bytes,2,opt,name=buildSHA,proto3" json:"buildSHA,omitempty" toml:"buildSHA,omitempty" mapstructure:"buildSHA,omitempty"`
	Packages      []string               `protobuf:"bytes,3,rep,name=packages,proto3" json:"packages,omitempty" toml:"packages,omitempty" mapstructure:"packages,omitempty"`
	Harts         []*Hart                `protobuf:"bytes,4,rep,name=harts,proto3" json:"harts,omitempty" toml:"harts,omitempty" mapstructure:"harts,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ReleaseManifest) Reset() {
	*x = ReleaseManifest{}
	mi := &file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *ReleaseManifest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ReleaseManifest) ProtoMessage() {}

func (x *ReleaseManifest) ProtoReflect() protoreflect.Message {
	mi := &file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_msgTypes[1]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ReleaseManifest.ProtoReflect.Descriptor instead.
func (*ReleaseManifest) Descriptor() ([]byte, []int) {
	return file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_rawDescGZIP(), []int{1}
}

func (x *ReleaseManifest) GetBuild() string {
	if x != nil {
		return x.Build
	}
	return ""
}

func (x *ReleaseManifest) GetBuildSHA() string {
	if x != nil {
		return x.BuildSHA
	}
	return ""
}

func (x *ReleaseManifest) GetPackages() []string {
	if x != nil {
		return x.Packages
	}
	return nil
}

func (x *ReleaseManifest) GetHarts() []*Hart {
	if x != nil {
		return x.Harts
	}
	return nil
}

type Hart struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Origin        string                 `protobuf:"bytes,1,opt,name=origin,proto3" json:"origin,omitempty" toml:"origin,omitempty" mapstructure:"origin,omitempty"`
	Name          string                 `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" toml:"name,omitempty" mapstructure:"name,omitempty"`
	Path          string                 `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty" toml:"path,omitempty" mapstructure:"path,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Hart) Reset() {
	*x = Hart{}
	mi := &file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *Hart) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*Hart) ProtoMessage() {}

func (x *Hart) ProtoReflect() protoreflect.Message {
	mi := &file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_msgTypes[2]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use Hart.ProtoReflect.Descriptor instead.
func (*Hart) Descriptor() ([]byte, []int) {
	return file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_rawDescGZIP(), []int{2}
}

func (x *Hart) GetOrigin() string {
	if x != nil {
		return x.Origin
	}
	return ""
}

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

func (x *Hart) GetPath() string {
	if x != nil {
		return x.Path
	}
	return ""
}

type Service struct {
	state           protoimpl.MessageState  `protogen:"open.v1"`
	Origin          string                  `protobuf:"bytes,1,opt,name=origin,proto3" json:"origin,omitempty" toml:"origin,omitempty" mapstructure:"origin,omitempty"`
	OriginalOrigin  string                  `protobuf:"bytes,2,opt,name=original_origin,json=originalOrigin,proto3" json:"original_origin,omitempty" toml:"original_origin,omitempty" mapstructure:"original_origin,omitempty"`
	Name            string                  `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty" toml:"name,omitempty" mapstructure:"name,omitempty"`
	InstallType     Service_InstallType     `protobuf:"varint,4,opt,name=install_type,json=installType,proto3,enum=Service_InstallType" json:"install_type,omitempty" toml:"install_type,omitempty" mapstructure:"install_type,omitempty"`
	HartPath        string                  `protobuf:"bytes,5,opt,name=hart_path,json=hartPath,proto3" json:"hart_path,omitempty" toml:"hart_path,omitempty" mapstructure:"hart_path,omitempty"`
	DeploymentState Service_DeploymentState `protobuf:"varint,8,opt,name=deployment_state,json=deploymentState,proto3,enum=Service_DeploymentState" json:"deployment_state,omitempty" toml:"deployment_state,omitempty" mapstructure:"deployment_state,omitempty"`
	SslKey          string                  `protobuf:"bytes,9,opt,name=ssl_key,json=sslKey,proto3" json:"ssl_key,omitempty" toml:"ssl_key,omitempty" mapstructure:"ssl_key,omitempty"`
	SslCert         string                  `protobuf:"bytes,10,opt,name=ssl_cert,json=sslCert,proto3" json:"ssl_cert,omitempty" toml:"ssl_cert,omitempty" mapstructure:"ssl_cert,omitempty"`
	unknownFields   protoimpl.UnknownFields
	sizeCache       protoimpl.SizeCache
}

func (x *Service) Reset() {
	*x = Service{}
	mi := &file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *Service) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*Service) ProtoMessage() {}

func (x *Service) ProtoReflect() protoreflect.Message {
	mi := &file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_msgTypes[3]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use Service.ProtoReflect.Descriptor instead.
func (*Service) Descriptor() ([]byte, []int) {
	return file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_rawDescGZIP(), []int{3}
}

func (x *Service) GetOrigin() string {
	if x != nil {
		return x.Origin
	}
	return ""
}

func (x *Service) GetOriginalOrigin() string {
	if x != nil {
		return x.OriginalOrigin
	}
	return ""
}

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

func (x *Service) GetInstallType() Service_InstallType {
	if x != nil {
		return x.InstallType
	}
	return Service_DEPOT
}

func (x *Service) GetHartPath() string {
	if x != nil {
		return x.HartPath
	}
	return ""
}

func (x *Service) GetDeploymentState() Service_DeploymentState {
	if x != nil {
		return x.DeploymentState
	}
	return Service_SKIP
}

func (x *Service) GetSslKey() string {
	if x != nil {
		return x.SslKey
	}
	return ""
}

func (x *Service) GetSslCert() string {
	if x != nil {
		return x.SslCert
	}
	return ""
}

var File_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto protoreflect.FileDescriptor

const file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_rawDesc = "" +
	"\n" +
	"Qcomponents/automate-deployment/pkg/persistence/boltdb/internal/v1/schema/v1.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x86\x02\n" +
	"\n" +
	"Deployment\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x129\n" +
	"\n" +
	"created_at\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x1f\n" +
	"\vlast_action\x18\x03 \x01(\tR\n" +
	"lastAction\x12\x1a\n" +
	"\bdeployed\x18\x04 \x01(\bR\bdeployed\x12$\n" +
	"\bservices\x18\x05 \x03(\v2\b.ServiceR\bservices\x12J\n" +
	"\x18current_release_manifest\x18\x06 \x01(\v2\x10.ReleaseManifestR\x16currentReleaseManifest\"|\n" +
	"\x0fReleaseManifest\x12\x14\n" +
	"\x05build\x18\x01 \x01(\tR\x05build\x12\x1a\n" +
	"\bbuildSHA\x18\x02 \x01(\tR\bbuildSHA\x12\x1a\n" +
	"\bpackages\x18\x03 \x03(\tR\bpackages\x12\x1b\n" +
	"\x05harts\x18\x04 \x03(\v2\x05.HartR\x05harts\"F\n" +
	"\x04Hart\x12\x16\n" +
	"\x06origin\x18\x01 \x01(\tR\x06origin\x12\x12\n" +
	"\x04name\x18\x02 \x01(\tR\x04name\x12\x12\n" +
	"\x04path\x18\x03 \x01(\tR\x04path\"\xa9\x03\n" +
	"\aService\x12\x16\n" +
	"\x06origin\x18\x01 \x01(\tR\x06origin\x12'\n" +
	"\x0foriginal_origin\x18\x02 \x01(\tR\x0eoriginalOrigin\x12\x12\n" +
	"\x04name\x18\x03 \x01(\tR\x04name\x127\n" +
	"\finstall_type\x18\x04 \x01(\x0e2\x14.Service.InstallTypeR\vinstallType\x12\x1b\n" +
	"\thart_path\x18\x05 \x01(\tR\bhartPath\x12C\n" +
	"\x10deployment_state\x18\b \x01(\x0e2\x18.Service.DeploymentStateR\x0fdeploymentState\x12\x17\n" +
	"\assl_key\x18\t \x01(\tR\x06sslKey\x12\x19\n" +
	"\bssl_cert\x18\n" +
	" \x01(\tR\asslCert\"D\n" +
	"\x0fDeploymentState\x12\b\n" +
	"\x04SKIP\x10\x00\x12\r\n" +
	"\tINSTALLED\x10\x01\x12\v\n" +
	"\aRUNNING\x10\x02\x12\v\n" +
	"\aREMOVED\x10\x03\"\"\n" +
	"\vInstallType\x12\t\n" +
	"\x05DEPOT\x10\x00\x12\b\n" +
	"\x04HART\x10\x01J\x04\b\x06\x10\aJ\x04\b\a\x10\bJ\x04\b\v\x10\fBcZagithub.com/chef/automate/components/automate-deployment/pkg/persistence/boltdb/internal/v1/schemab\x06proto3"

var (
	file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_rawDescOnce sync.Once
	file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_rawDescData []byte
)

func file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_rawDescGZIP() []byte {
	file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_rawDescOnce.Do(func() {
		file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_rawDesc), len(file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_rawDesc)))
	})
	return file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_rawDescData
}

var file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_goTypes = []any{
	(Service_DeploymentState)(0),  // 0: Service.DeploymentState
	(Service_InstallType)(0),      // 1: Service.InstallType
	(*Deployment)(nil),            // 2: Deployment
	(*ReleaseManifest)(nil),       // 3: ReleaseManifest
	(*Hart)(nil),                  // 4: Hart
	(*Service)(nil),               // 5: Service
	(*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp
}
var file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_depIdxs = []int32{
	6, // 0: Deployment.created_at:type_name -> google.protobuf.Timestamp
	5, // 1: Deployment.services:type_name -> Service
	3, // 2: Deployment.current_release_manifest:type_name -> ReleaseManifest
	4, // 3: ReleaseManifest.harts:type_name -> Hart
	1, // 4: Service.install_type:type_name -> Service.InstallType
	0, // 5: Service.deployment_state:type_name -> Service.DeploymentState
	6, // [6:6] is the sub-list for method output_type
	6, // [6:6] is the sub-list for method input_type
	6, // [6:6] is the sub-list for extension type_name
	6, // [6:6] is the sub-list for extension extendee
	0, // [0:6] is the sub-list for field type_name
}

func init() {
	file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_init()
}
func file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_init() {
	if File_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_rawDesc), len(file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_rawDesc)),
			NumEnums:      2,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_goTypes,
		DependencyIndexes: file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_depIdxs,
		EnumInfos:         file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_enumTypes,
		MessageInfos:      file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_msgTypes,
	}.Build()
	File_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto = out.File
	file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_goTypes = nil
	file_components_automate_deployment_pkg_persistence_boltdb_internal_v1_schema_v1_proto_depIdxs = nil
}
