// 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/iam.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)
)

// APIKey
type APIKey struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// A unique identifier for the APIKey.
	Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"`
	// The ID of the user associated with the APIKey.
	Name *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"`
	// The secret key used for authentication.
	Secret *string `protobuf:"bytes,3,opt,name=secret,proto3,oneof" json:"secret,omitempty"`
	// The ID of the tenant associated with the APIKey.
	TenantId *string `protobuf:"bytes,4,opt,name=tenant_id,json=tenantId,proto3,oneof" json:"tenant_id,omitempty"`
	// The ID of the application associated with the APIKey, if applicable.
	AppId *string `protobuf:"bytes,6,opt,name=app_id,json=appId,proto3,oneof" json:"app_id,omitempty"`
	// The creation time of the APIKey.
	CreatedAt     *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*APIKey) ProtoMessage() {}

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

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

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

func (x *APIKey) GetSecret() string {
	if x != nil && x.Secret != nil {
		return *x.Secret
	}
	return ""
}

func (x *APIKey) GetTenantId() string {
	if x != nil && x.TenantId != nil {
		return *x.TenantId
	}
	return ""
}

func (x *APIKey) GetAppId() string {
	if x != nil && x.AppId != nil {
		return *x.AppId
	}
	return ""
}

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

var File_agntcy_identity_service_v1alpha1_iam_proto protoreflect.FileDescriptor

const file_agntcy_identity_service_v1alpha1_iam_proto_rawDesc = "" +
	"\n" +
	"*agntcy/identity/service/v1alpha1/iam.proto\x12 agntcy.identity.service.v1alpha1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb2\x02\n" +
	"\x06APIKey\x12\x18\n" +
	"\x02id\x18\x01 \x01(\tB\x03\xe0A\x03H\x00R\x02id\x88\x01\x01\x12\x1c\n" +
	"\x04name\x18\x02 \x01(\tB\x03\xe0A\x02H\x01R\x04name\x88\x01\x01\x12 \n" +
	"\x06secret\x18\x03 \x01(\tB\x03\xe0A\x03H\x02R\x06secret\x88\x01\x01\x12%\n" +
	"\ttenant_id\x18\x04 \x01(\tB\x03\xe0A\x02H\x03R\btenantId\x88\x01\x01\x12\x1f\n" +
	"\x06app_id\x18\x06 \x01(\tB\x03\xe0A\x01H\x04R\x05appId\x88\x01\x01\x12C\n" +
	"\n" +
	"created_at\x18\a \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03H\x05R\tcreatedAt\x88\x01\x01B\x05\n" +
	"\x03_idB\a\n" +
	"\x05_nameB\t\n" +
	"\a_secretB\f\n" +
	"\n" +
	"_tenant_idB\t\n" +
	"\a_app_idB\r\n" +
	"\v_created_atBhZfgithub.com/agntcy/identity-service/api/server/agntcy/identity/service/v1alpha1;identity_service_sdk_gob\x06proto3"

var (
	file_agntcy_identity_service_v1alpha1_iam_proto_rawDescOnce sync.Once
	file_agntcy_identity_service_v1alpha1_iam_proto_rawDescData []byte
)

func file_agntcy_identity_service_v1alpha1_iam_proto_rawDescGZIP() []byte {
	file_agntcy_identity_service_v1alpha1_iam_proto_rawDescOnce.Do(func() {
		file_agntcy_identity_service_v1alpha1_iam_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_agntcy_identity_service_v1alpha1_iam_proto_rawDesc), len(file_agntcy_identity_service_v1alpha1_iam_proto_rawDesc)))
	})
	return file_agntcy_identity_service_v1alpha1_iam_proto_rawDescData
}

var file_agntcy_identity_service_v1alpha1_iam_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_agntcy_identity_service_v1alpha1_iam_proto_goTypes = []any{
	(*APIKey)(nil),                // 0: agntcy.identity.service.v1alpha1.APIKey
	(*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp
}
var file_agntcy_identity_service_v1alpha1_iam_proto_depIdxs = []int32{
	1, // 0: agntcy.identity.service.v1alpha1.APIKey.created_at:type_name -> google.protobuf.Timestamp
	1, // [1:1] is the sub-list for method output_type
	1, // [1:1] is the sub-list for method input_type
	1, // [1:1] is the sub-list for extension type_name
	1, // [1:1] is the sub-list for extension extendee
	0, // [0:1] is the sub-list for field type_name
}

func init() { file_agntcy_identity_service_v1alpha1_iam_proto_init() }
func file_agntcy_identity_service_v1alpha1_iam_proto_init() {
	if File_agntcy_identity_service_v1alpha1_iam_proto != nil {
		return
	}
	file_agntcy_identity_service_v1alpha1_iam_proto_msgTypes[0].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_iam_proto_rawDesc), len(file_agntcy_identity_service_v1alpha1_iam_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_agntcy_identity_service_v1alpha1_iam_proto_goTypes,
		DependencyIndexes: file_agntcy_identity_service_v1alpha1_iam_proto_depIdxs,
		MessageInfos:      file_agntcy_identity_service_v1alpha1_iam_proto_msgTypes,
	}.Build()
	File_agntcy_identity_service_v1alpha1_iam_proto = out.File
	file_agntcy_identity_service_v1alpha1_iam_proto_goTypes = nil
	file_agntcy_identity_service_v1alpha1_iam_proto_depIdxs = nil
}
