| 1 |
// Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 |
// versions: |
| 3 |
// protoc-gen-go v1.28.0 |
| 4 |
// protoc v3.21.10 |
| 5 |
// source: server.proto |
| 6 |
|
| 7 |
package proto |
| 8 |
|
| 9 |
import ( |
| 10 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 11 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 12 |
reflect "reflect" |
| 13 |
sync "sync" |
| 14 |
) |
| 15 |
|
| 16 |
const ( |
| 17 |
// Verify that this generated code is sufficiently up-to-date. |
| 18 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 19 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 20 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 21 |
) |
| 22 |
|
| 23 |
type LabelType int32 |
| 24 |
|
| 25 |
const ( |
| 26 |
LabelType_FOLDER LabelType = 0 |
| 27 |
LabelType_LABEL LabelType = 1 |
| 28 |
) |
| 29 |
|
| 30 |
// Enum value maps for LabelType. |
| 31 |
var ( |
| 32 |
LabelType_name = map[int32]string{ |
| 33 |
0: "FOLDER", |
| 34 |
1: "LABEL", |
| 35 |
} |
| 36 |
LabelType_value = map[string]int32{ |
| 37 |
"FOLDER": 0, |
| 38 |
"LABEL": 1, |
| 39 |
} |
| 40 |
) |
| 41 |
|
| 42 |
func (x LabelType) Enum() *LabelType { |
| 43 |
p := new(LabelType) |
| 44 |
*p = x |
| 45 |
return p |
| 46 |
} |
| 47 |
|
| 48 |
func (x LabelType) String() string { |
| 49 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 50 |
} |
| 51 |
|
| 52 |
func (LabelType) Descriptor() protoreflect.EnumDescriptor { |
| 53 |
return file_server_proto_enumTypes[0].Descriptor() |
| 54 |
} |
| 55 |
|
| 56 |
func (LabelType) Type() protoreflect.EnumType { |
| 57 |
return &file_server_proto_enumTypes[0] |
| 58 |
} |
| 59 |
|
| 60 |
func (x LabelType) Number() protoreflect.EnumNumber { |
| 61 |
return protoreflect.EnumNumber(x) |
| 62 |
} |
| 63 |
|
| 64 |
// Deprecated: Use LabelType.Descriptor instead. |
| 65 |
func (LabelType) EnumDescriptor() ([]byte, []int) { |
| 66 |
return file_server_proto_rawDescGZIP(), []int{0} |
| 67 |
} |
| 68 |
|
| 69 |
type GetInfoRequest struct { |
| 70 |
state protoimpl.MessageState |
| 71 |
sizeCache protoimpl.SizeCache |
| 72 |
unknownFields protoimpl.UnknownFields |
| 73 |
} |
| 74 |
|
| 75 |
func (x *GetInfoRequest) Reset() { |
| 76 |
*x = GetInfoRequest{} |
| 77 |
if protoimpl.UnsafeEnabled { |
| 78 |
mi := &file_server_proto_msgTypes[0] |
| 79 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 80 |
ms.StoreMessageInfo(mi) |
| 81 |
} |
| 82 |
} |
| 83 |
|
| 84 |
func (x *GetInfoRequest) String() string { |
| 85 |
return protoimpl.X.MessageStringOf(x) |
| 86 |
} |
| 87 |
|
| 88 |
func (*GetInfoRequest) ProtoMessage() {} |
| 89 |
|
| 90 |
func (x *GetInfoRequest) ProtoReflect() protoreflect.Message { |
| 91 |
mi := &file_server_proto_msgTypes[0] |
| 92 |
if protoimpl.UnsafeEnabled && x != nil { |
| 93 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 94 |
if ms.LoadMessageInfo() == nil { |
| 95 |
ms.StoreMessageInfo(mi) |
| 96 |
} |
| 97 |
return ms |
| 98 |
} |
| 99 |
return mi.MessageOf(x) |
| 100 |
} |
| 101 |
|
| 102 |
// Deprecated: Use GetInfoRequest.ProtoReflect.Descriptor instead. |
| 103 |
func (*GetInfoRequest) Descriptor() ([]byte, []int) { |
| 104 |
return file_server_proto_rawDescGZIP(), []int{0} |
| 105 |
} |
| 106 |
|
| 107 |
type GetInfoResponse struct { |
| 108 |
state protoimpl.MessageState |
| 109 |
sizeCache protoimpl.SizeCache |
| 110 |
unknownFields protoimpl.UnknownFields |
| 111 |
|
| 112 |
HostURL string `protobuf:"bytes,1,opt,name=hostURL,proto3" json:"hostURL,omitempty"` |
| 113 |
ProxyURL string `protobuf:"bytes,2,opt,name=proxyURL,proto3" json:"proxyURL,omitempty"` |
| 114 |
} |
| 115 |
|
| 116 |
func (x *GetInfoResponse) Reset() { |
| 117 |
*x = GetInfoResponse{} |
| 118 |
if protoimpl.UnsafeEnabled { |
| 119 |
mi := &file_server_proto_msgTypes[1] |
| 120 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 121 |
ms.StoreMessageInfo(mi) |
| 122 |
} |
| 123 |
} |
| 124 |
|
| 125 |
func (x *GetInfoResponse) String() string { |
| 126 |
return protoimpl.X.MessageStringOf(x) |
| 127 |
} |
| 128 |
|
| 129 |
func (*GetInfoResponse) ProtoMessage() {} |
| 130 |
|
| 131 |
func (x *GetInfoResponse) ProtoReflect() protoreflect.Message { |
| 132 |
mi := &file_server_proto_msgTypes[1] |
| 133 |
if protoimpl.UnsafeEnabled && x != nil { |
| 134 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 135 |
if ms.LoadMessageInfo() == nil { |
| 136 |
ms.StoreMessageInfo(mi) |
| 137 |
} |
| 138 |
return ms |
| 139 |
} |
| 140 |
return mi.MessageOf(x) |
| 141 |
} |
| 142 |
|
| 143 |
// Deprecated: Use GetInfoResponse.ProtoReflect.Descriptor instead. |
| 144 |
func (*GetInfoResponse) Descriptor() ([]byte, []int) { |
| 145 |
return file_server_proto_rawDescGZIP(), []int{1} |
| 146 |
} |
| 147 |
|
| 148 |
func (x *GetInfoResponse) GetHostURL() string { |
| 149 |
if x != nil { |
| 150 |
return x.HostURL |
| 151 |
} |
| 152 |
return "" |
| 153 |
} |
| 154 |
|
| 155 |
func (x *GetInfoResponse) GetProxyURL() string { |
| 156 |
if x != nil { |
| 157 |
return x.ProxyURL |
| 158 |
} |
| 159 |
return "" |
| 160 |
} |
| 161 |
|
| 162 |
type CreateUserRequest struct { |
| 163 |
state protoimpl.MessageState |
| 164 |
sizeCache protoimpl.SizeCache |
| 165 |
unknownFields protoimpl.UnknownFields |
| 166 |
|
| 167 |
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` |
| 168 |
Password []byte `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` |
| 169 |
} |
| 170 |
|
| 171 |
func (x *CreateUserRequest) Reset() { |
| 172 |
*x = CreateUserRequest{} |
| 173 |
if protoimpl.UnsafeEnabled { |
| 174 |
mi := &file_server_proto_msgTypes[2] |
| 175 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 176 |
ms.StoreMessageInfo(mi) |
| 177 |
} |
| 178 |
} |
| 179 |
|
| 180 |
func (x *CreateUserRequest) String() string { |
| 181 |
return protoimpl.X.MessageStringOf(x) |
| 182 |
} |
| 183 |
|
| 184 |
func (*CreateUserRequest) ProtoMessage() {} |
| 185 |
|
| 186 |
func (x *CreateUserRequest) ProtoReflect() protoreflect.Message { |
| 187 |
mi := &file_server_proto_msgTypes[2] |
| 188 |
if protoimpl.UnsafeEnabled && x != nil { |
| 189 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 190 |
if ms.LoadMessageInfo() == nil { |
| 191 |
ms.StoreMessageInfo(mi) |
| 192 |
} |
| 193 |
return ms |
| 194 |
} |
| 195 |
return mi.MessageOf(x) |
| 196 |
} |
| 197 |
|
| 198 |
// Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead. |
| 199 |
func (*CreateUserRequest) Descriptor() ([]byte, []int) { |
| 200 |
return file_server_proto_rawDescGZIP(), []int{2} |
| 201 |
} |
| 202 |
|
| 203 |
func (x *CreateUserRequest) GetUsername() string { |
| 204 |
if x != nil { |
| 205 |
return x.Username |
| 206 |
} |
| 207 |
return "" |
| 208 |
} |
| 209 |
|
| 210 |
func (x *CreateUserRequest) GetPassword() []byte { |
| 211 |
if x != nil { |
| 212 |
return x.Password |
| 213 |
} |
| 214 |
return nil |
| 215 |
} |
| 216 |
|
| 217 |
type CreateUserResponse struct { |
| 218 |
state protoimpl.MessageState |
| 219 |
sizeCache protoimpl.SizeCache |
| 220 |
unknownFields protoimpl.UnknownFields |
| 221 |
|
| 222 |
UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` |
| 223 |
AddrID string `protobuf:"bytes,2,opt,name=addrID,proto3" json:"addrID,omitempty"` |
| 224 |
} |
| 225 |
|
| 226 |
func (x *CreateUserResponse) Reset() { |
| 227 |
*x = CreateUserResponse{} |
| 228 |
if protoimpl.UnsafeEnabled { |
| 229 |
mi := &file_server_proto_msgTypes[3] |
| 230 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 231 |
ms.StoreMessageInfo(mi) |
| 232 |
} |
| 233 |
} |
| 234 |
|
| 235 |
func (x *CreateUserResponse) String() string { |
| 236 |
return protoimpl.X.MessageStringOf(x) |
| 237 |
} |
| 238 |
|
| 239 |
func (*CreateUserResponse) ProtoMessage() {} |
| 240 |
|
| 241 |
func (x *CreateUserResponse) ProtoReflect() protoreflect.Message { |
| 242 |
mi := &file_server_proto_msgTypes[3] |
| 243 |
if protoimpl.UnsafeEnabled && x != nil { |
| 244 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 245 |
if ms.LoadMessageInfo() == nil { |
| 246 |
ms.StoreMessageInfo(mi) |
| 247 |
} |
| 248 |
return ms |
| 249 |
} |
| 250 |
return mi.MessageOf(x) |
| 251 |
} |
| 252 |
|
| 253 |
// Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead. |
| 254 |
func (*CreateUserResponse) Descriptor() ([]byte, []int) { |
| 255 |
return file_server_proto_rawDescGZIP(), []int{3} |
| 256 |
} |
| 257 |
|
| 258 |
func (x *CreateUserResponse) GetUserID() string { |
| 259 |
if x != nil { |
| 260 |
return x.UserID |
| 261 |
} |
| 262 |
return "" |
| 263 |
} |
| 264 |
|
| 265 |
func (x *CreateUserResponse) GetAddrID() string { |
| 266 |
if x != nil { |
| 267 |
return x.AddrID |
| 268 |
} |
| 269 |
return "" |
| 270 |
} |
| 271 |
|
| 272 |
type RevokeUserRequest struct { |
| 273 |
state protoimpl.MessageState |
| 274 |
sizeCache protoimpl.SizeCache |
| 275 |
unknownFields protoimpl.UnknownFields |
| 276 |
|
| 277 |
UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` |
| 278 |
} |
| 279 |
|
| 280 |
func (x *RevokeUserRequest) Reset() { |
| 281 |
*x = RevokeUserRequest{} |
| 282 |
if protoimpl.UnsafeEnabled { |
| 283 |
mi := &file_server_proto_msgTypes[4] |
| 284 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 285 |
ms.StoreMessageInfo(mi) |
| 286 |
} |
| 287 |
} |
| 288 |
|
| 289 |
func (x *RevokeUserRequest) String() string { |
| 290 |
return protoimpl.X.MessageStringOf(x) |
| 291 |
} |
| 292 |
|
| 293 |
func (*RevokeUserRequest) ProtoMessage() {} |
| 294 |
|
| 295 |
func (x *RevokeUserRequest) ProtoReflect() protoreflect.Message { |
| 296 |
mi := &file_server_proto_msgTypes[4] |
| 297 |
if protoimpl.UnsafeEnabled && x != nil { |
| 298 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 299 |
if ms.LoadMessageInfo() == nil { |
| 300 |
ms.StoreMessageInfo(mi) |
| 301 |
} |
| 302 |
return ms |
| 303 |
} |
| 304 |
return mi.MessageOf(x) |
| 305 |
} |
| 306 |
|
| 307 |
// Deprecated: Use RevokeUserRequest.ProtoReflect.Descriptor instead. |
| 308 |
func (*RevokeUserRequest) Descriptor() ([]byte, []int) { |
| 309 |
return file_server_proto_rawDescGZIP(), []int{4} |
| 310 |
} |
| 311 |
|
| 312 |
func (x *RevokeUserRequest) GetUserID() string { |
| 313 |
if x != nil { |
| 314 |
return x.UserID |
| 315 |
} |
| 316 |
return "" |
| 317 |
} |
| 318 |
|
| 319 |
type RevokeUserResponse struct { |
| 320 |
state protoimpl.MessageState |
| 321 |
sizeCache protoimpl.SizeCache |
| 322 |
unknownFields protoimpl.UnknownFields |
| 323 |
} |
| 324 |
|
| 325 |
func (x *RevokeUserResponse) Reset() { |
| 326 |
*x = RevokeUserResponse{} |
| 327 |
if protoimpl.UnsafeEnabled { |
| 328 |
mi := &file_server_proto_msgTypes[5] |
| 329 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 330 |
ms.StoreMessageInfo(mi) |
| 331 |
} |
| 332 |
} |
| 333 |
|
| 334 |
func (x *RevokeUserResponse) String() string { |
| 335 |
return protoimpl.X.MessageStringOf(x) |
| 336 |
} |
| 337 |
|
| 338 |
func (*RevokeUserResponse) ProtoMessage() {} |
| 339 |
|
| 340 |
func (x *RevokeUserResponse) ProtoReflect() protoreflect.Message { |
| 341 |
mi := &file_server_proto_msgTypes[5] |
| 342 |
if protoimpl.UnsafeEnabled && x != nil { |
| 343 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 344 |
if ms.LoadMessageInfo() == nil { |
| 345 |
ms.StoreMessageInfo(mi) |
| 346 |
} |
| 347 |
return ms |
| 348 |
} |
| 349 |
return mi.MessageOf(x) |
| 350 |
} |
| 351 |
|
| 352 |
// Deprecated: Use RevokeUserResponse.ProtoReflect.Descriptor instead. |
| 353 |
func (*RevokeUserResponse) Descriptor() ([]byte, []int) { |
| 354 |
return file_server_proto_rawDescGZIP(), []int{5} |
| 355 |
} |
| 356 |
|
| 357 |
type CreateAddressRequest struct { |
| 358 |
state protoimpl.MessageState |
| 359 |
sizeCache protoimpl.SizeCache |
| 360 |
unknownFields protoimpl.UnknownFields |
| 361 |
|
| 362 |
UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` |
| 363 |
Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` |
| 364 |
Password []byte `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` |
| 365 |
} |
| 366 |
|
| 367 |
func (x *CreateAddressRequest) Reset() { |
| 368 |
*x = CreateAddressRequest{} |
| 369 |
if protoimpl.UnsafeEnabled { |
| 370 |
mi := &file_server_proto_msgTypes[6] |
| 371 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 372 |
ms.StoreMessageInfo(mi) |
| 373 |
} |
| 374 |
} |
| 375 |
|
| 376 |
func (x *CreateAddressRequest) String() string { |
| 377 |
return protoimpl.X.MessageStringOf(x) |
| 378 |
} |
| 379 |
|
| 380 |
func (*CreateAddressRequest) ProtoMessage() {} |
| 381 |
|
| 382 |
func (x *CreateAddressRequest) ProtoReflect() protoreflect.Message { |
| 383 |
mi := &file_server_proto_msgTypes[6] |
| 384 |
if protoimpl.UnsafeEnabled && x != nil { |
| 385 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 386 |
if ms.LoadMessageInfo() == nil { |
| 387 |
ms.StoreMessageInfo(mi) |
| 388 |
} |
| 389 |
return ms |
| 390 |
} |
| 391 |
return mi.MessageOf(x) |
| 392 |
} |
| 393 |
|
| 394 |
// Deprecated: Use CreateAddressRequest.ProtoReflect.Descriptor instead. |
| 395 |
func (*CreateAddressRequest) Descriptor() ([]byte, []int) { |
| 396 |
return file_server_proto_rawDescGZIP(), []int{6} |
| 397 |
} |
| 398 |
|
| 399 |
func (x *CreateAddressRequest) GetUserID() string { |
| 400 |
if x != nil { |
| 401 |
return x.UserID |
| 402 |
} |
| 403 |
return "" |
| 404 |
} |
| 405 |
|
| 406 |
func (x *CreateAddressRequest) GetEmail() string { |
| 407 |
if x != nil { |
| 408 |
return x.Email |
| 409 |
} |
| 410 |
return "" |
| 411 |
} |
| 412 |
|
| 413 |
func (x *CreateAddressRequest) GetPassword() []byte { |
| 414 |
if x != nil { |
| 415 |
return x.Password |
| 416 |
} |
| 417 |
return nil |
| 418 |
} |
| 419 |
|
| 420 |
type CreateAddressResponse struct { |
| 421 |
state protoimpl.MessageState |
| 422 |
sizeCache protoimpl.SizeCache |
| 423 |
unknownFields protoimpl.UnknownFields |
| 424 |
|
| 425 |
AddrID string `protobuf:"bytes,1,opt,name=addrID,proto3" json:"addrID,omitempty"` |
| 426 |
} |
| 427 |
|
| 428 |
func (x *CreateAddressResponse) Reset() { |
| 429 |
*x = CreateAddressResponse{} |
| 430 |
if protoimpl.UnsafeEnabled { |
| 431 |
mi := &file_server_proto_msgTypes[7] |
| 432 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 433 |
ms.StoreMessageInfo(mi) |
| 434 |
} |
| 435 |
} |
| 436 |
|
| 437 |
func (x *CreateAddressResponse) String() string { |
| 438 |
return protoimpl.X.MessageStringOf(x) |
| 439 |
} |
| 440 |
|
| 441 |
func (*CreateAddressResponse) ProtoMessage() {} |
| 442 |
|
| 443 |
func (x *CreateAddressResponse) ProtoReflect() protoreflect.Message { |
| 444 |
mi := &file_server_proto_msgTypes[7] |
| 445 |
if protoimpl.UnsafeEnabled && x != nil { |
| 446 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 447 |
if ms.LoadMessageInfo() == nil { |
| 448 |
ms.StoreMessageInfo(mi) |
| 449 |
} |
| 450 |
return ms |
| 451 |
} |
| 452 |
return mi.MessageOf(x) |
| 453 |
} |
| 454 |
|
| 455 |
// Deprecated: Use CreateAddressResponse.ProtoReflect.Descriptor instead. |
| 456 |
func (*CreateAddressResponse) Descriptor() ([]byte, []int) { |
| 457 |
return file_server_proto_rawDescGZIP(), []int{7} |
| 458 |
} |
| 459 |
|
| 460 |
func (x *CreateAddressResponse) GetAddrID() string { |
| 461 |
if x != nil { |
| 462 |
return x.AddrID |
| 463 |
} |
| 464 |
return "" |
| 465 |
} |
| 466 |
|
| 467 |
type RemoveAddressRequest struct { |
| 468 |
state protoimpl.MessageState |
| 469 |
sizeCache protoimpl.SizeCache |
| 470 |
unknownFields protoimpl.UnknownFields |
| 471 |
|
| 472 |
UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` |
| 473 |
AddrID string `protobuf:"bytes,2,opt,name=addrID,proto3" json:"addrID,omitempty"` |
| 474 |
} |
| 475 |
|
| 476 |
func (x *RemoveAddressRequest) Reset() { |
| 477 |
*x = RemoveAddressRequest{} |
| 478 |
if protoimpl.UnsafeEnabled { |
| 479 |
mi := &file_server_proto_msgTypes[8] |
| 480 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 481 |
ms.StoreMessageInfo(mi) |
| 482 |
} |
| 483 |
} |
| 484 |
|
| 485 |
func (x *RemoveAddressRequest) String() string { |
| 486 |
return protoimpl.X.MessageStringOf(x) |
| 487 |
} |
| 488 |
|
| 489 |
func (*RemoveAddressRequest) ProtoMessage() {} |
| 490 |
|
| 491 |
func (x *RemoveAddressRequest) ProtoReflect() protoreflect.Message { |
| 492 |
mi := &file_server_proto_msgTypes[8] |
| 493 |
if protoimpl.UnsafeEnabled && x != nil { |
| 494 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 495 |
if ms.LoadMessageInfo() == nil { |
| 496 |
ms.StoreMessageInfo(mi) |
| 497 |
} |
| 498 |
return ms |
| 499 |
} |
| 500 |
return mi.MessageOf(x) |
| 501 |
} |
| 502 |
|
| 503 |
// Deprecated: Use RemoveAddressRequest.ProtoReflect.Descriptor instead. |
| 504 |
func (*RemoveAddressRequest) Descriptor() ([]byte, []int) { |
| 505 |
return file_server_proto_rawDescGZIP(), []int{8} |
| 506 |
} |
| 507 |
|
| 508 |
func (x *RemoveAddressRequest) GetUserID() string { |
| 509 |
if x != nil { |
| 510 |
return x.UserID |
| 511 |
} |
| 512 |
return "" |
| 513 |
} |
| 514 |
|
| 515 |
func (x *RemoveAddressRequest) GetAddrID() string { |
| 516 |
if x != nil { |
| 517 |
return x.AddrID |
| 518 |
} |
| 519 |
return "" |
| 520 |
} |
| 521 |
|
| 522 |
type RemoveAddressResponse struct { |
| 523 |
state protoimpl.MessageState |
| 524 |
sizeCache protoimpl.SizeCache |
| 525 |
unknownFields protoimpl.UnknownFields |
| 526 |
} |
| 527 |
|
| 528 |
func (x *RemoveAddressResponse) Reset() { |
| 529 |
*x = RemoveAddressResponse{} |
| 530 |
if protoimpl.UnsafeEnabled { |
| 531 |
mi := &file_server_proto_msgTypes[9] |
| 532 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 533 |
ms.StoreMessageInfo(mi) |
| 534 |
} |
| 535 |
} |
| 536 |
|
| 537 |
func (x *RemoveAddressResponse) String() string { |
| 538 |
return protoimpl.X.MessageStringOf(x) |
| 539 |
} |
| 540 |
|
| 541 |
func (*RemoveAddressResponse) ProtoMessage() {} |
| 542 |
|
| 543 |
func (x *RemoveAddressResponse) ProtoReflect() protoreflect.Message { |
| 544 |
mi := &file_server_proto_msgTypes[9] |
| 545 |
if protoimpl.UnsafeEnabled && x != nil { |
| 546 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 547 |
if ms.LoadMessageInfo() == nil { |
| 548 |
ms.StoreMessageInfo(mi) |
| 549 |
} |
| 550 |
return ms |
| 551 |
} |
| 552 |
return mi.MessageOf(x) |
| 553 |
} |
| 554 |
|
| 555 |
// Deprecated: Use RemoveAddressResponse.ProtoReflect.Descriptor instead. |
| 556 |
func (*RemoveAddressResponse) Descriptor() ([]byte, []int) { |
| 557 |
return file_server_proto_rawDescGZIP(), []int{9} |
| 558 |
} |
| 559 |
|
| 560 |
type CreateLabelRequest struct { |
| 561 |
state protoimpl.MessageState |
| 562 |
sizeCache protoimpl.SizeCache |
| 563 |
unknownFields protoimpl.UnknownFields |
| 564 |
|
| 565 |
UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` |
| 566 |
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` |
| 567 |
ParentID string `protobuf:"bytes,3,opt,name=parentID,proto3" json:"parentID,omitempty"` |
| 568 |
Type LabelType `protobuf:"varint,4,opt,name=type,proto3,enum=proto.LabelType" json:"type,omitempty"` |
| 569 |
} |
| 570 |
|
| 571 |
func (x *CreateLabelRequest) Reset() { |
| 572 |
*x = CreateLabelRequest{} |
| 573 |
if protoimpl.UnsafeEnabled { |
| 574 |
mi := &file_server_proto_msgTypes[10] |
| 575 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 576 |
ms.StoreMessageInfo(mi) |
| 577 |
} |
| 578 |
} |
| 579 |
|
| 580 |
func (x *CreateLabelRequest) String() string { |
| 581 |
return protoimpl.X.MessageStringOf(x) |
| 582 |
} |
| 583 |
|
| 584 |
func (*CreateLabelRequest) ProtoMessage() {} |
| 585 |
|
| 586 |
func (x *CreateLabelRequest) ProtoReflect() protoreflect.Message { |
| 587 |
mi := &file_server_proto_msgTypes[10] |
| 588 |
if protoimpl.UnsafeEnabled && x != nil { |
| 589 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 590 |
if ms.LoadMessageInfo() == nil { |
| 591 |
ms.StoreMessageInfo(mi) |
| 592 |
} |
| 593 |
return ms |
| 594 |
} |
| 595 |
return mi.MessageOf(x) |
| 596 |
} |
| 597 |
|
| 598 |
// Deprecated: Use CreateLabelRequest.ProtoReflect.Descriptor instead. |
| 599 |
func (*CreateLabelRequest) Descriptor() ([]byte, []int) { |
| 600 |
return file_server_proto_rawDescGZIP(), []int{10} |
| 601 |
} |
| 602 |
|
| 603 |
func (x *CreateLabelRequest) GetUserID() string { |
| 604 |
if x != nil { |
| 605 |
return x.UserID |
| 606 |
} |
| 607 |
return "" |
| 608 |
} |
| 609 |
|
| 610 |
func (x *CreateLabelRequest) GetName() string { |
| 611 |
if x != nil { |
| 612 |
return x.Name |
| 613 |
} |
| 614 |
return "" |
| 615 |
} |
| 616 |
|
| 617 |
func (x *CreateLabelRequest) GetParentID() string { |
| 618 |
if x != nil { |
| 619 |
return x.ParentID |
| 620 |
} |
| 621 |
return "" |
| 622 |
} |
| 623 |
|
| 624 |
func (x *CreateLabelRequest) GetType() LabelType { |
| 625 |
if x != nil { |
| 626 |
return x.Type |
| 627 |
} |
| 628 |
return LabelType_FOLDER |
| 629 |
} |
| 630 |
|
| 631 |
type CreateLabelResponse struct { |
| 632 |
state protoimpl.MessageState |
| 633 |
sizeCache protoimpl.SizeCache |
| 634 |
unknownFields protoimpl.UnknownFields |
| 635 |
|
| 636 |
LabelID string `protobuf:"bytes,1,opt,name=labelID,proto3" json:"labelID,omitempty"` |
| 637 |
} |
| 638 |
|
| 639 |
func (x *CreateLabelResponse) Reset() { |
| 640 |
*x = CreateLabelResponse{} |
| 641 |
if protoimpl.UnsafeEnabled { |
| 642 |
mi := &file_server_proto_msgTypes[11] |
| 643 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 644 |
ms.StoreMessageInfo(mi) |
| 645 |
} |
| 646 |
} |
| 647 |
|
| 648 |
func (x *CreateLabelResponse) String() string { |
| 649 |
return protoimpl.X.MessageStringOf(x) |
| 650 |
} |
| 651 |
|
| 652 |
func (*CreateLabelResponse) ProtoMessage() {} |
| 653 |
|
| 654 |
func (x *CreateLabelResponse) ProtoReflect() protoreflect.Message { |
| 655 |
mi := &file_server_proto_msgTypes[11] |
| 656 |
if protoimpl.UnsafeEnabled && x != nil { |
| 657 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 658 |
if ms.LoadMessageInfo() == nil { |
| 659 |
ms.StoreMessageInfo(mi) |
| 660 |
} |
| 661 |
return ms |
| 662 |
} |
| 663 |
return mi.MessageOf(x) |
| 664 |
} |
| 665 |
|
| 666 |
// Deprecated: Use CreateLabelResponse.ProtoReflect.Descriptor instead. |
| 667 |
func (*CreateLabelResponse) Descriptor() ([]byte, []int) { |
| 668 |
return file_server_proto_rawDescGZIP(), []int{11} |
| 669 |
} |
| 670 |
|
| 671 |
func (x *CreateLabelResponse) GetLabelID() string { |
| 672 |
if x != nil { |
| 673 |
return x.LabelID |
| 674 |
} |
| 675 |
return "" |
| 676 |
} |
| 677 |
|
| 678 |
var File_server_proto protoreflect.FileDescriptor |
| 679 |
|
| 680 |
var file_server_proto_rawDesc = []byte{ |
| 681 |
0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, |
| 682 |
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x10, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, |
| 683 |
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x47, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x49, 0x6e, |
| 684 |
0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x68, 0x6f, |
| 685 |
0x73, 0x74, 0x55, 0x52, 0x4c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x68, 0x6f, 0x73, |
| 686 |
0x74, 0x55, 0x52, 0x4c, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x55, 0x52, 0x4c, |
| 687 |
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x55, 0x52, 0x4c, |
| 688 |
0x22, 0x4b, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, |
| 689 |
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, |
| 690 |
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, |
| 691 |
0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, |
| 692 |
0x01, 0x28, 0x0c, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x44, 0x0a, |
| 693 |
0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, |
| 694 |
0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44, 0x18, 0x01, 0x20, |
| 695 |
0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44, 0x12, 0x16, 0x0a, 0x06, 0x61, |
| 696 |
0x64, 0x64, 0x72, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x64, 0x64, |
| 697 |
0x72, 0x49, 0x44, 0x22, 0x2b, 0x0a, 0x11, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x55, 0x73, 0x65, |
| 698 |
0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, |
| 699 |
0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44, |
| 700 |
0x22, 0x14, 0x0a, 0x12, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, |
| 701 |
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x60, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, |
| 702 |
0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, |
| 703 |
0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, |
| 704 |
0x75, 0x73, 0x65, 0x72, 0x49, 0x44, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, |
| 705 |
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x1a, 0x0a, 0x08, |
| 706 |
0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, |
| 707 |
0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x2f, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, |
| 708 |
0x74, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, |
| 709 |
0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x64, 0x64, 0x72, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, |
| 710 |
0x09, 0x52, 0x06, 0x61, 0x64, 0x64, 0x72, 0x49, 0x44, 0x22, 0x46, 0x0a, 0x14, 0x52, 0x65, 0x6d, |
| 711 |
0x6f, 0x76, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, |
| 712 |
0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, |
| 713 |
0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x64, 0x64, |
| 714 |
0x72, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x64, 0x64, 0x72, 0x49, |
| 715 |
0x44, 0x22, 0x17, 0x0a, 0x15, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, |
| 716 |
0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x82, 0x01, 0x0a, 0x12, 0x43, |
| 717 |
0x72, 0x65, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, |
| 718 |
0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, |
| 719 |
0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, |
| 720 |
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, |
| 721 |
0x08, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x44, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, |
| 722 |
0x08, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x44, 0x12, 0x24, 0x0a, 0x04, 0x74, 0x79, 0x70, |
| 723 |
0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x10, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, |
| 724 |
0x4c, 0x61, 0x62, 0x65, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, |
| 725 |
0x2f, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x52, 0x65, |
| 726 |
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x49, |
| 727 |
0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x49, 0x44, |
| 728 |
0x2a, 0x22, 0x0a, 0x09, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0a, 0x0a, |
| 729 |
0x06, 0x46, 0x4f, 0x4c, 0x44, 0x45, 0x52, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x4c, 0x41, 0x42, |
| 730 |
0x45, 0x4c, 0x10, 0x01, 0x32, 0xa6, 0x03, 0x0a, 0x06, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, |
| 731 |
0x38, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x15, 0x2e, 0x70, 0x72, 0x6f, |
| 732 |
0x74, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, |
| 733 |
0x74, 0x1a, 0x16, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x66, |
| 734 |
0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x0a, 0x43, 0x72, 0x65, |
| 735 |
0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x12, 0x18, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, |
| 736 |
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, |
| 737 |
0x74, 0x1a, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, |
| 738 |
0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x0a, |
| 739 |
0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x55, 0x73, 0x65, 0x72, 0x12, 0x18, 0x2e, 0x70, 0x72, 0x6f, |
| 740 |
0x74, 0x6f, 0x2e, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, |
| 741 |
0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x76, |
| 742 |
0x6f, 0x6b, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, |
| 743 |
0x4a, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, |
| 744 |
0x12, 0x1b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, |
| 745 |
0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, |
| 746 |
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x64, 0x64, 0x72, |
| 747 |
0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x0d, 0x52, |
| 748 |
0x65, 0x6d, 0x6f, 0x76, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1b, 0x2e, 0x70, |
| 749 |
0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, |
| 750 |
0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x70, 0x72, 0x6f, 0x74, |
| 751 |
0x6f, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, |
| 752 |
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, |
| 753 |
0x65, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, |
| 754 |
0x72, 0x65, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, |
| 755 |
0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, |
| 756 |
0x4c, 0x61, 0x62, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x32, 0x5a, |
| 757 |
0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, 0x6f, 0x74, |
| 758 |
0x6f, 0x6e, 0x4d, 0x61, 0x69, 0x6c, 0x2f, 0x67, 0x6f, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x6e, |
| 759 |
0x2d, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x72, 0x6f, 0x74, |
| 760 |
0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 761 |
} |
| 762 |
|
| 763 |
var ( |
| 764 |
file_server_proto_rawDescOnce sync.Once |
| 765 |
file_server_proto_rawDescData = file_server_proto_rawDesc |
| 766 |
) |
| 767 |
|
| 768 |
func file_server_proto_rawDescGZIP() []byte { |
| 769 |
file_server_proto_rawDescOnce.Do(func() { |
| 770 |
file_server_proto_rawDescData = protoimpl.X.CompressGZIP(file_server_proto_rawDescData) |
| 771 |
}) |
| 772 |
return file_server_proto_rawDescData |
| 773 |
} |
| 774 |
|
| 775 |
var file_server_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| 776 |
var file_server_proto_msgTypes = make([]protoimpl.MessageInfo, 12) |
| 777 |
var file_server_proto_goTypes = []interface{}{ |
| 778 |
(LabelType)(0), // 0: proto.LabelType |
| 779 |
(*GetInfoRequest)(nil), // 1: proto.GetInfoRequest |
| 780 |
(*GetInfoResponse)(nil), // 2: proto.GetInfoResponse |
| 781 |
(*CreateUserRequest)(nil), // 3: proto.CreateUserRequest |
| 782 |
(*CreateUserResponse)(nil), // 4: proto.CreateUserResponse |
| 783 |
(*RevokeUserRequest)(nil), // 5: proto.RevokeUserRequest |
| 784 |
(*RevokeUserResponse)(nil), // 6: proto.RevokeUserResponse |
| 785 |
(*CreateAddressRequest)(nil), // 7: proto.CreateAddressRequest |
| 786 |
(*CreateAddressResponse)(nil), // 8: proto.CreateAddressResponse |
| 787 |
(*RemoveAddressRequest)(nil), // 9: proto.RemoveAddressRequest |
| 788 |
(*RemoveAddressResponse)(nil), // 10: proto.RemoveAddressResponse |
| 789 |
(*CreateLabelRequest)(nil), // 11: proto.CreateLabelRequest |
| 790 |
(*CreateLabelResponse)(nil), // 12: proto.CreateLabelResponse |
| 791 |
} |
| 792 |
var file_server_proto_depIdxs = []int32{ |
| 793 |
0, // 0: proto.CreateLabelRequest.type:type_name -> proto.LabelType |
| 794 |
1, // 1: proto.Server.GetInfo:input_type -> proto.GetInfoRequest |
| 795 |
3, // 2: proto.Server.CreateUser:input_type -> proto.CreateUserRequest |
| 796 |
5, // 3: proto.Server.RevokeUser:input_type -> proto.RevokeUserRequest |
| 797 |
7, // 4: proto.Server.CreateAddress:input_type -> proto.CreateAddressRequest |
| 798 |
9, // 5: proto.Server.RemoveAddress:input_type -> proto.RemoveAddressRequest |
| 799 |
11, // 6: proto.Server.CreateLabel:input_type -> proto.CreateLabelRequest |
| 800 |
2, // 7: proto.Server.GetInfo:output_type -> proto.GetInfoResponse |
| 801 |
4, // 8: proto.Server.CreateUser:output_type -> proto.CreateUserResponse |
| 802 |
6, // 9: proto.Server.RevokeUser:output_type -> proto.RevokeUserResponse |
| 803 |
8, // 10: proto.Server.CreateAddress:output_type -> proto.CreateAddressResponse |
| 804 |
10, // 11: proto.Server.RemoveAddress:output_type -> proto.RemoveAddressResponse |
| 805 |
12, // 12: proto.Server.CreateLabel:output_type -> proto.CreateLabelResponse |
| 806 |
7, // [7:13] is the sub-list for method output_type |
| 807 |
1, // [1:7] is the sub-list for method input_type |
| 808 |
1, // [1:1] is the sub-list for extension type_name |
| 809 |
1, // [1:1] is the sub-list for extension extendee |
| 810 |
0, // [0:1] is the sub-list for field type_name |
| 811 |
} |
| 812 |
|
| 813 |
func init() { file_server_proto_init() } |
| 814 |
func file_server_proto_init() { |
| 815 |
if File_server_proto != nil { |
| 816 |
return |
| 817 |
} |
| 818 |
if !protoimpl.UnsafeEnabled { |
| 819 |
file_server_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 820 |
switch v := v.(*GetInfoRequest); i { |
| 821 |
case 0: |
| 822 |
return &v.state |
| 823 |
case 1: |
| 824 |
return &v.sizeCache |
| 825 |
case 2: |
| 826 |
return &v.unknownFields |
| 827 |
default: |
| 828 |
return nil |
| 829 |
} |
| 830 |
} |
| 831 |
file_server_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| 832 |
switch v := v.(*GetInfoResponse); i { |
| 833 |
case 0: |
| 834 |
return &v.state |
| 835 |
case 1: |
| 836 |
return &v.sizeCache |
| 837 |
case 2: |
| 838 |
return &v.unknownFields |
| 839 |
default: |
| 840 |
return nil |
| 841 |
} |
| 842 |
} |
| 843 |
file_server_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
| 844 |
switch v := v.(*CreateUserRequest); i { |
| 845 |
case 0: |
| 846 |
return &v.state |
| 847 |
case 1: |
| 848 |
return &v.sizeCache |
| 849 |
case 2: |
| 850 |
return &v.unknownFields |
| 851 |
default: |
| 852 |
return nil |
| 853 |
} |
| 854 |
} |
| 855 |
file_server_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
| 856 |
switch v := v.(*CreateUserResponse); i { |
| 857 |
case 0: |
| 858 |
return &v.state |
| 859 |
case 1: |
| 860 |
return &v.sizeCache |
| 861 |
case 2: |
| 862 |
return &v.unknownFields |
| 863 |
default: |
| 864 |
return nil |
| 865 |
} |
| 866 |
} |
| 867 |
file_server_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { |
| 868 |
switch v := v.(*RevokeUserRequest); i { |
| 869 |
case 0: |
| 870 |
return &v.state |
| 871 |
case 1: |
| 872 |
return &v.sizeCache |
| 873 |
case 2: |
| 874 |
return &v.unknownFields |
| 875 |
default: |
| 876 |
return nil |
| 877 |
} |
| 878 |
} |
| 879 |
file_server_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { |
| 880 |
switch v := v.(*RevokeUserResponse); i { |
| 881 |
case 0: |
| 882 |
return &v.state |
| 883 |
case 1: |
| 884 |
return &v.sizeCache |
| 885 |
case 2: |
| 886 |
return &v.unknownFields |
| 887 |
default: |
| 888 |
return nil |
| 889 |
} |
| 890 |
} |
| 891 |
file_server_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { |
| 892 |
switch v := v.(*CreateAddressRequest); i { |
| 893 |
case 0: |
| 894 |
return &v.state |
| 895 |
case 1: |
| 896 |
return &v.sizeCache |
| 897 |
case 2: |
| 898 |
return &v.unknownFields |
| 899 |
default: |
| 900 |
return nil |
| 901 |
} |
| 902 |
} |
| 903 |
file_server_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { |
| 904 |
switch v := v.(*CreateAddressResponse); i { |
| 905 |
case 0: |
| 906 |
return &v.state |
| 907 |
case 1: |
| 908 |
return &v.sizeCache |
| 909 |
case 2: |
| 910 |
return &v.unknownFields |
| 911 |
default: |
| 912 |
return nil |
| 913 |
} |
| 914 |
} |
| 915 |
file_server_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { |
| 916 |
switch v := v.(*RemoveAddressRequest); i { |
| 917 |
case 0: |
| 918 |
return &v.state |
| 919 |
case 1: |
| 920 |
return &v.sizeCache |
| 921 |
case 2: |
| 922 |
return &v.unknownFields |
| 923 |
default: |
| 924 |
return nil |
| 925 |
} |
| 926 |
} |
| 927 |
file_server_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { |
| 928 |
switch v := v.(*RemoveAddressResponse); i { |
| 929 |
case 0: |
| 930 |
return &v.state |
| 931 |
case 1: |
| 932 |
return &v.sizeCache |
| 933 |
case 2: |
| 934 |
return &v.unknownFields |
| 935 |
default: |
| 936 |
return nil |
| 937 |
} |
| 938 |
} |
| 939 |
file_server_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { |
| 940 |
switch v := v.(*CreateLabelRequest); i { |
| 941 |
case 0: |
| 942 |
return &v.state |
| 943 |
case 1: |
| 944 |
return &v.sizeCache |
| 945 |
case 2: |
| 946 |
return &v.unknownFields |
| 947 |
default: |
| 948 |
return nil |
| 949 |
} |
| 950 |
} |
| 951 |
file_server_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { |
| 952 |
switch v := v.(*CreateLabelResponse); i { |
| 953 |
case 0: |
| 954 |
return &v.state |
| 955 |
case 1: |
| 956 |
return &v.sizeCache |
| 957 |
case 2: |
| 958 |
return &v.unknownFields |
| 959 |
default: |
| 960 |
return nil |
| 961 |
} |
| 962 |
} |
| 963 |
} |
| 964 |
type x struct{} |
| 965 |
out := protoimpl.TypeBuilder{ |
| 966 |
File: protoimpl.DescBuilder{ |
| 967 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 968 |
RawDescriptor: file_server_proto_rawDesc, |
| 969 |
NumEnums: 1, |
| 970 |
NumMessages: 12, |
| 971 |
NumExtensions: 0, |
| 972 |
NumServices: 1, |
| 973 |
}, |
| 974 |
GoTypes: file_server_proto_goTypes, |
| 975 |
DependencyIndexes: file_server_proto_depIdxs, |
| 976 |
EnumInfos: file_server_proto_enumTypes, |
| 977 |
MessageInfos: file_server_proto_msgTypes, |
| 978 |
}.Build() |
| 979 |
File_server_proto = out.File |
| 980 |
file_server_proto_rawDesc = nil |
| 981 |
file_server_proto_goTypes = nil |
| 982 |
file_server_proto_depIdxs = nil |
| 983 |
} |