admin.pb.go 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.26.0
  4. // protoc v3.15.8
  5. // source: linkedca/admin.proto
  6. package linkedca
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. type Admin_Type int32
  20. const (
  21. Admin_UNKNOWN Admin_Type = 0
  22. Admin_ADMIN Admin_Type = 1
  23. Admin_SUPER_ADMIN Admin_Type = 2
  24. )
  25. // Enum value maps for Admin_Type.
  26. var (
  27. Admin_Type_name = map[int32]string{
  28. 0: "UNKNOWN",
  29. 1: "ADMIN",
  30. 2: "SUPER_ADMIN",
  31. }
  32. Admin_Type_value = map[string]int32{
  33. "UNKNOWN": 0,
  34. "ADMIN": 1,
  35. "SUPER_ADMIN": 2,
  36. }
  37. )
  38. func (x Admin_Type) Enum() *Admin_Type {
  39. p := new(Admin_Type)
  40. *p = x
  41. return p
  42. }
  43. func (x Admin_Type) String() string {
  44. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  45. }
  46. func (Admin_Type) Descriptor() protoreflect.EnumDescriptor {
  47. return file_linkedca_admin_proto_enumTypes[0].Descriptor()
  48. }
  49. func (Admin_Type) Type() protoreflect.EnumType {
  50. return &file_linkedca_admin_proto_enumTypes[0]
  51. }
  52. func (x Admin_Type) Number() protoreflect.EnumNumber {
  53. return protoreflect.EnumNumber(x)
  54. }
  55. // Deprecated: Use Admin_Type.Descriptor instead.
  56. func (Admin_Type) EnumDescriptor() ([]byte, []int) {
  57. return file_linkedca_admin_proto_rawDescGZIP(), []int{0, 0}
  58. }
  59. type Admin struct {
  60. state protoimpl.MessageState
  61. sizeCache protoimpl.SizeCache
  62. unknownFields protoimpl.UnknownFields
  63. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  64. AuthorityId string `protobuf:"bytes,2,opt,name=authority_id,json=authorityId,proto3" json:"authority_id,omitempty"`
  65. Subject string `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject,omitempty"`
  66. ProvisionerId string `protobuf:"bytes,4,opt,name=provisioner_id,json=provisionerId,proto3" json:"provisioner_id,omitempty"`
  67. Type Admin_Type `protobuf:"varint,5,opt,name=type,proto3,enum=linkedca.Admin_Type" json:"type,omitempty"`
  68. }
  69. func (x *Admin) Reset() {
  70. *x = Admin{}
  71. if protoimpl.UnsafeEnabled {
  72. mi := &file_linkedca_admin_proto_msgTypes[0]
  73. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  74. ms.StoreMessageInfo(mi)
  75. }
  76. }
  77. func (x *Admin) String() string {
  78. return protoimpl.X.MessageStringOf(x)
  79. }
  80. func (*Admin) ProtoMessage() {}
  81. func (x *Admin) ProtoReflect() protoreflect.Message {
  82. mi := &file_linkedca_admin_proto_msgTypes[0]
  83. if protoimpl.UnsafeEnabled && x != nil {
  84. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  85. if ms.LoadMessageInfo() == nil {
  86. ms.StoreMessageInfo(mi)
  87. }
  88. return ms
  89. }
  90. return mi.MessageOf(x)
  91. }
  92. // Deprecated: Use Admin.ProtoReflect.Descriptor instead.
  93. func (*Admin) Descriptor() ([]byte, []int) {
  94. return file_linkedca_admin_proto_rawDescGZIP(), []int{0}
  95. }
  96. func (x *Admin) GetId() string {
  97. if x != nil {
  98. return x.Id
  99. }
  100. return ""
  101. }
  102. func (x *Admin) GetAuthorityId() string {
  103. if x != nil {
  104. return x.AuthorityId
  105. }
  106. return ""
  107. }
  108. func (x *Admin) GetSubject() string {
  109. if x != nil {
  110. return x.Subject
  111. }
  112. return ""
  113. }
  114. func (x *Admin) GetProvisionerId() string {
  115. if x != nil {
  116. return x.ProvisionerId
  117. }
  118. return ""
  119. }
  120. func (x *Admin) GetType() Admin_Type {
  121. if x != nil {
  122. return x.Type
  123. }
  124. return Admin_UNKNOWN
  125. }
  126. var File_linkedca_admin_proto protoreflect.FileDescriptor
  127. var file_linkedca_admin_proto_rawDesc = []byte{
  128. 0x0a, 0x14, 0x6c, 0x69, 0x6e, 0x6b, 0x65, 0x64, 0x63, 0x61, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e,
  129. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x6c, 0x69, 0x6e, 0x6b, 0x65, 0x64, 0x63, 0x61,
  130. 0x22, 0xd6, 0x01, 0x0a, 0x05, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
  131. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x75,
  132. 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
  133. 0x52, 0x0b, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x18, 0x0a,
  134. 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
  135. 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x72, 0x6f, 0x76, 0x69,
  136. 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
  137. 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x28,
  138. 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x6c,
  139. 0x69, 0x6e, 0x6b, 0x65, 0x64, 0x63, 0x61, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x79,
  140. 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x2f, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65,
  141. 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x09, 0x0a,
  142. 0x05, 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x53, 0x55, 0x50, 0x45,
  143. 0x52, 0x5f, 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x10, 0x02, 0x42, 0x2c, 0x5a, 0x2a, 0x67, 0x69, 0x74,
  144. 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6d, 0x61, 0x6c, 0x6c, 0x73, 0x74, 0x65,
  145. 0x70, 0x2f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x2f, 0x6c,
  146. 0x69, 0x6e, 0x6b, 0x65, 0x64, 0x63, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  147. }
  148. var (
  149. file_linkedca_admin_proto_rawDescOnce sync.Once
  150. file_linkedca_admin_proto_rawDescData = file_linkedca_admin_proto_rawDesc
  151. )
  152. func file_linkedca_admin_proto_rawDescGZIP() []byte {
  153. file_linkedca_admin_proto_rawDescOnce.Do(func() {
  154. file_linkedca_admin_proto_rawDescData = protoimpl.X.CompressGZIP(file_linkedca_admin_proto_rawDescData)
  155. })
  156. return file_linkedca_admin_proto_rawDescData
  157. }
  158. var file_linkedca_admin_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  159. var file_linkedca_admin_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  160. var file_linkedca_admin_proto_goTypes = []interface{}{
  161. (Admin_Type)(0), // 0: linkedca.Admin.Type
  162. (*Admin)(nil), // 1: linkedca.Admin
  163. }
  164. var file_linkedca_admin_proto_depIdxs = []int32{
  165. 0, // 0: linkedca.Admin.type:type_name -> linkedca.Admin.Type
  166. 1, // [1:1] is the sub-list for method output_type
  167. 1, // [1:1] is the sub-list for method input_type
  168. 1, // [1:1] is the sub-list for extension type_name
  169. 1, // [1:1] is the sub-list for extension extendee
  170. 0, // [0:1] is the sub-list for field type_name
  171. }
  172. func init() { file_linkedca_admin_proto_init() }
  173. func file_linkedca_admin_proto_init() {
  174. if File_linkedca_admin_proto != nil {
  175. return
  176. }
  177. if !protoimpl.UnsafeEnabled {
  178. file_linkedca_admin_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  179. switch v := v.(*Admin); i {
  180. case 0:
  181. return &v.state
  182. case 1:
  183. return &v.sizeCache
  184. case 2:
  185. return &v.unknownFields
  186. default:
  187. return nil
  188. }
  189. }
  190. }
  191. type x struct{}
  192. out := protoimpl.TypeBuilder{
  193. File: protoimpl.DescBuilder{
  194. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  195. RawDescriptor: file_linkedca_admin_proto_rawDesc,
  196. NumEnums: 1,
  197. NumMessages: 1,
  198. NumExtensions: 0,
  199. NumServices: 0,
  200. },
  201. GoTypes: file_linkedca_admin_proto_goTypes,
  202. DependencyIndexes: file_linkedca_admin_proto_depIdxs,
  203. EnumInfos: file_linkedca_admin_proto_enumTypes,
  204. MessageInfos: file_linkedca_admin_proto_msgTypes,
  205. }.Build()
  206. File_linkedca_admin_proto = out.File
  207. file_linkedca_admin_proto_rawDesc = nil
  208. file_linkedca_admin_proto_goTypes = nil
  209. file_linkedca_admin_proto_depIdxs = nil
  210. }