// Copyright IBM Corp. 2014, 2026
// SPDX-License-Identifier: BUSL-1.1

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v5.29.3
// source: callback.proto

package proto

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 GetResourcesRequest struct {
	state      protoimpl.MessageState `protogen:"open.v1"`
	Type       string                 `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Attributes []byte                 `protobuf:"bytes,2,opt,name=attributes,proto3" json:"attributes,omitempty"`
	// evaluation_request_id is the ID of the policy evaluation request that is
	// making this callback request.
	EvaluationRequestId uint32 `protobuf:"varint,3,opt,name=evaluation_request_id,json=evaluationRequestId,proto3" json:"evaluation_request_id,omitempty"`
	unknownFields       protoimpl.UnknownFields
	sizeCache           protoimpl.SizeCache
}

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

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

func (*GetResourcesRequest) ProtoMessage() {}

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

func (x *GetResourcesRequest) GetType() string {
	if x != nil {
		return x.Type
	}
	return ""
}

func (x *GetResourcesRequest) GetAttributes() []byte {
	if x != nil {
		return x.Attributes
	}
	return nil
}

func (x *GetResourcesRequest) GetEvaluationRequestId() uint32 {
	if x != nil {
		return x.EvaluationRequestId
	}
	return 0
}

type GetResourcesResponse struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Results       [][]byte               `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetResourcesResponse) ProtoMessage() {}

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

func (x *GetResourcesResponse) GetResults() [][]byte {
	if x != nil {
		return x.Results
	}
	return nil
}

type GetDataSourceRequest struct {
	state  protoimpl.MessageState `protogen:"open.v1"`
	Type   string                 `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Config []byte                 `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
	// evaluation_request_id is the ID of the policy evaluation request that is
	// making this callback request.
	EvaluationRequestId uint32 `protobuf:"varint,3,opt,name=evaluation_request_id,json=evaluationRequestId,proto3" json:"evaluation_request_id,omitempty"`
	unknownFields       protoimpl.UnknownFields
	sizeCache           protoimpl.SizeCache
}

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

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

func (*GetDataSourceRequest) ProtoMessage() {}

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

func (x *GetDataSourceRequest) GetType() string {
	if x != nil {
		return x.Type
	}
	return ""
}

func (x *GetDataSourceRequest) GetConfig() []byte {
	if x != nil {
		return x.Config
	}
	return nil
}

func (x *GetDataSourceRequest) GetEvaluationRequestId() uint32 {
	if x != nil {
		return x.EvaluationRequestId
	}
	return 0
}

type GetDataSourceResponse struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Result        []byte                 `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetDataSourceResponse) ProtoMessage() {}

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

func (x *GetDataSourceResponse) GetResult() []byte {
	if x != nil {
		return x.Result
	}
	return nil
}

var File_callback_proto protoreflect.FileDescriptor

const file_callback_proto_rawDesc = "" +
	"\n" +
	"\x0ecallback.proto\x12\x05proto\"}\n" +
	"\x13GetResourcesRequest\x12\x12\n" +
	"\x04type\x18\x01 \x01(\tR\x04type\x12\x1e\n" +
	"\n" +
	"attributes\x18\x02 \x01(\fR\n" +
	"attributes\x122\n" +
	"\x15evaluation_request_id\x18\x03 \x01(\rR\x13evaluationRequestId\"0\n" +
	"\x14GetResourcesResponse\x12\x18\n" +
	"\aresults\x18\x01 \x03(\fR\aresults\"v\n" +
	"\x14GetDataSourceRequest\x12\x12\n" +
	"\x04type\x18\x01 \x01(\tR\x04type\x12\x16\n" +
	"\x06config\x18\x02 \x01(\fR\x06config\x122\n" +
	"\x15evaluation_request_id\x18\x03 \x01(\rR\x13evaluationRequestId\"/\n" +
	"\x15GetDataSourceResponse\x12\x16\n" +
	"\x06result\x18\x01 \x01(\fR\x06result2\xa6\x01\n" +
	"\x0fCallbackService\x12G\n" +
	"\fGetResources\x12\x1a.proto.GetResourcesRequest\x1a\x1b.proto.GetResourcesResponse\x12J\n" +
	"\rGetDataSource\x12\x1b.proto.GetDataSourceRequest\x1a\x1c.proto.GetDataSourceResponseB4Z2github.com/hashicorp/terraform-policy-plugin/protob\x06proto3"

var (
	file_callback_proto_rawDescOnce sync.Once
	file_callback_proto_rawDescData []byte
)

func file_callback_proto_rawDescGZIP() []byte {
	file_callback_proto_rawDescOnce.Do(func() {
		file_callback_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_callback_proto_rawDesc), len(file_callback_proto_rawDesc)))
	})
	return file_callback_proto_rawDescData
}

var file_callback_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_callback_proto_goTypes = []any{
	(*GetResourcesRequest)(nil),   // 0: proto.GetResourcesRequest
	(*GetResourcesResponse)(nil),  // 1: proto.GetResourcesResponse
	(*GetDataSourceRequest)(nil),  // 2: proto.GetDataSourceRequest
	(*GetDataSourceResponse)(nil), // 3: proto.GetDataSourceResponse
}
var file_callback_proto_depIdxs = []int32{
	0, // 0: proto.CallbackService.GetResources:input_type -> proto.GetResourcesRequest
	2, // 1: proto.CallbackService.GetDataSource:input_type -> proto.GetDataSourceRequest
	1, // 2: proto.CallbackService.GetResources:output_type -> proto.GetResourcesResponse
	3, // 3: proto.CallbackService.GetDataSource:output_type -> proto.GetDataSourceResponse
	2, // [2:4] is the sub-list for method output_type
	0, // [0:2] 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_callback_proto_init() }
func file_callback_proto_init() {
	if File_callback_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_callback_proto_rawDesc), len(file_callback_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_callback_proto_goTypes,
		DependencyIndexes: file_callback_proto_depIdxs,
		MessageInfos:      file_callback_proto_msgTypes,
	}.Build()
	File_callback_proto = out.File
	file_callback_proto_goTypes = nil
	file_callback_proto_depIdxs = nil
}
