// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v3.19.0
// source: external/infra_proxy/request/environments.proto

package request

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	structpb "google.golang.org/protobuf/types/known/structpb"
	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 Environments struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Chef organization ID.
	OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"`
	// Chef Infra Server ID.
	ServerId string `protobuf:"bytes,2,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"`
	// Environments search query.
	SearchQuery   *SearchQuery `protobuf:"bytes,3,opt,name=search_query,json=searchQuery,proto3" json:"search_query,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Environments) ProtoMessage() {}

func (x *Environments) ProtoReflect() protoreflect.Message {
	mi := &file_external_infra_proxy_request_environments_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 Environments.ProtoReflect.Descriptor instead.
func (*Environments) Descriptor() ([]byte, []int) {
	return file_external_infra_proxy_request_environments_proto_rawDescGZIP(), []int{0}
}

func (x *Environments) GetOrgId() string {
	if x != nil {
		return x.OrgId
	}
	return ""
}

func (x *Environments) GetServerId() string {
	if x != nil {
		return x.ServerId
	}
	return ""
}

func (x *Environments) GetSearchQuery() *SearchQuery {
	if x != nil {
		return x.SearchQuery
	}
	return nil
}

type Environment struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Chef organization ID.
	OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"`
	// Chef Infra Server ID.
	ServerId string `protobuf:"bytes,2,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"`
	// Environment name.
	Name          string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Environment) ProtoMessage() {}

func (x *Environment) ProtoReflect() protoreflect.Message {
	mi := &file_external_infra_proxy_request_environments_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 Environment.ProtoReflect.Descriptor instead.
func (*Environment) Descriptor() ([]byte, []int) {
	return file_external_infra_proxy_request_environments_proto_rawDescGZIP(), []int{1}
}

func (x *Environment) GetOrgId() string {
	if x != nil {
		return x.OrgId
	}
	return ""
}

func (x *Environment) GetServerId() string {
	if x != nil {
		return x.ServerId
	}
	return ""
}

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

type CreateEnvironment struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Chef organization ID.
	OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"`
	// Chef Infra Server ID.
	ServerId string `protobuf:"bytes,2,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"`
	// Environment name.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Environment description.
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// Class name.
	JsonClass string `protobuf:"bytes,5,opt,name=json_class,json=jsonClass,proto3" json:"json_class,omitempty"`
	// Environment versioned cookbooks constraints.
	CookbookVersions map[string]string `protobuf:"bytes,6,rep,name=cookbook_versions,json=cookbookVersions,proto3" json:"cookbook_versions,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	// Environment default attributes JSON.
	DefaultAttributes *structpb.Struct `protobuf:"bytes,7,opt,name=default_attributes,json=defaultAttributes,proto3" json:"default_attributes,omitempty"`
	// Environment override attributes JSON.
	OverrideAttributes *structpb.Struct `protobuf:"bytes,8,opt,name=override_attributes,json=overrideAttributes,proto3" json:"override_attributes,omitempty"`
	unknownFields      protoimpl.UnknownFields
	sizeCache          protoimpl.SizeCache
}

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

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

func (*CreateEnvironment) ProtoMessage() {}

func (x *CreateEnvironment) ProtoReflect() protoreflect.Message {
	mi := &file_external_infra_proxy_request_environments_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 CreateEnvironment.ProtoReflect.Descriptor instead.
func (*CreateEnvironment) Descriptor() ([]byte, []int) {
	return file_external_infra_proxy_request_environments_proto_rawDescGZIP(), []int{2}
}

func (x *CreateEnvironment) GetOrgId() string {
	if x != nil {
		return x.OrgId
	}
	return ""
}

func (x *CreateEnvironment) GetServerId() string {
	if x != nil {
		return x.ServerId
	}
	return ""
}

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

func (x *CreateEnvironment) GetDescription() string {
	if x != nil {
		return x.Description
	}
	return ""
}

func (x *CreateEnvironment) GetJsonClass() string {
	if x != nil {
		return x.JsonClass
	}
	return ""
}

func (x *CreateEnvironment) GetCookbookVersions() map[string]string {
	if x != nil {
		return x.CookbookVersions
	}
	return nil
}

func (x *CreateEnvironment) GetDefaultAttributes() *structpb.Struct {
	if x != nil {
		return x.DefaultAttributes
	}
	return nil
}

func (x *CreateEnvironment) GetOverrideAttributes() *structpb.Struct {
	if x != nil {
		return x.OverrideAttributes
	}
	return nil
}

type UpdateEnvironment struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Chef organization ID.
	OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"`
	// Chef Infra Server ID.
	ServerId string `protobuf:"bytes,2,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"`
	// Environment name.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Environment description.
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// Class name.
	JsonClass string `protobuf:"bytes,5,opt,name=json_class,json=jsonClass,proto3" json:"json_class,omitempty"`
	// Environment versioned cookbooks constraints.
	CookbookVersions map[string]string `protobuf:"bytes,6,rep,name=cookbook_versions,json=cookbookVersions,proto3" json:"cookbook_versions,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	// Environment default attributes JSON.
	DefaultAttributes *structpb.Struct `protobuf:"bytes,7,opt,name=default_attributes,json=defaultAttributes,proto3" json:"default_attributes,omitempty"`
	// Environment override attributes JSON.
	OverrideAttributes *structpb.Struct `protobuf:"bytes,8,opt,name=override_attributes,json=overrideAttributes,proto3" json:"override_attributes,omitempty"`
	unknownFields      protoimpl.UnknownFields
	sizeCache          protoimpl.SizeCache
}

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

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

func (*UpdateEnvironment) ProtoMessage() {}

func (x *UpdateEnvironment) ProtoReflect() protoreflect.Message {
	mi := &file_external_infra_proxy_request_environments_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 UpdateEnvironment.ProtoReflect.Descriptor instead.
func (*UpdateEnvironment) Descriptor() ([]byte, []int) {
	return file_external_infra_proxy_request_environments_proto_rawDescGZIP(), []int{3}
}

func (x *UpdateEnvironment) GetOrgId() string {
	if x != nil {
		return x.OrgId
	}
	return ""
}

func (x *UpdateEnvironment) GetServerId() string {
	if x != nil {
		return x.ServerId
	}
	return ""
}

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

func (x *UpdateEnvironment) GetDescription() string {
	if x != nil {
		return x.Description
	}
	return ""
}

func (x *UpdateEnvironment) GetJsonClass() string {
	if x != nil {
		return x.JsonClass
	}
	return ""
}

func (x *UpdateEnvironment) GetCookbookVersions() map[string]string {
	if x != nil {
		return x.CookbookVersions
	}
	return nil
}

func (x *UpdateEnvironment) GetDefaultAttributes() *structpb.Struct {
	if x != nil {
		return x.DefaultAttributes
	}
	return nil
}

func (x *UpdateEnvironment) GetOverrideAttributes() *structpb.Struct {
	if x != nil {
		return x.OverrideAttributes
	}
	return nil
}

var File_external_infra_proxy_request_environments_proto protoreflect.FileDescriptor

const file_external_infra_proxy_request_environments_proto_rawDesc = "" +
	"\n" +
	"/external/infra_proxy/request/environments.proto\x12%chef.automate.api.infra_proxy.request\x1a\x1cgoogle/protobuf/struct.proto\x1a)external/infra_proxy/request/common.proto\"\x99\x01\n" +
	"\fEnvironments\x12\x15\n" +
	"\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x1b\n" +
	"\tserver_id\x18\x02 \x01(\tR\bserverId\x12U\n" +
	"\fsearch_query\x18\x03 \x01(\v22.chef.automate.api.infra_proxy.request.SearchQueryR\vsearchQuery\"U\n" +
	"\vEnvironment\x12\x15\n" +
	"\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x1b\n" +
	"\tserver_id\x18\x02 \x01(\tR\bserverId\x12\x12\n" +
	"\x04name\x18\x03 \x01(\tR\x04name\"\xf0\x03\n" +
	"\x11CreateEnvironment\x12\x15\n" +
	"\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x1b\n" +
	"\tserver_id\x18\x02 \x01(\tR\bserverId\x12\x12\n" +
	"\x04name\x18\x03 \x01(\tR\x04name\x12 \n" +
	"\vdescription\x18\x04 \x01(\tR\vdescription\x12\x1d\n" +
	"\n" +
	"json_class\x18\x05 \x01(\tR\tjsonClass\x12{\n" +
	"\x11cookbook_versions\x18\x06 \x03(\v2N.chef.automate.api.infra_proxy.request.CreateEnvironment.CookbookVersionsEntryR\x10cookbookVersions\x12F\n" +
	"\x12default_attributes\x18\a \x01(\v2\x17.google.protobuf.StructR\x11defaultAttributes\x12H\n" +
	"\x13override_attributes\x18\b \x01(\v2\x17.google.protobuf.StructR\x12overrideAttributes\x1aC\n" +
	"\x15CookbookVersionsEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xf0\x03\n" +
	"\x11UpdateEnvironment\x12\x15\n" +
	"\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x1b\n" +
	"\tserver_id\x18\x02 \x01(\tR\bserverId\x12\x12\n" +
	"\x04name\x18\x03 \x01(\tR\x04name\x12 \n" +
	"\vdescription\x18\x04 \x01(\tR\vdescription\x12\x1d\n" +
	"\n" +
	"json_class\x18\x05 \x01(\tR\tjsonClass\x12{\n" +
	"\x11cookbook_versions\x18\x06 \x03(\v2N.chef.automate.api.infra_proxy.request.UpdateEnvironment.CookbookVersionsEntryR\x10cookbookVersions\x12F\n" +
	"\x12default_attributes\x18\a \x01(\v2\x17.google.protobuf.StructR\x11defaultAttributes\x12H\n" +
	"\x13override_attributes\x18\b \x01(\v2\x17.google.protobuf.StructR\x12overrideAttributes\x1aC\n" +
	"\x15CookbookVersionsEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01B;Z9github.com/chef/automate/api/external/infra_proxy/requestb\x06proto3"

var (
	file_external_infra_proxy_request_environments_proto_rawDescOnce sync.Once
	file_external_infra_proxy_request_environments_proto_rawDescData []byte
)

func file_external_infra_proxy_request_environments_proto_rawDescGZIP() []byte {
	file_external_infra_proxy_request_environments_proto_rawDescOnce.Do(func() {
		file_external_infra_proxy_request_environments_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_external_infra_proxy_request_environments_proto_rawDesc), len(file_external_infra_proxy_request_environments_proto_rawDesc)))
	})
	return file_external_infra_proxy_request_environments_proto_rawDescData
}

var file_external_infra_proxy_request_environments_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_external_infra_proxy_request_environments_proto_goTypes = []any{
	(*Environments)(nil),      // 0: chef.automate.api.infra_proxy.request.Environments
	(*Environment)(nil),       // 1: chef.automate.api.infra_proxy.request.Environment
	(*CreateEnvironment)(nil), // 2: chef.automate.api.infra_proxy.request.CreateEnvironment
	(*UpdateEnvironment)(nil), // 3: chef.automate.api.infra_proxy.request.UpdateEnvironment
	nil,                       // 4: chef.automate.api.infra_proxy.request.CreateEnvironment.CookbookVersionsEntry
	nil,                       // 5: chef.automate.api.infra_proxy.request.UpdateEnvironment.CookbookVersionsEntry
	(*SearchQuery)(nil),       // 6: chef.automate.api.infra_proxy.request.SearchQuery
	(*structpb.Struct)(nil),   // 7: google.protobuf.Struct
}
var file_external_infra_proxy_request_environments_proto_depIdxs = []int32{
	6, // 0: chef.automate.api.infra_proxy.request.Environments.search_query:type_name -> chef.automate.api.infra_proxy.request.SearchQuery
	4, // 1: chef.automate.api.infra_proxy.request.CreateEnvironment.cookbook_versions:type_name -> chef.automate.api.infra_proxy.request.CreateEnvironment.CookbookVersionsEntry
	7, // 2: chef.automate.api.infra_proxy.request.CreateEnvironment.default_attributes:type_name -> google.protobuf.Struct
	7, // 3: chef.automate.api.infra_proxy.request.CreateEnvironment.override_attributes:type_name -> google.protobuf.Struct
	5, // 4: chef.automate.api.infra_proxy.request.UpdateEnvironment.cookbook_versions:type_name -> chef.automate.api.infra_proxy.request.UpdateEnvironment.CookbookVersionsEntry
	7, // 5: chef.automate.api.infra_proxy.request.UpdateEnvironment.default_attributes:type_name -> google.protobuf.Struct
	7, // 6: chef.automate.api.infra_proxy.request.UpdateEnvironment.override_attributes:type_name -> google.protobuf.Struct
	7, // [7:7] is the sub-list for method output_type
	7, // [7:7] is the sub-list for method input_type
	7, // [7:7] is the sub-list for extension type_name
	7, // [7:7] is the sub-list for extension extendee
	0, // [0:7] is the sub-list for field type_name
}

func init() { file_external_infra_proxy_request_environments_proto_init() }
func file_external_infra_proxy_request_environments_proto_init() {
	if File_external_infra_proxy_request_environments_proto != nil {
		return
	}
	file_external_infra_proxy_request_common_proto_init()
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_external_infra_proxy_request_environments_proto_rawDesc), len(file_external_infra_proxy_request_environments_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   6,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_external_infra_proxy_request_environments_proto_goTypes,
		DependencyIndexes: file_external_infra_proxy_request_environments_proto_depIdxs,
		MessageInfos:      file_external_infra_proxy_request_environments_proto_msgTypes,
	}.Build()
	File_external_infra_proxy_request_environments_proto = out.File
	file_external_infra_proxy_request_environments_proto_goTypes = nil
	file_external_infra_proxy_request_environments_proto_depIdxs = nil
}
