// Copyright 2025 AGNTCY Contributors (https://github.com/agntcy)
// SPDX-License-Identifier: Apache-2.0

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.9
// 	protoc        (unknown)
// source: agntcy/identity/service/v1alpha1/device_service.proto

package identity_service_sdk_go

import (
	v1alpha1 "github.com/agntcy/identity-service/api/server/agntcy/identity/service/shared/v1alpha1"
	_ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options"
	_ "google.golang.org/genproto/googleapis/api/annotations"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	emptypb "google.golang.org/protobuf/types/known/emptypb"
	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 AddDeviceRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The device information to register.
	Device        *Device `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*AddDeviceRequest) ProtoMessage() {}

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

func (x *AddDeviceRequest) GetDevice() *Device {
	if x != nil {
		return x.Device
	}
	return nil
}

type RegisterDeviceRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The unique identifier for the device to register.
	DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
	// The device information to register.
	Device        *Device `protobuf:"bytes,2,opt,name=device,proto3" json:"device,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*RegisterDeviceRequest) ProtoMessage() {}

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

func (x *RegisterDeviceRequest) GetDeviceId() string {
	if x != nil {
		return x.DeviceId
	}
	return ""
}

func (x *RegisterDeviceRequest) GetDevice() *Device {
	if x != nil {
		return x.Device
	}
	return nil
}

type ListDevicesRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The current page of the pagination
	Page *int32 `protobuf:"varint,1,opt,name=page,proto3,oneof" json:"page,omitempty"`
	// The page size of the pagination
	Size *int32 `protobuf:"varint,2,opt,name=size,proto3,oneof" json:"size,omitempty"`
	// The search query
	Query         *string `protobuf:"bytes,3,opt,name=query,proto3,oneof" json:"query,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ListDevicesRequest) ProtoMessage() {}

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

func (x *ListDevicesRequest) GetPage() int32 {
	if x != nil && x.Page != nil {
		return *x.Page
	}
	return 0
}

func (x *ListDevicesRequest) GetSize() int32 {
	if x != nil && x.Size != nil {
		return *x.Size
	}
	return 0
}

func (x *ListDevicesRequest) GetQuery() string {
	if x != nil && x.Query != nil {
		return *x.Query
	}
	return ""
}

type ListDevicesResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// A list of Apps.
	Devices []*Device `protobuf:"bytes,1,rep,name=devices,proto3" json:"devices,omitempty"`
	// Pagination response.
	Pagination    *v1alpha1.PagedResponse `protobuf:"bytes,2,opt,name=pagination,proto3,oneof" json:"pagination,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ListDevicesResponse) ProtoMessage() {}

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

func (x *ListDevicesResponse) GetDevices() []*Device {
	if x != nil {
		return x.Devices
	}
	return nil
}

func (x *ListDevicesResponse) GetPagination() *v1alpha1.PagedResponse {
	if x != nil {
		return x.Pagination
	}
	return nil
}

type DeleteDeviceRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The device id.
	DeviceId      string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*DeleteDeviceRequest) ProtoMessage() {}

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

func (x *DeleteDeviceRequest) GetDeviceId() string {
	if x != nil {
		return x.DeviceId
	}
	return ""
}

type TestDeviceRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The device id.
	DeviceId      string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*TestDeviceRequest) ProtoMessage() {}

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

func (x *TestDeviceRequest) GetDeviceId() string {
	if x != nil {
		return x.DeviceId
	}
	return ""
}

var File_agntcy_identity_service_v1alpha1_device_service_proto protoreflect.FileDescriptor

const file_agntcy_identity_service_v1alpha1_device_service_proto_rawDesc = "" +
	"\n" +
	"5agntcy/identity/service/v1alpha1/device_service.proto\x12 agntcy.identity.service.v1alpha1\x1a8agntcy/identity/service/shared/v1alpha1/pagination.proto\x1a-agntcy/identity/service/v1alpha1/device.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"T\n" +
	"\x10AddDeviceRequest\x12@\n" +
	"\x06device\x18\x01 \x01(\v2(.agntcy.identity.service.v1alpha1.DeviceR\x06device\"v\n" +
	"\x15RegisterDeviceRequest\x12\x1b\n" +
	"\tdevice_id\x18\x01 \x01(\tR\bdeviceId\x12@\n" +
	"\x06device\x18\x02 \x01(\v2(.agntcy.identity.service.v1alpha1.DeviceR\x06device\"}\n" +
	"\x12ListDevicesRequest\x12\x17\n" +
	"\x04page\x18\x01 \x01(\x05H\x00R\x04page\x88\x01\x01\x12\x17\n" +
	"\x04size\x18\x02 \x01(\x05H\x01R\x04size\x88\x01\x01\x12\x19\n" +
	"\x05query\x18\x03 \x01(\tH\x02R\x05query\x88\x01\x01B\a\n" +
	"\x05_pageB\a\n" +
	"\x05_sizeB\b\n" +
	"\x06_query\"\xc5\x01\n" +
	"\x13ListDevicesResponse\x12B\n" +
	"\adevices\x18\x01 \x03(\v2(.agntcy.identity.service.v1alpha1.DeviceR\adevices\x12[\n" +
	"\n" +
	"pagination\x18\x02 \x01(\v26.agntcy.identity.service.shared.v1alpha1.PagedResponseH\x00R\n" +
	"pagination\x88\x01\x01B\r\n" +
	"\v_pagination\"2\n" +
	"\x13DeleteDeviceRequest\x12\x1b\n" +
	"\tdevice_id\x18\x01 \x01(\tR\bdeviceId\"0\n" +
	"\x11TestDeviceRequest\x12\x1b\n" +
	"\tdevice_id\x18\x01 \x01(\tR\bdeviceId2\x81\b\n" +
	"\rDeviceService\x12\xbb\x01\n" +
	"\tAddDevice\x122.agntcy.identity.service.v1alpha1.AddDeviceRequest\x1a(.agntcy.identity.service.v1alpha1.Device\"P\x92A-\x12 Add new device for approval flow*\tAddDevice\x82\xd3\xe4\x93\x02\x1a:\x06device\"\x10/v1alpha1/device\x12\xc5\x01\n" +
	"\x0eRegisterDevice\x127.agntcy.identity.service.v1alpha1.RegisterDeviceRequest\x1a\x16.google.protobuf.Empty\"b\x92A3\x12!Register device for approval flow*\x0eRegisterDevice\x82\xd3\xe4\x93\x02&:\x06device\"\x1c/v1alpha1/device/{device_id}\x12\xc1\x01\n" +
	"\vListDevices\x124.agntcy.identity.service.v1alpha1.ListDevicesRequest\x1a5.agntcy.identity.service.v1alpha1.ListDevicesResponse\"E\x92A*\x12\x1bList all registered devices*\vListDevices\x82\xd3\xe4\x93\x02\x12\x12\x10/v1alpha1/device\x12\xb0\x01\n" +
	"\fDeleteDevice\x125.agntcy.identity.service.v1alpha1.DeleteDeviceRequest\x1a\x16.google.protobuf.Empty\"Q\x92A*\x12\x1aDelete a registered Device*\fDeleteDevice\x82\xd3\xe4\x93\x02\x1e*\x1c/v1alpha1/device/{device_id}\x12\xe5\x01\n" +
	"\n" +
	"TestDevice\x123.agntcy.identity.service.v1alpha1.TestDeviceRequest\x1a\x16.google.protobuf.Empty\"\x89\x01\x92A]\x12OSend a test notification to a registered device to see if it's well configured.*\n" +
	"TestDevice\x82\xd3\xe4\x93\x02#\"!/v1alpha1/device/{device_id}/test\x1a\v\x92A\b\n" +
	"\x06DeviceBhZfgithub.com/agntcy/identity-service/api/server/agntcy/identity/service/v1alpha1;identity_service_sdk_gob\x06proto3"

var (
	file_agntcy_identity_service_v1alpha1_device_service_proto_rawDescOnce sync.Once
	file_agntcy_identity_service_v1alpha1_device_service_proto_rawDescData []byte
)

func file_agntcy_identity_service_v1alpha1_device_service_proto_rawDescGZIP() []byte {
	file_agntcy_identity_service_v1alpha1_device_service_proto_rawDescOnce.Do(func() {
		file_agntcy_identity_service_v1alpha1_device_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_agntcy_identity_service_v1alpha1_device_service_proto_rawDesc), len(file_agntcy_identity_service_v1alpha1_device_service_proto_rawDesc)))
	})
	return file_agntcy_identity_service_v1alpha1_device_service_proto_rawDescData
}

var file_agntcy_identity_service_v1alpha1_device_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_agntcy_identity_service_v1alpha1_device_service_proto_goTypes = []any{
	(*AddDeviceRequest)(nil),       // 0: agntcy.identity.service.v1alpha1.AddDeviceRequest
	(*RegisterDeviceRequest)(nil),  // 1: agntcy.identity.service.v1alpha1.RegisterDeviceRequest
	(*ListDevicesRequest)(nil),     // 2: agntcy.identity.service.v1alpha1.ListDevicesRequest
	(*ListDevicesResponse)(nil),    // 3: agntcy.identity.service.v1alpha1.ListDevicesResponse
	(*DeleteDeviceRequest)(nil),    // 4: agntcy.identity.service.v1alpha1.DeleteDeviceRequest
	(*TestDeviceRequest)(nil),      // 5: agntcy.identity.service.v1alpha1.TestDeviceRequest
	(*Device)(nil),                 // 6: agntcy.identity.service.v1alpha1.Device
	(*v1alpha1.PagedResponse)(nil), // 7: agntcy.identity.service.shared.v1alpha1.PagedResponse
	(*emptypb.Empty)(nil),          // 8: google.protobuf.Empty
}
var file_agntcy_identity_service_v1alpha1_device_service_proto_depIdxs = []int32{
	6, // 0: agntcy.identity.service.v1alpha1.AddDeviceRequest.device:type_name -> agntcy.identity.service.v1alpha1.Device
	6, // 1: agntcy.identity.service.v1alpha1.RegisterDeviceRequest.device:type_name -> agntcy.identity.service.v1alpha1.Device
	6, // 2: agntcy.identity.service.v1alpha1.ListDevicesResponse.devices:type_name -> agntcy.identity.service.v1alpha1.Device
	7, // 3: agntcy.identity.service.v1alpha1.ListDevicesResponse.pagination:type_name -> agntcy.identity.service.shared.v1alpha1.PagedResponse
	0, // 4: agntcy.identity.service.v1alpha1.DeviceService.AddDevice:input_type -> agntcy.identity.service.v1alpha1.AddDeviceRequest
	1, // 5: agntcy.identity.service.v1alpha1.DeviceService.RegisterDevice:input_type -> agntcy.identity.service.v1alpha1.RegisterDeviceRequest
	2, // 6: agntcy.identity.service.v1alpha1.DeviceService.ListDevices:input_type -> agntcy.identity.service.v1alpha1.ListDevicesRequest
	4, // 7: agntcy.identity.service.v1alpha1.DeviceService.DeleteDevice:input_type -> agntcy.identity.service.v1alpha1.DeleteDeviceRequest
	5, // 8: agntcy.identity.service.v1alpha1.DeviceService.TestDevice:input_type -> agntcy.identity.service.v1alpha1.TestDeviceRequest
	6, // 9: agntcy.identity.service.v1alpha1.DeviceService.AddDevice:output_type -> agntcy.identity.service.v1alpha1.Device
	8, // 10: agntcy.identity.service.v1alpha1.DeviceService.RegisterDevice:output_type -> google.protobuf.Empty
	3, // 11: agntcy.identity.service.v1alpha1.DeviceService.ListDevices:output_type -> agntcy.identity.service.v1alpha1.ListDevicesResponse
	8, // 12: agntcy.identity.service.v1alpha1.DeviceService.DeleteDevice:output_type -> google.protobuf.Empty
	8, // 13: agntcy.identity.service.v1alpha1.DeviceService.TestDevice:output_type -> google.protobuf.Empty
	9, // [9:14] is the sub-list for method output_type
	4, // [4:9] is the sub-list for method input_type
	4, // [4:4] is the sub-list for extension type_name
	4, // [4:4] is the sub-list for extension extendee
	0, // [0:4] is the sub-list for field type_name
}

func init() { file_agntcy_identity_service_v1alpha1_device_service_proto_init() }
func file_agntcy_identity_service_v1alpha1_device_service_proto_init() {
	if File_agntcy_identity_service_v1alpha1_device_service_proto != nil {
		return
	}
	file_agntcy_identity_service_v1alpha1_device_proto_init()
	file_agntcy_identity_service_v1alpha1_device_service_proto_msgTypes[2].OneofWrappers = []any{}
	file_agntcy_identity_service_v1alpha1_device_service_proto_msgTypes[3].OneofWrappers = []any{}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_agntcy_identity_service_v1alpha1_device_service_proto_rawDesc), len(file_agntcy_identity_service_v1alpha1_device_service_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   6,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_agntcy_identity_service_v1alpha1_device_service_proto_goTypes,
		DependencyIndexes: file_agntcy_identity_service_v1alpha1_device_service_proto_depIdxs,
		MessageInfos:      file_agntcy_identity_service_v1alpha1_device_service_proto_msgTypes,
	}.Build()
	File_agntcy_identity_service_v1alpha1_device_service_proto = out.File
	file_agntcy_identity_service_v1alpha1_device_service_proto_goTypes = nil
	file_agntcy_identity_service_v1alpha1_device_service_proto_depIdxs = nil
}
