// This file was autogenerated by go-to-protobuf. Do not edit it manually!

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

package identity_service_sdk_go

import (
	_ "google.golang.org/genproto/googleapis/api/annotations"
	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 NotificationType int32

const (
	NotificationType_NOTIFICATION_TYPE_UNSPECIFIED      NotificationType = 0
	NotificationType_NOTIFICATION_TYPE_INFO             NotificationType = 1
	NotificationType_NOTIFICATION_TYPE_APPROVAL_REQUEST NotificationType = 2
)

// Enum value maps for NotificationType.
var (
	NotificationType_name = map[int32]string{
		0: "NOTIFICATION_TYPE_UNSPECIFIED",
		1: "NOTIFICATION_TYPE_INFO",
		2: "NOTIFICATION_TYPE_APPROVAL_REQUEST",
	}
	NotificationType_value = map[string]int32{
		"NOTIFICATION_TYPE_UNSPECIFIED":      0,
		"NOTIFICATION_TYPE_INFO":             1,
		"NOTIFICATION_TYPE_APPROVAL_REQUEST": 2,
	}
)

func (x NotificationType) Enum() *NotificationType {
	p := new(NotificationType)
	*p = x
	return p
}

func (x NotificationType) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (NotificationType) Descriptor() protoreflect.EnumDescriptor {
	return file_agntcy_identity_service_v1alpha1_device_proto_enumTypes[0].Descriptor()
}

func (NotificationType) Type() protoreflect.EnumType {
	return &file_agntcy_identity_service_v1alpha1_device_proto_enumTypes[0]
}

func (x NotificationType) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use NotificationType.Descriptor instead.
func (NotificationType) EnumDescriptor() ([]byte, []int) {
	return file_agntcy_identity_service_v1alpha1_device_proto_rawDescGZIP(), []int{0}
}

type ApprovalRequestInfo struct {
	state            protoimpl.MessageState `protogen:"open.v1"`
	CallerApp        *string                `protobuf:"bytes,1,opt,name=caller_app,json=callerApp,proto3,oneof" json:"caller_app,omitempty"`
	CalleeApp        *string                `protobuf:"bytes,2,opt,name=callee_app,json=calleeApp,proto3,oneof" json:"callee_app,omitempty"`
	ToolName         *string                `protobuf:"bytes,3,opt,name=tool_name,json=toolName,proto3,oneof" json:"tool_name,omitempty"`
	Otp              *string                `protobuf:"bytes,4,opt,name=otp,proto3,oneof" json:"otp,omitempty"`
	DeviceId         *string                `protobuf:"bytes,5,opt,name=device_id,json=deviceId,proto3,oneof" json:"device_id,omitempty"`
	SessionId        *string                `protobuf:"bytes,6,opt,name=session_id,json=sessionId,proto3,oneof" json:"session_id,omitempty"`
	TimeoutInSeconds *int64                 `protobuf:"varint,7,opt,name=timeout_in_seconds,json=timeoutInSeconds,proto3,oneof" json:"timeout_in_seconds,omitempty"`
	unknownFields    protoimpl.UnknownFields
	sizeCache        protoimpl.SizeCache
}

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

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

func (*ApprovalRequestInfo) ProtoMessage() {}

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

func (x *ApprovalRequestInfo) GetCallerApp() string {
	if x != nil && x.CallerApp != nil {
		return *x.CallerApp
	}
	return ""
}

func (x *ApprovalRequestInfo) GetCalleeApp() string {
	if x != nil && x.CalleeApp != nil {
		return *x.CalleeApp
	}
	return ""
}

func (x *ApprovalRequestInfo) GetToolName() string {
	if x != nil && x.ToolName != nil {
		return *x.ToolName
	}
	return ""
}

func (x *ApprovalRequestInfo) GetOtp() string {
	if x != nil && x.Otp != nil {
		return *x.Otp
	}
	return ""
}

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

func (x *ApprovalRequestInfo) GetSessionId() string {
	if x != nil && x.SessionId != nil {
		return *x.SessionId
	}
	return ""
}

func (x *ApprovalRequestInfo) GetTimeoutInSeconds() int64 {
	if x != nil && x.TimeoutInSeconds != nil {
		return *x.TimeoutInSeconds
	}
	return 0
}

// Devices used for user approval
type Device struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// A unique identifier for the Device.
	Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"`
	// User ID associated with the Device.
	UserId *string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3,oneof" json:"user_id,omitempty"`
	// Subscription Token for the Device.
	SubscriptionToken *string `protobuf:"bytes,3,opt,name=subscription_token,json=subscriptionToken,proto3,oneof" json:"subscription_token,omitempty"`
	// The device human-readable name.
	Name *string `protobuf:"bytes,4,opt,name=name,proto3,oneof" json:"name,omitempty"`
	// The creation time of the Device.
	CreatedAt     *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Device) ProtoMessage() {}

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

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

func (x *Device) GetUserId() string {
	if x != nil && x.UserId != nil {
		return *x.UserId
	}
	return ""
}

func (x *Device) GetSubscriptionToken() string {
	if x != nil && x.SubscriptionToken != nil {
		return *x.SubscriptionToken
	}
	return ""
}

func (x *Device) GetName() string {
	if x != nil && x.Name != nil {
		return *x.Name
	}
	return ""
}

func (x *Device) GetCreatedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.CreatedAt
	}
	return nil
}

type Notification struct {
	state               protoimpl.MessageState `protogen:"open.v1"`
	Body                *string                `protobuf:"bytes,1,opt,name=body,proto3,oneof" json:"body,omitempty"`
	Type                *NotificationType      `protobuf:"varint,2,opt,name=type,proto3,enum=agntcy.identity.service.v1alpha1.NotificationType,oneof" json:"type,omitempty"`
	ApprovalRequestInfo *ApprovalRequestInfo   `protobuf:"bytes,3,opt,name=approval_request_info,json=approvalRequestInfo,proto3,oneof" json:"approval_request_info,omitempty"`
	unknownFields       protoimpl.UnknownFields
	sizeCache           protoimpl.SizeCache
}

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

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

func (*Notification) ProtoMessage() {}

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

func (x *Notification) GetBody() string {
	if x != nil && x.Body != nil {
		return *x.Body
	}
	return ""
}

func (x *Notification) GetType() NotificationType {
	if x != nil && x.Type != nil {
		return *x.Type
	}
	return NotificationType_NOTIFICATION_TYPE_UNSPECIFIED
}

func (x *Notification) GetApprovalRequestInfo() *ApprovalRequestInfo {
	if x != nil {
		return x.ApprovalRequestInfo
	}
	return nil
}

var File_agntcy_identity_service_v1alpha1_device_proto protoreflect.FileDescriptor

const file_agntcy_identity_service_v1alpha1_device_proto_rawDesc = "" +
	"\n" +
	"-agntcy/identity/service/v1alpha1/device.proto\x12 agntcy.identity.service.v1alpha1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf7\x02\n" +
	"\x13ApprovalRequestInfo\x12\"\n" +
	"\n" +
	"caller_app\x18\x01 \x01(\tH\x00R\tcallerApp\x88\x01\x01\x12\"\n" +
	"\n" +
	"callee_app\x18\x02 \x01(\tH\x01R\tcalleeApp\x88\x01\x01\x12 \n" +
	"\ttool_name\x18\x03 \x01(\tH\x02R\btoolName\x88\x01\x01\x12\x15\n" +
	"\x03otp\x18\x04 \x01(\tH\x03R\x03otp\x88\x01\x01\x12 \n" +
	"\tdevice_id\x18\x05 \x01(\tH\x04R\bdeviceId\x88\x01\x01\x12\"\n" +
	"\n" +
	"session_id\x18\x06 \x01(\tH\x05R\tsessionId\x88\x01\x01\x121\n" +
	"\x12timeout_in_seconds\x18\a \x01(\x03H\x06R\x10timeoutInSeconds\x88\x01\x01B\r\n" +
	"\v_caller_appB\r\n" +
	"\v_callee_appB\f\n" +
	"\n" +
	"_tool_nameB\x06\n" +
	"\x04_otpB\f\n" +
	"\n" +
	"_device_idB\r\n" +
	"\v_session_idB\x15\n" +
	"\x13_timeout_in_seconds\"\xa3\x02\n" +
	"\x06Device\x12\x18\n" +
	"\x02id\x18\x01 \x01(\tB\x03\xe0A\x03H\x00R\x02id\x88\x01\x01\x12!\n" +
	"\auser_id\x18\x02 \x01(\tB\x03\xe0A\x01H\x01R\x06userId\x88\x01\x01\x127\n" +
	"\x12subscription_token\x18\x03 \x01(\tB\x03\xe0A\x01H\x02R\x11subscriptionToken\x88\x01\x01\x12\x1c\n" +
	"\x04name\x18\x04 \x01(\tB\x03\xe0A\x01H\x03R\x04name\x88\x01\x01\x12C\n" +
	"\n" +
	"created_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03H\x04R\tcreatedAt\x88\x01\x01B\x05\n" +
	"\x03_idB\n" +
	"\n" +
	"\b_user_idB\x15\n" +
	"\x13_subscription_tokenB\a\n" +
	"\x05_nameB\r\n" +
	"\v_created_at\"\x90\x02\n" +
	"\fNotification\x12\x17\n" +
	"\x04body\x18\x01 \x01(\tH\x00R\x04body\x88\x01\x01\x12K\n" +
	"\x04type\x18\x02 \x01(\x0e22.agntcy.identity.service.v1alpha1.NotificationTypeH\x01R\x04type\x88\x01\x01\x12n\n" +
	"\x15approval_request_info\x18\x03 \x01(\v25.agntcy.identity.service.v1alpha1.ApprovalRequestInfoH\x02R\x13approvalRequestInfo\x88\x01\x01B\a\n" +
	"\x05_bodyB\a\n" +
	"\x05_typeB\x18\n" +
	"\x16_approval_request_info*y\n" +
	"\x10NotificationType\x12!\n" +
	"\x1dNOTIFICATION_TYPE_UNSPECIFIED\x10\x00\x12\x1a\n" +
	"\x16NOTIFICATION_TYPE_INFO\x10\x01\x12&\n" +
	"\"NOTIFICATION_TYPE_APPROVAL_REQUEST\x10\x02BhZfgithub.com/agntcy/identity-service/api/server/agntcy/identity/service/v1alpha1;identity_service_sdk_gob\x06proto3"

var (
	file_agntcy_identity_service_v1alpha1_device_proto_rawDescOnce sync.Once
	file_agntcy_identity_service_v1alpha1_device_proto_rawDescData []byte
)

func file_agntcy_identity_service_v1alpha1_device_proto_rawDescGZIP() []byte {
	file_agntcy_identity_service_v1alpha1_device_proto_rawDescOnce.Do(func() {
		file_agntcy_identity_service_v1alpha1_device_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_agntcy_identity_service_v1alpha1_device_proto_rawDesc), len(file_agntcy_identity_service_v1alpha1_device_proto_rawDesc)))
	})
	return file_agntcy_identity_service_v1alpha1_device_proto_rawDescData
}

var file_agntcy_identity_service_v1alpha1_device_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_agntcy_identity_service_v1alpha1_device_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_agntcy_identity_service_v1alpha1_device_proto_goTypes = []any{
	(NotificationType)(0),         // 0: agntcy.identity.service.v1alpha1.NotificationType
	(*ApprovalRequestInfo)(nil),   // 1: agntcy.identity.service.v1alpha1.ApprovalRequestInfo
	(*Device)(nil),                // 2: agntcy.identity.service.v1alpha1.Device
	(*Notification)(nil),          // 3: agntcy.identity.service.v1alpha1.Notification
	(*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp
}
var file_agntcy_identity_service_v1alpha1_device_proto_depIdxs = []int32{
	4, // 0: agntcy.identity.service.v1alpha1.Device.created_at:type_name -> google.protobuf.Timestamp
	0, // 1: agntcy.identity.service.v1alpha1.Notification.type:type_name -> agntcy.identity.service.v1alpha1.NotificationType
	1, // 2: agntcy.identity.service.v1alpha1.Notification.approval_request_info:type_name -> agntcy.identity.service.v1alpha1.ApprovalRequestInfo
	3, // [3:3] is the sub-list for method output_type
	3, // [3:3] 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_agntcy_identity_service_v1alpha1_device_proto_init() }
func file_agntcy_identity_service_v1alpha1_device_proto_init() {
	if File_agntcy_identity_service_v1alpha1_device_proto != nil {
		return
	}
	file_agntcy_identity_service_v1alpha1_device_proto_msgTypes[0].OneofWrappers = []any{}
	file_agntcy_identity_service_v1alpha1_device_proto_msgTypes[1].OneofWrappers = []any{}
	file_agntcy_identity_service_v1alpha1_device_proto_msgTypes[2].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_proto_rawDesc), len(file_agntcy_identity_service_v1alpha1_device_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_agntcy_identity_service_v1alpha1_device_proto_goTypes,
		DependencyIndexes: file_agntcy_identity_service_v1alpha1_device_proto_depIdxs,
		EnumInfos:         file_agntcy_identity_service_v1alpha1_device_proto_enumTypes,
		MessageInfos:      file_agntcy_identity_service_v1alpha1_device_proto_msgTypes,
	}.Build()
	File_agntcy_identity_service_v1alpha1_device_proto = out.File
	file_agntcy_identity_service_v1alpha1_device_proto_goTypes = nil
	file_agntcy_identity_service_v1alpha1_device_proto_depIdxs = nil
}
