// 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/app.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 AppStatus int32

const (
	// Unspecified status
	AppStatus_APP_STATUS_UNSPECIFIED AppStatus = 0
	// The App has at least one active badge
	AppStatus_APP_STATUS_ACTIVE AppStatus = 1
	// The App has no badges
	AppStatus_APP_STATUS_PENDING AppStatus = 2
	// The App has all the badges revoked
	AppStatus_APP_STATUS_REVOKED AppStatus = 3
)

// Enum value maps for AppStatus.
var (
	AppStatus_name = map[int32]string{
		0: "APP_STATUS_UNSPECIFIED",
		1: "APP_STATUS_ACTIVE",
		2: "APP_STATUS_PENDING",
		3: "APP_STATUS_REVOKED",
	}
	AppStatus_value = map[string]int32{
		"APP_STATUS_UNSPECIFIED": 0,
		"APP_STATUS_ACTIVE":      1,
		"APP_STATUS_PENDING":     2,
		"APP_STATUS_REVOKED":     3,
	}
)

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

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

func (AppStatus) Descriptor() protoreflect.EnumDescriptor {
	return file_agntcy_identity_service_v1alpha1_app_proto_enumTypes[0].Descriptor()
}

func (AppStatus) Type() protoreflect.EnumType {
	return &file_agntcy_identity_service_v1alpha1_app_proto_enumTypes[0]
}

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

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

// App Type
type AppType int32

const (
	// Unspecified Envelope Type.
	AppType_APP_TYPE_UNSPECIFIED AppType = 0
	// Agent A2A App Type.
	AppType_APP_TYPE_AGENT_A2A AppType = 1
	// Agent OASF App Type.
	AppType_APP_TYPE_AGENT_OASF AppType = 2
	// Agent MCP Server App Type.
	AppType_APP_TYPE_MCP_SERVER AppType = 3
)

// Enum value maps for AppType.
var (
	AppType_name = map[int32]string{
		0: "APP_TYPE_UNSPECIFIED",
		1: "APP_TYPE_AGENT_A2A",
		2: "APP_TYPE_AGENT_OASF",
		3: "APP_TYPE_MCP_SERVER",
	}
	AppType_value = map[string]int32{
		"APP_TYPE_UNSPECIFIED": 0,
		"APP_TYPE_AGENT_A2A":   1,
		"APP_TYPE_AGENT_OASF":  2,
		"APP_TYPE_MCP_SERVER":  3,
	}
)

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

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

func (AppType) Descriptor() protoreflect.EnumDescriptor {
	return file_agntcy_identity_service_v1alpha1_app_proto_enumTypes[1].Descriptor()
}

func (AppType) Type() protoreflect.EnumType {
	return &file_agntcy_identity_service_v1alpha1_app_proto_enumTypes[1]
}

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

// Deprecated: Use AppType.Descriptor instead.
func (AppType) EnumDescriptor() ([]byte, []int) {
	return file_agntcy_identity_service_v1alpha1_app_proto_rawDescGZIP(), []int{1}
}

// Identity Service App.
type App struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// A unique identifier for the App.
	Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"`
	// A human-readable name for the App.
	Name *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"`
	// A human-readable description for the App.
	Description *string `protobuf:"bytes,3,opt,name=description,proto3,oneof" json:"description,omitempty"`
	// The type of the App.
	Type *AppType `protobuf:"varint,4,opt,name=type,proto3,enum=agntcy.identity.service.v1alpha1.AppType,oneof" json:"type,omitempty"`
	// The DID value
	ResolverMetadataId *string `protobuf:"bytes,5,opt,name=resolver_metadata_id,json=resolverMetadataId,proto3,oneof" json:"resolver_metadata_id,omitempty"`
	// The API Key Secret for the App.
	ApiKey *string `protobuf:"bytes,6,opt,name=api_key,json=apiKey,proto3,oneof" json:"api_key,omitempty"`
	// The status of the App
	Status *AppStatus `protobuf:"varint,7,opt,name=status,proto3,enum=agntcy.identity.service.v1alpha1.AppStatus,oneof" json:"status,omitempty"`
	// CreatedAt records the timestamp of when the App was initially created
	CreatedAt     *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*App) ProtoMessage() {}

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

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

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

func (x *App) GetDescription() string {
	if x != nil && x.Description != nil {
		return *x.Description
	}
	return ""
}

func (x *App) GetType() AppType {
	if x != nil && x.Type != nil {
		return *x.Type
	}
	return AppType_APP_TYPE_UNSPECIFIED
}

func (x *App) GetResolverMetadataId() string {
	if x != nil && x.ResolverMetadataId != nil {
		return *x.ResolverMetadataId
	}
	return ""
}

func (x *App) GetApiKey() string {
	if x != nil && x.ApiKey != nil {
		return *x.ApiKey
	}
	return ""
}

func (x *App) GetStatus() AppStatus {
	if x != nil && x.Status != nil {
		return *x.Status
	}
	return AppStatus_APP_STATUS_UNSPECIFIED
}

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

var File_agntcy_identity_service_v1alpha1_app_proto protoreflect.FileDescriptor

const file_agntcy_identity_service_v1alpha1_app_proto_rawDesc = "" +
	"\n" +
	"*agntcy/identity/service/v1alpha1/app.proto\x12 agntcy.identity.service.v1alpha1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8d\x04\n" +
	"\x03App\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" +
	"\vdescription\x18\x03 \x01(\tB\x03\xe0A\x01H\x02R\vdescription\x88\x01\x01\x12G\n" +
	"\x04type\x18\x04 \x01(\x0e2).agntcy.identity.service.v1alpha1.AppTypeB\x03\xe0A\x02H\x03R\x04type\x88\x01\x01\x12:\n" +
	"\x14resolver_metadata_id\x18\x05 \x01(\tB\x03\xe0A\x03H\x04R\x12resolverMetadataId\x88\x01\x01\x12!\n" +
	"\aapi_key\x18\x06 \x01(\tB\x03\xe0A\x03H\x05R\x06apiKey\x88\x01\x01\x12M\n" +
	"\x06status\x18\a \x01(\x0e2+.agntcy.identity.service.v1alpha1.AppStatusB\x03\xe0A\x03H\x06R\x06status\x88\x01\x01\x12C\n" +
	"\n" +
	"created_at\x18\b \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03H\aR\tcreatedAt\x88\x01\x01B\x05\n" +
	"\x03_idB\a\n" +
	"\x05_nameB\x0e\n" +
	"\f_descriptionB\a\n" +
	"\x05_typeB\x17\n" +
	"\x15_resolver_metadata_idB\n" +
	"\n" +
	"\b_api_keyB\t\n" +
	"\a_statusB\r\n" +
	"\v_created_at*n\n" +
	"\tAppStatus\x12\x1a\n" +
	"\x16APP_STATUS_UNSPECIFIED\x10\x00\x12\x15\n" +
	"\x11APP_STATUS_ACTIVE\x10\x01\x12\x16\n" +
	"\x12APP_STATUS_PENDING\x10\x02\x12\x16\n" +
	"\x12APP_STATUS_REVOKED\x10\x03*m\n" +
	"\aAppType\x12\x18\n" +
	"\x14APP_TYPE_UNSPECIFIED\x10\x00\x12\x16\n" +
	"\x12APP_TYPE_AGENT_A2A\x10\x01\x12\x17\n" +
	"\x13APP_TYPE_AGENT_OASF\x10\x02\x12\x17\n" +
	"\x13APP_TYPE_MCP_SERVER\x10\x03BhZfgithub.com/agntcy/identity-service/api/server/agntcy/identity/service/v1alpha1;identity_service_sdk_gob\x06proto3"

var (
	file_agntcy_identity_service_v1alpha1_app_proto_rawDescOnce sync.Once
	file_agntcy_identity_service_v1alpha1_app_proto_rawDescData []byte
)

func file_agntcy_identity_service_v1alpha1_app_proto_rawDescGZIP() []byte {
	file_agntcy_identity_service_v1alpha1_app_proto_rawDescOnce.Do(func() {
		file_agntcy_identity_service_v1alpha1_app_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_agntcy_identity_service_v1alpha1_app_proto_rawDesc), len(file_agntcy_identity_service_v1alpha1_app_proto_rawDesc)))
	})
	return file_agntcy_identity_service_v1alpha1_app_proto_rawDescData
}

var file_agntcy_identity_service_v1alpha1_app_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_agntcy_identity_service_v1alpha1_app_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_agntcy_identity_service_v1alpha1_app_proto_goTypes = []any{
	(AppStatus)(0),                // 0: agntcy.identity.service.v1alpha1.AppStatus
	(AppType)(0),                  // 1: agntcy.identity.service.v1alpha1.AppType
	(*App)(nil),                   // 2: agntcy.identity.service.v1alpha1.App
	(*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp
}
var file_agntcy_identity_service_v1alpha1_app_proto_depIdxs = []int32{
	1, // 0: agntcy.identity.service.v1alpha1.App.type:type_name -> agntcy.identity.service.v1alpha1.AppType
	0, // 1: agntcy.identity.service.v1alpha1.App.status:type_name -> agntcy.identity.service.v1alpha1.AppStatus
	3, // 2: agntcy.identity.service.v1alpha1.App.created_at:type_name -> google.protobuf.Timestamp
	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_app_proto_init() }
func file_agntcy_identity_service_v1alpha1_app_proto_init() {
	if File_agntcy_identity_service_v1alpha1_app_proto != nil {
		return
	}
	file_agntcy_identity_service_v1alpha1_app_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_app_proto_rawDesc), len(file_agntcy_identity_service_v1alpha1_app_proto_rawDesc)),
			NumEnums:      2,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_agntcy_identity_service_v1alpha1_app_proto_goTypes,
		DependencyIndexes: file_agntcy_identity_service_v1alpha1_app_proto_depIdxs,
		EnumInfos:         file_agntcy_identity_service_v1alpha1_app_proto_enumTypes,
		MessageInfos:      file_agntcy_identity_service_v1alpha1_app_proto_msgTypes,
	}.Build()
	File_agntcy_identity_service_v1alpha1_app_proto = out.File
	file_agntcy_identity_service_v1alpha1_app_proto_goTypes = nil
	file_agntcy_identity_service_v1alpha1_app_proto_depIdxs = nil
}
