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

package request

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	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 Action struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the action message itself
	Id               string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	MessageType      string `protobuf:"bytes,2,opt,name=message_type,json=messageType,proto3" json:"message_type,omitempty"`
	MessageVersion   string `protobuf:"bytes,3,opt,name=message_version,json=messageVersion,proto3" json:"message_version,omitempty"`
	EntityName       string `protobuf:"bytes,4,opt,name=entity_name,json=entityName,proto3" json:"entity_name,omitempty"`
	EntityType       string `protobuf:"bytes,5,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"`
	Task             string `protobuf:"bytes,6,opt,name=task,proto3" json:"task,omitempty"`
	OrganizationName string `protobuf:"bytes,7,opt,name=organization_name,json=organizationName,proto3" json:"organization_name,omitempty"`
	RemoteHostname   string `protobuf:"bytes,8,opt,name=remote_hostname,json=remoteHostname,proto3" json:"remote_hostname,omitempty"`
	RunId            string `protobuf:"bytes,9,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"`
	// This new field called 'content' is being used to send the entire raw JSON
	// message in bytes, this field is heavily used by the gateway for the DataCollector
	// Func Handler that will send the Action message to the (receiver) ingest-service
	// that will manually unmarshal the message from this field if it is provided.
	// The main purpose of this field it to improve the performance of ingestion when
	// the requests comes in REST/HTTP format.
	Content         []byte `protobuf:"bytes,10,opt,name=content,proto3" json:"content,omitempty"`
	NodeId          string `protobuf:"bytes,16,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` // Not available from Chef Server
	RecordedAt      string `protobuf:"bytes,17,opt,name=recorded_at,json=recordedAt,proto3" json:"recorded_at,omitempty"`
	RemoteRequestId string `protobuf:"bytes,18,opt,name=remote_request_id,json=remoteRequestId,proto3" json:"remote_request_id,omitempty"`
	RequestId       string `protobuf:"bytes,19,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	RequestorName   string `protobuf:"bytes,20,opt,name=requestor_name,json=requestorName,proto3" json:"requestor_name,omitempty"`
	RequestorType   string `protobuf:"bytes,21,opt,name=requestor_type,json=requestorType,proto3" json:"requestor_type,omitempty"`
	ServiceHostname string `protobuf:"bytes,22,opt,name=service_hostname,json=serviceHostname,proto3" json:"service_hostname,omitempty"`
	UserAgent       string `protobuf:"bytes,23,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
	ParentType      string `protobuf:"bytes,24,opt,name=parent_type,json=parentType,proto3" json:"parent_type,omitempty"`
	ParentName      string `protobuf:"bytes,25,opt,name=parent_name,json=parentName,proto3" json:"parent_name,omitempty"`
	RevisionId      string `protobuf:"bytes,27,opt,name=revision_id,json=revisionId,proto3" json:"revision_id,omitempty"`
	unknownFields   protoimpl.UnknownFields
	sizeCache       protoimpl.SizeCache
}

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

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

func (*Action) ProtoMessage() {}

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

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

func (x *Action) GetMessageType() string {
	if x != nil {
		return x.MessageType
	}
	return ""
}

func (x *Action) GetMessageVersion() string {
	if x != nil {
		return x.MessageVersion
	}
	return ""
}

func (x *Action) GetEntityName() string {
	if x != nil {
		return x.EntityName
	}
	return ""
}

func (x *Action) GetEntityType() string {
	if x != nil {
		return x.EntityType
	}
	return ""
}

func (x *Action) GetTask() string {
	if x != nil {
		return x.Task
	}
	return ""
}

func (x *Action) GetOrganizationName() string {
	if x != nil {
		return x.OrganizationName
	}
	return ""
}

func (x *Action) GetRemoteHostname() string {
	if x != nil {
		return x.RemoteHostname
	}
	return ""
}

func (x *Action) GetRunId() string {
	if x != nil {
		return x.RunId
	}
	return ""
}

func (x *Action) GetContent() []byte {
	if x != nil {
		return x.Content
	}
	return nil
}

func (x *Action) GetNodeId() string {
	if x != nil {
		return x.NodeId
	}
	return ""
}

func (x *Action) GetRecordedAt() string {
	if x != nil {
		return x.RecordedAt
	}
	return ""
}

func (x *Action) GetRemoteRequestId() string {
	if x != nil {
		return x.RemoteRequestId
	}
	return ""
}

func (x *Action) GetRequestId() string {
	if x != nil {
		return x.RequestId
	}
	return ""
}

func (x *Action) GetRequestorName() string {
	if x != nil {
		return x.RequestorName
	}
	return ""
}

func (x *Action) GetRequestorType() string {
	if x != nil {
		return x.RequestorType
	}
	return ""
}

func (x *Action) GetServiceHostname() string {
	if x != nil {
		return x.ServiceHostname
	}
	return ""
}

func (x *Action) GetUserAgent() string {
	if x != nil {
		return x.UserAgent
	}
	return ""
}

func (x *Action) GetParentType() string {
	if x != nil {
		return x.ParentType
	}
	return ""
}

func (x *Action) GetParentName() string {
	if x != nil {
		return x.ParentName
	}
	return ""
}

func (x *Action) GetRevisionId() string {
	if x != nil {
		return x.RevisionId
	}
	return ""
}

type Delete struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the action message itself
	Id               string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	NodeName         string `protobuf:"bytes,4,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"`
	OrganizationName string `protobuf:"bytes,7,opt,name=organization_name,json=organizationName,proto3" json:"organization_name,omitempty"`
	RemoteHostname   string `protobuf:"bytes,8,opt,name=remote_hostname,json=remoteHostname,proto3" json:"remote_hostname,omitempty"`
	ServiceHostname  string `protobuf:"bytes,9,opt,name=service_hostname,json=serviceHostname,proto3" json:"service_hostname,omitempty"`
	NodeId           string `protobuf:"bytes,16,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` // Not available from Chef Server
	unknownFields    protoimpl.UnknownFields
	sizeCache        protoimpl.SizeCache
}

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

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

func (*Delete) ProtoMessage() {}

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

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

func (x *Delete) GetNodeName() string {
	if x != nil {
		return x.NodeName
	}
	return ""
}

func (x *Delete) GetOrganizationName() string {
	if x != nil {
		return x.OrganizationName
	}
	return ""
}

func (x *Delete) GetRemoteHostname() string {
	if x != nil {
		return x.RemoteHostname
	}
	return ""
}

func (x *Delete) GetServiceHostname() string {
	if x != nil {
		return x.ServiceHostname
	}
	return ""
}

func (x *Delete) GetNodeId() string {
	if x != nil {
		return x.NodeId
	}
	return ""
}

type MultipleNodeDeleteRequest struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	NodeIds       []string               `protobuf:"bytes,1,rep,name=node_ids,json=nodeIds,proto3" json:"node_ids,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*MultipleNodeDeleteRequest) ProtoMessage() {}

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

func (x *MultipleNodeDeleteRequest) GetNodeIds() []string {
	if x != nil {
		return x.NodeIds
	}
	return nil
}

var File_external_ingest_request_action_proto protoreflect.FileDescriptor

const file_external_ingest_request_action_proto_rawDesc = "" +
	"\n" +
	"$external/ingest/request/action.proto\x12 chef.automate.api.ingest.request\"\xc7\x05\n" +
	"\x06Action\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12!\n" +
	"\fmessage_type\x18\x02 \x01(\tR\vmessageType\x12'\n" +
	"\x0fmessage_version\x18\x03 \x01(\tR\x0emessageVersion\x12\x1f\n" +
	"\ventity_name\x18\x04 \x01(\tR\n" +
	"entityName\x12\x1f\n" +
	"\ventity_type\x18\x05 \x01(\tR\n" +
	"entityType\x12\x12\n" +
	"\x04task\x18\x06 \x01(\tR\x04task\x12+\n" +
	"\x11organization_name\x18\a \x01(\tR\x10organizationName\x12'\n" +
	"\x0fremote_hostname\x18\b \x01(\tR\x0eremoteHostname\x12\x15\n" +
	"\x06run_id\x18\t \x01(\tR\x05runId\x12\x18\n" +
	"\acontent\x18\n" +
	" \x01(\fR\acontent\x12\x17\n" +
	"\anode_id\x18\x10 \x01(\tR\x06nodeId\x12\x1f\n" +
	"\vrecorded_at\x18\x11 \x01(\tR\n" +
	"recordedAt\x12*\n" +
	"\x11remote_request_id\x18\x12 \x01(\tR\x0fremoteRequestId\x12\x1d\n" +
	"\n" +
	"request_id\x18\x13 \x01(\tR\trequestId\x12%\n" +
	"\x0erequestor_name\x18\x14 \x01(\tR\rrequestorName\x12%\n" +
	"\x0erequestor_type\x18\x15 \x01(\tR\rrequestorType\x12)\n" +
	"\x10service_hostname\x18\x16 \x01(\tR\x0fserviceHostname\x12\x1d\n" +
	"\n" +
	"user_agent\x18\x17 \x01(\tR\tuserAgent\x12\x1f\n" +
	"\vparent_type\x18\x18 \x01(\tR\n" +
	"parentType\x12\x1f\n" +
	"\vparent_name\x18\x19 \x01(\tR\n" +
	"parentName\x12\x1f\n" +
	"\vrevision_id\x18\x1b \x01(\tR\n" +
	"revisionIdJ\x04\b\x1a\x10\x1b\"\xcf\x01\n" +
	"\x06Delete\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n" +
	"\tnode_name\x18\x04 \x01(\tR\bnodeName\x12+\n" +
	"\x11organization_name\x18\a \x01(\tR\x10organizationName\x12'\n" +
	"\x0fremote_hostname\x18\b \x01(\tR\x0eremoteHostname\x12)\n" +
	"\x10service_hostname\x18\t \x01(\tR\x0fserviceHostname\x12\x17\n" +
	"\anode_id\x18\x10 \x01(\tR\x06nodeId\"6\n" +
	"\x19MultipleNodeDeleteRequest\x12\x19\n" +
	"\bnode_ids\x18\x01 \x03(\tR\anodeIdsB6Z4github.com/chef/automate/api/external/ingest/requestb\x06proto3"

var (
	file_external_ingest_request_action_proto_rawDescOnce sync.Once
	file_external_ingest_request_action_proto_rawDescData []byte
)

func file_external_ingest_request_action_proto_rawDescGZIP() []byte {
	file_external_ingest_request_action_proto_rawDescOnce.Do(func() {
		file_external_ingest_request_action_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_external_ingest_request_action_proto_rawDesc), len(file_external_ingest_request_action_proto_rawDesc)))
	})
	return file_external_ingest_request_action_proto_rawDescData
}

var file_external_ingest_request_action_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_external_ingest_request_action_proto_goTypes = []any{
	(*Action)(nil),                    // 0: chef.automate.api.ingest.request.Action
	(*Delete)(nil),                    // 1: chef.automate.api.ingest.request.Delete
	(*MultipleNodeDeleteRequest)(nil), // 2: chef.automate.api.ingest.request.MultipleNodeDeleteRequest
}
var file_external_ingest_request_action_proto_depIdxs = []int32{
	0, // [0:0] is the sub-list for method output_type
	0, // [0:0] is the sub-list for method input_type
	0, // [0:0] is the sub-list for extension type_name
	0, // [0:0] is the sub-list for extension extendee
	0, // [0:0] is the sub-list for field type_name
}

func init() { file_external_ingest_request_action_proto_init() }
func file_external_ingest_request_action_proto_init() {
	if File_external_ingest_request_action_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_external_ingest_request_action_proto_rawDesc), len(file_external_ingest_request_action_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_external_ingest_request_action_proto_goTypes,
		DependencyIndexes: file_external_ingest_request_action_proto_depIdxs,
		MessageInfos:      file_external_ingest_request_action_proto_msgTypes,
	}.Build()
	File_external_ingest_request_action_proto = out.File
	file_external_ingest_request_action_proto_goTypes = nil
	file_external_ingest_request_action_proto_depIdxs = nil
}
