// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        (unknown)
// source: pluginapi/v1/data.proto

package pluginapiv1

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 Data struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Types that are valid to be assigned to Data:
	//
	//	*Data_StringVal
	//	*Data_NumberVal
	//	*Data_BoolVal
	//	*Data_ListVal
	//	*Data_MapVal
	//	*Data_TimeVal
	Data          isData_Data `protobuf_oneof:"data"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Data) ProtoMessage() {}

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

func (x *Data) GetData() isData_Data {
	if x != nil {
		return x.Data
	}
	return nil
}

func (x *Data) GetStringVal() string {
	if x != nil {
		if x, ok := x.Data.(*Data_StringVal); ok {
			return x.StringVal
		}
	}
	return ""
}

func (x *Data) GetNumberVal() float64 {
	if x != nil {
		if x, ok := x.Data.(*Data_NumberVal); ok {
			return x.NumberVal
		}
	}
	return 0
}

func (x *Data) GetBoolVal() bool {
	if x != nil {
		if x, ok := x.Data.(*Data_BoolVal); ok {
			return x.BoolVal
		}
	}
	return false
}

func (x *Data) GetListVal() *ListData {
	if x != nil {
		if x, ok := x.Data.(*Data_ListVal); ok {
			return x.ListVal
		}
	}
	return nil
}

func (x *Data) GetMapVal() *MapData {
	if x != nil {
		if x, ok := x.Data.(*Data_MapVal); ok {
			return x.MapVal
		}
	}
	return nil
}

func (x *Data) GetTimeVal() *timestamppb.Timestamp {
	if x != nil {
		if x, ok := x.Data.(*Data_TimeVal); ok {
			return x.TimeVal
		}
	}
	return nil
}

type isData_Data interface {
	isData_Data()
}

type Data_StringVal struct {
	StringVal string `protobuf:"bytes,1,opt,name=string_val,json=stringVal,proto3,oneof"`
}

type Data_NumberVal struct {
	NumberVal float64 `protobuf:"fixed64,2,opt,name=number_val,json=numberVal,proto3,oneof"`
}

type Data_BoolVal struct {
	BoolVal bool `protobuf:"varint,3,opt,name=bool_val,json=boolVal,proto3,oneof"`
}

type Data_ListVal struct {
	ListVal *ListData `protobuf:"bytes,4,opt,name=list_val,json=listVal,proto3,oneof"`
}

type Data_MapVal struct {
	MapVal *MapData `protobuf:"bytes,5,opt,name=map_val,json=mapVal,proto3,oneof"`
}

type Data_TimeVal struct {
	TimeVal *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=time_val,json=timeVal,proto3,oneof"`
}

func (*Data_StringVal) isData_Data() {}

func (*Data_NumberVal) isData_Data() {}

func (*Data_BoolVal) isData_Data() {}

func (*Data_ListVal) isData_Data() {}

func (*Data_MapVal) isData_Data() {}

func (*Data_TimeVal) isData_Data() {}

type ListData struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Value         []*Data                `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ListData) ProtoMessage() {}

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

func (x *ListData) GetValue() []*Data {
	if x != nil {
		return x.Value
	}
	return nil
}

type MapData struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Value         map[string]*Data       `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*MapData) ProtoMessage() {}

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

func (x *MapData) GetValue() map[string]*Data {
	if x != nil {
		return x.Value
	}
	return nil
}

var File_pluginapi_v1_data_proto protoreflect.FileDescriptor

const file_pluginapi_v1_data_proto_rawDesc = "" +
	"\n" +
	"\x17pluginapi/v1/data.proto\x12\fpluginapi.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8d\x02\n" +
	"\x04Data\x12\x1f\n" +
	"\n" +
	"string_val\x18\x01 \x01(\tH\x00R\tstringVal\x12\x1f\n" +
	"\n" +
	"number_val\x18\x02 \x01(\x01H\x00R\tnumberVal\x12\x1b\n" +
	"\bbool_val\x18\x03 \x01(\bH\x00R\aboolVal\x123\n" +
	"\blist_val\x18\x04 \x01(\v2\x16.pluginapi.v1.ListDataH\x00R\alistVal\x120\n" +
	"\amap_val\x18\x05 \x01(\v2\x15.pluginapi.v1.MapDataH\x00R\x06mapVal\x127\n" +
	"\btime_val\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampH\x00R\atimeValB\x06\n" +
	"\x04data\"4\n" +
	"\bListData\x12(\n" +
	"\x05value\x18\x01 \x03(\v2\x12.pluginapi.v1.DataR\x05value\"\x8f\x01\n" +
	"\aMapData\x126\n" +
	"\x05value\x18\x01 \x03(\v2 .pluginapi.v1.MapData.ValueEntryR\x05value\x1aL\n" +
	"\n" +
	"ValueEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12(\n" +
	"\x05value\x18\x02 \x01(\v2\x12.pluginapi.v1.DataR\x05value:\x028\x01B\xaf\x01\n" +
	"\x10com.pluginapi.v1B\tDataProtoP\x01Z?github.com/blackstork-io/fabric/plugin/pluginapi/v1;pluginapiv1\xa2\x02\x03PXX\xaa\x02\fPluginapi.V1\xca\x02\fPluginapi\\V1\xe2\x02\x18Pluginapi\\V1\\GPBMetadata\xea\x02\rPluginapi::V1b\x06proto3"

var (
	file_pluginapi_v1_data_proto_rawDescOnce sync.Once
	file_pluginapi_v1_data_proto_rawDescData []byte
)

func file_pluginapi_v1_data_proto_rawDescGZIP() []byte {
	file_pluginapi_v1_data_proto_rawDescOnce.Do(func() {
		file_pluginapi_v1_data_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pluginapi_v1_data_proto_rawDesc), len(file_pluginapi_v1_data_proto_rawDesc)))
	})
	return file_pluginapi_v1_data_proto_rawDescData
}

var file_pluginapi_v1_data_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_pluginapi_v1_data_proto_goTypes = []any{
	(*Data)(nil),                  // 0: pluginapi.v1.Data
	(*ListData)(nil),              // 1: pluginapi.v1.ListData
	(*MapData)(nil),               // 2: pluginapi.v1.MapData
	nil,                           // 3: pluginapi.v1.MapData.ValueEntry
	(*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp
}
var file_pluginapi_v1_data_proto_depIdxs = []int32{
	1, // 0: pluginapi.v1.Data.list_val:type_name -> pluginapi.v1.ListData
	2, // 1: pluginapi.v1.Data.map_val:type_name -> pluginapi.v1.MapData
	4, // 2: pluginapi.v1.Data.time_val:type_name -> google.protobuf.Timestamp
	0, // 3: pluginapi.v1.ListData.value:type_name -> pluginapi.v1.Data
	3, // 4: pluginapi.v1.MapData.value:type_name -> pluginapi.v1.MapData.ValueEntry
	0, // 5: pluginapi.v1.MapData.ValueEntry.value:type_name -> pluginapi.v1.Data
	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_pluginapi_v1_data_proto_init() }
func file_pluginapi_v1_data_proto_init() {
	if File_pluginapi_v1_data_proto != nil {
		return
	}
	file_pluginapi_v1_data_proto_msgTypes[0].OneofWrappers = []any{
		(*Data_StringVal)(nil),
		(*Data_NumberVal)(nil),
		(*Data_BoolVal)(nil),
		(*Data_ListVal)(nil),
		(*Data_MapVal)(nil),
		(*Data_TimeVal)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_pluginapi_v1_data_proto_rawDesc), len(file_pluginapi_v1_data_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_pluginapi_v1_data_proto_goTypes,
		DependencyIndexes: file_pluginapi_v1_data_proto_depIdxs,
		MessageInfos:      file_pluginapi_v1_data_proto_msgTypes,
	}.Build()
	File_pluginapi_v1_data_proto = out.File
	file_pluginapi_v1_data_proto_goTypes = nil
	file_pluginapi_v1_data_proto_depIdxs = nil
}
