// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v3.21.12
// source: identityrepo/identityrepoproto/protos/identityrepo.proto

package identityrepoproto

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 Data struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// kind is a string representing the kind of data
	Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
	// data is a byte payload
	Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// data signature
	Signature     []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Data) Reset() {
	*x = Data{}
	mi := &file_identityrepo_identityrepoproto_protos_identityrepo_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_identityrepo_identityrepoproto_protos_identityrepo_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_identityrepo_identityrepoproto_protos_identityrepo_proto_rawDescGZIP(), []int{0}
}

func (x *Data) GetKind() string {
	if x != nil {
		return x.Kind
	}
	return ""
}

func (x *Data) GetData() []byte {
	if x != nil {
		return x.Data
	}
	return nil
}

func (x *Data) GetSignature() []byte {
	if x != nil {
		return x.Signature
	}
	return nil
}

type DataWithIdentity struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Identity      string                 `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"`
	Data          []*Data                `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*DataWithIdentity) ProtoMessage() {}

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

func (x *DataWithIdentity) GetIdentity() string {
	if x != nil {
		return x.Identity
	}
	return ""
}

func (x *DataWithIdentity) GetData() []*Data {
	if x != nil {
		return x.Data
	}
	return nil
}

type DataPutRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// string representation of identity, must be equal handshake result
	Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"`
	// data to save
	Data          []*Data `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*DataPutRequest) ProtoMessage() {}

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

func (x *DataPutRequest) GetIdentity() string {
	if x != nil {
		return x.Identity
	}
	return ""
}

func (x *DataPutRequest) GetData() []*Data {
	if x != nil {
		return x.Data
	}
	return nil
}

type DataDeleteRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// string representation of identity, must be equal handshake result
	Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"`
	// kinds of data to delete, if empty all kinds will be deleted
	Kinds         []string `protobuf:"bytes,2,rep,name=kinds,proto3" json:"kinds,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*DataDeleteRequest) ProtoMessage() {}

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

func (x *DataDeleteRequest) GetIdentity() string {
	if x != nil {
		return x.Identity
	}
	return ""
}

func (x *DataDeleteRequest) GetKinds() []string {
	if x != nil {
		return x.Kinds
	}
	return nil
}

type DataPullRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// list of identities wanted to request
	Identities []string `protobuf:"bytes,1,rep,name=identities,proto3" json:"identities,omitempty"`
	// kinds of data wanted to request
	Kinds         []string `protobuf:"bytes,2,rep,name=kinds,proto3" json:"kinds,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*DataPullRequest) ProtoMessage() {}

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

func (x *DataPullRequest) GetIdentities() []string {
	if x != nil {
		return x.Identities
	}
	return nil
}

func (x *DataPullRequest) GetKinds() []string {
	if x != nil {
		return x.Kinds
	}
	return nil
}

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

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

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

func (*DataPullResponse) ProtoMessage() {}

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

func (x *DataPullResponse) GetData() []*DataWithIdentity {
	if x != nil {
		return x.Data
	}
	return nil
}

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

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

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

func (*Ok) ProtoMessage() {}

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

var File_identityrepo_identityrepoproto_protos_identityrepo_proto protoreflect.FileDescriptor

const file_identityrepo_identityrepoproto_protos_identityrepo_proto_rawDesc = "" +
	"\n" +
	"8identityrepo/identityrepoproto/protos/identityrepo.proto\x12\fidentityRepo\"L\n" +
	"\x04Data\x12\x12\n" +
	"\x04kind\x18\x01 \x01(\tR\x04kind\x12\x12\n" +
	"\x04data\x18\x02 \x01(\fR\x04data\x12\x1c\n" +
	"\tsignature\x18\x03 \x01(\fR\tsignature\"V\n" +
	"\x10DataWithIdentity\x12\x1a\n" +
	"\bidentity\x18\x01 \x01(\tR\bidentity\x12&\n" +
	"\x04data\x18\x02 \x03(\v2\x12.identityRepo.DataR\x04data\"T\n" +
	"\x0eDataPutRequest\x12\x1a\n" +
	"\bidentity\x18\x01 \x01(\tR\bidentity\x12&\n" +
	"\x04data\x18\x02 \x03(\v2\x12.identityRepo.DataR\x04data\"E\n" +
	"\x11DataDeleteRequest\x12\x1a\n" +
	"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x14\n" +
	"\x05kinds\x18\x02 \x03(\tR\x05kinds\"G\n" +
	"\x0fDataPullRequest\x12\x1e\n" +
	"\n" +
	"identities\x18\x01 \x03(\tR\n" +
	"identities\x12\x14\n" +
	"\x05kinds\x18\x02 \x03(\tR\x05kinds\"F\n" +
	"\x10DataPullResponse\x122\n" +
	"\x04data\x18\x01 \x03(\v2\x1e.identityRepo.DataWithIdentityR\x04data\"\x04\n" +
	"\x02Ok2\xd5\x01\n" +
	"\fIdentityRepo\x129\n" +
	"\aDataPut\x12\x1c.identityRepo.DataPutRequest\x1a\x10.identityRepo.Ok\x12?\n" +
	"\n" +
	"DataDelete\x12\x1f.identityRepo.DataDeleteRequest\x1a\x10.identityRepo.Ok\x12I\n" +
	"\bDataPull\x12\x1d.identityRepo.DataPullRequest\x1a\x1e.identityRepo.DataPullResponseB Z\x1eidentityrepo/identityrepoprotob\x06proto3"

var (
	file_identityrepo_identityrepoproto_protos_identityrepo_proto_rawDescOnce sync.Once
	file_identityrepo_identityrepoproto_protos_identityrepo_proto_rawDescData []byte
)

func file_identityrepo_identityrepoproto_protos_identityrepo_proto_rawDescGZIP() []byte {
	file_identityrepo_identityrepoproto_protos_identityrepo_proto_rawDescOnce.Do(func() {
		file_identityrepo_identityrepoproto_protos_identityrepo_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_identityrepo_identityrepoproto_protos_identityrepo_proto_rawDesc), len(file_identityrepo_identityrepoproto_protos_identityrepo_proto_rawDesc)))
	})
	return file_identityrepo_identityrepoproto_protos_identityrepo_proto_rawDescData
}

var file_identityrepo_identityrepoproto_protos_identityrepo_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
var file_identityrepo_identityrepoproto_protos_identityrepo_proto_goTypes = []any{
	(*Data)(nil),              // 0: identityRepo.Data
	(*DataWithIdentity)(nil),  // 1: identityRepo.DataWithIdentity
	(*DataPutRequest)(nil),    // 2: identityRepo.DataPutRequest
	(*DataDeleteRequest)(nil), // 3: identityRepo.DataDeleteRequest
	(*DataPullRequest)(nil),   // 4: identityRepo.DataPullRequest
	(*DataPullResponse)(nil),  // 5: identityRepo.DataPullResponse
	(*Ok)(nil),                // 6: identityRepo.Ok
}
var file_identityrepo_identityrepoproto_protos_identityrepo_proto_depIdxs = []int32{
	0, // 0: identityRepo.DataWithIdentity.data:type_name -> identityRepo.Data
	0, // 1: identityRepo.DataPutRequest.data:type_name -> identityRepo.Data
	1, // 2: identityRepo.DataPullResponse.data:type_name -> identityRepo.DataWithIdentity
	2, // 3: identityRepo.IdentityRepo.DataPut:input_type -> identityRepo.DataPutRequest
	3, // 4: identityRepo.IdentityRepo.DataDelete:input_type -> identityRepo.DataDeleteRequest
	4, // 5: identityRepo.IdentityRepo.DataPull:input_type -> identityRepo.DataPullRequest
	6, // 6: identityRepo.IdentityRepo.DataPut:output_type -> identityRepo.Ok
	6, // 7: identityRepo.IdentityRepo.DataDelete:output_type -> identityRepo.Ok
	5, // 8: identityRepo.IdentityRepo.DataPull:output_type -> identityRepo.DataPullResponse
	6, // [6:9] is the sub-list for method output_type
	3, // [3:6] is the sub-list for method input_type
	3, // [3:3] is the sub-list for extension type_name
	3, // [3:3] is the sub-list for extension extendee
	0, // [0:3] is the sub-list for field type_name
}

func init() { file_identityrepo_identityrepoproto_protos_identityrepo_proto_init() }
func file_identityrepo_identityrepoproto_protos_identityrepo_proto_init() {
	if File_identityrepo_identityrepoproto_protos_identityrepo_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_identityrepo_identityrepoproto_protos_identityrepo_proto_rawDesc), len(file_identityrepo_identityrepoproto_protos_identityrepo_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   7,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_identityrepo_identityrepoproto_protos_identityrepo_proto_goTypes,
		DependencyIndexes: file_identityrepo_identityrepoproto_protos_identityrepo_proto_depIdxs,
		MessageInfos:      file_identityrepo_identityrepoproto_protos_identityrepo_proto_msgTypes,
	}.Build()
	File_identityrepo_identityrepoproto_protos_identityrepo_proto = out.File
	file_identityrepo_identityrepoproto_protos_identityrepo_proto_goTypes = nil
	file_identityrepo_identityrepoproto_protos_identityrepo_proto_depIdxs = nil
}
