// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v3.19.0
// source: external/iam/v2/response/rules.proto

package response

import (
	common "github.com/chef/automate/api/external/iam/v2/common"
	_ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options"
	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 CreateRuleResp struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Rule          *common.Rule           `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*CreateRuleResp) ProtoMessage() {}

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

func (x *CreateRuleResp) GetRule() *common.Rule {
	if x != nil {
		return x.Rule
	}
	return nil
}

type UpdateRuleResp struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Rule          *common.Rule           `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*UpdateRuleResp) ProtoMessage() {}

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

func (x *UpdateRuleResp) GetRule() *common.Rule {
	if x != nil {
		return x.Rule
	}
	return nil
}

type GetRuleResp struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Rule          *common.Rule           `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetRuleResp) ProtoMessage() {}

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

func (x *GetRuleResp) GetRule() *common.Rule {
	if x != nil {
		return x.Rule
	}
	return nil
}

type ListRulesForProjectResp struct {
	state         protoimpl.MessageState    `protogen:"open.v1"`
	Rules         []*common.Rule            `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
	Status        common.ProjectRulesStatus `protobuf:"varint,2,opt,name=status,proto3,enum=chef.automate.api.iam.v2.ProjectRulesStatus" json:"status,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ListRulesForProjectResp) ProtoMessage() {}

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

func (x *ListRulesForProjectResp) GetRules() []*common.Rule {
	if x != nil {
		return x.Rules
	}
	return nil
}

func (x *ListRulesForProjectResp) GetStatus() common.ProjectRulesStatus {
	if x != nil {
		return x.Status
	}
	return common.ProjectRulesStatus(0)
}

type DeleteRuleResp struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *DeleteRuleResp) Reset() {
	*x = DeleteRuleResp{}
	mi := &file_external_iam_v2_response_rules_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*DeleteRuleResp) ProtoMessage() {}

func (x *DeleteRuleResp) ProtoReflect() protoreflect.Message {
	mi := &file_external_iam_v2_response_rules_proto_msgTypes[4]
	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 DeleteRuleResp.ProtoReflect.Descriptor instead.
func (*DeleteRuleResp) Descriptor() ([]byte, []int) {
	return file_external_iam_v2_response_rules_proto_rawDescGZIP(), []int{4}
}

type ApplyRulesStartResp struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ApplyRulesStartResp) Reset() {
	*x = ApplyRulesStartResp{}
	mi := &file_external_iam_v2_response_rules_proto_msgTypes[5]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ApplyRulesStartResp) ProtoMessage() {}

func (x *ApplyRulesStartResp) ProtoReflect() protoreflect.Message {
	mi := &file_external_iam_v2_response_rules_proto_msgTypes[5]
	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 ApplyRulesStartResp.ProtoReflect.Descriptor instead.
func (*ApplyRulesStartResp) Descriptor() ([]byte, []int) {
	return file_external_iam_v2_response_rules_proto_rawDescGZIP(), []int{5}
}

type ApplyRulesCancelResp struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ApplyRulesCancelResp) Reset() {
	*x = ApplyRulesCancelResp{}
	mi := &file_external_iam_v2_response_rules_proto_msgTypes[6]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ApplyRulesCancelResp) ProtoMessage() {}

func (x *ApplyRulesCancelResp) ProtoReflect() protoreflect.Message {
	mi := &file_external_iam_v2_response_rules_proto_msgTypes[6]
	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 ApplyRulesCancelResp.ProtoReflect.Descriptor instead.
func (*ApplyRulesCancelResp) Descriptor() ([]byte, []int) {
	return file_external_iam_v2_response_rules_proto_rawDescGZIP(), []int{6}
}

type ApplyRulesStatusResp struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// One of two states: `not_running` and `running`.
	State string `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
	// Estimated time when the project update will complete.
	EstimatedTimeComplete *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=estimated_time_complete,json=estimatedTimeComplete,proto3" json:"estimated_time_complete,omitempty"`
	// The percentage complete in decimal format from 0 to 1.
	PercentageComplete float32 `protobuf:"fixed32,3,opt,name=percentage_complete,json=percentageComplete,proto3" json:"percentage_complete,omitempty"`
	// Whether or not the project update has failed.
	Failed bool `protobuf:"varint,4,opt,name=failed,proto3" json:"failed,omitempty"`
	// The error message from the failure.
	FailureMessage string `protobuf:"bytes,5,opt,name=failure_message,json=failureMessage,proto3" json:"failure_message,omitempty"`
	// Whether or not the project update was canceled.
	Cancelled     bool `protobuf:"varint,6,opt,name=cancelled,proto3" json:"cancelled,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ApplyRulesStatusResp) Reset() {
	*x = ApplyRulesStatusResp{}
	mi := &file_external_iam_v2_response_rules_proto_msgTypes[7]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ApplyRulesStatusResp) ProtoMessage() {}

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

func (x *ApplyRulesStatusResp) GetState() string {
	if x != nil {
		return x.State
	}
	return ""
}

func (x *ApplyRulesStatusResp) GetEstimatedTimeComplete() *timestamppb.Timestamp {
	if x != nil {
		return x.EstimatedTimeComplete
	}
	return nil
}

func (x *ApplyRulesStatusResp) GetPercentageComplete() float32 {
	if x != nil {
		return x.PercentageComplete
	}
	return 0
}

func (x *ApplyRulesStatusResp) GetFailed() bool {
	if x != nil {
		return x.Failed
	}
	return false
}

func (x *ApplyRulesStatusResp) GetFailureMessage() string {
	if x != nil {
		return x.FailureMessage
	}
	return ""
}

func (x *ApplyRulesStatusResp) GetCancelled() bool {
	if x != nil {
		return x.Cancelled
	}
	return false
}

var File_external_iam_v2_response_rules_proto protoreflect.FileDescriptor

const file_external_iam_v2_response_rules_proto_rawDesc = "" +
	"\n" +
	"$external/iam/v2/response/rules.proto\x12\x18chef.automate.api.iam.v2\x1a\"external/iam/v2/common/rules.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a,protoc-gen-swagger/options/annotations.proto\"\xb6\x02\n" +
	"\x0eCreateRuleResp\x122\n" +
	"\x04rule\x18\x01 \x01(\v2\x1e.chef.automate.api.iam.v2.RuleR\x04rule:\xef\x01\x92A\xeb\x012\xe8\x01\x12\xe5\x01{\"id\": \"example-rule\", \"project-id\": \"example-project\", \"name\": \"My Example Rule\", \"type\": \"NODE\", \"conditions\": [{\"attribute\": \"CHEF_SERVER\", \"operator\": \"MEMBER_OF\", \"values\": [\"example.co\", \"example.io\"]}], \"status\": \"STAGED\"}\"\xa5\x02\n" +
	"\x0eUpdateRuleResp\x122\n" +
	"\x04rule\x18\x01 \x01(\v2\x1e.chef.automate.api.iam.v2.RuleR\x04rule:\xde\x01\x92A\xda\x012\xd7\x01\x12\xd4\x01{\"id\": \"example-rule\", \"project-id\": \"example-project\", \"name\": \"My Updated Rule\", \"type\": \"NODE\", \"conditions\": [{\"attribute\": \"CHEF_SERVER\", \"operator\": \"EQUALS\", \"values\": [\"example.co\"]}], \"status\": \"STAGED\"}\"\xa3\x02\n" +
	"\vGetRuleResp\x122\n" +
	"\x04rule\x18\x01 \x01(\v2\x1e.chef.automate.api.iam.v2.RuleR\x04rule:\xdf\x01\x92A\xdb\x012\xd8\x01\x12\xd5\x01{\"id\": \"example-rule\", \"project-id\": \"example-project\", \"name\": \"My Applied Rule\", \"type\": \"NODE\", \"conditions\": [{\"attribute\": \"CHEF_SERVER\", \"operator\": \"EQUALS\", \"values\": [\"example.co\"]}], \"status\": \"APPLIED\"}\"\x82\x05\n" +
	"\x17ListRulesForProjectResp\x124\n" +
	"\x05rules\x18\x01 \x03(\v2\x1e.chef.automate.api.iam.v2.RuleR\x05rules\x12D\n" +
	"\x06status\x18\x02 \x01(\x0e2,.chef.automate.api.iam.v2.ProjectRulesStatusR\x06status:\xea\x03\x92A\xe6\x032\xe3\x03\x12\xe0\x03{\"rules\": [{\"id\": \"example-rule\", \"project-id\": \"example-project\", \"name\": \"My Applied Rule\", \"type\": \"NODE\", \"conditions\": [{\"attribute\": \"CHEF_SERVER\", \"operator\": \"EQUALS\", \"values\": [\"example.co\"]}], \"status\": \"APPLIED\"}, {\"id\": \"example-rule-2\", \"project-id\": \"example-project\", \"name\": \"My 2nd Example Rule\", \"type\": \"EVENT\", \"conditions\": [{\"attribute\": \"CHEF_ORGANIZATION\", \"operator\": \"MEMBER_OF\", \"values\": [\"east\", \"west\"]}], \"status\": \"APPLIED\"}], \"status\": \"APPLIED\"}\"\x10\n" +
	"\x0eDeleteRuleResp\"\x15\n" +
	"\x13ApplyRulesStartResp\"\x16\n" +
	"\x14ApplyRulesCancelResp\"\xbd\x03\n" +
	"\x14ApplyRulesStatusResp\x12\x14\n" +
	"\x05state\x18\x01 \x01(\tR\x05state\x12R\n" +
	"\x17estimated_time_complete\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\x15estimatedTimeComplete\x12/\n" +
	"\x13percentage_complete\x18\x03 \x01(\x02R\x12percentageComplete\x12\x16\n" +
	"\x06failed\x18\x04 \x01(\bR\x06failed\x12'\n" +
	"\x0ffailure_message\x18\x05 \x01(\tR\x0efailureMessage\x12\x1c\n" +
	"\tcancelled\x18\x06 \x01(\bR\tcancelled:\xaa\x01\x92A\xa6\x012\xa3\x01\x12\xa0\x01{ \"state\": \"running\", \"estimated_time_complete\": \"2020-03-20T19:24:55Z\", \"percentage_complete\": 0.5, \"failed\": false, \"failure_message\": \"\", \"cancelled\": false}B7Z5github.com/chef/automate/api/external/iam/v2/responseb\x06proto3"

var (
	file_external_iam_v2_response_rules_proto_rawDescOnce sync.Once
	file_external_iam_v2_response_rules_proto_rawDescData []byte
)

func file_external_iam_v2_response_rules_proto_rawDescGZIP() []byte {
	file_external_iam_v2_response_rules_proto_rawDescOnce.Do(func() {
		file_external_iam_v2_response_rules_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_external_iam_v2_response_rules_proto_rawDesc), len(file_external_iam_v2_response_rules_proto_rawDesc)))
	})
	return file_external_iam_v2_response_rules_proto_rawDescData
}

var file_external_iam_v2_response_rules_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
var file_external_iam_v2_response_rules_proto_goTypes = []any{
	(*CreateRuleResp)(nil),          // 0: chef.automate.api.iam.v2.CreateRuleResp
	(*UpdateRuleResp)(nil),          // 1: chef.automate.api.iam.v2.UpdateRuleResp
	(*GetRuleResp)(nil),             // 2: chef.automate.api.iam.v2.GetRuleResp
	(*ListRulesForProjectResp)(nil), // 3: chef.automate.api.iam.v2.ListRulesForProjectResp
	(*DeleteRuleResp)(nil),          // 4: chef.automate.api.iam.v2.DeleteRuleResp
	(*ApplyRulesStartResp)(nil),     // 5: chef.automate.api.iam.v2.ApplyRulesStartResp
	(*ApplyRulesCancelResp)(nil),    // 6: chef.automate.api.iam.v2.ApplyRulesCancelResp
	(*ApplyRulesStatusResp)(nil),    // 7: chef.automate.api.iam.v2.ApplyRulesStatusResp
	(*common.Rule)(nil),             // 8: chef.automate.api.iam.v2.Rule
	(common.ProjectRulesStatus)(0),  // 9: chef.automate.api.iam.v2.ProjectRulesStatus
	(*timestamppb.Timestamp)(nil),   // 10: google.protobuf.Timestamp
}
var file_external_iam_v2_response_rules_proto_depIdxs = []int32{
	8,  // 0: chef.automate.api.iam.v2.CreateRuleResp.rule:type_name -> chef.automate.api.iam.v2.Rule
	8,  // 1: chef.automate.api.iam.v2.UpdateRuleResp.rule:type_name -> chef.automate.api.iam.v2.Rule
	8,  // 2: chef.automate.api.iam.v2.GetRuleResp.rule:type_name -> chef.automate.api.iam.v2.Rule
	8,  // 3: chef.automate.api.iam.v2.ListRulesForProjectResp.rules:type_name -> chef.automate.api.iam.v2.Rule
	9,  // 4: chef.automate.api.iam.v2.ListRulesForProjectResp.status:type_name -> chef.automate.api.iam.v2.ProjectRulesStatus
	10, // 5: chef.automate.api.iam.v2.ApplyRulesStatusResp.estimated_time_complete:type_name -> google.protobuf.Timestamp
	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_external_iam_v2_response_rules_proto_init() }
func file_external_iam_v2_response_rules_proto_init() {
	if File_external_iam_v2_response_rules_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_external_iam_v2_response_rules_proto_rawDesc), len(file_external_iam_v2_response_rules_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   8,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_external_iam_v2_response_rules_proto_goTypes,
		DependencyIndexes: file_external_iam_v2_response_rules_proto_depIdxs,
		MessageInfos:      file_external_iam_v2_response_rules_proto_msgTypes,
	}.Build()
	File_external_iam_v2_response_rules_proto = out.File
	file_external_iam_v2_response_rules_proto_goTypes = nil
	file_external_iam_v2_response_rules_proto_depIdxs = nil
}
