github.com/infraboard/keyauth@v0.8.1/apps/endpoint/endpoint.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.27.1 4 // protoc v3.19.1 5 // source: apps/endpoint/pb/endpoint.proto 6 7 package endpoint 8 9 import ( 10 http "github.com/infraboard/mcube/pb/http" 11 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 12 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 13 reflect "reflect" 14 sync "sync" 15 ) 16 17 const ( 18 // Verify that this generated code is sufficiently up-to-date. 19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 20 // Verify that runtime/protoimpl is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 22 ) 23 24 // Endpoint Service's features 25 type Endpoint struct { 26 state protoimpl.MessageState 27 sizeCache protoimpl.SizeCache 28 unknownFields protoimpl.UnknownFields 29 30 // 端点名称 31 // @gotags: bson:"_id" json:"id" validate:"required,lte=64" 32 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id" validate:"required,lte=64"` 33 // 创建时间 34 // @gotags: bson:"create_at" json:"create_at,omitempty" 35 CreateAt int64 `protobuf:"varint,2,opt,name=create_at,json=createAt,proto3" json:"create_at,omitempty" bson:"create_at"` 36 // 更新时间 37 // @gotags: bson:"update_at" json:"update_at,omitempty" 38 UpdateAt int64 `protobuf:"varint,3,opt,name=update_at,json=updateAt,proto3" json:"update_at,omitempty" bson:"update_at"` 39 // 该功能属于那个服务 40 // @gotags: bson:"service_id" json:"service_id,omitempty" validate:"required,lte=64" 41 ServiceId string `protobuf:"bytes,4,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty" bson:"service_id" validate:"required,lte=64"` 42 // 服务那个版本的功能 43 // @gotags: bson:"version" json:"version,omitempty" validate:"required,lte=64" 44 Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty" bson:"version" validate:"required,lte=64"` 45 // 路由条目信息 46 // @gotags: bson:"entry" json:"entry" validate:"required" 47 Entry *http.Entry `protobuf:"bytes,6,opt,name=entry,proto3" json:"entry" bson:"entry" validate:"required"` 48 } 49 50 func (x *Endpoint) Reset() { 51 *x = Endpoint{} 52 if protoimpl.UnsafeEnabled { 53 mi := &file_apps_endpoint_pb_endpoint_proto_msgTypes[0] 54 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 55 ms.StoreMessageInfo(mi) 56 } 57 } 58 59 func (x *Endpoint) String() string { 60 return protoimpl.X.MessageStringOf(x) 61 } 62 63 func (*Endpoint) ProtoMessage() {} 64 65 func (x *Endpoint) ProtoReflect() protoreflect.Message { 66 mi := &file_apps_endpoint_pb_endpoint_proto_msgTypes[0] 67 if protoimpl.UnsafeEnabled && x != nil { 68 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 69 if ms.LoadMessageInfo() == nil { 70 ms.StoreMessageInfo(mi) 71 } 72 return ms 73 } 74 return mi.MessageOf(x) 75 } 76 77 // Deprecated: Use Endpoint.ProtoReflect.Descriptor instead. 78 func (*Endpoint) Descriptor() ([]byte, []int) { 79 return file_apps_endpoint_pb_endpoint_proto_rawDescGZIP(), []int{0} 80 } 81 82 func (x *Endpoint) GetId() string { 83 if x != nil { 84 return x.Id 85 } 86 return "" 87 } 88 89 func (x *Endpoint) GetCreateAt() int64 { 90 if x != nil { 91 return x.CreateAt 92 } 93 return 0 94 } 95 96 func (x *Endpoint) GetUpdateAt() int64 { 97 if x != nil { 98 return x.UpdateAt 99 } 100 return 0 101 } 102 103 func (x *Endpoint) GetServiceId() string { 104 if x != nil { 105 return x.ServiceId 106 } 107 return "" 108 } 109 110 func (x *Endpoint) GetVersion() string { 111 if x != nil { 112 return x.Version 113 } 114 return "" 115 } 116 117 func (x *Endpoint) GetEntry() *http.Entry { 118 if x != nil { 119 return x.Entry 120 } 121 return nil 122 } 123 124 type Set struct { 125 state protoimpl.MessageState 126 sizeCache protoimpl.SizeCache 127 unknownFields protoimpl.UnknownFields 128 129 // @gotags: bson:"total" json:"total" 130 Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total" bson:"total"` 131 // @gotags: bson:"items" json:"items" 132 Items []*Endpoint `protobuf:"bytes,2,rep,name=items,proto3" json:"items" bson:"items"` 133 } 134 135 func (x *Set) Reset() { 136 *x = Set{} 137 if protoimpl.UnsafeEnabled { 138 mi := &file_apps_endpoint_pb_endpoint_proto_msgTypes[1] 139 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 140 ms.StoreMessageInfo(mi) 141 } 142 } 143 144 func (x *Set) String() string { 145 return protoimpl.X.MessageStringOf(x) 146 } 147 148 func (*Set) ProtoMessage() {} 149 150 func (x *Set) ProtoReflect() protoreflect.Message { 151 mi := &file_apps_endpoint_pb_endpoint_proto_msgTypes[1] 152 if protoimpl.UnsafeEnabled && x != nil { 153 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 154 if ms.LoadMessageInfo() == nil { 155 ms.StoreMessageInfo(mi) 156 } 157 return ms 158 } 159 return mi.MessageOf(x) 160 } 161 162 // Deprecated: Use Set.ProtoReflect.Descriptor instead. 163 func (*Set) Descriptor() ([]byte, []int) { 164 return file_apps_endpoint_pb_endpoint_proto_rawDescGZIP(), []int{1} 165 } 166 167 func (x *Set) GetTotal() int64 { 168 if x != nil { 169 return x.Total 170 } 171 return 0 172 } 173 174 func (x *Set) GetItems() []*Endpoint { 175 if x != nil { 176 return x.Items 177 } 178 return nil 179 } 180 181 var File_apps_endpoint_pb_endpoint_proto protoreflect.FileDescriptor 182 183 var file_apps_endpoint_pb_endpoint_proto_rawDesc = []byte{ 184 0x0a, 0x1f, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2f, 185 0x70, 0x62, 0x2f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 186 0x6f, 0x12, 0x1b, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 187 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x1a, 0x2f, 188 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x69, 0x6e, 0x66, 0x72, 0x61, 189 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2f, 0x6d, 0x63, 0x75, 0x62, 0x65, 0x2f, 0x70, 0x62, 0x2f, 0x68, 190 0x74, 0x74, 0x70, 0x2f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 191 0xc1, 0x01, 0x0a, 0x08, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 192 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 193 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 194 0x08, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x70, 0x64, 195 0x61, 0x74, 0x65, 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x75, 0x70, 196 0x64, 0x61, 0x74, 0x65, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 197 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x72, 0x76, 198 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 199 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 200 0x32, 0x0a, 0x05, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 201 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6d, 0x63, 0x75, 0x62, 202 0x65, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x65, 0x6e, 203 0x74, 0x72, 0x79, 0x22, 0x58, 0x0a, 0x03, 0x53, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 204 0x74, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 205 0x12, 0x3b, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 206 0x25, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 207 0x61, 0x75, 0x74, 0x68, 0x2e, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x45, 0x6e, 208 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x42, 0x2d, 0x5a, 209 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x69, 0x6e, 0x66, 0x72, 210 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2f, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x61, 211 0x70, 0x70, 0x73, 0x2f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 212 0x6f, 0x74, 0x6f, 0x33, 213 } 214 215 var ( 216 file_apps_endpoint_pb_endpoint_proto_rawDescOnce sync.Once 217 file_apps_endpoint_pb_endpoint_proto_rawDescData = file_apps_endpoint_pb_endpoint_proto_rawDesc 218 ) 219 220 func file_apps_endpoint_pb_endpoint_proto_rawDescGZIP() []byte { 221 file_apps_endpoint_pb_endpoint_proto_rawDescOnce.Do(func() { 222 file_apps_endpoint_pb_endpoint_proto_rawDescData = protoimpl.X.CompressGZIP(file_apps_endpoint_pb_endpoint_proto_rawDescData) 223 }) 224 return file_apps_endpoint_pb_endpoint_proto_rawDescData 225 } 226 227 var file_apps_endpoint_pb_endpoint_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 228 var file_apps_endpoint_pb_endpoint_proto_goTypes = []interface{}{ 229 (*Endpoint)(nil), // 0: infraboard.keyauth.endpoint.Endpoint 230 (*Set)(nil), // 1: infraboard.keyauth.endpoint.Set 231 (*http.Entry)(nil), // 2: infraboard.mcube.http.Entry 232 } 233 var file_apps_endpoint_pb_endpoint_proto_depIdxs = []int32{ 234 2, // 0: infraboard.keyauth.endpoint.Endpoint.entry:type_name -> infraboard.mcube.http.Entry 235 0, // 1: infraboard.keyauth.endpoint.Set.items:type_name -> infraboard.keyauth.endpoint.Endpoint 236 2, // [2:2] is the sub-list for method output_type 237 2, // [2:2] is the sub-list for method input_type 238 2, // [2:2] is the sub-list for extension type_name 239 2, // [2:2] is the sub-list for extension extendee 240 0, // [0:2] is the sub-list for field type_name 241 } 242 243 func init() { file_apps_endpoint_pb_endpoint_proto_init() } 244 func file_apps_endpoint_pb_endpoint_proto_init() { 245 if File_apps_endpoint_pb_endpoint_proto != nil { 246 return 247 } 248 if !protoimpl.UnsafeEnabled { 249 file_apps_endpoint_pb_endpoint_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 250 switch v := v.(*Endpoint); i { 251 case 0: 252 return &v.state 253 case 1: 254 return &v.sizeCache 255 case 2: 256 return &v.unknownFields 257 default: 258 return nil 259 } 260 } 261 file_apps_endpoint_pb_endpoint_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 262 switch v := v.(*Set); i { 263 case 0: 264 return &v.state 265 case 1: 266 return &v.sizeCache 267 case 2: 268 return &v.unknownFields 269 default: 270 return nil 271 } 272 } 273 } 274 type x struct{} 275 out := protoimpl.TypeBuilder{ 276 File: protoimpl.DescBuilder{ 277 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 278 RawDescriptor: file_apps_endpoint_pb_endpoint_proto_rawDesc, 279 NumEnums: 0, 280 NumMessages: 2, 281 NumExtensions: 0, 282 NumServices: 0, 283 }, 284 GoTypes: file_apps_endpoint_pb_endpoint_proto_goTypes, 285 DependencyIndexes: file_apps_endpoint_pb_endpoint_proto_depIdxs, 286 MessageInfos: file_apps_endpoint_pb_endpoint_proto_msgTypes, 287 }.Build() 288 File_apps_endpoint_pb_endpoint_proto = out.File 289 file_apps_endpoint_pb_endpoint_proto_rawDesc = nil 290 file_apps_endpoint_pb_endpoint_proto_goTypes = nil 291 file_apps_endpoint_pb_endpoint_proto_depIdxs = nil 292 }