go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/common/data/text/templateproto/template.pb.go (about) 1 // Copyright 2016 The LUCI Authors. All rights reserved. 2 // Use of this source code is governed under the Apache License, Version 2.0 3 // that can be found in the LICENSE file. 4 5 // Code generated by protoc-gen-go. DO NOT EDIT. 6 // versions: 7 // protoc-gen-go v1.31.0 8 // protoc v3.21.7 9 // source: go.chromium.org/luci/common/data/text/templateproto/template.proto 10 11 package templateproto 12 13 import ( 14 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 15 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 16 emptypb "google.golang.org/protobuf/types/known/emptypb" 17 reflect "reflect" 18 sync "sync" 19 ) 20 21 const ( 22 // Verify that this generated code is sufficiently up-to-date. 23 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 24 // Verify that runtime/protoimpl is sufficiently up-to-date. 25 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 26 ) 27 28 // Value defines a specific value for a parameter, and is used at Template 29 // expansion time. 30 type Value struct { 31 state protoimpl.MessageState 32 sizeCache protoimpl.SizeCache 33 unknownFields protoimpl.UnknownFields 34 35 // Types that are assignable to Value: 36 // 37 // *Value_Int 38 // *Value_Uint 39 // *Value_Float 40 // *Value_Bool 41 // *Value_Str 42 // *Value_Bytes 43 // *Value_Object 44 // *Value_Array 45 // *Value_Null 46 Value isValue_Value `protobuf_oneof:"value"` 47 } 48 49 func (x *Value) Reset() { 50 *x = Value{} 51 if protoimpl.UnsafeEnabled { 52 mi := &file_go_chromium_org_luci_common_data_text_templateproto_template_proto_msgTypes[0] 53 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 54 ms.StoreMessageInfo(mi) 55 } 56 } 57 58 func (x *Value) String() string { 59 return protoimpl.X.MessageStringOf(x) 60 } 61 62 func (*Value) ProtoMessage() {} 63 64 func (x *Value) ProtoReflect() protoreflect.Message { 65 mi := &file_go_chromium_org_luci_common_data_text_templateproto_template_proto_msgTypes[0] 66 if protoimpl.UnsafeEnabled && x != nil { 67 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 68 if ms.LoadMessageInfo() == nil { 69 ms.StoreMessageInfo(mi) 70 } 71 return ms 72 } 73 return mi.MessageOf(x) 74 } 75 76 // Deprecated: Use Value.ProtoReflect.Descriptor instead. 77 func (*Value) Descriptor() ([]byte, []int) { 78 return file_go_chromium_org_luci_common_data_text_templateproto_template_proto_rawDescGZIP(), []int{0} 79 } 80 81 func (m *Value) GetValue() isValue_Value { 82 if m != nil { 83 return m.Value 84 } 85 return nil 86 } 87 88 func (x *Value) GetInt() int64 { 89 if x, ok := x.GetValue().(*Value_Int); ok { 90 return x.Int 91 } 92 return 0 93 } 94 95 func (x *Value) GetUint() uint64 { 96 if x, ok := x.GetValue().(*Value_Uint); ok { 97 return x.Uint 98 } 99 return 0 100 } 101 102 func (x *Value) GetFloat() float64 { 103 if x, ok := x.GetValue().(*Value_Float); ok { 104 return x.Float 105 } 106 return 0 107 } 108 109 func (x *Value) GetBool() bool { 110 if x, ok := x.GetValue().(*Value_Bool); ok { 111 return x.Bool 112 } 113 return false 114 } 115 116 func (x *Value) GetStr() string { 117 if x, ok := x.GetValue().(*Value_Str); ok { 118 return x.Str 119 } 120 return "" 121 } 122 123 func (x *Value) GetBytes() []byte { 124 if x, ok := x.GetValue().(*Value_Bytes); ok { 125 return x.Bytes 126 } 127 return nil 128 } 129 130 func (x *Value) GetObject() string { 131 if x, ok := x.GetValue().(*Value_Object); ok { 132 return x.Object 133 } 134 return "" 135 } 136 137 func (x *Value) GetArray() string { 138 if x, ok := x.GetValue().(*Value_Array); ok { 139 return x.Array 140 } 141 return "" 142 } 143 144 func (x *Value) GetNull() *emptypb.Empty { 145 if x, ok := x.GetValue().(*Value_Null); ok { 146 return x.Null 147 } 148 return nil 149 } 150 151 type isValue_Value interface { 152 isValue_Value() 153 } 154 155 type Value_Int struct { 156 Int int64 `protobuf:"varint,1,opt,name=int,proto3,oneof"` 157 } 158 159 type Value_Uint struct { 160 Uint uint64 `protobuf:"varint,2,opt,name=uint,proto3,oneof"` 161 } 162 163 type Value_Float struct { 164 Float float64 `protobuf:"fixed64,3,opt,name=float,proto3,oneof"` 165 } 166 167 type Value_Bool struct { 168 Bool bool `protobuf:"varint,4,opt,name=bool,proto3,oneof"` 169 } 170 171 type Value_Str struct { 172 Str string `protobuf:"bytes,5,opt,name=str,proto3,oneof"` 173 } 174 175 type Value_Bytes struct { 176 Bytes []byte `protobuf:"bytes,6,opt,name=bytes,proto3,oneof"` 177 } 178 179 type Value_Object struct { 180 Object string `protobuf:"bytes,7,opt,name=object,proto3,oneof"` 181 } 182 183 type Value_Array struct { 184 Array string `protobuf:"bytes,8,opt,name=array,proto3,oneof"` 185 } 186 187 type Value_Null struct { 188 Null *emptypb.Empty `protobuf:"bytes,9,opt,name=null,proto3,oneof"` 189 } 190 191 func (*Value_Int) isValue_Value() {} 192 193 func (*Value_Uint) isValue_Value() {} 194 195 func (*Value_Float) isValue_Value() {} 196 197 func (*Value_Bool) isValue_Value() {} 198 199 func (*Value_Str) isValue_Value() {} 200 201 func (*Value_Bytes) isValue_Value() {} 202 203 func (*Value_Object) isValue_Value() {} 204 205 func (*Value_Array) isValue_Value() {} 206 207 func (*Value_Null) isValue_Value() {} 208 209 type Schema struct { 210 state protoimpl.MessageState 211 sizeCache protoimpl.SizeCache 212 unknownFields protoimpl.UnknownFields 213 214 // Types that are assignable to Schema: 215 // 216 // *Schema_Int 217 // *Schema_Uint 218 // *Schema_Float 219 // *Schema_Bool 220 // *Schema_Str 221 // *Schema_Bytes 222 // *Schema_Enum 223 // *Schema_Object 224 // *Schema_Array 225 Schema isSchema_Schema `protobuf_oneof:"schema"` 226 } 227 228 func (x *Schema) Reset() { 229 *x = Schema{} 230 if protoimpl.UnsafeEnabled { 231 mi := &file_go_chromium_org_luci_common_data_text_templateproto_template_proto_msgTypes[1] 232 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 233 ms.StoreMessageInfo(mi) 234 } 235 } 236 237 func (x *Schema) String() string { 238 return protoimpl.X.MessageStringOf(x) 239 } 240 241 func (*Schema) ProtoMessage() {} 242 243 func (x *Schema) ProtoReflect() protoreflect.Message { 244 mi := &file_go_chromium_org_luci_common_data_text_templateproto_template_proto_msgTypes[1] 245 if protoimpl.UnsafeEnabled && x != nil { 246 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 247 if ms.LoadMessageInfo() == nil { 248 ms.StoreMessageInfo(mi) 249 } 250 return ms 251 } 252 return mi.MessageOf(x) 253 } 254 255 // Deprecated: Use Schema.ProtoReflect.Descriptor instead. 256 func (*Schema) Descriptor() ([]byte, []int) { 257 return file_go_chromium_org_luci_common_data_text_templateproto_template_proto_rawDescGZIP(), []int{1} 258 } 259 260 func (m *Schema) GetSchema() isSchema_Schema { 261 if m != nil { 262 return m.Schema 263 } 264 return nil 265 } 266 267 func (x *Schema) GetInt() *Schema_Atom { 268 if x, ok := x.GetSchema().(*Schema_Int); ok { 269 return x.Int 270 } 271 return nil 272 } 273 274 func (x *Schema) GetUint() *Schema_Atom { 275 if x, ok := x.GetSchema().(*Schema_Uint); ok { 276 return x.Uint 277 } 278 return nil 279 } 280 281 func (x *Schema) GetFloat() *Schema_Atom { 282 if x, ok := x.GetSchema().(*Schema_Float); ok { 283 return x.Float 284 } 285 return nil 286 } 287 288 func (x *Schema) GetBool() *Schema_Atom { 289 if x, ok := x.GetSchema().(*Schema_Bool); ok { 290 return x.Bool 291 } 292 return nil 293 } 294 295 func (x *Schema) GetStr() *Schema_Sequence { 296 if x, ok := x.GetSchema().(*Schema_Str); ok { 297 return x.Str 298 } 299 return nil 300 } 301 302 func (x *Schema) GetBytes() *Schema_Sequence { 303 if x, ok := x.GetSchema().(*Schema_Bytes); ok { 304 return x.Bytes 305 } 306 return nil 307 } 308 309 func (x *Schema) GetEnum() *Schema_Set { 310 if x, ok := x.GetSchema().(*Schema_Enum); ok { 311 return x.Enum 312 } 313 return nil 314 } 315 316 func (x *Schema) GetObject() *Schema_JSON { 317 if x, ok := x.GetSchema().(*Schema_Object); ok { 318 return x.Object 319 } 320 return nil 321 } 322 323 func (x *Schema) GetArray() *Schema_JSON { 324 if x, ok := x.GetSchema().(*Schema_Array); ok { 325 return x.Array 326 } 327 return nil 328 } 329 330 type isSchema_Schema interface { 331 isSchema_Schema() 332 } 333 334 type Schema_Int struct { 335 Int *Schema_Atom `protobuf:"bytes,1,opt,name=int,proto3,oneof"` 336 } 337 338 type Schema_Uint struct { 339 Uint *Schema_Atom `protobuf:"bytes,2,opt,name=uint,proto3,oneof"` 340 } 341 342 type Schema_Float struct { 343 Float *Schema_Atom `protobuf:"bytes,3,opt,name=float,proto3,oneof"` 344 } 345 346 type Schema_Bool struct { 347 Bool *Schema_Atom `protobuf:"bytes,4,opt,name=bool,proto3,oneof"` 348 } 349 350 type Schema_Str struct { 351 Str *Schema_Sequence `protobuf:"bytes,5,opt,name=str,proto3,oneof"` 352 } 353 354 type Schema_Bytes struct { 355 Bytes *Schema_Sequence `protobuf:"bytes,6,opt,name=bytes,proto3,oneof"` 356 } 357 358 type Schema_Enum struct { 359 Enum *Schema_Set `protobuf:"bytes,7,opt,name=enum,proto3,oneof"` // populated with Value_Str 360 } 361 362 type Schema_Object struct { 363 Object *Schema_JSON `protobuf:"bytes,8,opt,name=object,proto3,oneof"` 364 } 365 366 type Schema_Array struct { 367 Array *Schema_JSON `protobuf:"bytes,9,opt,name=array,proto3,oneof"` 368 } 369 370 func (*Schema_Int) isSchema_Schema() {} 371 372 func (*Schema_Uint) isSchema_Schema() {} 373 374 func (*Schema_Float) isSchema_Schema() {} 375 376 func (*Schema_Bool) isSchema_Schema() {} 377 378 func (*Schema_Str) isSchema_Schema() {} 379 380 func (*Schema_Bytes) isSchema_Schema() {} 381 382 func (*Schema_Enum) isSchema_Schema() {} 383 384 func (*Schema_Object) isSchema_Schema() {} 385 386 func (*Schema_Array) isSchema_Schema() {} 387 388 // File represents a file full of template definitions. 389 type File struct { 390 state protoimpl.MessageState 391 sizeCache protoimpl.SizeCache 392 unknownFields protoimpl.UnknownFields 393 394 Template map[string]*File_Template `protobuf:"bytes,1,rep,name=template,proto3" json:"template,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 395 } 396 397 func (x *File) Reset() { 398 *x = File{} 399 if protoimpl.UnsafeEnabled { 400 mi := &file_go_chromium_org_luci_common_data_text_templateproto_template_proto_msgTypes[2] 401 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 402 ms.StoreMessageInfo(mi) 403 } 404 } 405 406 func (x *File) String() string { 407 return protoimpl.X.MessageStringOf(x) 408 } 409 410 func (*File) ProtoMessage() {} 411 412 func (x *File) ProtoReflect() protoreflect.Message { 413 mi := &file_go_chromium_org_luci_common_data_text_templateproto_template_proto_msgTypes[2] 414 if protoimpl.UnsafeEnabled && x != nil { 415 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 416 if ms.LoadMessageInfo() == nil { 417 ms.StoreMessageInfo(mi) 418 } 419 return ms 420 } 421 return mi.MessageOf(x) 422 } 423 424 // Deprecated: Use File.ProtoReflect.Descriptor instead. 425 func (*File) Descriptor() ([]byte, []int) { 426 return file_go_chromium_org_luci_common_data_text_templateproto_template_proto_rawDescGZIP(), []int{2} 427 } 428 429 func (x *File) GetTemplate() map[string]*File_Template { 430 if x != nil { 431 return x.Template 432 } 433 return nil 434 } 435 436 type Specifier struct { 437 state protoimpl.MessageState 438 sizeCache protoimpl.SizeCache 439 unknownFields protoimpl.UnknownFields 440 441 TemplateName string `protobuf:"bytes,1,opt,name=template_name,json=templateName,proto3" json:"template_name,omitempty"` 442 Params map[string]*Value `protobuf:"bytes,2,rep,name=params,proto3" json:"params,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 443 } 444 445 func (x *Specifier) Reset() { 446 *x = Specifier{} 447 if protoimpl.UnsafeEnabled { 448 mi := &file_go_chromium_org_luci_common_data_text_templateproto_template_proto_msgTypes[3] 449 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 450 ms.StoreMessageInfo(mi) 451 } 452 } 453 454 func (x *Specifier) String() string { 455 return protoimpl.X.MessageStringOf(x) 456 } 457 458 func (*Specifier) ProtoMessage() {} 459 460 func (x *Specifier) ProtoReflect() protoreflect.Message { 461 mi := &file_go_chromium_org_luci_common_data_text_templateproto_template_proto_msgTypes[3] 462 if protoimpl.UnsafeEnabled && x != nil { 463 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 464 if ms.LoadMessageInfo() == nil { 465 ms.StoreMessageInfo(mi) 466 } 467 return ms 468 } 469 return mi.MessageOf(x) 470 } 471 472 // Deprecated: Use Specifier.ProtoReflect.Descriptor instead. 473 func (*Specifier) Descriptor() ([]byte, []int) { 474 return file_go_chromium_org_luci_common_data_text_templateproto_template_proto_rawDescGZIP(), []int{3} 475 } 476 477 func (x *Specifier) GetTemplateName() string { 478 if x != nil { 479 return x.TemplateName 480 } 481 return "" 482 } 483 484 func (x *Specifier) GetParams() map[string]*Value { 485 if x != nil { 486 return x.Params 487 } 488 return nil 489 } 490 491 type Schema_Set struct { 492 state protoimpl.MessageState 493 sizeCache protoimpl.SizeCache 494 unknownFields protoimpl.UnknownFields 495 496 // entry lists the possible tokens that this set can have. 497 Entry []*Schema_Set_Entry `protobuf:"bytes,1,rep,name=entry,proto3" json:"entry,omitempty"` 498 } 499 500 func (x *Schema_Set) Reset() { 501 *x = Schema_Set{} 502 if protoimpl.UnsafeEnabled { 503 mi := &file_go_chromium_org_luci_common_data_text_templateproto_template_proto_msgTypes[4] 504 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 505 ms.StoreMessageInfo(mi) 506 } 507 } 508 509 func (x *Schema_Set) String() string { 510 return protoimpl.X.MessageStringOf(x) 511 } 512 513 func (*Schema_Set) ProtoMessage() {} 514 515 func (x *Schema_Set) ProtoReflect() protoreflect.Message { 516 mi := &file_go_chromium_org_luci_common_data_text_templateproto_template_proto_msgTypes[4] 517 if protoimpl.UnsafeEnabled && x != nil { 518 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 519 if ms.LoadMessageInfo() == nil { 520 ms.StoreMessageInfo(mi) 521 } 522 return ms 523 } 524 return mi.MessageOf(x) 525 } 526 527 // Deprecated: Use Schema_Set.ProtoReflect.Descriptor instead. 528 func (*Schema_Set) Descriptor() ([]byte, []int) { 529 return file_go_chromium_org_luci_common_data_text_templateproto_template_proto_rawDescGZIP(), []int{1, 0} 530 } 531 532 func (x *Schema_Set) GetEntry() []*Schema_Set_Entry { 533 if x != nil { 534 return x.Entry 535 } 536 return nil 537 } 538 539 type Schema_JSON struct { 540 state protoimpl.MessageState 541 sizeCache protoimpl.SizeCache 542 unknownFields protoimpl.UnknownFields 543 544 // restricts the maximum amount of bytes that a Value for this field may 545 // take. 546 MaxLength uint32 `protobuf:"varint,1,opt,name=max_length,json=maxLength,proto3" json:"max_length,omitempty"` 547 } 548 549 func (x *Schema_JSON) Reset() { 550 *x = Schema_JSON{} 551 if protoimpl.UnsafeEnabled { 552 mi := &file_go_chromium_org_luci_common_data_text_templateproto_template_proto_msgTypes[5] 553 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 554 ms.StoreMessageInfo(mi) 555 } 556 } 557 558 func (x *Schema_JSON) String() string { 559 return protoimpl.X.MessageStringOf(x) 560 } 561 562 func (*Schema_JSON) ProtoMessage() {} 563 564 func (x *Schema_JSON) ProtoReflect() protoreflect.Message { 565 mi := &file_go_chromium_org_luci_common_data_text_templateproto_template_proto_msgTypes[5] 566 if protoimpl.UnsafeEnabled && x != nil { 567 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 568 if ms.LoadMessageInfo() == nil { 569 ms.StoreMessageInfo(mi) 570 } 571 return ms 572 } 573 return mi.MessageOf(x) 574 } 575 576 // Deprecated: Use Schema_JSON.ProtoReflect.Descriptor instead. 577 func (*Schema_JSON) Descriptor() ([]byte, []int) { 578 return file_go_chromium_org_luci_common_data_text_templateproto_template_proto_rawDescGZIP(), []int{1, 1} 579 } 580 581 func (x *Schema_JSON) GetMaxLength() uint32 { 582 if x != nil { 583 return x.MaxLength 584 } 585 return 0 586 } 587 588 type Schema_Sequence struct { 589 state protoimpl.MessageState 590 sizeCache protoimpl.SizeCache 591 unknownFields protoimpl.UnknownFields 592 593 // restricts the maximum amount of bytes that a Value for this field may 594 // take. 595 MaxLength uint32 `protobuf:"varint,1,opt,name=max_length,json=maxLength,proto3" json:"max_length,omitempty"` 596 } 597 598 func (x *Schema_Sequence) Reset() { 599 *x = Schema_Sequence{} 600 if protoimpl.UnsafeEnabled { 601 mi := &file_go_chromium_org_luci_common_data_text_templateproto_template_proto_msgTypes[6] 602 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 603 ms.StoreMessageInfo(mi) 604 } 605 } 606 607 func (x *Schema_Sequence) String() string { 608 return protoimpl.X.MessageStringOf(x) 609 } 610 611 func (*Schema_Sequence) ProtoMessage() {} 612 613 func (x *Schema_Sequence) ProtoReflect() protoreflect.Message { 614 mi := &file_go_chromium_org_luci_common_data_text_templateproto_template_proto_msgTypes[6] 615 if protoimpl.UnsafeEnabled && x != nil { 616 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 617 if ms.LoadMessageInfo() == nil { 618 ms.StoreMessageInfo(mi) 619 } 620 return ms 621 } 622 return mi.MessageOf(x) 623 } 624 625 // Deprecated: Use Schema_Sequence.ProtoReflect.Descriptor instead. 626 func (*Schema_Sequence) Descriptor() ([]byte, []int) { 627 return file_go_chromium_org_luci_common_data_text_templateproto_template_proto_rawDescGZIP(), []int{1, 2} 628 } 629 630 func (x *Schema_Sequence) GetMaxLength() uint32 { 631 if x != nil { 632 return x.MaxLength 633 } 634 return 0 635 } 636 637 type Schema_Atom struct { 638 state protoimpl.MessageState 639 sizeCache protoimpl.SizeCache 640 unknownFields protoimpl.UnknownFields 641 } 642 643 func (x *Schema_Atom) Reset() { 644 *x = Schema_Atom{} 645 if protoimpl.UnsafeEnabled { 646 mi := &file_go_chromium_org_luci_common_data_text_templateproto_template_proto_msgTypes[7] 647 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 648 ms.StoreMessageInfo(mi) 649 } 650 } 651 652 func (x *Schema_Atom) String() string { 653 return protoimpl.X.MessageStringOf(x) 654 } 655 656 func (*Schema_Atom) ProtoMessage() {} 657 658 func (x *Schema_Atom) ProtoReflect() protoreflect.Message { 659 mi := &file_go_chromium_org_luci_common_data_text_templateproto_template_proto_msgTypes[7] 660 if protoimpl.UnsafeEnabled && x != nil { 661 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 662 if ms.LoadMessageInfo() == nil { 663 ms.StoreMessageInfo(mi) 664 } 665 return ms 666 } 667 return mi.MessageOf(x) 668 } 669 670 // Deprecated: Use Schema_Atom.ProtoReflect.Descriptor instead. 671 func (*Schema_Atom) Descriptor() ([]byte, []int) { 672 return file_go_chromium_org_luci_common_data_text_templateproto_template_proto_rawDescGZIP(), []int{1, 3} 673 } 674 675 type Schema_Set_Entry struct { 676 state protoimpl.MessageState 677 sizeCache protoimpl.SizeCache 678 unknownFields protoimpl.UnknownFields 679 680 // Markdown-formatted documentation for this schema entry. 681 Doc string `protobuf:"bytes,1,opt,name=doc,proto3" json:"doc,omitempty"` 682 Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` 683 } 684 685 func (x *Schema_Set_Entry) Reset() { 686 *x = Schema_Set_Entry{} 687 if protoimpl.UnsafeEnabled { 688 mi := &file_go_chromium_org_luci_common_data_text_templateproto_template_proto_msgTypes[8] 689 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 690 ms.StoreMessageInfo(mi) 691 } 692 } 693 694 func (x *Schema_Set_Entry) String() string { 695 return protoimpl.X.MessageStringOf(x) 696 } 697 698 func (*Schema_Set_Entry) ProtoMessage() {} 699 700 func (x *Schema_Set_Entry) ProtoReflect() protoreflect.Message { 701 mi := &file_go_chromium_org_luci_common_data_text_templateproto_template_proto_msgTypes[8] 702 if protoimpl.UnsafeEnabled && x != nil { 703 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 704 if ms.LoadMessageInfo() == nil { 705 ms.StoreMessageInfo(mi) 706 } 707 return ms 708 } 709 return mi.MessageOf(x) 710 } 711 712 // Deprecated: Use Schema_Set_Entry.ProtoReflect.Descriptor instead. 713 func (*Schema_Set_Entry) Descriptor() ([]byte, []int) { 714 return file_go_chromium_org_luci_common_data_text_templateproto_template_proto_rawDescGZIP(), []int{1, 0, 0} 715 } 716 717 func (x *Schema_Set_Entry) GetDoc() string { 718 if x != nil { 719 return x.Doc 720 } 721 return "" 722 } 723 724 func (x *Schema_Set_Entry) GetToken() string { 725 if x != nil { 726 return x.Token 727 } 728 return "" 729 } 730 731 // Template defines a single template. 732 type File_Template struct { 733 state protoimpl.MessageState 734 sizeCache protoimpl.SizeCache 735 unknownFields protoimpl.UnknownFields 736 737 // Markdown-formatted documentation for this schema entry. 738 Doc string `protobuf:"bytes,1,opt,name=doc,proto3" json:"doc,omitempty"` 739 // body is the main JSON output for this template. It must have the form 740 // of valid json, modulo the substitution parameters. In order for this 741 // Template to be valid, body must parse as valid JSON, after all 742 // substitutions have been applied. 743 Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` 744 // param is a listing of all of the parameterized bits in the Template body. 745 // The key must match the regex /\${[^}]+}/. So "${foo}" would be ok, but 746 // "foo", "$foo", or "${}" would not. 747 // 748 // params provided here must be present in Body at least once in order 749 // for the Template to be valid. 750 Param map[string]*File_Template_Parameter `protobuf:"bytes,3,rep,name=param,proto3" json:"param,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 751 } 752 753 func (x *File_Template) Reset() { 754 *x = File_Template{} 755 if protoimpl.UnsafeEnabled { 756 mi := &file_go_chromium_org_luci_common_data_text_templateproto_template_proto_msgTypes[9] 757 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 758 ms.StoreMessageInfo(mi) 759 } 760 } 761 762 func (x *File_Template) String() string { 763 return protoimpl.X.MessageStringOf(x) 764 } 765 766 func (*File_Template) ProtoMessage() {} 767 768 func (x *File_Template) ProtoReflect() protoreflect.Message { 769 mi := &file_go_chromium_org_luci_common_data_text_templateproto_template_proto_msgTypes[9] 770 if protoimpl.UnsafeEnabled && x != nil { 771 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 772 if ms.LoadMessageInfo() == nil { 773 ms.StoreMessageInfo(mi) 774 } 775 return ms 776 } 777 return mi.MessageOf(x) 778 } 779 780 // Deprecated: Use File_Template.ProtoReflect.Descriptor instead. 781 func (*File_Template) Descriptor() ([]byte, []int) { 782 return file_go_chromium_org_luci_common_data_text_templateproto_template_proto_rawDescGZIP(), []int{2, 0} 783 } 784 785 func (x *File_Template) GetDoc() string { 786 if x != nil { 787 return x.Doc 788 } 789 return "" 790 } 791 792 func (x *File_Template) GetBody() string { 793 if x != nil { 794 return x.Body 795 } 796 return "" 797 } 798 799 func (x *File_Template) GetParam() map[string]*File_Template_Parameter { 800 if x != nil { 801 return x.Param 802 } 803 return nil 804 } 805 806 type File_Template_Parameter struct { 807 state protoimpl.MessageState 808 sizeCache protoimpl.SizeCache 809 unknownFields protoimpl.UnknownFields 810 811 // Markdown-formatted documentation for this schema entry. 812 Doc string `protobuf:"bytes,1,opt,name=doc,proto3" json:"doc,omitempty"` 813 Default *Value `protobuf:"bytes,2,opt,name=default,proto3" json:"default,omitempty"` 814 // nullable indicates if 'null' is a valid value for this parameter. This 815 // can be used to distinguish e.g. "" from not-supplied. If default is 816 // Value{null: {}}, this must be true. 817 Nullable bool `protobuf:"varint,3,opt,name=nullable,proto3" json:"nullable,omitempty"` 818 Schema *Schema `protobuf:"bytes,4,opt,name=schema,proto3" json:"schema,omitempty"` 819 } 820 821 func (x *File_Template_Parameter) Reset() { 822 *x = File_Template_Parameter{} 823 if protoimpl.UnsafeEnabled { 824 mi := &file_go_chromium_org_luci_common_data_text_templateproto_template_proto_msgTypes[11] 825 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 826 ms.StoreMessageInfo(mi) 827 } 828 } 829 830 func (x *File_Template_Parameter) String() string { 831 return protoimpl.X.MessageStringOf(x) 832 } 833 834 func (*File_Template_Parameter) ProtoMessage() {} 835 836 func (x *File_Template_Parameter) ProtoReflect() protoreflect.Message { 837 mi := &file_go_chromium_org_luci_common_data_text_templateproto_template_proto_msgTypes[11] 838 if protoimpl.UnsafeEnabled && x != nil { 839 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 840 if ms.LoadMessageInfo() == nil { 841 ms.StoreMessageInfo(mi) 842 } 843 return ms 844 } 845 return mi.MessageOf(x) 846 } 847 848 // Deprecated: Use File_Template_Parameter.ProtoReflect.Descriptor instead. 849 func (*File_Template_Parameter) Descriptor() ([]byte, []int) { 850 return file_go_chromium_org_luci_common_data_text_templateproto_template_proto_rawDescGZIP(), []int{2, 0, 0} 851 } 852 853 func (x *File_Template_Parameter) GetDoc() string { 854 if x != nil { 855 return x.Doc 856 } 857 return "" 858 } 859 860 func (x *File_Template_Parameter) GetDefault() *Value { 861 if x != nil { 862 return x.Default 863 } 864 return nil 865 } 866 867 func (x *File_Template_Parameter) GetNullable() bool { 868 if x != nil { 869 return x.Nullable 870 } 871 return false 872 } 873 874 func (x *File_Template_Parameter) GetSchema() *Schema { 875 if x != nil { 876 return x.Schema 877 } 878 return nil 879 } 880 881 var File_go_chromium_org_luci_common_data_text_templateproto_template_proto protoreflect.FileDescriptor 882 883 var file_go_chromium_org_luci_common_data_text_templateproto_template_proto_rawDesc = []byte{ 884 0x0a, 0x42, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 885 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x64, 0x61, 886 0x74, 0x61, 0x2f, 0x74, 0x65, 0x78, 0x74, 0x2f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 887 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x70, 888 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x70, 0x72, 889 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 890 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 891 0x22, 0xf4, 0x01, 0x0a, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x03, 0x69, 0x6e, 892 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x03, 0x69, 0x6e, 0x74, 0x12, 0x14, 893 0x0a, 0x04, 0x75, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x48, 0x00, 0x52, 0x04, 894 0x75, 0x69, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x05, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x03, 0x20, 895 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x05, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x12, 0x14, 0x0a, 0x04, 896 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x04, 0x62, 0x6f, 897 0x6f, 0x6c, 0x12, 0x12, 0x0a, 0x03, 0x73, 0x74, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 898 0x00, 0x52, 0x03, 0x73, 0x74, 0x72, 0x12, 0x16, 0x0a, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 899 0x06, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x12, 0x18, 900 0x0a, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 901 0x52, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x05, 0x61, 0x72, 0x72, 0x61, 902 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x61, 0x72, 0x72, 0x61, 0x79, 903 0x12, 0x2c, 0x0a, 0x04, 0x6e, 0x75, 0x6c, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 904 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 905 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x48, 0x00, 0x52, 0x04, 0x6e, 0x75, 0x6c, 0x6c, 0x42, 0x07, 906 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xaa, 0x05, 0x0a, 0x06, 0x53, 0x63, 0x68, 0x65, 907 0x6d, 0x61, 0x12, 0x2e, 0x0a, 0x03, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 908 0x1a, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 909 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x41, 0x74, 0x6f, 0x6d, 0x48, 0x00, 0x52, 0x03, 0x69, 910 0x6e, 0x74, 0x12, 0x30, 0x0a, 0x04, 0x75, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 911 0x32, 0x1a, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x70, 0x72, 0x6f, 0x74, 0x6f, 912 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x41, 0x74, 0x6f, 0x6d, 0x48, 0x00, 0x52, 0x04, 913 0x75, 0x69, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x05, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x03, 0x20, 914 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x70, 0x72, 915 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x41, 0x74, 0x6f, 0x6d, 0x48, 916 0x00, 0x52, 0x05, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x12, 0x30, 0x0a, 0x04, 0x62, 0x6f, 0x6f, 0x6c, 917 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 918 0x65, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x41, 0x74, 919 0x6f, 0x6d, 0x48, 0x00, 0x52, 0x04, 0x62, 0x6f, 0x6f, 0x6c, 0x12, 0x32, 0x0a, 0x03, 0x73, 0x74, 920 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 921 0x74, 0x65, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x53, 922 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x48, 0x00, 0x52, 0x03, 0x73, 0x74, 0x72, 0x12, 0x36, 923 0x0a, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 924 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x63, 925 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x48, 0x00, 0x52, 926 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x12, 0x2f, 0x0a, 0x04, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x07, 927 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x70, 928 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x53, 0x65, 0x74, 0x48, 929 0x00, 0x52, 0x04, 0x65, 0x6e, 0x75, 0x6d, 0x12, 0x34, 0x0a, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 930 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 931 0x74, 0x65, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x4a, 932 0x53, 0x4f, 0x4e, 0x48, 0x00, 0x52, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x32, 0x0a, 933 0x05, 0x61, 0x72, 0x72, 0x61, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x74, 934 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x63, 0x68, 935 0x65, 0x6d, 0x61, 0x2e, 0x4a, 0x53, 0x4f, 0x4e, 0x48, 0x00, 0x52, 0x05, 0x61, 0x72, 0x72, 0x61, 936 0x79, 0x1a, 0x6d, 0x0a, 0x03, 0x53, 0x65, 0x74, 0x12, 0x35, 0x0a, 0x05, 0x65, 0x6e, 0x74, 0x72, 937 0x79, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 938 0x74, 0x65, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x53, 939 0x65, 0x74, 0x2e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x1a, 940 0x2f, 0x0a, 0x05, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x6f, 0x63, 0x18, 941 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x6f, 0x63, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 942 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 943 0x1a, 0x25, 0x0a, 0x04, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x61, 0x78, 0x5f, 944 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x6d, 0x61, 945 0x78, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x1a, 0x29, 0x0a, 0x08, 0x53, 0x65, 0x71, 0x75, 0x65, 946 0x6e, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x61, 0x78, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 947 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x6d, 0x61, 0x78, 0x4c, 0x65, 0x6e, 0x67, 948 0x74, 0x68, 0x1a, 0x06, 0x0a, 0x04, 0x41, 0x74, 0x6f, 0x6d, 0x42, 0x08, 0x0a, 0x06, 0x73, 0x63, 949 0x68, 0x65, 0x6d, 0x61, 0x22, 0x8f, 0x04, 0x0a, 0x04, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x3d, 0x0a, 950 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 951 0x21, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 952 0x46, 0x69, 0x6c, 0x65, 0x2e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x74, 953 0x72, 0x79, 0x52, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x1a, 0xec, 0x02, 0x0a, 954 0x08, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x6f, 0x63, 955 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x6f, 0x63, 0x12, 0x12, 0x0a, 0x04, 0x62, 956 0x6f, 0x64, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 957 0x3d, 0x0a, 0x05, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 958 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x46, 959 0x69, 0x6c, 0x65, 0x2e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x50, 0x61, 0x72, 960 0x61, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x1a, 0x98, 961 0x01, 0x0a, 0x09, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 962 0x64, 0x6f, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x6f, 0x63, 0x12, 0x2e, 963 0x0a, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 964 0x14, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 965 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x1a, 966 0x0a, 0x08, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 967 0x52, 0x08, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x73, 0x63, 968 0x68, 0x65, 0x6d, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x65, 0x6d, 969 0x70, 0x6c, 0x61, 0x74, 0x65, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 970 0x61, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x1a, 0x60, 0x0a, 0x0a, 0x50, 0x61, 0x72, 971 0x61, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 972 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x3c, 0x0a, 0x05, 0x76, 0x61, 0x6c, 973 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 974 0x61, 0x74, 0x65, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x2e, 0x54, 0x65, 975 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 976 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x59, 0x0a, 0x0d, 0x54, 977 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 978 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x32, 979 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 980 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x46, 0x69, 981 0x6c, 0x65, 0x2e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 982 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xbf, 0x01, 0x0a, 0x09, 0x53, 0x70, 0x65, 0x63, 0x69, 983 0x66, 0x69, 0x65, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 984 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x74, 0x65, 0x6d, 985 0x70, 0x6c, 0x61, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3c, 0x0a, 0x06, 0x70, 0x61, 0x72, 986 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x74, 0x65, 0x6d, 0x70, 987 0x6c, 0x61, 0x74, 0x65, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x70, 0x65, 0x63, 0x69, 0x66, 988 0x69, 0x65, 0x72, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 989 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x4f, 0x0a, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 990 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 991 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2a, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 992 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 993 0x74, 0x65, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 994 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x35, 0x5a, 0x33, 0x67, 0x6f, 0x2e, 0x63, 995 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 996 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x74, 0x65, 0x78, 997 0x74, 0x2f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 998 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 999 } 1000 1001 var ( 1002 file_go_chromium_org_luci_common_data_text_templateproto_template_proto_rawDescOnce sync.Once 1003 file_go_chromium_org_luci_common_data_text_templateproto_template_proto_rawDescData = file_go_chromium_org_luci_common_data_text_templateproto_template_proto_rawDesc 1004 ) 1005 1006 func file_go_chromium_org_luci_common_data_text_templateproto_template_proto_rawDescGZIP() []byte { 1007 file_go_chromium_org_luci_common_data_text_templateproto_template_proto_rawDescOnce.Do(func() { 1008 file_go_chromium_org_luci_common_data_text_templateproto_template_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_common_data_text_templateproto_template_proto_rawDescData) 1009 }) 1010 return file_go_chromium_org_luci_common_data_text_templateproto_template_proto_rawDescData 1011 } 1012 1013 var file_go_chromium_org_luci_common_data_text_templateproto_template_proto_msgTypes = make([]protoimpl.MessageInfo, 14) 1014 var file_go_chromium_org_luci_common_data_text_templateproto_template_proto_goTypes = []interface{}{ 1015 (*Value)(nil), // 0: templateproto.Value 1016 (*Schema)(nil), // 1: templateproto.Schema 1017 (*File)(nil), // 2: templateproto.File 1018 (*Specifier)(nil), // 3: templateproto.Specifier 1019 (*Schema_Set)(nil), // 4: templateproto.Schema.Set 1020 (*Schema_JSON)(nil), // 5: templateproto.Schema.JSON 1021 (*Schema_Sequence)(nil), // 6: templateproto.Schema.Sequence 1022 (*Schema_Atom)(nil), // 7: templateproto.Schema.Atom 1023 (*Schema_Set_Entry)(nil), // 8: templateproto.Schema.Set.Entry 1024 (*File_Template)(nil), // 9: templateproto.File.Template 1025 nil, // 10: templateproto.File.TemplateEntry 1026 (*File_Template_Parameter)(nil), // 11: templateproto.File.Template.Parameter 1027 nil, // 12: templateproto.File.Template.ParamEntry 1028 nil, // 13: templateproto.Specifier.ParamsEntry 1029 (*emptypb.Empty)(nil), // 14: google.protobuf.Empty 1030 } 1031 var file_go_chromium_org_luci_common_data_text_templateproto_template_proto_depIdxs = []int32{ 1032 14, // 0: templateproto.Value.null:type_name -> google.protobuf.Empty 1033 7, // 1: templateproto.Schema.int:type_name -> templateproto.Schema.Atom 1034 7, // 2: templateproto.Schema.uint:type_name -> templateproto.Schema.Atom 1035 7, // 3: templateproto.Schema.float:type_name -> templateproto.Schema.Atom 1036 7, // 4: templateproto.Schema.bool:type_name -> templateproto.Schema.Atom 1037 6, // 5: templateproto.Schema.str:type_name -> templateproto.Schema.Sequence 1038 6, // 6: templateproto.Schema.bytes:type_name -> templateproto.Schema.Sequence 1039 4, // 7: templateproto.Schema.enum:type_name -> templateproto.Schema.Set 1040 5, // 8: templateproto.Schema.object:type_name -> templateproto.Schema.JSON 1041 5, // 9: templateproto.Schema.array:type_name -> templateproto.Schema.JSON 1042 10, // 10: templateproto.File.template:type_name -> templateproto.File.TemplateEntry 1043 13, // 11: templateproto.Specifier.params:type_name -> templateproto.Specifier.ParamsEntry 1044 8, // 12: templateproto.Schema.Set.entry:type_name -> templateproto.Schema.Set.Entry 1045 12, // 13: templateproto.File.Template.param:type_name -> templateproto.File.Template.ParamEntry 1046 9, // 14: templateproto.File.TemplateEntry.value:type_name -> templateproto.File.Template 1047 0, // 15: templateproto.File.Template.Parameter.default:type_name -> templateproto.Value 1048 1, // 16: templateproto.File.Template.Parameter.schema:type_name -> templateproto.Schema 1049 11, // 17: templateproto.File.Template.ParamEntry.value:type_name -> templateproto.File.Template.Parameter 1050 0, // 18: templateproto.Specifier.ParamsEntry.value:type_name -> templateproto.Value 1051 19, // [19:19] is the sub-list for method output_type 1052 19, // [19:19] is the sub-list for method input_type 1053 19, // [19:19] is the sub-list for extension type_name 1054 19, // [19:19] is the sub-list for extension extendee 1055 0, // [0:19] is the sub-list for field type_name 1056 } 1057 1058 func init() { file_go_chromium_org_luci_common_data_text_templateproto_template_proto_init() } 1059 func file_go_chromium_org_luci_common_data_text_templateproto_template_proto_init() { 1060 if File_go_chromium_org_luci_common_data_text_templateproto_template_proto != nil { 1061 return 1062 } 1063 if !protoimpl.UnsafeEnabled { 1064 file_go_chromium_org_luci_common_data_text_templateproto_template_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 1065 switch v := v.(*Value); i { 1066 case 0: 1067 return &v.state 1068 case 1: 1069 return &v.sizeCache 1070 case 2: 1071 return &v.unknownFields 1072 default: 1073 return nil 1074 } 1075 } 1076 file_go_chromium_org_luci_common_data_text_templateproto_template_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 1077 switch v := v.(*Schema); i { 1078 case 0: 1079 return &v.state 1080 case 1: 1081 return &v.sizeCache 1082 case 2: 1083 return &v.unknownFields 1084 default: 1085 return nil 1086 } 1087 } 1088 file_go_chromium_org_luci_common_data_text_templateproto_template_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 1089 switch v := v.(*File); i { 1090 case 0: 1091 return &v.state 1092 case 1: 1093 return &v.sizeCache 1094 case 2: 1095 return &v.unknownFields 1096 default: 1097 return nil 1098 } 1099 } 1100 file_go_chromium_org_luci_common_data_text_templateproto_template_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 1101 switch v := v.(*Specifier); i { 1102 case 0: 1103 return &v.state 1104 case 1: 1105 return &v.sizeCache 1106 case 2: 1107 return &v.unknownFields 1108 default: 1109 return nil 1110 } 1111 } 1112 file_go_chromium_org_luci_common_data_text_templateproto_template_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 1113 switch v := v.(*Schema_Set); i { 1114 case 0: 1115 return &v.state 1116 case 1: 1117 return &v.sizeCache 1118 case 2: 1119 return &v.unknownFields 1120 default: 1121 return nil 1122 } 1123 } 1124 file_go_chromium_org_luci_common_data_text_templateproto_template_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 1125 switch v := v.(*Schema_JSON); i { 1126 case 0: 1127 return &v.state 1128 case 1: 1129 return &v.sizeCache 1130 case 2: 1131 return &v.unknownFields 1132 default: 1133 return nil 1134 } 1135 } 1136 file_go_chromium_org_luci_common_data_text_templateproto_template_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 1137 switch v := v.(*Schema_Sequence); i { 1138 case 0: 1139 return &v.state 1140 case 1: 1141 return &v.sizeCache 1142 case 2: 1143 return &v.unknownFields 1144 default: 1145 return nil 1146 } 1147 } 1148 file_go_chromium_org_luci_common_data_text_templateproto_template_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 1149 switch v := v.(*Schema_Atom); i { 1150 case 0: 1151 return &v.state 1152 case 1: 1153 return &v.sizeCache 1154 case 2: 1155 return &v.unknownFields 1156 default: 1157 return nil 1158 } 1159 } 1160 file_go_chromium_org_luci_common_data_text_templateproto_template_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 1161 switch v := v.(*Schema_Set_Entry); i { 1162 case 0: 1163 return &v.state 1164 case 1: 1165 return &v.sizeCache 1166 case 2: 1167 return &v.unknownFields 1168 default: 1169 return nil 1170 } 1171 } 1172 file_go_chromium_org_luci_common_data_text_templateproto_template_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { 1173 switch v := v.(*File_Template); i { 1174 case 0: 1175 return &v.state 1176 case 1: 1177 return &v.sizeCache 1178 case 2: 1179 return &v.unknownFields 1180 default: 1181 return nil 1182 } 1183 } 1184 file_go_chromium_org_luci_common_data_text_templateproto_template_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { 1185 switch v := v.(*File_Template_Parameter); i { 1186 case 0: 1187 return &v.state 1188 case 1: 1189 return &v.sizeCache 1190 case 2: 1191 return &v.unknownFields 1192 default: 1193 return nil 1194 } 1195 } 1196 } 1197 file_go_chromium_org_luci_common_data_text_templateproto_template_proto_msgTypes[0].OneofWrappers = []interface{}{ 1198 (*Value_Int)(nil), 1199 (*Value_Uint)(nil), 1200 (*Value_Float)(nil), 1201 (*Value_Bool)(nil), 1202 (*Value_Str)(nil), 1203 (*Value_Bytes)(nil), 1204 (*Value_Object)(nil), 1205 (*Value_Array)(nil), 1206 (*Value_Null)(nil), 1207 } 1208 file_go_chromium_org_luci_common_data_text_templateproto_template_proto_msgTypes[1].OneofWrappers = []interface{}{ 1209 (*Schema_Int)(nil), 1210 (*Schema_Uint)(nil), 1211 (*Schema_Float)(nil), 1212 (*Schema_Bool)(nil), 1213 (*Schema_Str)(nil), 1214 (*Schema_Bytes)(nil), 1215 (*Schema_Enum)(nil), 1216 (*Schema_Object)(nil), 1217 (*Schema_Array)(nil), 1218 } 1219 type x struct{} 1220 out := protoimpl.TypeBuilder{ 1221 File: protoimpl.DescBuilder{ 1222 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1223 RawDescriptor: file_go_chromium_org_luci_common_data_text_templateproto_template_proto_rawDesc, 1224 NumEnums: 0, 1225 NumMessages: 14, 1226 NumExtensions: 0, 1227 NumServices: 0, 1228 }, 1229 GoTypes: file_go_chromium_org_luci_common_data_text_templateproto_template_proto_goTypes, 1230 DependencyIndexes: file_go_chromium_org_luci_common_data_text_templateproto_template_proto_depIdxs, 1231 MessageInfos: file_go_chromium_org_luci_common_data_text_templateproto_template_proto_msgTypes, 1232 }.Build() 1233 File_go_chromium_org_luci_common_data_text_templateproto_template_proto = out.File 1234 file_go_chromium_org_luci_common_data_text_templateproto_template_proto_rawDesc = nil 1235 file_go_chromium_org_luci_common_data_text_templateproto_template_proto_goTypes = nil 1236 file_go_chromium_org_luci_common_data_text_templateproto_template_proto_depIdxs = nil 1237 }