From baa774ce5bc9d8820005b92958d7d5c4e7b8b7a0 Mon Sep 17 00:00:00 2001 From: ci viz model Date: Fri, 13 Jun 2025 13:42:01 +0000 Subject: [PATCH] Latest generation --- core/currencyCodes.ts | 1088 +++++ core/options.ts | 521 +++ core/shared.ts | 5889 +++++++++++++++++++++++++-- core/unitOfMeasures.ts | 14 +- counter.client.ts | 6 +- counter.ts | 20 +- google/api/field_behavior.ts | 2 +- google/api/http.ts | 34 +- google/api/httpbody.ts | 8 +- google/protobuf/any.ts | 6 +- google/protobuf/api.ts | 34 +- google/protobuf/compiler/plugin.ts | 28 +- google/protobuf/descriptor.ts | 362 +- google/protobuf/duration.ts | 6 +- google/protobuf/empty.ts | 2 +- google/protobuf/field_mask.ts | 4 +- google/protobuf/source_context.ts | 4 +- google/protobuf/struct.ts | 22 +- google/protobuf/timestamp.ts | 6 +- google/protobuf/type.ts | 54 +- google/protobuf/wrappers.ts | 20 +- google/rpc/code.ts | 2 +- google/rpc/error_details.ts | 50 +- google/rpc/status.ts | 8 +- openapiv2.ts | 210 +- package.json | 2 +- validate.ts | 505 ++- visibility.ts | 8 +- viz-composed-field.client.ts | 152 +- viz-composed-field.ts | 1697 +++++++- viz-dashboard.client.ts | 203 +- viz-dashboard.ts | 2015 ++++++++- viz-default-view.client.ts | 10 +- viz-default-view.ts | 50 +- viz-motd.client.ts | 22 +- viz-motd.ts | 176 +- viz-organisation-settings.client.ts | 22 +- viz-organisation-settings.ts | 128 +- viz-project-settings.client.ts | 26 +- viz-project-settings.ts | 116 +- viz-tab.client.ts | 6 +- viz-tab.ts | 14 +- viz-translations.client.ts | 26 +- viz-translations.ts | 188 +- viz-user-settings.client.ts | 18 +- viz-user-settings.ts | 74 +- viz-view.client.ts | 199 +- viz-view.ts | 2503 +++++++++++- 48 files changed, 14628 insertions(+), 1932 deletions(-) create mode 100644 core/currencyCodes.ts create mode 100644 core/options.ts diff --git a/core/currencyCodes.ts b/core/currencyCodes.ts new file mode 100644 index 0000000..2fd8853 --- /dev/null +++ b/core/currencyCodes.ts @@ -0,0 +1,1088 @@ +// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name +// @generated from protobuf file "core/currencyCodes.proto" (package "api", syntax proto3) +// tslint:disable +// +// This file describes the currency from iso-4217. +// Created from the protobuf lib : https://github.com/zahlz/iso4217_protobuf/blob/master/iso4217.proto. +// https://en.wikipedia.org/wiki/ISO_4217 +// Last update : 2024-01-30 + +/** + * Currency codes as specified in ISO 4217 + * + * @generated from protobuf enum api.Currency + */ +export enum Currency { + /** + * @generated from protobuf enum value: XXX = 0; + */ + XXX = 0, + /** + * Codes specifically reserved for testing purposes + * + * @generated from protobuf enum value: XTS = 963; + */ + XTS = 963, + /** + * Albanian lek + * + * @generated from protobuf enum value: ALL = 8; + */ + ALL = 8, + /** + * Algerian dinar + * + * @generated from protobuf enum value: DZD = 12; + */ + DZD = 12, + /** + * Argentine peso + * + * @generated from protobuf enum value: ARS = 32; + */ + ARS = 32, + /** + * Australian dollar + * + * @generated from protobuf enum value: AUD = 36; + */ + AUD = 36, + /** + * Bahamian dollar + * + * @generated from protobuf enum value: BSD = 44; + */ + BSD = 44, + /** + * Bahraini dinar + * + * @generated from protobuf enum value: BHD = 48; + */ + BHD = 48, + /** + * Bangladeshi taka + * + * @generated from protobuf enum value: BDT = 50; + */ + BDT = 50, + /** + * Armenian dram + * + * @generated from protobuf enum value: AMD = 51; + */ + AMD = 51, + /** + * Barbados dollar + * + * @generated from protobuf enum value: BBD = 52; + */ + BBD = 52, + /** + * Bermudian dollar + * + * @generated from protobuf enum value: BMD = 60; + */ + BMD = 60, + /** + * Bhutanese ngultrum + * + * @generated from protobuf enum value: BTN = 64; + */ + BTN = 64, + /** + * Boliviano + * + * @generated from protobuf enum value: BOB = 68; + */ + BOB = 68, + /** + * Botswana pula + * + * @generated from protobuf enum value: BWP = 72; + */ + BWP = 72, + /** + * Belize dollar + * + * @generated from protobuf enum value: BZD = 84; + */ + BZD = 84, + /** + * Solomon Islands dollar + * + * @generated from protobuf enum value: SBD = 90; + */ + SBD = 90, + /** + * Brunei dollar + * + * @generated from protobuf enum value: BND = 96; + */ + BND = 96, + /** + * Myanmar kyat + * + * @generated from protobuf enum value: MMK = 104; + */ + MMK = 104, + /** + * Burundian franc + * + * @generated from protobuf enum value: BIF = 108; + */ + BIF = 108, + /** + * Cambodian riel + * + * @generated from protobuf enum value: KHR = 116; + */ + KHR = 116, + /** + * Canadian dollar + * + * @generated from protobuf enum value: CAD = 124; + */ + CAD = 124, + /** + * Cape Verdean escudo + * + * @generated from protobuf enum value: CVE = 132; + */ + CVE = 132, + /** + * Cayman Islands dollar + * + * @generated from protobuf enum value: KYD = 136; + */ + KYD = 136, + /** + * Sri Lankan rupee + * + * @generated from protobuf enum value: LKR = 144; + */ + LKR = 144, + /** + * Chilean peso + * + * @generated from protobuf enum value: CLP = 152; + */ + CLP = 152, + /** + * Renminbi + * + * @generated from protobuf enum value: CNY = 156; + */ + CNY = 156, + /** + * Colombian peso + * + * @generated from protobuf enum value: COP = 170; + */ + COP = 170, + /** + * Comoro franc + * + * @generated from protobuf enum value: KMF = 174; + */ + KMF = 174, + /** + * Costa Rican colon + * + * @generated from protobuf enum value: CRC = 188; + */ + CRC = 188, + /** + * Croatian kuna + * + * @generated from protobuf enum value: HRK = 191; + */ + HRK = 191, + /** + * Cuban peso + * + * @generated from protobuf enum value: CUP = 192; + */ + CUP = 192, + /** + * Czech koruna + * + * @generated from protobuf enum value: CZK = 203; + */ + CZK = 203, + /** + * Danish krone + * + * @generated from protobuf enum value: DKK = 208; + */ + DKK = 208, + /** + * Dominican peso + * + * @generated from protobuf enum value: DOP = 214; + */ + DOP = 214, + /** + * Salvadoran colón + * + * @generated from protobuf enum value: SVC = 222; + */ + SVC = 222, + /** + * Ethiopian birr + * + * @generated from protobuf enum value: ETB = 230; + */ + ETB = 230, + /** + * Eritrean nakfa + * + * @generated from protobuf enum value: ERN = 232; + */ + ERN = 232, + /** + * Falkland Islands pound + * + * @generated from protobuf enum value: FKP = 238; + */ + FKP = 238, + /** + * Fiji dollar + * + * @generated from protobuf enum value: FJD = 242; + */ + FJD = 242, + /** + * Djiboutian franc + * + * @generated from protobuf enum value: DJF = 262; + */ + DJF = 262, + /** + * Gambian dalasi + * + * @generated from protobuf enum value: GMD = 270; + */ + GMD = 270, + /** + * Gibraltar pound + * + * @generated from protobuf enum value: GIP = 292; + */ + GIP = 292, + /** + * Guatemalan quetzal + * + * @generated from protobuf enum value: GTQ = 320; + */ + GTQ = 320, + /** + * Guinean franc + * + * @generated from protobuf enum value: GNF = 324; + */ + GNF = 324, + /** + * Guyanese dollar + * + * @generated from protobuf enum value: GYD = 328; + */ + GYD = 328, + /** + * Haitian gourde + * + * @generated from protobuf enum value: HTG = 332; + */ + HTG = 332, + /** + * Honduran lempira + * + * @generated from protobuf enum value: HNL = 340; + */ + HNL = 340, + /** + * Hong Kong dollar + * + * @generated from protobuf enum value: HKD = 344; + */ + HKD = 344, + /** + * Hungarian forint + * + * @generated from protobuf enum value: HUF = 348; + */ + HUF = 348, + /** + * Icelandic króna + * + * @generated from protobuf enum value: ISK = 352; + */ + ISK = 352, + /** + * Indian rupee + * + * @generated from protobuf enum value: INR = 356; + */ + INR = 356, + /** + * Indonesian rupiah + * + * @generated from protobuf enum value: IDR = 360; + */ + IDR = 360, + /** + * Iranian rial + * + * @generated from protobuf enum value: IRR = 364; + */ + IRR = 364, + /** + * Iraqi dinar + * + * @generated from protobuf enum value: IQD = 368; + */ + IQD = 368, + /** + * Israeli new shekel + * + * @generated from protobuf enum value: ILS = 376; + */ + ILS = 376, + /** + * Jamaican dollar + * + * @generated from protobuf enum value: JMD = 388; + */ + JMD = 388, + /** + * Japanese yen + * + * @generated from protobuf enum value: JPY = 392; + */ + JPY = 392, + /** + * Kazakhstani tenge + * + * @generated from protobuf enum value: KZT = 398; + */ + KZT = 398, + /** + * Jordanian dinar + * + * @generated from protobuf enum value: JOD = 400; + */ + JOD = 400, + /** + * Kenyan shilling + * + * @generated from protobuf enum value: KES = 404; + */ + KES = 404, + /** + * North Korean won + * + * @generated from protobuf enum value: KPW = 408; + */ + KPW = 408, + /** + * South Korean won + * + * @generated from protobuf enum value: KRW = 410; + */ + KRW = 410, + /** + * Kuwaiti dinar + * + * @generated from protobuf enum value: KWD = 414; + */ + KWD = 414, + /** + * Kyrgyzstani som + * + * @generated from protobuf enum value: KGS = 417; + */ + KGS = 417, + /** + * Lao kip + * + * @generated from protobuf enum value: LAK = 418; + */ + LAK = 418, + /** + * Lebanese pound + * + * @generated from protobuf enum value: LBP = 422; + */ + LBP = 422, + /** + * Lesotho loti + * + * @generated from protobuf enum value: LSL = 426; + */ + LSL = 426, + /** + * Liberian dollar + * + * @generated from protobuf enum value: LRD = 430; + */ + LRD = 430, + /** + * Libyan dinar + * + * @generated from protobuf enum value: LYD = 434; + */ + LYD = 434, + /** + * Lithuanian litas + * + * @generated from protobuf enum value: LTL = 440; + */ + LTL = 440, + /** + * Macanese pataca + * + * @generated from protobuf enum value: MOP = 446; + */ + MOP = 446, + /** + * Malawian kwacha + * + * @generated from protobuf enum value: MWK = 454; + */ + MWK = 454, + /** + * Malaysian ringgit + * + * @generated from protobuf enum value: MYR = 458; + */ + MYR = 458, + /** + * Maldivian rufiyaa + * + * @generated from protobuf enum value: MVR = 462; + */ + MVR = 462, + /** + * Mauritanian ouguiya + * + * @generated from protobuf enum value: MRO = 478; + */ + MRO = 478, + /** + * Mauritian rupee + * + * @generated from protobuf enum value: MUR = 480; + */ + MUR = 480, + /** + * Mexican peso + * + * @generated from protobuf enum value: MXN = 484; + */ + MXN = 484, + /** + * Mongolian tögrög + * + * @generated from protobuf enum value: MNT = 496; + */ + MNT = 496, + /** + * Moldovan leu + * + * @generated from protobuf enum value: MDL = 498; + */ + MDL = 498, + /** + * Moroccan dirham + * + * @generated from protobuf enum value: MAD = 504; + */ + MAD = 504, + /** + * Omani rial + * + * @generated from protobuf enum value: OMR = 512; + */ + OMR = 512, + /** + * Namibian dollar + * + * @generated from protobuf enum value: NAD = 516; + */ + NAD = 516, + /** + * Nepalese rupee + * + * @generated from protobuf enum value: NPR = 524; + */ + NPR = 524, + /** + * Netherlands Antillean guilder + * + * @generated from protobuf enum value: ANG = 532; + */ + ANG = 532, + /** + * Aruban florin + * + * @generated from protobuf enum value: AWG = 533; + */ + AWG = 533, + /** + * Vanuatu vatu + * + * @generated from protobuf enum value: VUV = 548; + */ + VUV = 548, + /** + * New Zealand dollar + * + * @generated from protobuf enum value: NZD = 554; + */ + NZD = 554, + /** + * Nicaraguan córdoba + * + * @generated from protobuf enum value: NIO = 558; + */ + NIO = 558, + /** + * Nigerian naira + * + * @generated from protobuf enum value: NGN = 566; + */ + NGN = 566, + /** + * Norwegian krone + * + * @generated from protobuf enum value: NOK = 578; + */ + NOK = 578, + /** + * Pakistani rupee + * + * @generated from protobuf enum value: PKR = 586; + */ + PKR = 586, + /** + * Panamanian balboa + * + * @generated from protobuf enum value: PAB = 590; + */ + PAB = 590, + /** + * Papua New Guinean kina + * + * @generated from protobuf enum value: PGK = 598; + */ + PGK = 598, + /** + * Paraguayan guaraní + * + * @generated from protobuf enum value: PYG = 600; + */ + PYG = 600, + /** + * Peruvian sol + * + * @generated from protobuf enum value: PEN = 604; + */ + PEN = 604, + /** + * Philippine peso + * + * @generated from protobuf enum value: PHP = 608; + */ + PHP = 608, + /** + * Qatari riyal + * + * @generated from protobuf enum value: QAR = 634; + */ + QAR = 634, + /** + * Russian ruble + * + * @generated from protobuf enum value: RUB = 643; + */ + RUB = 643, + /** + * Rwandan franc + * + * @generated from protobuf enum value: RWF = 646; + */ + RWF = 646, + /** + * Saint Helena pound + * + * @generated from protobuf enum value: SHP = 654; + */ + SHP = 654, + /** + * São Tomé and Príncipe dobra + * + * @generated from protobuf enum value: STD = 678; + */ + STD = 678, + /** + * Saudi riyal + * + * @generated from protobuf enum value: SAR = 682; + */ + SAR = 682, + /** + * Seychelles rupee + * + * @generated from protobuf enum value: SCR = 690; + */ + SCR = 690, + /** + * Sierra Leonean leone + * + * @generated from protobuf enum value: SLL = 694; + */ + SLL = 694, + /** + * Singapore dollar + * + * @generated from protobuf enum value: SGD = 702; + */ + SGD = 702, + /** + * Vietnamese đồng + * + * @generated from protobuf enum value: VND = 704; + */ + VND = 704, + /** + * Somalian shilling + * + * @generated from protobuf enum value: SOS = 706; + */ + SOS = 706, + /** + * South African rand + * + * @generated from protobuf enum value: ZAR = 710; + */ + ZAR = 710, + /** + * South Sudanese pound + * + * @generated from protobuf enum value: SSP = 728; + */ + SSP = 728, + /** + * Swazi lilangeni + * + * @generated from protobuf enum value: SZL = 748; + */ + SZL = 748, + /** + * Swedish krona + * + * @generated from protobuf enum value: SEK = 752; + */ + SEK = 752, + /** + * Swiss franc + * + * @generated from protobuf enum value: CHF = 756; + */ + CHF = 756, + /** + * Syrian pound + * + * @generated from protobuf enum value: SYP = 760; + */ + SYP = 760, + /** + * Thai baht + * + * @generated from protobuf enum value: THB = 764; + */ + THB = 764, + /** + * Tongan pa'anga + * + * @generated from protobuf enum value: TOP = 776; + */ + TOP = 776, + /** + * Trinidad and Tobago dollar + * + * @generated from protobuf enum value: TTD = 780; + */ + TTD = 780, + /** + * United Arab Emirates dirham + * + * @generated from protobuf enum value: AED = 784; + */ + AED = 784, + /** + * Tunisian dinar + * + * @generated from protobuf enum value: TND = 788; + */ + TND = 788, + /** + * Ugandan shilling + * + * @generated from protobuf enum value: UGX = 800; + */ + UGX = 800, + /** + * Macedonian denar + * + * @generated from protobuf enum value: MKD = 807; + */ + MKD = 807, + /** + * Egyptian pound + * + * @generated from protobuf enum value: EGP = 818; + */ + EGP = 818, + /** + * Pound sterling + * + * @generated from protobuf enum value: GBP = 826; + */ + GBP = 826, + /** + * Tanzanian shilling + * + * @generated from protobuf enum value: TZS = 834; + */ + TZS = 834, + /** + * United States dollar + * + * @generated from protobuf enum value: USD = 840; + */ + USD = 840, + /** + * Uruguayan peso + * + * @generated from protobuf enum value: UYU = 858; + */ + UYU = 858, + /** + * Uzbekistani sum + * + * @generated from protobuf enum value: UZS = 860; + */ + UZS = 860, + /** + * Samoan tala + * + * @generated from protobuf enum value: WST = 882; + */ + WST = 882, + /** + * Yemeni rial + * + * @generated from protobuf enum value: YER = 886; + */ + YER = 886, + /** + * New Taiwan dollar + * + * @generated from protobuf enum value: TWD = 901; + */ + TWD = 901, + /** + * Cuban convertible peso + * + * @generated from protobuf enum value: CUC = 931; + */ + CUC = 931, + /** + * Zimbabwean dollar + * + * @generated from protobuf enum value: ZWL = 932; + */ + ZWL = 932, + /** + * Turkmenistan manat + * + * @generated from protobuf enum value: TMT = 934; + */ + TMT = 934, + /** + * Ghanaian cedi + * + * @generated from protobuf enum value: GHS = 936; + */ + GHS = 936, + /** + * Venezuelan bolívar fuerte + * + * @generated from protobuf enum value: VEF = 937; + */ + VEF = 937, + /** + * Sudanese pound + * + * @generated from protobuf enum value: SDG = 938; + */ + SDG = 938, + /** + * Uruguay Peso en Unidades Indexadas + * + * @generated from protobuf enum value: UYI = 940; + */ + UYI = 940, + /** + * Serbian dinar + * + * @generated from protobuf enum value: RSD = 941; + */ + RSD = 941, + /** + * Mozambican metical + * + * @generated from protobuf enum value: MZN = 943; + */ + MZN = 943, + /** + * Azerbaijani manat + * + * @generated from protobuf enum value: AZN = 944; + */ + AZN = 944, + /** + * Romanian leu + * + * @generated from protobuf enum value: RON = 946; + */ + RON = 946, + /** + * WIR euro + * + * @generated from protobuf enum value: CHE = 947; + */ + CHE = 947, + /** + * WIR franc + * + * @generated from protobuf enum value: CHW = 948; + */ + CHW = 948, + /** + * Turkish lira + * + * @generated from protobuf enum value: TRY = 949; + */ + TRY = 949, + /** + * CFA franc BEAC + * + * @generated from protobuf enum value: XAF = 950; + */ + XAF = 950, + /** + * East Caribbean dollar + * + * @generated from protobuf enum value: XCD = 951; + */ + XCD = 951, + /** + * CFA franc BCEAO + * + * @generated from protobuf enum value: XOF = 952; + */ + XOF = 952, + /** + * CFP franc + * + * @generated from protobuf enum value: XPF = 953; + */ + XPF = 953, + /** + * European Composite Unit + * + * @generated from protobuf enum value: XBA = 955; + */ + XBA = 955, + /** + * European Monetary Unit + * + * @generated from protobuf enum value: XBB = 956; + */ + XBB = 956, + /** + * European Unit of Account 9 + * + * @generated from protobuf enum value: XBC = 957; + */ + XBC = 957, + /** + * European Unit of Account 17 + * + * @generated from protobuf enum value: XBD = 958; + */ + XBD = 958, + /** + * Gold + * + * @generated from protobuf enum value: XAU = 959; + */ + XAU = 959, + /** + * Special drawing rights + * + * @generated from protobuf enum value: XDR = 960; + */ + XDR = 960, + /** + * Silver + * + * @generated from protobuf enum value: XAG = 961; + */ + XAG = 961, + /** + * Platinum + * + * @generated from protobuf enum value: XPT = 962; + */ + XPT = 962, + /** + * Palladium + * + * @generated from protobuf enum value: XPD = 964; + */ + XPD = 964, + /** + * ADB Unit of Account + * + * @generated from protobuf enum value: XUA = 965; + */ + XUA = 965, + /** + * Zambian kwacha + * + * @generated from protobuf enum value: ZMW = 967; + */ + ZMW = 967, + /** + * Surinamese dollar + * + * @generated from protobuf enum value: SRD = 968; + */ + SRD = 968, + /** + * Malagasy ariary + * + * @generated from protobuf enum value: MGA = 969; + */ + MGA = 969, + /** + * Unidad de Valor Real + * + * @generated from protobuf enum value: COU = 970; + */ + COU = 970, + /** + * Afghan afghani + * + * @generated from protobuf enum value: AFN = 971; + */ + AFN = 971, + /** + * Tajikistani somoni + * + * @generated from protobuf enum value: TJS = 972; + */ + TJS = 972, + /** + * Angolan kwanza + * + * @generated from protobuf enum value: AOA = 973; + */ + AOA = 973, + /** + * Belarusian ruble + * + * @generated from protobuf enum value: BYR = 974; + */ + BYR = 974, + /** + * Bulgarian lev + * + * @generated from protobuf enum value: BGN = 975; + */ + BGN = 975, + /** + * Congolese franc + * + * @generated from protobuf enum value: CDF = 976; + */ + CDF = 976, + /** + * Bosnia and Herzegovina convertible mark + * + * @generated from protobuf enum value: BAM = 977; + */ + BAM = 977, + /** + * Euro + * + * @generated from protobuf enum value: EUR = 978; + */ + EUR = 978, + /** + * Mexican Unidad de Inversion + * + * @generated from protobuf enum value: MXV = 979; + */ + MXV = 979, + /** + * Ukrainian hryvnia + * + * @generated from protobuf enum value: UAH = 980; + */ + UAH = 980, + /** + * Georgian lari + * + * @generated from protobuf enum value: GEL = 981; + */ + GEL = 981, + /** + * Bolivian Mvdol + * + * @generated from protobuf enum value: BOV = 984; + */ + BOV = 984, + /** + * Polish złoty + * + * @generated from protobuf enum value: PLN = 985; + */ + PLN = 985, + /** + * Brazilian real + * + * @generated from protobuf enum value: BRL = 986; + */ + BRL = 986, + /** + * Unidad de Fomento + * + * @generated from protobuf enum value: CLF = 990; + */ + CLF = 990, + /** + * SUCRE + * + * @generated from protobuf enum value: XSU = 994; + */ + XSU = 994, + /** + * United States dollar (next day) + * + * @generated from protobuf enum value: USN = 997; + */ + USN = 997 +} diff --git a/core/options.ts b/core/options.ts new file mode 100644 index 0000000..acd9466 --- /dev/null +++ b/core/options.ts @@ -0,0 +1,521 @@ +// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name +// @generated from protobuf file "core/options.proto" (package "api", syntax proto3) +// tslint:disable +import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; +import type { IBinaryWriter } from "@protobuf-ts/runtime"; +import { WireType } from "@protobuf-ts/runtime"; +import type { BinaryReadOptions } from "@protobuf-ts/runtime"; +import type { IBinaryReader } from "@protobuf-ts/runtime"; +import { UnknownFieldHandler } from "@protobuf-ts/runtime"; +import type { PartialMessage } from "@protobuf-ts/runtime"; +import { reflectionMergePartial } from "@protobuf-ts/runtime"; +import { MessageType } from "@protobuf-ts/runtime"; +/** + * Note: Struct to define in protoc-m0 in managers/struct_model + * + * @generated from protobuf message api.KPIGroups + */ +export interface KPIGroups { + /** + * @generated from protobuf field: repeated api.KPIGroup Groups = 1 + */ + Groups: KPIGroup[]; +} +/** + * @generated from protobuf message api.KPIGroup + */ +export interface KPIGroup { + /** + * @generated from protobuf field: string Name = 1 + */ + Name: string; // Name of the KPI group + /** + * @generated from protobuf field: api.KPIGroupType Type = 2 + */ + Type: KPIGroupType; // Type of the KPI group + /** + * @generated from protobuf field: bool Queryable = 3 + */ + Queryable: boolean; // Some tables are not directly queryable + /** + * @generated from protobuf field: string GroupToQuery = 4 + */ + GroupToQuery: string; // For non-queryable group, on which group table the request will be executed + /** + * @generated from protobuf field: string OrderBy = 5 + */ + OrderBy: string; // Table OrderBy + /** + * @generated from protobuf field: string Engine = 6 + */ + Engine: string; // Table engine + /** + * @generated from protobuf field: string HeaderColumns = 7 + */ + HeaderColumns: string; // Table header columns + /** + * @generated from protobuf field: string PartitionBy = 8 + */ + PartitionBy: string; // Table PartitionBy +} +/** + * @generated from protobuf message api.KPIItems + */ +export interface KPIItems { + /** + * @generated from protobuf field: repeated api.KPIItem Items = 1 + */ + Items: KPIItem[]; +} +/** + * @generated from protobuf message api.KPIItem + */ +export interface KPIItem { + /** + * @generated from protobuf field: string Context = 1 + */ + Context: string; // Entity on which the KPI is defined + /** + * @generated from protobuf field: string Group = 2 + */ + Group: string; // Group on which the KPI is defined + /** + * @generated from protobuf field: bool Queryable = 3 + */ + Queryable: boolean; // Defined if the KPI is queryable (some kpi are only returns on the result because linked to other, ex on stock_extended : Actor_Name depends on ActorID) + /** + * @generated from protobuf field: string GroupToJoin = 4 + */ + GroupToJoin: string; // KPI is used to join another KPI group + /** + * @generated from protobuf field: string CustomType = 5 + */ + CustomType: string; // Type of the field in the table +} +/** + * @generated from protobuf message api.FieldTypes + */ +export interface FieldTypes { + /** + * @generated from protobuf field: repeated api.FieldType Types = 1 + */ + Types: FieldType[]; +} +/** + * @generated from protobuf message api.FieldType + */ +export interface FieldType { + /** + * @generated from protobuf field: string Context = 1 + */ + Context: string; // Entity on which the KPI is defined + /** + * @generated from protobuf field: string Type = 2 + */ + Type: string; // Type of the field +} +/** + * @generated from protobuf enum api.KPIGroupType + */ +export enum KPIGroupType { + /** + * @generated from protobuf enum value: KPIGROUP_TYPE_UNKNOWN = 0; + */ + KPIGROUP_TYPE_UNKNOWN = 0, + /** + * Table fed by a entity stream sink job + * + * @generated from protobuf enum value: KPIGROUP_TYPE_SINK = 1; + */ + KPIGROUP_TYPE_SINK = 1, + /** + * Table fed by a materialized view on the database + * + * @generated from protobuf enum value: KPIGROUP_TYPE_MATERIALIZED = 2; + */ + KPIGROUP_TYPE_MATERIALIZED = 2, + /** + * Virtual table, the request is concretely executed on physical table (GroupToQuery) + * + * @generated from protobuf enum value: KPIGROUP_TYPE_VIEW = 3; + */ + KPIGROUP_TYPE_VIEW = 3 +} +// @generated message type with reflection information, may provide speed optimized methods +class KPIGroups$Type extends MessageType { + constructor() { + super("api.KPIGroups", [ + { no: 1, name: "Groups", kind: "message", localName: "Groups", jsonName: "Groups", repeat: 2 /*RepeatType.UNPACKED*/, T: () => KPIGroup } + ]); + } + create(value?: PartialMessage): KPIGroups { + const message = globalThis.Object.create((this.messagePrototype!)); + message.Groups = []; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: KPIGroups): KPIGroups { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated api.KPIGroup Groups */ 1: + message.Groups.push(KPIGroup.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: KPIGroups, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* repeated api.KPIGroup Groups = 1; */ + for (let i = 0; i < message.Groups.length; i++) + KPIGroup.internalBinaryWrite(message.Groups[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.KPIGroups + */ +export const KPIGroups = new KPIGroups$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class KPIGroup$Type extends MessageType { + constructor() { + super("api.KPIGroup", [ + { no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.KPIGroupType", KPIGroupType] }, + { no: 3, name: "Queryable", kind: "scalar", localName: "Queryable", jsonName: "Queryable", T: 8 /*ScalarType.BOOL*/ }, + { no: 4, name: "GroupToQuery", kind: "scalar", localName: "GroupToQuery", jsonName: "GroupToQuery", T: 9 /*ScalarType.STRING*/ }, + { no: 5, name: "OrderBy", kind: "scalar", localName: "OrderBy", jsonName: "OrderBy", T: 9 /*ScalarType.STRING*/ }, + { no: 6, name: "Engine", kind: "scalar", localName: "Engine", jsonName: "Engine", T: 9 /*ScalarType.STRING*/ }, + { no: 7, name: "HeaderColumns", kind: "scalar", localName: "HeaderColumns", jsonName: "HeaderColumns", T: 9 /*ScalarType.STRING*/ }, + { no: 8, name: "PartitionBy", kind: "scalar", localName: "PartitionBy", jsonName: "PartitionBy", T: 9 /*ScalarType.STRING*/ } + ]); + } + create(value?: PartialMessage): KPIGroup { + const message = globalThis.Object.create((this.messagePrototype!)); + message.Name = ""; + message.Type = 0; + message.Queryable = false; + message.GroupToQuery = ""; + message.OrderBy = ""; + message.Engine = ""; + message.HeaderColumns = ""; + message.PartitionBy = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: KPIGroup): KPIGroup { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string Name */ 1: + message.Name = reader.string(); + break; + case /* api.KPIGroupType Type */ 2: + message.Type = reader.int32(); + break; + case /* bool Queryable */ 3: + message.Queryable = reader.bool(); + break; + case /* string GroupToQuery */ 4: + message.GroupToQuery = reader.string(); + break; + case /* string OrderBy */ 5: + message.OrderBy = reader.string(); + break; + case /* string Engine */ 6: + message.Engine = reader.string(); + break; + case /* string HeaderColumns */ 7: + message.HeaderColumns = reader.string(); + break; + case /* string PartitionBy */ 8: + message.PartitionBy = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: KPIGroup, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string Name = 1; */ + if (message.Name !== "") + writer.tag(1, WireType.LengthDelimited).string(message.Name); + /* api.KPIGroupType Type = 2; */ + if (message.Type !== 0) + writer.tag(2, WireType.Varint).int32(message.Type); + /* bool Queryable = 3; */ + if (message.Queryable !== false) + writer.tag(3, WireType.Varint).bool(message.Queryable); + /* string GroupToQuery = 4; */ + if (message.GroupToQuery !== "") + writer.tag(4, WireType.LengthDelimited).string(message.GroupToQuery); + /* string OrderBy = 5; */ + if (message.OrderBy !== "") + writer.tag(5, WireType.LengthDelimited).string(message.OrderBy); + /* string Engine = 6; */ + if (message.Engine !== "") + writer.tag(6, WireType.LengthDelimited).string(message.Engine); + /* string HeaderColumns = 7; */ + if (message.HeaderColumns !== "") + writer.tag(7, WireType.LengthDelimited).string(message.HeaderColumns); + /* string PartitionBy = 8; */ + if (message.PartitionBy !== "") + writer.tag(8, WireType.LengthDelimited).string(message.PartitionBy); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.KPIGroup + */ +export const KPIGroup = new KPIGroup$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class KPIItems$Type extends MessageType { + constructor() { + super("api.KPIItems", [ + { no: 1, name: "Items", kind: "message", localName: "Items", jsonName: "Items", repeat: 2 /*RepeatType.UNPACKED*/, T: () => KPIItem } + ]); + } + create(value?: PartialMessage): KPIItems { + const message = globalThis.Object.create((this.messagePrototype!)); + message.Items = []; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: KPIItems): KPIItems { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated api.KPIItem Items */ 1: + message.Items.push(KPIItem.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: KPIItems, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* repeated api.KPIItem Items = 1; */ + for (let i = 0; i < message.Items.length; i++) + KPIItem.internalBinaryWrite(message.Items[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.KPIItems + */ +export const KPIItems = new KPIItems$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class KPIItem$Type extends MessageType { + constructor() { + super("api.KPIItem", [ + { no: 1, name: "Context", kind: "scalar", localName: "Context", jsonName: "Context", T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "Group", kind: "scalar", localName: "Group", jsonName: "Group", T: 9 /*ScalarType.STRING*/ }, + { no: 3, name: "Queryable", kind: "scalar", localName: "Queryable", jsonName: "Queryable", T: 8 /*ScalarType.BOOL*/ }, + { no: 4, name: "GroupToJoin", kind: "scalar", localName: "GroupToJoin", jsonName: "GroupToJoin", T: 9 /*ScalarType.STRING*/ }, + { no: 5, name: "CustomType", kind: "scalar", localName: "CustomType", jsonName: "CustomType", T: 9 /*ScalarType.STRING*/ } + ]); + } + create(value?: PartialMessage): KPIItem { + const message = globalThis.Object.create((this.messagePrototype!)); + message.Context = ""; + message.Group = ""; + message.Queryable = false; + message.GroupToJoin = ""; + message.CustomType = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: KPIItem): KPIItem { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string Context */ 1: + message.Context = reader.string(); + break; + case /* string Group */ 2: + message.Group = reader.string(); + break; + case /* bool Queryable */ 3: + message.Queryable = reader.bool(); + break; + case /* string GroupToJoin */ 4: + message.GroupToJoin = reader.string(); + break; + case /* string CustomType */ 5: + message.CustomType = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: KPIItem, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string Context = 1; */ + if (message.Context !== "") + writer.tag(1, WireType.LengthDelimited).string(message.Context); + /* string Group = 2; */ + if (message.Group !== "") + writer.tag(2, WireType.LengthDelimited).string(message.Group); + /* bool Queryable = 3; */ + if (message.Queryable !== false) + writer.tag(3, WireType.Varint).bool(message.Queryable); + /* string GroupToJoin = 4; */ + if (message.GroupToJoin !== "") + writer.tag(4, WireType.LengthDelimited).string(message.GroupToJoin); + /* string CustomType = 5; */ + if (message.CustomType !== "") + writer.tag(5, WireType.LengthDelimited).string(message.CustomType); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.KPIItem + */ +export const KPIItem = new KPIItem$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class FieldTypes$Type extends MessageType { + constructor() { + super("api.FieldTypes", [ + { no: 1, name: "Types", kind: "message", localName: "Types", jsonName: "Types", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FieldType } + ]); + } + create(value?: PartialMessage): FieldTypes { + const message = globalThis.Object.create((this.messagePrototype!)); + message.Types = []; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldTypes): FieldTypes { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated api.FieldType Types */ 1: + message.Types.push(FieldType.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: FieldTypes, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* repeated api.FieldType Types = 1; */ + for (let i = 0; i < message.Types.length; i++) + FieldType.internalBinaryWrite(message.Types[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.FieldTypes + */ +export const FieldTypes = new FieldTypes$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class FieldType$Type extends MessageType { + constructor() { + super("api.FieldType", [ + { no: 1, name: "Context", kind: "scalar", localName: "Context", jsonName: "Context", T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "Type", kind: "scalar", localName: "Type", jsonName: "Type", T: 9 /*ScalarType.STRING*/ } + ]); + } + create(value?: PartialMessage): FieldType { + const message = globalThis.Object.create((this.messagePrototype!)); + message.Context = ""; + message.Type = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldType): FieldType { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string Context */ 1: + message.Context = reader.string(); + break; + case /* string Type */ 2: + message.Type = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: FieldType, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string Context = 1; */ + if (message.Context !== "") + writer.tag(1, WireType.LengthDelimited).string(message.Context); + /* string Type = 2; */ + if (message.Type !== "") + writer.tag(2, WireType.LengthDelimited).string(message.Type); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.FieldType + */ +export const FieldType = new FieldType$Type(); diff --git a/core/shared.ts b/core/shared.ts index 55e9cc3..28e0390 100644 --- a/core/shared.ts +++ b/core/shared.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name +// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name // @generated from protobuf file "core/shared.proto" (package "api", syntax proto3) // tslint:disable import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; @@ -15,43 +15,103 @@ import { Area } from "./unitOfMeasures"; import { Weight } from "./unitOfMeasures"; import { Volume } from "./unitOfMeasures"; import { Length } from "./unitOfMeasures"; -// Deprecated Header for all requests on project resource - +import { Currency } from "./currencyCodes"; /** + * Deprecated Header for all requests on project resource + * * @generated from protobuf message api.RequestHeader */ export interface RequestHeader { /** - * @generated from protobuf field: string Project = 1 [json_name = "Project"]; + * Identifier of the project + * + * @generated from protobuf field: string Project = 1 */ - Project: string; // string Author = 2 [(validate.rules).string.min_len = 1]; - // string Sync = 3 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "(Not use yet) Wait the event request to be applied"}]; + Project: string; } -// Header for all requests on project resources - /** - * Header for all requests on project resource + * @generated from protobuf message api.TimeRange + */ +export interface TimeRange { + /** + * Start time, format hh:mm + * + * @generated from protobuf field: string StartTime = 1 + */ + StartTime: string; + /** + * End time, format hh:mm + * + * @generated from protobuf field: string EndTime = 2 + */ + EndTime: string; +} +/** + * Header for all requests on project resources * * @generated from protobuf message api.RequestProjectHeader */ export interface RequestProjectHeader { /** - * @generated from protobuf field: string ProjectID = 1 [json_name = "ProjectID"]; + * Identifier of the project + * + * @generated from protobuf field: string ProjectID = 1 */ ProjectID: string; + /** + * DateTime ActualDate = 2 ; + * + * @generated from protobuf field: string CorrelationID = 3 + */ + CorrelationID: string; + /** + * @generated from protobuf field: string TechnicalID = 4 + */ + TechnicalID: string; } -// Header for all requests on organisation resources - /** - * Header for all requests on project resource + * Header for all requests on site resources + * + * @generated from protobuf message api.RequestSiteHeader + */ +export interface RequestSiteHeader { + /** + * Identifier of the site + * + * @generated from protobuf field: string SiteID = 1 + */ + SiteID: string; + /** + * DateTime ActualDate = 2 ; + * + * @generated from protobuf field: string CorrelationID = 3 + */ + CorrelationID: string; + /** + * @generated from protobuf field: string TechnicalID = 4 + */ + TechnicalID: string; +} +/** + * Header for all requests on organisation resources * * @generated from protobuf message api.RequestOrganisationHeader */ export interface RequestOrganisationHeader { /** - * @generated from protobuf field: string OrganisationID = 1 [json_name = "OrganisationID"]; + * Identifier of the organisation + * + * @generated from protobuf field: string OrganisationID = 1 */ OrganisationID: string; + /** + * @generated from protobuf field: string CorrelationID = 2 + */ + CorrelationID: string; + /** + * @generated from protobuf field: string TechnicalID = 3 + */ + TechnicalID: string; } /** * Header for all requests on bucket resources @@ -60,9 +120,19 @@ export interface RequestOrganisationHeader { */ export interface RequestBucketHeader { /** - * @generated from protobuf field: string BucketID = 1 [json_name = "BucketID"]; + * Identifier of the bucket + * + * @generated from protobuf field: string BucketID = 1 */ BucketID: string; + /** + * @generated from protobuf field: string CorrelationID = 2 + */ + CorrelationID: string; + /** + * @generated from protobuf field: string TechnicalID = 3 + */ + TechnicalID: string; } /** * Header for all requests on partnerApp resources @@ -71,16 +141,124 @@ export interface RequestBucketHeader { */ export interface RequestPartnerAppHeader { /** - * @generated from protobuf field: string PartnerAppID = 1 [json_name = "PartnerAppID"]; + * Identifier of the partnerApp + * + * @generated from protobuf field: string PartnerAppID = 1 */ PartnerAppID: string; + /** + * @generated from protobuf field: string CorrelationID = 2 + */ + CorrelationID: string; + /** + * @generated from protobuf field: string TechnicalID = 3 + */ + TechnicalID: string; } /** - * Header for all response messages + * Header for all requests on connection resources + * + * @generated from protobuf message api.RequestConnectionHeader + */ +export interface RequestConnectionHeader { + /** + * Identifier of the connection + * + * @generated from protobuf field: string ConnectionID = 1 + */ + ConnectionID: string; + /** + * @generated from protobuf field: string CorrelationID = 2 + */ + CorrelationID: string; + /** + * @generated from protobuf field: string TechnicalID = 3 + */ + TechnicalID: string; +} +/** + * Header for all requests on attachment type resources + * + * @generated from protobuf message api.RequestAttachmentTypeHeader + */ +export interface RequestAttachmentTypeHeader { + /** + * Identifier of the attachment type + * + * @generated from protobuf field: string AttachmentTypeID = 1 + */ + AttachmentTypeID: string; + /** + * @generated from protobuf field: string CorrelationID = 2 + */ + CorrelationID: string; + /** + * @generated from protobuf field: string TechnicalID = 3 + */ + TechnicalID: string; +} +/** + * Header for all project response messages * * @generated from protobuf message api.ResponseHeader */ export interface ResponseHeader { + /** + * Identifier of the project + * + * @generated from protobuf field: string ProjectID = 1 + */ + ProjectID: string; + /** + * @generated from protobuf field: string CorrelationID = 2 + */ + CorrelationID: string; + /** + * @generated from protobuf field: string TechnicalID = 3 + */ + TechnicalID: string; +} +/** + * Header for all site response messages + * + * @generated from protobuf message api.ResponseSiteHeader + */ +export interface ResponseSiteHeader { + /** + * Identifier of the site + * + * @generated from protobuf field: string SiteID = 1 + */ + SiteID: string; + /** + * @generated from protobuf field: string CorrelationID = 2 + */ + CorrelationID: string; + /** + * @generated from protobuf field: string TechnicalID = 3 + */ + TechnicalID: string; +} +/** + * Header for all response messages + * + * @generated from protobuf message api.AttachmentTypeResponseHeader + */ +export interface AttachmentTypeResponseHeader { + /** + * Identifier of the AttachmentType + * + * @generated from protobuf field: string AttachmentTypeID = 1 + */ + AttachmentTypeID: string; + /** + * @generated from protobuf field: string CorrelationID = 2 + */ + CorrelationID: string; + /** + * @generated from protobuf field: string TechnicalID = 3 + */ + TechnicalID: string; } /** * Header for all query messages @@ -89,21 +267,21 @@ export interface ResponseHeader { */ export interface QueryHeader { /** - * @generated from protobuf field: string Project = 1 [json_name = "Project"]; + * @generated from protobuf field: string Project = 1 */ Project: string; + // string Author = 2; + /** - * string Author = 2; - * - * @generated from protobuf field: string PagingState = 3 [json_name = "PagingState"]; + * @generated from protobuf field: string PagingState = 3 */ PagingState: string; /** - * @generated from protobuf field: string Limit = 4 [json_name = "Limit"]; + * @generated from protobuf field: string Limit = 4 */ Limit: string; /** - * @generated from protobuf field: bool LocalizedLabel = 5 [json_name = "LocalizedLabel"]; + * @generated from protobuf field: bool LocalizedLabel = 5 */ LocalizedLabel: boolean; } @@ -114,19 +292,58 @@ export interface QueryHeader { */ export interface QueryProjectHeader { /** - * @generated from protobuf field: string ProjectID = 1 [json_name = "ProjectID"]; + * Identifier of the project + * + * @generated from protobuf field: string ProjectID = 1 */ ProjectID: string; /** - * @generated from protobuf field: string PagingState = 3 [json_name = "PagingState"]; + * Number of elements displayed + * + * @generated from protobuf field: string PagingState = 3 */ PagingState: string; /** - * @generated from protobuf field: string Limit = 4 [json_name = "Limit"]; + * Number of additional elements to display + * + * @generated from protobuf field: string Limit = 4 */ Limit: string; /** - * @generated from protobuf field: bool LocalizedLabel = 5 [json_name = "LocalizedLabel"]; + * Return the message in the user's language + * + * @generated from protobuf field: bool LocalizedLabel = 5 + */ + LocalizedLabel: boolean; +} +/** + * Header for all query site messages + * + * @generated from protobuf message api.QuerySiteHeader + */ +export interface QuerySiteHeader { + /** + * Identifier of the site + * + * @generated from protobuf field: string SiteID = 1 + */ + SiteID: string; + /** + * Number of elements displayed + * + * @generated from protobuf field: string PagingState = 3 + */ + PagingState: string; + /** + * Number of additional elements to display + * + * @generated from protobuf field: string Limit = 4 + */ + Limit: string; + /** + * Return the message in the user's language + * + * @generated from protobuf field: bool LocalizedLabel = 5 */ LocalizedLabel: boolean; } @@ -135,7 +352,9 @@ export interface QueryProjectHeader { */ export interface ResultHeader { /** - * @generated from protobuf field: string PagingState = 1 [json_name = "PagingState"]; + * Number of elements displayed + * + * @generated from protobuf field: string PagingState = 1 */ PagingState: string; } @@ -146,29 +365,43 @@ export interface ResultHeader { */ export interface CommandHeader { /** - * @generated from protobuf field: string ActionCommand = 1 [json_name = "ActionCommand"]; + * @generated from protobuf field: string ActionCommand = 1 */ ActionCommand: string; /** - * @generated from protobuf field: api.DateTime CommandTS = 2 [json_name = "CommandTS"]; + * @generated from protobuf field: api.DateTime CommandTS = 2 */ CommandTS?: DateTime; + // DateTime ActualDate = 7; + /** - * @generated from protobuf field: string Project = 3 [json_name = "Project"]; + * @generated from protobuf field: string Project = 3 */ Project: string; /** - * @generated from protobuf field: string FromDomain = 4 [json_name = "FromDomain"]; + * @generated from protobuf field: string Site = 9 + */ + Site: string; + /** + * @generated from protobuf field: string FromDomain = 4 */ FromDomain: string; /** - * @generated from protobuf field: string FromObject = 5 [json_name = "FromObject"]; + * @generated from protobuf field: string FromObject = 5 */ FromObject: string; /** - * @generated from protobuf field: string FromRule = 6 [json_name = "FromRule"]; + * @generated from protobuf field: string FromRule = 6 */ FromRule: string; + /** + * @generated from protobuf field: string FromEvent = 7 + */ + FromEvent: string; + /** + * @generated from protobuf field: string FromAuthor = 8 + */ + FromAuthor: string; } /** * Header for all event messages @@ -177,25 +410,43 @@ export interface CommandHeader { */ export interface EventHeader { /** - * @generated from protobuf field: string InputEvent = 1 [json_name = "InputEvent"]; + * @generated from protobuf field: string InputEvent = 1 */ InputEvent: string; /** - * @generated from protobuf field: api.DateTime EventTS = 2 [json_name = "EventTS"]; + * @generated from protobuf field: api.DateTime EventTS = 2 */ EventTS?: DateTime; + // DateTime ActualDate = 6; // TODO : add validation rule to make it required : [(validate.rules).message.required = true] + /** - * @generated from protobuf field: string Project = 3 [json_name = "Project"]; + * Contains the ID of the parent project if entity belongs to project rscType + * + * @generated from protobuf field: string Project = 3 */ Project: string; /** - * @generated from protobuf field: string Author = 4 [json_name = "Author"]; + * Contains the ID of the parent site if entity belongs to site rscType + * + * @generated from protobuf field: string Site = 8 + */ + Site: string; + /** + * @generated from protobuf field: string Author = 4 */ Author: string; /** - * @generated from protobuf field: string EventID = 5 [json_name = "EventID"]; + * @generated from protobuf field: string EventID = 5 */ EventID: string; + /** + * @generated from protobuf field: string CreatedBy = 6 + */ + CreatedBy: string; + /** + * @generated from protobuf field: uint32 Version = 7 + */ + Version: number; } /** * Generic Object structures @@ -203,23 +454,64 @@ export interface EventHeader { * @generated from protobuf message api.EntityID */ export interface EntityID { + // string UuID = 1 + // [ + // (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {read_only: true, description: "Internal identifier"}, (validate.rules).string.unauthorized = true + // ]; + /** - * string UuID = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {read_only: true, description: "Internal identifier"}, (validate.rules).string.unauthorized = true]; + * Your identifier * - * @generated from protobuf field: string RefID = 2 [json_name = "RefID"]; + * @generated from protobuf field: string RefID = 2 */ RefID: string; + /** + * Your effective date. If your event triggers a status change, this date will be used into the status ActualDate + * + * @generated from protobuf field: api.DateTime RefDate = 3 + */ + RefDate?: DateTime; +} +/** + * Specific Stock ID struct + * + * @generated from protobuf message api.StockID + */ +export interface StockID { + /** + * Your effective date + * + * @generated from protobuf field: api.DateTime RefDate = 3 + */ + RefDate?: DateTime; +} +/** + * Specific ID struct when No refid + * + * @generated from protobuf message api.NoID + */ +export interface NoID { + /** + * Your effective date + * + * @generated from protobuf field: api.DateTime RefDate = 3 + */ + RefDate?: DateTime; } /** * @generated from protobuf message api.GenericObject */ export interface GenericObject { /** - * @generated from protobuf field: api.EventHeader LastEventHeader = 1 [json_name = "LastEventHeader"]; + * @generated from protobuf field: api.EventHeader LastEventHeader = 1 */ LastEventHeader?: EventHeader; /** - * @generated from protobuf field: api.GenericObjectPayload Payload = 2 [json_name = "Payload"]; + * @generated from protobuf field: api.EntityID ID = 2 + */ + ID?: EntityID; + /** + * @generated from protobuf field: api.GenericObjectPayload Payload = 3 */ Payload?: GenericObjectPayload; } @@ -227,10 +519,6 @@ export interface GenericObject { * @generated from protobuf message api.GenericObjectPayload */ export interface GenericObjectPayload { - /** - * @generated from protobuf field: api.EntityID ID = 1 [json_name = "ID"]; - */ - ID?: EntityID; } /** * Common structures @@ -239,15 +527,15 @@ export interface GenericObjectPayload { */ export interface DateTime { /** - * UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z]) + * UTC date/time in ISO 8601 format * - * @generated from protobuf field: string DateTime = 1 [json_name = "DateTime"]; + * @generated from protobuf field: string DateTime = 1 */ DateTime: string; /** - * Time zone from where the author emits the event + * Time zone from where the author emits the event in this format * - * @generated from protobuf field: string AuthorTimeZone = 2 [json_name = "AuthorTimeZone"]; + * @generated from protobuf field: string AuthorTimeZone = 2 */ AuthorTimeZone: string; } @@ -261,47 +549,62 @@ export interface ValueType { ValueType: { oneofKind: "String"; /** - * @generated from protobuf field: string String = 1 [json_name = "String"]; + * @generated from protobuf field: string String = 1 */ String: string; } | { oneofKind: "Int"; /** - * @generated from protobuf field: int64 Int = 2 [json_name = "Int"]; + * @generated from protobuf field: int64 Int = 2 */ Int: bigint; } | { oneofKind: "Float"; /** - * @generated from protobuf field: float Float = 3 [json_name = "Float"]; + * @generated from protobuf field: float Float = 3 */ Float: number; } | { oneofKind: "Bool"; /** - * @generated from protobuf field: bool Bool = 4 [json_name = "Bool"]; + * @generated from protobuf field: bool Bool = 4 */ Bool: boolean; } | { oneofKind: "Timestamp"; /** - * @generated from protobuf field: api.DateTime Timestamp = 5 [json_name = "Timestamp"]; + * @generated from protobuf field: api.DateTime Timestamp = 5 */ Timestamp: DateTime; } | { oneofKind: undefined; }; } +/** + * @generated from protobuf message api.Amount + */ +export interface Amount { + /** + * @generated from protobuf field: float Value = 1 + */ + Value: number; + /** + * ISO 4217 currency code + * + * @generated from protobuf field: api.Currency Currency = 2 + */ + Currency: Currency; +} /** * @generated from protobuf message api.QuantityLength */ export interface QuantityLength { /** - * @generated from protobuf field: float Value = 1 [json_name = "Value"]; + * @generated from protobuf field: float Value = 1 */ Value: number; /** - * @generated from protobuf field: api.Length Unit = 2 [json_name = "Unit"]; + * @generated from protobuf field: api.Length Unit = 2 */ Unit: Length; } @@ -310,11 +613,11 @@ export interface QuantityLength { */ export interface QuantityVolume { /** - * @generated from protobuf field: float Value = 1 [json_name = "Value"]; + * @generated from protobuf field: float Value = 1 */ Value: number; /** - * @generated from protobuf field: api.Volume Unit = 2 [json_name = "Unit"]; + * @generated from protobuf field: api.Volume Unit = 2 */ Unit: Volume; } @@ -323,11 +626,11 @@ export interface QuantityVolume { */ export interface QuantityWeight { /** - * @generated from protobuf field: float Value = 1 [json_name = "Value"]; + * @generated from protobuf field: float Value = 1 */ Value: number; /** - * @generated from protobuf field: api.Weight Unit = 2 [json_name = "Unit"]; + * @generated from protobuf field: api.Weight Unit = 2 */ Unit: Weight; } @@ -336,11 +639,11 @@ export interface QuantityWeight { */ export interface QuantityArea { /** - * @generated from protobuf field: float Value = 1 [json_name = "Value"]; + * @generated from protobuf field: float Value = 1 */ Value: number; /** - * @generated from protobuf field: api.Area Unit = 2 [json_name = "Unit"]; + * @generated from protobuf field: api.Area Unit = 2 */ Unit: Area; } @@ -349,19 +652,15 @@ export interface QuantityArea { */ export interface QuantityUnit { /** - * @generated from protobuf field: float Value = 1 [json_name = "Value"]; + * @generated from protobuf field: float Value = 1 */ Value: number; /** - * @generated from protobuf field: api.DimensionLess Unit = 2 [json_name = "Unit"]; + * @generated from protobuf field: api.DimensionLess Unit = 2 */ Unit: DimensionLess; } /** - * Domain description - * - * RequestProjectHeader Header = 1; - * * @generated from protobuf message api.DomainDescriptionRequest */ export interface DomainDescriptionRequest { @@ -371,11 +670,11 @@ export interface DomainDescriptionRequest { */ export interface DomainDescriptionResponse { /** - * @generated from protobuf field: api.ResponseHeader Header = 1 [json_name = "Header"]; + * @generated from protobuf field: api.ResponseHeader Header = 1 */ Header?: ResponseHeader; /** - * @generated from protobuf field: api.DomainDescription Payload = 2 [json_name = "Payload"]; + * @generated from protobuf field: api.DomainDescription Payload = 2 */ Payload?: DomainDescription; } @@ -384,11 +683,11 @@ export interface DomainDescriptionResponse { */ export interface DomainDescription { /** - * @generated from protobuf field: string Name = 1 [json_name = "Name"]; + * @generated from protobuf field: string Name = 1 */ Name: string; /** - * @generated from protobuf field: repeated api.ObjectDescription ObjectDescription = 2 [json_name = "ObjectDescription"]; + * @generated from protobuf field: repeated api.ObjectDescription ObjectDescription = 2 */ ObjectDescription: ObjectDescription[]; } @@ -397,23 +696,23 @@ export interface DomainDescription { */ export interface ObjectDescription { /** - * @generated from protobuf field: string Name = 1 [json_name = "Name"]; + * @generated from protobuf field: string Name = 1 */ Name: string; /** - * @generated from protobuf field: repeated api.ObjectAction ApiAction = 2 [json_name = "ApiAction"]; + * @generated from protobuf field: repeated api.ObjectAction ApiAction = 2 */ ApiAction: ObjectAction[]; /** - * @generated from protobuf field: string PayloadJSON = 3 [json_name = "PayloadJSON"]; + * @generated from protobuf field: string PayloadJSON = 3 */ PayloadJSON: string; /** - * @generated from protobuf field: repeated api.ObjectAction ApiInput = 4 [json_name = "ApiInput"]; + * @generated from protobuf field: repeated api.ObjectAction ApiInput = 4 */ ApiInput: ObjectAction[]; /** - * @generated from protobuf field: repeated api.ObjectAction ApiQuery = 5 [json_name = "ApiQuery"]; + * @generated from protobuf field: repeated api.ObjectAction ApiQuery = 5 */ ApiQuery: ObjectAction[]; } @@ -422,11 +721,11 @@ export interface ObjectDescription { */ export interface ObjectAction { /** - * @generated from protobuf field: string Name = 1 [json_name = "Name"]; + * @generated from protobuf field: string Name = 1 */ Name: string; /** - * @generated from protobuf field: string JsonTemplate = 2 [json_name = "JsonTemplate"]; + * @generated from protobuf field: string JsonTemplate = 2 */ JsonTemplate: string; } @@ -438,19 +737,21 @@ export interface ObjectAction { */ export interface MetadataElement { /** - * @generated from protobuf field: string Key = 1 [json_name = "Key"]; + * Key of the Metadata and Segmentation of the project + * + * @generated from protobuf field: string Key = 1 */ Key: string; /** - * @generated from protobuf field: api.ValueType Value = 2 [json_name = "Value"]; + * Value of the Metadata and Segmentation of the project + * + * @generated from protobuf field: api.ValueType Value = 2 */ Value?: ValueType; } -// -// Simple filter structure for Find query - /** - * Filter on a simple value + * + * Simple filter structure for Find query * * @generated from protobuf message api.SimpleFilter */ @@ -458,31 +759,31 @@ export interface SimpleFilter { /** * Filter path * - * @generated from protobuf field: string Attribute = 1 [json_name = "Attribute"]; + * @generated from protobuf field: string Attribute = 1 */ Attribute: string; /** * Use this parameter if only one value * - * @generated from protobuf field: string Value = 2 [json_name = "Value"]; + * @generated from protobuf field: string Value = 2 */ Value: string; /** * Use this parameter if more than one value * - * @generated from protobuf field: repeated string Values = 3 [json_name = "Values"]; + * @generated from protobuf field: repeated string Values = 3 */ Values: string[]; /** - * \" EQUAL: 'EQUAL',  DIFF: 'DIFF',  START_BY: 'START_BY',  NOT_START_BY: 'NOT_START_BY',  FINISH_BY: 'FINISH_BY',  NOT_FINISH_BY: 'NOT_FINISH_BY',  CONTAINS: 'CONTAINS',  NOT_CONTAINS: 'NOT_CONTAINS'\" + * Allowed values : \"\", \"not\" * - * @generated from protobuf field: string Operator = 4 [json_name = "Operator"]; + * @generated from protobuf field: string Operator = 4 */ Operator: string; /** - * metadata's key + * Metadata's key * - * @generated from protobuf field: string CombinedID = 5 [json_name = "CombinedID"]; + * @generated from protobuf field: string CombinedID = 5 */ CombinedID: string; } @@ -494,31 +795,29 @@ export interface SimpleFilter { */ export interface CombinedFilter { /** - * @generated from protobuf field: string Path = 1 [json_name = "Path"]; + * @generated from protobuf field: string Path = 1 */ Path: string; /** * Simple filter structure for Find query * - * @generated from protobuf field: repeated api.SimpleFilter simpleFilters = 2; + * @generated from protobuf field: repeated api.SimpleFilter simpleFilters = 2 */ simpleFilters: SimpleFilter[]; /** * Range filter structure for Find query * - * @generated from protobuf field: repeated api.RangeFilter rangeFilters = 3; + * @generated from protobuf field: repeated api.RangeFilter rangeFilters = 3 */ rangeFilters: RangeFilter[]; /** - * @generated from protobuf field: string CombinedID = 4 [json_name = "CombinedID"]; + * @generated from protobuf field: string CombinedID = 4 */ CombinedID: string; } -// -// Range filter structure for Find query - /** - * Filter between two values + * + * Range filter structure for Find query * * @generated from protobuf message api.RangeFilter */ @@ -526,25 +825,25 @@ export interface RangeFilter { /** * Filter path * - * @generated from protobuf field: string Attribute = 1 [json_name = "Attribute"]; + * @generated from protobuf field: string Attribute = 1 */ Attribute: string; /** * Maximum value * - * @generated from protobuf field: string valueLt = 2; + * @generated from protobuf field: string valueLt = 2 */ valueLt: string; /** * Minimum value * - * @generated from protobuf field: string valueGt = 3; + * @generated from protobuf field: string valueGt = 3 */ valueGt: string; /** * Metadata's key * - * @generated from protobuf field: string CombinedID = 4 [json_name = "CombinedID"]; + * @generated from protobuf field: string CombinedID = 4 */ CombinedID: string; } @@ -558,19 +857,19 @@ export interface BlockFilter { /** * Simple filter structure for Find query * - * @generated from protobuf field: repeated api.SimpleFilter simpleFilters = 1; + * @generated from protobuf field: repeated api.SimpleFilter simpleFilters = 1 */ simpleFilters: SimpleFilter[]; /** * Range filter structure for Find query * - * @generated from protobuf field: repeated api.RangeFilter rangeFilters = 2; + * @generated from protobuf field: repeated api.RangeFilter rangeFilters = 2 */ rangeFilters: RangeFilter[]; /** * block filter structure for Find query * - * @generated from protobuf field: repeated api.BlockFilter BlockFilters = 3 [json_name = "BlockFilters"]; + * @generated from protobuf field: repeated api.BlockFilter BlockFilters = 3 */ BlockFilters: BlockFilter[]; } @@ -582,15 +881,41 @@ export interface BlockFilter { */ export interface MatchField { /** - * @generated from protobuf field: string Attribute = 1 [json_name = "Attribute"]; + * Filter path + * + * @generated from protobuf field: string Attribute = 1 */ Attribute: string; /** - * @generated from protobuf field: string AttributeCombined = 2 [json_name = "AttributeCombined"]; + * Filter path for metadata filter + * + * @generated from protobuf field: string AttributeCombined = 2 */ AttributeCombined: string; /** - * @generated from protobuf field: string CombinedID = 3 [json_name = "CombinedID"]; + * Metadata's key + * + * @generated from protobuf field: string CombinedID = 3 + */ + CombinedID: string; +} +/** + * + * Standard structure, having an attribute,CombinedID and a list of values + * + * @generated from protobuf message api.MatchFieldResult + */ +export interface MatchFieldResult { + /** + * @generated from protobuf field: string Attribute = 1 + */ + Attribute: string; + /** + * @generated from protobuf field: repeated string Values = 2 + */ + Values: string[]; + /** + * @generated from protobuf field: string CombinedID = 3 */ CombinedID: string; } @@ -602,11 +927,11 @@ export interface MatchField { */ export interface ErrorDetail { /** - * @generated from protobuf field: string Key = 1 [json_name = "Key"]; + * @generated from protobuf field: string Key = 1 */ Key: string; /** - * @generated from protobuf field: string Value = 2 [json_name = "Value"]; + * @generated from protobuf field: string Value = 2 */ Value: string; } @@ -618,45 +943,45 @@ export interface ErrorDetail { */ export interface Errors { /** - * @generated from protobuf field: string ErrorCode = 1 [json_name = "ErrorCode"]; + * @generated from protobuf field: string ErrorCode = 1 */ ErrorCode: string; // n1error code (xxyyzzzz) /** - * @generated from protobuf field: string ErrorTrace = 2 [json_name = "ErrorTrace"]; + * @generated from protobuf field: string ErrorTrace = 2 */ ErrorTrace: string; // generated error code, for debugging purposes(in logs) /** - * @generated from protobuf field: repeated api.ErrorDetail ErrorDetails = 3 [json_name = "ErrorDetails"]; + * @generated from protobuf field: repeated api.ErrorDetail ErrorDetails = 3 */ ErrorDetails: ErrorDetail[]; /** - * @generated from protobuf field: string ContextType = 4 [json_name = "ContextType"]; + * @generated from protobuf field: string ContextType = 4 */ ContextType: string; // Entity /** - * @generated from protobuf field: string ContextProcess = 5 [json_name = "ContextProcess"]; + * @generated from protobuf field: string ContextProcess = 5 */ ContextProcess: string; // Method grpc /** - * @generated from protobuf field: string ContextPayload = 6 [json_name = "ContextPayload"]; + * @generated from protobuf field: string ContextPayload = 6 */ ContextPayload: string; // Payload request } +// +// structure containing error key & value + /** - * - * structure containing error key & value - * * @generated from protobuf message api.ParamElement */ export interface ParamElement { /** - * @generated from protobuf field: string Key = 1 [json_name = "Key"]; + * @generated from protobuf field: string Key = 1 */ Key: string; + // string Value = 2; + /** - * string Value = 2; - * - * @generated from protobuf field: api.ValueType Value = 3 [json_name = "Value"]; + * @generated from protobuf field: api.ValueType Value = 3 */ Value?: ValueType; } @@ -665,45 +990,310 @@ export interface ParamElement { */ export interface LabelStructure { /** - * @generated from protobuf field: string Code = 1 [json_name = "Code"]; + * Code of the message + * + * @generated from protobuf field: string Code = 1 */ Code: string; /** - * @generated from protobuf field: string Label = 2 [json_name = "Label"]; + * Label of the message + * + * @generated from protobuf field: string Label = 2 */ Label: string; /** - * @generated from protobuf field: repeated api.ParamElement Params = 3 [json_name = "Params"]; + * Map of parameter to be put/replaced in the error label + * Parameters for label + * + * @generated from protobuf field: repeated api.ParamElement Params = 3 */ - Params: ParamElement[]; // map of parameter to be put/replaced in the error label + Params: ParamElement[]; } -// -// NATS - /** - * @generated from protobuf message api.Credentials + * CoreEndpoint represents the REST webservices of Reflex Platform + * + * @generated from protobuf message api.CoreEndpoint */ -export interface Credentials { +export interface CoreEndpoint { /** - * @generated from protobuf field: string Jwt = 1 [json_name = "Jwt"]; + * RestEndpoint is the URL to access REST webservices of Platform. + * It is expected to include protocol. + * The protocol is expected to be "https://". + * Empty protocol MUST raise an error. + * Empty protocol or empty value MUST prevent attempts to access REST services. + * Empty value or protocol SHOULD NOT prevent normal use of other functions. + * + * @generated from protobuf field: string RestEndpoint = 1 */ - Jwt: string; + RestEndpoint: string; /** - * @generated from protobuf field: string Seed = 2 [json_name = "Seed"]; + * GrpcInputEndpoint is the URL to access GRPC Input services of Platform. + * It is expected to include protocol. + * The protocol is expected to be "https://". + * Empty protocol MUST raise an error. + * Empty protocol or empty value MUST prevent attempts to access gRPC services. + * Empty value or protocol SHOULD NOT prevent normal use of other functions. + * + * @generated from protobuf field: string GrpcInputEndpoint = 2 */ - Seed: string; + GrpcInputEndpoint: string; + /** + * GrpcQueryEndpoint is the URL to access GRPC Query services of Platform. + * It is expected to include protocol. + * The protocol is expected to be "https://". + * Empty protocol MUST raise an error. + * Empty protocol or empty value MUST prevent attempts to access gRPC services. + * Empty value or protocol SHOULD NOT prevent normal use of other functions. + * + * @generated from protobuf field: string GrpcQueryEndpoint = 3 + */ + GrpcQueryEndpoint: string; + /** + * GrpcGcsEndpoint is the URL to access GRPC Gcs services of Platform. + * It is expected to include protocol. + * The protocol is expected to be "https://". + * Empty protocol MUST raise an error. + * Empty protocol or empty value MUST prevent attempts to access gRPC services. + * Empty value or protocol SHOULD NOT prevent normal use of other functions. + * + * @generated from protobuf field: string GrpcGcsEndpoint = 4 + */ + GrpcGcsEndpoint: string; + /** + * GrpcLoggerEndpoint is the URL to access GRPC Logger services of Platform. + * It is expected to include protocol. + * The protocol is expected to be "https://". + * Empty protocol MUST raise an error. + * Empty protocol or empty value MUST prevent attempts to access gRPC services. + * Empty value or protocol SHOULD NOT prevent normal use of other functions. + * + * @generated from protobuf field: string GrpcLoggerEndpoint = 5 + */ + GrpcLoggerEndpoint: string; + /** + * GrpcProjectModelEndpoint is the URL to access GRPC ProjectModel services of Platform which notably manages the metadata. + * It is expected to include protocol. + * The protocol is expected to be "https://". + * Empty protocol MUST raise an error. + * Empty protocol or empty value MUST prevent attempts to access gRPC services. + * Empty value or protocol SHOULD NOT prevent normal use of other functions. + * + * @generated from protobuf field: string GrpcProjectModelEndpoint = 6 + */ + GrpcProjectModelEndpoint: string; + /** + * GrpcCoreCollabInputEndpoint is the URL to access GRPC Input services of Platform. + * It is expected to include protocol. + * The protocol is expected to be "https://". + * Empty protocol MUST raise an error. + * Empty protocol or empty value MUST prevent attempts to access gRPC services. + * Empty value or protocol SHOULD NOT prevent normal use of other functions. + * + * @generated from protobuf field: string GrpcCoreCollabInputEndpoint = 7 + */ + GrpcCoreCollabInputEndpoint: string; + /** + * GrpcCoreCollabQueryEndpoint is the URL to access GRPC Query services of Platform. + * It is expected to include protocol. + * The protocol is expected to be "https://". + * Empty protocol MUST raise an error. + * Empty protocol or empty value MUST prevent attempts to access gRPC services. + * Empty value or protocol SHOULD NOT prevent normal use of other functions. + * + * @generated from protobuf field: string GrpcCoreCollabQueryEndpoint = 8 + */ + GrpcCoreCollabQueryEndpoint: string; + /** + * GrpcCoreClaimTypeEndpoint is the URL to access GRPC Query services of Platform. + * It is expected to include protocol. + * The protocol is expected to be "https://". + * Empty protocol MUST raise an error. + * Empty protocol or empty value MUST prevent attempts to access gRPC services. + * Empty value or protocol SHOULD NOT prevent normal use of other functions. + * + * @generated from protobuf field: string GrpcCoreClaimTypeEndpoint = 9 + */ + GrpcCoreClaimTypeEndpoint: string; } -// -// basic messages (int, bool, string ,etc ) encapsulation inside a message -// we can use these message to escape default values of basic messages, and have the possibility to put an empty -// ex: not sending a string in a payload is the same as sending an empty string -> solution: use StringObject +/** + * IntegrationEndpoint represents the different endpoints of the integration Platform + * These services are notably used to manage integration processes / pipelines. + * + * @generated from protobuf message api.IntegrationEndpoint + */ +export interface IntegrationEndpoint { + /** + * RestEndpoint is the URL to access REST webservices of Integration. + * It is expected to include protocol. + * the protocol is expected to be "https://". + * Empty protocol MUST raise an error. + * Empty protocol or empty value MUST prevent attempts to access REST services. + * Empty value or protocol SHOULD NOT prevent normal use of other functions. + * + * @generated from protobuf field: string RestEndpoint = 1 + */ + RestEndpoint: string; + /** + * GrpcEndpoint is the URL to access GRPC services of Integration + * It is expected to include protocol and a port. + * The protocol is expected to be "https://". + * Empty protocol MUST raise an error. + * Empty protocol or empty value MUST prevent attempts to access gRPC services. + * Empty value or protocol SHOULD NOT prevent normal use of other functions. + * + * @generated from protobuf field: string GrpcEndpoint = 2 + */ + GrpcEndpoint: string; +} +/** + * StorageEndpoint represents the REST webservices of Google Cloud Storage + * These REST services are notably used to upload and retrieve files from the storage. + * In order to authenticate to it, a STS token is required and can be obtained from the CoreEndpoint /api.GcsApi/GetBucketSTS API. + * + * @generated from protobuf message api.StorageEndpoint + */ +export interface StorageEndpoint { + /** + * Endpoint is the URL to access the REST webservices. + * It is expected to include portocol. + * The protocol is expected to be "https://". + * Empty protocol MUST raise an error. + * Empty protocol or empty value MUST prevent attempts to access REST services. + * Empty value or protocol SHOULD NOT prevent normal use of other functions. + * + * @generated from protobuf field: string Endpoint = 1 + */ + Endpoint: string; + /** + * Bucket is the name of the bucket associated to this partner app. + * It should look like //. + * + * @generated from protobuf field: string Bucket = 2 + */ + Bucket: string; +} +// NatsCredentials holds the configuration for interacting with Platform's NATS. /** + * Platform provides a JetStream-enabled account for these credential set. + * The method to authenticate should comply with JWT decentralized auth. + * + * @generated from protobuf message api.NatsCredentials + */ +export interface NatsCredentials { + /** + * EndPoint is the URL to connect to NATS. + * This URL is expected to include protocol and port. + * Protocol is expected to be "nats://". + * Any port value SHOULD be acceptable. + * Missing protocol, address, or port SHOULD raise an error. + * Invalid protocol SHOULD raise an error. + * Errors raised in this protocol SHOULD NOT prevent use of any other protocols. + * + * @generated from protobuf field: string Endpoint = 1 + */ + Endpoint: string; + /** + * RootSubject defines a namespace of which all subjects must be prefixed with + * it is expected to be a dot-separated serries of "tokens" + * + * @generated from protobuf field: string RootSubject = 2 + */ + RootSubject: string; + /** + * Username is not used, but may help human readers to identify accounts. + * + * @generated from protobuf field: string Username = 3 + */ + Username: string; + /** + * @generated from protobuf field: string UserJwt = 4 + */ + UserJwt: string; // The JWT part for the authentication. e.g. https://pkg.go.dev/github.com/nats-io/nats.go#UserJWTAndSeed + /** + * @generated from protobuf field: string UserNkeySeed = 5 + */ + UserNkeySeed: string; // The seed part for the authentication. e.g. https://pkg.go.dev/github.com/nats-io/nats.go#UserJWTAndSeed +} +/** + * OpenSearchCredentials holds the configuration for interacting with Platform integration's OpenSearch + * + * @generated from protobuf message api.OpenSearchCredentials + */ +export interface OpenSearchCredentials { + /** + * Endpoint is the URL to access the OpenSearch dashboard. + * It is expected to include portocol. + * The protocol is expected to be "https://". + * Empty protocol MUST raise an error. + * Empty protocol or empty value MUST prevent attempts to access REST services. + * Empty value or protocol SHOULD NOT prevent normal use of other functions. + * + * @generated from protobuf field: string Endpoint = 1 + */ + Endpoint: string; + /** + * Username is the provided username to use for authentication + * + * @generated from protobuf field: string Username = 2 + */ + Username: string; + /** + * Password is the provided password to use for authentication + * + * @generated from protobuf field: string Password = 3 + */ + Password: string; + /** + * Index is the name of the index the partner app is allowed to use + * + * @generated from protobuf field: string Index = 4 + */ + Index: string; +} +/** + * OpenIDCredentials holds the configuration for interacting with Platform's OpenID Connect server + * This is used to authenticate to the CoreEndpoint and IntegrationEndpoint by providing a JWT token. + * + * @generated from protobuf message api.OpenIDCredentials + */ +export interface OpenIDCredentials { + /** + * WellKnownURI is the URL to access the OpenID Connect server's well-known configuration + * It is expected to include protocol. + * the protocol is expected to be "https://". + * Empty protocol MUST raise an error. + * Empty protocol or empty value MUST prevent attempts to access REST services. + * Empty value or protocol SHOULD NOT prevent normal use of other functions. + * + * @generated from protobuf field: string WellKnownURI = 1 + */ + WellKnownURI: string; + /** + * ServiceAccountName is the name that identifies the service account. + * It is not used for authentication, but may help human readers to identify accounts. + * + * @generated from protobuf field: string ServiceAccountName = 2 + */ + ServiceAccountName: string; + /** + * ServiceAccountPEM is the PEM-encoded private key of the service account that is used for authentication. + * + * @generated from protobuf field: string ServiceAccountPEM = 3 + */ + ServiceAccountPEM: string; +} +/** + * + * Basic messages (int, bool, string ,etc ) encapsulation inside a message + * we can use these message to escape default values of basic messages, and have the possibility to put an empty + * ex: not sending a string in a payload is the same as sending an empty string -> solution: use StringObject + * * @generated from protobuf message api.Int32Object */ export interface Int32Object { /** - * @generated from protobuf field: int32 Int32 = 1 [json_name = "Int32"]; + * @generated from protobuf field: int32 Int32 = 1 */ Int32: number; } @@ -712,7 +1302,7 @@ export interface Int32Object { */ export interface BoolObject { /** - * @generated from protobuf field: bool Bool = 1 [json_name = "Bool"]; + * @generated from protobuf field: bool Bool = 1 */ Bool: boolean; } @@ -721,7 +1311,7 @@ export interface BoolObject { */ export interface StringObject { /** - * @generated from protobuf field: string String = 1 [json_name = "String"]; + * @generated from protobuf field: string String = 1 */ String: string; } @@ -730,12 +1320,764 @@ export interface StringObject { */ export interface StringDateObject { /** - * UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z]) + * UTC date/time in ISO 8601 format * - * @generated from protobuf field: string DateTime = 10 [json_name = "DateTime"]; + * @generated from protobuf field: string DateTime = 10 */ DateTime: string; } +/** + * @generated from protobuf message api.WorkflowExecutionResult + */ +export interface WorkflowExecutionResult { + /** + * @generated from protobuf field: string WorkflowId = 1 + */ + WorkflowId: string; + /** + * @generated from protobuf field: string RunId = 2 + */ + RunId: string; + /** + * @generated from protobuf field: string Domain = 3 + */ + Domain: string; +} +/** + * @generated from protobuf message api.ModuleRegistration + */ +export interface ModuleRegistration { + /** + * @generated from protobuf field: api.WorkflowTypeEnum WorkflowTarget = 1 + */ + WorkflowTarget: WorkflowTypeEnum; + /** + * @generated from protobuf field: string WorkflowPath = 2 + */ + WorkflowPath: string; + /** + * @generated from protobuf field: api.ModuleWorkflowTypeEnum Type = 3 + */ + Type: ModuleWorkflowTypeEnum; + /** + * @generated from protobuf field: int32 Timeout = 4 + */ + Timeout: number; +} +/** + * @generated from protobuf message api.ModuleDeregistration + */ +export interface ModuleDeregistration { + /** + * @generated from protobuf field: api.WorkflowTypeEnum WorkflowTarget = 1 + */ + WorkflowTarget: WorkflowTypeEnum; + /** + * @generated from protobuf field: string WorkflowPath = 2 + */ + WorkflowPath: string; + /** + * @generated from protobuf field: api.ModuleWorkflowTypeEnum Type = 3 + */ + Type: ModuleWorkflowTypeEnum; +} +/** + * Message defining the structure of a ClaimType. + * + * @generated from protobuf message api.ClaimType + */ +export interface ClaimType { + /** + * @generated from protobuf field: string ID = 1 + */ + ID: string; // Unique identifier for the claim type. (formatted as such: "CLAIMTYPE__") + /** + * @generated from protobuf field: string ProjectID = 2 + */ + ProjectID: string; // Identifier for the project associated with the claim. + /** + * @generated from protobuf field: string Reason = 3 + */ + Reason: string; // Reason or description for the claim. + /** + * @generated from protobuf field: string ReasonCode = 4 + */ + ReasonCode: string; // Code for the reason of the claim. + /** + * @generated from protobuf field: api.ClaimEntityType EntityType = 5 + */ + EntityType: ClaimEntityType; // Type of entity associated with the claim. + /** + * @generated from protobuf field: api.ClaimCriticality DefaultCriticality = 6 + */ + DefaultCriticality: ClaimCriticality; // Default criticality level for the claim which is set upon its creation. + /** + * @generated from protobuf field: repeated api.ClaimTransition Transitions = 7 + */ + Transitions: ClaimTransition[]; // List of possible transitions between claim statuses. + /** + * @generated from protobuf field: repeated api.ClaimTypeClosure PossibleClosures = 8 + */ + PossibleClosures: ClaimTypeClosure[]; // List of possible closures for the claim. + /** + * @generated from protobuf field: repeated string CriticalityAllowedRoles = 9 + */ + CriticalityAllowedRoles: string[]; // Roles allowed to set criticality. + /** + * @generated from protobuf field: repeated string ReadAllowedRoles = 10 + */ + ReadAllowedRoles: string[]; // Roles allowed to read/view the claim. + /** + * @generated from protobuf field: repeated string WriteAllowedRoles = 11 + */ + WriteAllowedRoles: string[]; // Roles allowed to write/edit the claim. + /** + * @generated from protobuf field: repeated string AssignAllowedRoles = 12 + */ + AssignAllowedRoles: string[]; // Roles allowed to assign the claim. + /** + * @generated from protobuf field: repeated api.ClaimStatus AllowedStatuses = 13 + */ + AllowedStatuses: ClaimStatus[]; // List of allowed statuses for the claim. + /** + * @generated from protobuf field: api.ClaimStatus DefaultStatus = 14 + */ + DefaultStatus: ClaimStatus; // Default status for the claim which is set upon its creation. + /** + * @generated from protobuf field: api.ClaimSector Sector = 15 + */ + Sector: ClaimSector; // Sector of the claim. + /** + * @generated from protobuf field: repeated string DefaultAssignees = 16 + */ + DefaultAssignees: string[]; // Default assignees of the claim. +} +/** + * Message defining the structure of a ClaimTransition. + * + * @generated from protobuf message api.ClaimTransition + */ +export interface ClaimTransition { + /** + * @generated from protobuf field: api.ClaimStatus FromStatus = 1 + */ + FromStatus: ClaimStatus; // Starting status of the transition. + /** + * @generated from protobuf field: api.ClaimStatus ToStatus = 2 + */ + ToStatus: ClaimStatus; // Ending status of the transition. + /** + * @generated from protobuf field: repeated string AllowedRoles = 3 + */ + AllowedRoles: string[]; // Roles allowed to perform this transition. + /** + * @generated from protobuf field: bool ShouldNotify = 4 + */ + ShouldNotify: boolean; // Indicates whether notification should be sent to the claim's assignees after this transition. +} +/** + * Message defining the structure of a ClaimTypeClosure for ClaimTypes. + * + * @generated from protobuf message api.ClaimTypeClosure + */ +export interface ClaimTypeClosure { + /** + * @generated from protobuf field: string Responsible = 1 + */ + Responsible: string; // Person or entity responsible for the closure. + /** + * @generated from protobuf field: repeated string Causes = 2 + */ + Causes: string[]; // List of possible causes associated with the closure for a given responsible. Array is multi-valued for claim types but single-valued for claim instances (only one cause per claim closure). +} +/** + * Message defining the structure of a ClaimClosure for Claim instances. + * + * @generated from protobuf message api.ClaimClosure + */ +export interface ClaimClosure { + /** + * @generated from protobuf field: string Responsible = 1 + */ + Responsible: string; // Person or entity responsible for the closure. + /** + * @generated from protobuf field: string Cause = 2 + */ + Cause: string; // Cause associated with the closure. +} +/** + * Message defining the claim attached to entity + * + * @generated from protobuf message api.ClaimSummary + */ +export interface ClaimSummary { + /** + * Identifier of the claim type + * + * @generated from protobuf field: string ClaimTypeID = 1 + */ + ClaimTypeID: string; + /** + * Code of the claim type + * + * @generated from protobuf field: string ClaimTypeReason = 2 + */ + ClaimTypeReason: string; + /** + * @generated from protobuf field: int32 Number = 3 + */ + Number: number; +} +/** + * @generated from protobuf message api.AttachmentType + */ +export interface AttachmentType { + /** + * @generated from protobuf field: string ID = 1 + */ + ID: string; + /** + * @generated from protobuf field: string ProjectID = 2 + */ + ProjectID: string; + /** + * @generated from protobuf field: string Code = 3 + */ + Code: string; + /** + * @generated from protobuf field: api.EntityType Entity = 4 + */ + Entity: EntityType; + /** + * @generated from protobuf field: string Label = 5 + */ + Label: string; + /** + * @generated from protobuf field: api.SharePolicy SharePolicy = 6 + */ + SharePolicy: SharePolicy; +} +/** + * @generated from protobuf message api.AttachmentSummary + */ +export interface AttachmentSummary { + /** + * @generated from protobuf field: string AttachmentTypeID = 1 + */ + AttachmentTypeID: string; + /** + * @generated from protobuf field: string AttachmentTypeCode = 2 + */ + AttachmentTypeCode: string; + /** + * @generated from protobuf field: int32 Number = 3 + */ + Number: number; +} +/** + * @generated from protobuf message api.TranslationMap + */ +export interface TranslationMap { + /** + * @generated from protobuf field: map data = 1 + */ + data: { + [key: string]: string; + }; +} +/** + * @generated from protobuf message api.ExtractColumnFormat + */ +export interface ExtractColumnFormat { + /** + * @generated from protobuf field: api.ExtractColumnFormat.type Type = 1 + */ + Type: ExtractColumnFormat_type; + /** + * @generated from protobuf field: string Format = 2 + */ + Format: string; + /** + * @generated from protobuf field: api.DisplayDate DisplayDate = 3 + */ + DisplayDate: DisplayDate; +} +/** + * @generated from protobuf enum api.ExtractColumnFormat.type + */ +export enum ExtractColumnFormat_type { + /** + * @generated from protobuf enum value: UNKNOWN = 0; + */ + UNKNOWN = 0, + /** + * @generated from protobuf enum value: DATE = 1; + */ + DATE = 1, + /** + * @generated from protobuf enum value: SUFFIX = 2; + */ + SUFFIX = 2, + /** + * @generated from protobuf enum value: NUMBER = 3; + */ + NUMBER = 3 +} +/** + * @generated from protobuf message api.ExtractQuery + */ +export interface ExtractQuery { + /** + * @generated from protobuf field: api.QueryProjectHeader Header = 1 + */ + Header?: QueryProjectHeader; + /** + * @generated from protobuf field: string UserId = 2 + */ + UserId: string; + /** + * @generated from protobuf field: repeated api.BlockFilter BlockFilters = 3 + */ + BlockFilters: BlockFilter[]; + /** + * @generated from protobuf field: repeated string Fields = 4 + */ + Fields: string[]; + /** + * @generated from protobuf field: string ListSeparator = 5 + */ + ListSeparator: string; + /** + * @generated from protobuf field: string DecimalSeparator = 6 + */ + DecimalSeparator: string; + /** + * @generated from protobuf field: repeated string ColumnNames = 7 + */ + ColumnNames: string[]; + /** + * @generated from protobuf field: map ColumnTranslationMaps = 8 + */ + ColumnTranslationMaps: { + [key: string]: TranslationMap; + }; + /** + * @generated from protobuf field: map ColumnFormats = 9 + */ + ColumnFormats: { + [key: number]: ExtractColumnFormat; + }; + /** + * @generated from protobuf field: string TargetTimeZone = 10 + */ + TargetTimeZone: string; + /** + * @generated from protobuf field: string DateFormat = 11 + */ + DateFormat: string; + /** + * @generated from protobuf field: string NumberFormat = 12 + */ + NumberFormat: string; + /** + * @generated from protobuf field: api.TimeFormat TimeFormat = 13 + */ + TimeFormat: TimeFormat; +} +/** + * @generated from protobuf message api.ExtractSiteQuery + */ +export interface ExtractSiteQuery { + /** + * @generated from protobuf field: api.QuerySiteHeader Header = 1 + */ + Header?: QuerySiteHeader; + /** + * @generated from protobuf field: string UserId = 2 + */ + UserId: string; + /** + * @generated from protobuf field: repeated api.BlockFilter BlockFilters = 3 + */ + BlockFilters: BlockFilter[]; + /** + * @generated from protobuf field: repeated string Fields = 4 + */ + Fields: string[]; + /** + * @generated from protobuf field: string ListSeparator = 5 + */ + ListSeparator: string; + /** + * @generated from protobuf field: string DecimalSeparator = 6 + */ + DecimalSeparator: string; + /** + * @generated from protobuf field: repeated string ColumnNames = 7 + */ + ColumnNames: string[]; + /** + * @generated from protobuf field: map ColumnTranslationMaps = 8 + */ + ColumnTranslationMaps: { + [key: string]: TranslationMap; + }; + /** + * @generated from protobuf field: map ColumnFormats = 9 + */ + ColumnFormats: { + [key: number]: ExtractColumnFormat; + }; + /** + * @generated from protobuf field: string TargetTimeZone = 10 + */ + TargetTimeZone: string; + /** + * @generated from protobuf field: string DateFormat = 11 + */ + DateFormat: string; + /** + * @generated from protobuf field: string NumberFormat = 12 + */ + NumberFormat: string; + /** + * @generated from protobuf field: api.TimeFormat TimeFormat = 13 + */ + TimeFormat: TimeFormat; +} +/** + * @generated from protobuf message api.ExtractResult + */ +export interface ExtractResult { + /** + * @generated from protobuf field: api.WorkflowExecutionResult WorkflowExecution = 1 + */ + WorkflowExecution?: WorkflowExecutionResult; +} +/** + * @generated from protobuf message api.CountLinesQuery + */ +export interface CountLinesQuery { + /** + * @generated from protobuf field: string ProjectID = 1 + */ + ProjectID: string; + /** + * @generated from protobuf field: int32 Partition = 2 + */ + Partition: number; +} +/** + * @generated from protobuf message api.CountLinesResult + */ +export interface CountLinesResult { + /** + * @generated from protobuf field: int32 NbLines = 1 + */ + NbLines: number; +} +/** + * @generated from protobuf message api.Scope + */ +export interface Scope { + /** + * @generated from protobuf field: string Service = 1 + */ + Service: string; // Service name + /** + * @generated from protobuf field: string Method = 2 + */ + Method: string; // Method name + /** + * @generated from protobuf field: api.ResourceType RscType = 3 + */ + RscType: ResourceType; // Resource type of the method + /** + * @generated from protobuf field: bool PlatformReserved = 4 + */ + PlatformReserved: boolean; // Reserved for platform usage + /** + * @generated from protobuf field: repeated api.Permission TransientPermissions = 5 + */ + TransientPermissions: Permission[]; // Transient permissions (for UI scopes) + /** + * @generated from protobuf field: string RscID = 6 + */ + RscID: string; // Resource ID of the method (if any). + /** + * @generated from protobuf field: repeated string AppliesOnIDs = 7 + */ + AppliesOnIDs: string[]; // This field is used only for roles definition, not scope registration. List of resource IDs on which the role's scope applies. If none is specified, the scope applies on all resources of the given type. It implies that the resource ids are of the same type as the resource type of the scope (or they won't be taken into account). + /** + * @generated from protobuf field: string ModuleID = 8 + */ + ModuleID: string; // Module ID which the scope belongs to + /** + * @generated from protobuf field: bool Mandatory = 9 + */ + Mandatory: boolean; // If mandatory, the scope will always be added to roles of the same RscType. For instance, a UI role "Project-Viewer" will inherit mandatory "Project" UI scopes. +} +/** + * @generated from protobuf message api.ClientAPI + */ +export interface ClientAPI { + /** + * @generated from protobuf field: string Client = 1 + */ + Client: string; + /** + * @generated from protobuf field: repeated api.Scope APIs = 2 + */ + APIs: Scope[]; + /** + * @generated from protobuf field: string Roles = 3 + */ + Roles: string; +} +/** + * @generated from protobuf message api.Permission + */ +export interface Permission { + /** + * @generated from protobuf field: string Client = 1 + */ + Client: string; + /** + * @generated from protobuf field: repeated api.Scope Scopes = 2 + */ + Scopes: Scope[]; +} +/** + * @generated from protobuf message api.UserUIPermissions + */ +export interface UserUIPermissions { + /** + * @generated from protobuf field: api.ResourceType RscType = 1 + */ + RscType: ResourceType; + /** + * @generated from protobuf field: string RscID = 2 + */ + RscID: string; + /** + * @generated from protobuf field: repeated api.Scope Scopes = 3 + */ + Scopes: Scope[]; +} +/** + * @generated from protobuf message api.ElementByMatchQuery + */ +export interface ElementByMatchQuery { + /** + * @generated from protobuf field: api.QueryProjectHeader Header = 1 + */ + Header?: QueryProjectHeader; + /** + * list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query + * + * @generated from protobuf field: repeated api.BlockFilter BlockFilters = 2 + */ + BlockFilters: BlockFilter[]; + /** + * MatchElementField structure, containing wanted match string, and the fields to get. + * + * @generated from protobuf field: api.MatchElementField MatchElementField = 3 + */ + MatchElementField?: MatchElementField; +} +/** + * @generated from protobuf message api.ElementByMatchSiteQuery + */ +export interface ElementByMatchSiteQuery { + /** + * @generated from protobuf field: api.QuerySiteHeader Header = 1 + */ + Header?: QuerySiteHeader; + /** + * list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query + * + * @generated from protobuf field: repeated api.BlockFilter BlockFilters = 2 + */ + BlockFilters: BlockFilter[]; + /** + * MatchElementField structure, containing wanted match string, and the fields to get. + * + * @generated from protobuf field: api.MatchElementField MatchElementField = 3 + */ + MatchElementField?: MatchElementField; +} +/** + * @generated from protobuf message api.ElementByMatchResult + */ +export interface ElementByMatchResult { + /** + * @generated from protobuf field: repeated api.MatchFieldElementResult MatchResults = 1 + */ + MatchResults: MatchFieldElementResult[]; +} +/** + * @generated from protobuf message api.MatchElementField + */ +export interface MatchElementField { + /** + * @generated from protobuf field: string Match = 1 + */ + Match: string; + /** + * MatchField list structure, for FindMatching query + * + * @generated from protobuf field: repeated api.MatchField MatchFields = 2 + */ + MatchFields: MatchField[]; +} +/** + * + * Standard structure, having an map of elements (key,value), In case of Metadata/SegmentationKey, we replace the attribute(Path) by the DisplayPath (to keep track of the Metadata/SegmentationKey Name) + * + * @generated from protobuf message api.MatchFieldElementResult + */ +export interface MatchFieldElementResult { + /** + * @generated from protobuf field: map MatchingElements = 3 + */ + MatchingElements: { + [key: string]: string; + }; +} +/** + * @generated from protobuf message api.LabelByLanguage + */ +export interface LabelByLanguage { + /** + * @generated from protobuf field: string Value = 1 + */ + Value: string; + /** + * @generated from protobuf field: string LanguageCodeISO6391 = 2 + */ + LanguageCodeISO6391: string; +} +/** + * List all data set in the model + * + * @generated from protobuf enum api.ModelDataSetEnum + */ +export enum ModelDataSetEnum { + /** + * @generated from protobuf enum value: ACTOR = 0; + */ + ACTOR = 0, + /** + * @generated from protobuf enum value: EXECUTIONFLOW = 1; + */ + EXECUTIONFLOW = 1, + /** + * @generated from protobuf enum value: HANDLINGUNIT = 2; + */ + HANDLINGUNIT = 2, + /** + * @generated from protobuf enum value: ITEM = 3; + */ + ITEM = 3, + /** + * @generated from protobuf enum value: METADATA = 4; + */ + METADATA = 4, + /** + * @generated from protobuf enum value: MOVEMENT = 5; + */ + MOVEMENT = 5, + /** + * @generated from protobuf enum value: ORDER = 6; + */ + ORDER = 6, + /** + * @generated from protobuf enum value: PARTNER = 7; + */ + PARTNER = 7, + /** + * @generated from protobuf enum value: STOCK = 8; + */ + STOCK = 8, + /** + * @generated from protobuf enum value: TRACKING = 9; + */ + TRACKING = 9, + /** + * @generated from protobuf enum value: CLAIM = 10; + */ + CLAIM = 10 +} +/** + * @generated from protobuf enum api.WeekDay + */ +export enum WeekDay { + /** + * @generated from protobuf enum value: WEEKDAY_UNDEFINED = 0; + */ + WEEKDAY_UNDEFINED = 0, + /** + * @generated from protobuf enum value: WEEKDAY_MONDAY = 1; + */ + WEEKDAY_MONDAY = 1, + /** + * @generated from protobuf enum value: WEEKDAY_TUESDAY = 2; + */ + WEEKDAY_TUESDAY = 2, + /** + * @generated from protobuf enum value: WEEKDAY_WEDNESDAY = 3; + */ + WEEKDAY_WEDNESDAY = 3, + /** + * @generated from protobuf enum value: WEEKDAY_THURSDAY = 4; + */ + WEEKDAY_THURSDAY = 4, + /** + * @generated from protobuf enum value: WEEKDAY_FRIDAY = 5; + */ + WEEKDAY_FRIDAY = 5, + /** + * @generated from protobuf enum value: WEEKDAY_SATURDAY = 6; + */ + WEEKDAY_SATURDAY = 6, + /** + * @generated from protobuf enum value: WEEKDAY_SUNDAY = 7; + */ + WEEKDAY_SUNDAY = 7 +} +/** + * @generated from protobuf enum api.SeverityLevel + */ +export enum SeverityLevel { + /** + * @generated from protobuf enum value: SEVERITYLEVEL_UNKNOWN = 0; + */ + SEVERITYLEVEL_UNKNOWN = 0, + /** + * Send info logs to client + * + * @generated from protobuf enum value: INFO = 1; + */ + INFO = 1, + /** + * Send warning logs to client + * + * @generated from protobuf enum value: WARNING = 2; + */ + WARNING = 2, + /** + * Send error logs to client + * + * @generated from protobuf enum value: ERROR = 3; + */ + ERROR = 3, + /** + * Send security logs to client + * + * @generated from protobuf enum value: SECURITY = 4; + */ + SECURITY = 4 +} /** * @generated from protobuf enum api.ResponseStatus */ @@ -773,6 +2115,522 @@ export enum ResponseStatus { */ TIMEOUT = 7 } +/** + * @generated from protobuf enum api.WorkflowTypeEnum + */ +export enum WorkflowTypeEnum { + /** + * @generated from protobuf enum value: CREATE_PROJECT = 0; + */ + CREATE_PROJECT = 0, + /** + * @generated from protobuf enum value: DELETE_PROJECT = 1; + */ + DELETE_PROJECT = 1, + /** + * @generated from protobuf enum value: DELETE_CORE = 2; + */ + DELETE_CORE = 2, + /** + * @generated from protobuf enum value: DELETE_PARTNER_APP = 3; + */ + DELETE_PARTNER_APP = 3, + /** + * @generated from protobuf enum value: DELETE_CONNECTION = 4; + */ + DELETE_CONNECTION = 4, + /** + * @generated from protobuf enum value: BILLING = 5; + */ + BILLING = 5, + /** + * @generated from protobuf enum value: EXTRACT_DATA = 6; + */ + EXTRACT_DATA = 6, + /** + * @generated from protobuf enum value: STOP_FLINK = 7; + */ + STOP_FLINK = 7, + /** + * @generated from protobuf enum value: START_FLINK = 8; + */ + START_FLINK = 8, + /** + * @generated from protobuf enum value: STOP_IDLE_FLINK = 9; + */ + STOP_IDLE_FLINK = 9, + /** + * @generated from protobuf enum value: OPTIMIZE_CLICKHOUSE = 10; + */ + OPTIMIZE_CLICKHOUSE = 10, + /** + * @generated from protobuf enum value: WAKEUP_FLINK = 11; + */ + WAKEUP_FLINK = 11, + /** + * @generated from protobuf enum value: CREATE_ORGANISATION = 12; + */ + CREATE_ORGANISATION = 12, + /** + * @generated from protobuf enum value: DELETE_ORGANISATION = 13; + */ + DELETE_ORGANISATION = 13, + /** + * @generated from protobuf enum value: PROVISION_PULSAR_DOMAIN = 14; + */ + PROVISION_PULSAR_DOMAIN = 14, + /** + * @generated from protobuf enum value: DEPROVISION_PULSAR_DOMAIN = 15; + */ + DEPROVISION_PULSAR_DOMAIN = 15, + /** + * @generated from protobuf enum value: PROVISION_PULSAR_ORGANISATION = 16; + */ + PROVISION_PULSAR_ORGANISATION = 16, + /** + * @generated from protobuf enum value: DEPROVISION_PULSAR_ORGANISATION = 17; + */ + DEPROVISION_PULSAR_ORGANISATION = 17, + /** + * @generated from protobuf enum value: RECOVER_DATA = 18; + */ + RECOVER_DATA = 18, + /** + * @generated from protobuf enum value: DAILY_PROJECTS_OPERATIONS = 19; + */ + DAILY_PROJECTS_OPERATIONS = 19, + /** + * @generated from protobuf enum value: HEALTH_CHECK_WORKFLOWS = 20; + */ + HEALTH_CHECK_WORKFLOWS = 20, + /** + * @generated from protobuf enum value: EXTRACT_KPI_DATA = 21; + */ + EXTRACT_KPI_DATA = 21, + /** + * @generated from protobuf enum value: UPDATE_MATERIALIZED_VIEW = 22; + */ + UPDATE_MATERIALIZED_VIEW = 22, + /** + * @generated from protobuf enum value: PRUNE_DATA = 23; + */ + PRUNE_DATA = 23, + /** + * @generated from protobuf enum value: CHECK_AND_LAUNCH_RECOVER_DATA = 24; + */ + CHECK_AND_LAUNCH_RECOVER_DATA = 24, + /** + * @generated from protobuf enum value: SYNCHRONIZE_RULES_ON_GIT = 25; + */ + SYNCHRONIZE_RULES_ON_GIT = 25, + /** + * @generated from protobuf enum value: ANONYMIZE_DATA = 26; + */ + ANONYMIZE_DATA = 26, + /** + * @generated from protobuf enum value: UPGRADE_MODEL = 27; + */ + UPGRADE_MODEL = 27, + /** + * @generated from protobuf enum value: SWEEP = 28; + */ + SWEEP = 28 +} +/** + * @generated from protobuf enum api.ModuleWorkflowTypeEnum + */ +export enum ModuleWorkflowTypeEnum { + /** + * @generated from protobuf enum value: PRE_WORKFLOW = 0; + */ + PRE_WORKFLOW = 0, + /** + * @generated from protobuf enum value: POST_WORKFLOW = 1; + */ + POST_WORKFLOW = 1 +} +/** + * @generated from protobuf enum api.WorkflowSemaphore + */ +export enum WorkflowSemaphore { + /** + * @generated from protobuf enum value: WS_DB_OPERATION = 0; + */ + WS_DB_OPERATION = 0, + /** + * @generated from protobuf enum value: WS_PROVISIONING = 1; + */ + WS_PROVISIONING = 1, + /** + * @generated from protobuf enum value: WS_RECOVER_DATA = 2; + */ + WS_RECOVER_DATA = 2, + /** + * @generated from protobuf enum value: WS_SYNCHRONIZE_RULES = 3; + */ + WS_SYNCHRONIZE_RULES = 3, + /** + * @generated from protobuf enum value: WS_CHECK_AND_LAUNCH_RECOVER_DATA = 4; + */ + WS_CHECK_AND_LAUNCH_RECOVER_DATA = 4 +} +/** + * @generated from protobuf enum api.SharePolicy + */ +export enum SharePolicy { + /** + * @generated from protobuf enum value: SHARE_POLICY_UNKNOWN = 0; + */ + SHARE_POLICY_UNKNOWN = 0, + /** + * @generated from protobuf enum value: SHARE_POLICY_PRIVATE = 10; + */ + SHARE_POLICY_PRIVATE = 10, + /** + * @generated from protobuf enum value: SHARE_POLICY_PUBLIC = 11; + */ + SHARE_POLICY_PUBLIC = 11, + /** + * @generated from protobuf enum value: SHARE_POLICY_1DAY = 20; + */ + SHARE_POLICY_1DAY = 20, + /** + * @generated from protobuf enum value: SHARE_POLICY_2DAYS = 21; + */ + SHARE_POLICY_2DAYS = 21, + /** + * @generated from protobuf enum value: SHARE_POLICY_4DAYS = 22; + */ + SHARE_POLICY_4DAYS = 22, + /** + * @generated from protobuf enum value: SHARE_POLICY_1WEEK = 23; + */ + SHARE_POLICY_1WEEK = 23, + /** + * @generated from protobuf enum value: SHARE_POLICY_2WEEKS = 24; + */ + SHARE_POLICY_2WEEKS = 24, + /** + * @generated from protobuf enum value: SHARE_POLICY_1MONTH = 25; + */ + SHARE_POLICY_1MONTH = 25 +} +/** + * @generated from protobuf enum api.EntityType + */ +export enum EntityType { + /** + * @generated from protobuf enum value: ENTITY_TYPE_UNKNOWN = 0; + */ + UNKNOWN = 0, + /** + * Trade + * + * @generated from protobuf enum value: ENTITY_TYPE_ACTOR = 1; + */ + ACTOR = 1, + /** + * @generated from protobuf enum value: ENTITY_TYPE_EXECUTIONFLOW = 2; + */ + EXECUTIONFLOW = 2, + /** + * @generated from protobuf enum value: ENTITY_TYPE_FAMILY = 3; + */ + FAMILY = 3, + /** + * @generated from protobuf enum value: ENTITY_TYPE_HANDLINGUNIT = 4; + */ + HANDLINGUNIT = 4, + /** + * @generated from protobuf enum value: ENTITY_TYPE_ITEM = 5; + */ + ITEM = 5, + /** + * @generated from protobuf enum value: ENTITY_TYPE_ORDER = 6; + */ + ORDER = 6, + /** + * @generated from protobuf enum value: ENTITY_TYPE_PARTNER = 7; + */ + PARTNER = 7, + /** + * @generated from protobuf enum value: ENTITY_TYPE_STOCK = 8; + */ + STOCK = 8, + /** + * @generated from protobuf enum value: ENTITY_TYPE_TRACKING = 9; + */ + TRACKING = 9, + /** + * @generated from protobuf enum value: ENTITY_TYPE_MOVEMENT = 11; + */ + MOVEMENT = 11, + /** + * Collab + * + * @generated from protobuf enum value: ENTITY_TYPE_CLAIM = 10; + */ + CLAIM = 10 +} +/** + * @generated from protobuf enum api.ClaimEntityType + */ +export enum ClaimEntityType { + /** + * @generated from protobuf enum value: CLAIM_ENTITY_TYPE_UNKNOWN = 0; + */ + UNKNOWN = 0, + /** + * Trade + * + * @generated from protobuf enum value: CLAIM_ENTITY_TYPE_ACTOR = 1; + */ + ACTOR = 1, + /** + * @generated from protobuf enum value: CLAIM_ENTITY_TYPE_EXECUTIONFLOW = 2; + */ + EXECUTIONFLOW = 2, + /** + * @generated from protobuf enum value: CLAIM_ENTITY_TYPE_HANDLINGUNIT = 3; + */ + HANDLINGUNIT = 3, + /** + * @generated from protobuf enum value: CLAIM_ENTITY_TYPE_ORDER = 4; + */ + ORDER = 4, + /** + * CLAIM_ENTITY_TYPE_TRACKING = 5; + * + * @generated from protobuf enum value: CLAIM_ENTITY_TYPE_MOVEMENT = 6; + */ + MOVEMENT = 6 +} +/** + * @generated from protobuf enum api.ClaimSector + */ +export enum ClaimSector { + /** + * @generated from protobuf enum value: CLAIM_SECTOR_UNKNOWN = 0; + */ + UNKNOWN = 0, + /** + * @generated from protobuf enum value: CLAIM_SECTOR_TRANSPORT = 1; + */ + TRANSPORT = 1, + /** + * @generated from protobuf enum value: CLAIM_SECTOR_WAREHOUSING = 2; + */ + WAREHOUSING = 2, + /** + * @generated from protobuf enum value: CLAIM_SECTOR_DELIVERY = 3; + */ + DELIVERY = 3, + /** + * @generated from protobuf enum value: CLAIM_SECTOR_FINANCIAL = 4; + */ + FINANCIAL = 4, + /** + * @generated from protobuf enum value: CLAIM_SECTOR_MISCELLANEOUS = 5; + */ + MISCELLANEOUS = 5 +} +/** + * Enum representing different statuses of a claim. + * Includes a "category" for each status which is used to determine the color of the status in the UI. + * For example : CLAIM_STATUS_START_NEW is in the "START" category and the status is "NEW". + * A status should be "CLAIM_STATUS__" with category and status being alphanumeric. + * + * @generated from protobuf enum api.ClaimStatus + */ +export enum ClaimStatus { + /** + * @generated from protobuf enum value: CLAIM_STATUS_UNKNOWN = 0; + */ + UNKNOWN = 0, + /** + * @generated from protobuf enum value: CLAIM_STATUS_START_NEW = 100; + */ + START_NEW = 100, + /** + * @generated from protobuf enum value: CLAIM_STATUS_START_TODO = 101; + */ + START_TODO = 101, + /** + * @generated from protobuf enum value: CLAIM_STATUS_INPROGRESS_TREATMENT = 200; + */ + INPROGRESS_TREATMENT = 200, + /** + * @generated from protobuf enum value: CLAIM_STATUS_INPROGRESS_RESOLUTION = 201; + */ + INPROGRESS_RESOLUTION = 201, + /** + * @generated from protobuf enum value: CLAIM_STATUS_STANDBY_WAITINGFORINFO = 300; + */ + STANDBY_WAITINGFORINFO = 300, + /** + * @generated from protobuf enum value: CLAIM_STATUS_STANDBY_PAUSE = 301; + */ + STANDBY_PAUSE = 301, + /** + * @generated from protobuf enum value: CLAIM_STATUS_END_CANCELLED = 400; + */ + END_CANCELLED = 400, + /** + * @generated from protobuf enum value: CLAIM_STATUS_END_SOLVED = 401; + */ + END_SOLVED = 401, + /** + * @generated from protobuf enum value: CLAIM_STATUS_END_CLOSED = 402; + */ + END_CLOSED = 402, + /** + * @generated from protobuf enum value: CLAIM_STATUS_END_REJECTED = 403; + */ + END_REJECTED = 403 +} +/** + * Enum representing the criticality levels of a claim. + * The higher the criticality, the more important the claim is. + * + * @generated from protobuf enum api.ClaimCriticality + */ +export enum ClaimCriticality { + /** + * @generated from protobuf enum value: CLAIM_CRITICALITY_UNKNOWN = 0; + */ + UNKNOWN = 0, + /** + * @generated from protobuf enum value: CLAIM_CRITICALITY_LOW = 10; + */ + LOW = 10, + /** + * @generated from protobuf enum value: CLAIM_CRITICALITY_MEDIUM = 20; + */ + MEDIUM = 20, + /** + * @generated from protobuf enum value: CLAIM_CRITICALITY_HIGH = 30; + */ + HIGH = 30, + /** + * @generated from protobuf enum value: CLAIM_CRITICALITY_BLOCKING = 40; + */ + BLOCKING = 40 +} +/** + * @generated from protobuf enum api.TimeFormat + */ +export enum TimeFormat { + /** + * @generated from protobuf enum value: H12 = 0; + */ + H12 = 0, + /** + * @generated from protobuf enum value: H23 = 1; + */ + H23 = 1, + /** + * @generated from protobuf enum value: H24 = 2; + */ + H24 = 2 +} +/** + * @generated from protobuf enum api.DisplayDate + */ +export enum DisplayDate { + /** + * @generated from protobuf enum value: DATE = 0; + */ + DATE = 0, + /** + * @generated from protobuf enum value: DATE_TIME = 1; + */ + DATE_TIME = 1, + /** + * @generated from protobuf enum value: TIME = 2; + */ + TIME = 2 +} +/** + * @generated from protobuf enum api.EntityAdminPlatform + */ +export enum EntityAdminPlatform { + /** + * @generated from protobuf enum value: PROJECT_PLATFORM = 0; + */ + PROJECT_PLATFORM = 0, + /** + * @generated from protobuf enum value: METRICS = 1; + */ + METRICS = 1, + /** + * @generated from protobuf enum value: WAKEUP_ENTITY = 2; + */ + WAKEUP_ENTITY = 2, + /** + * @generated from protobuf enum value: NOTIFICATION = 3; + */ + NOTIFICATION = 3 +} +/** + * @generated from protobuf enum api.RecoverType + */ +export enum RecoverType { + /** + * @generated from protobuf enum value: RECOVER_OPENSEARCH = 0; + */ + RECOVER_OPENSEARCH = 0, + /** + * @generated from protobuf enum value: RECOVER_CLICKHOUSE = 1; + */ + RECOVER_CLICKHOUSE = 1, + /** + * @generated from protobuf enum value: RECOVER_ALL = 2; + */ + RECOVER_ALL = 2 +} +/** + * Enum representing the different types of resources which can be created in the platform. + * + * @generated from protobuf enum api.ResourceType + */ +export enum ResourceType { + /** + * @generated from protobuf enum value: RESOURCE_TYPE_UNKNOWN = 0; + */ + UNKNOWN = 0, + /** + * @generated from protobuf enum value: RESOURCE_TYPE_PLATFORM = 10; + */ + PLATFORM = 10, + /** + * @generated from protobuf enum value: RESOURCE_TYPE_ORGANISATION = 20; + */ + ORGANISATION = 20, + /** + * @generated from protobuf enum value: RESOURCE_TYPE_PROJECT = 30; + */ + PROJECT = 30, + /** + * @generated from protobuf enum value: RESOURCE_TYPE_PARTNERAPP = 40; + */ + PARTNERAPP = 40, + /** + * @generated from protobuf enum value: RESOURCE_TYPE_CONNECTION = 50; + */ + CONNECTION = 50, + /** + * @generated from protobuf enum value: RESOURCE_TYPE_ATTACHMENTTYPE = 60; + */ + ATTACHMENTTYPE = 60, + /** + * @generated from protobuf enum value: RESOURCE_TYPE_CLAIMTYPE = 70; + */ + CLAIMTYPE = 70, + /** + * @generated from protobuf enum value: RESOURCE_TYPE_SITE = 80; + */ + SITE = 80 +} // @generated message type with reflection information, may provide speed optimized methods class RequestHeader$Type extends MessageType { constructor() { @@ -792,7 +2650,7 @@ class RequestHeader$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string Project = 1 [json_name = "Project"];*/ 1: + case /* string Project */ 1: message.Project = reader.string(); break; default: @@ -807,7 +2665,7 @@ class RequestHeader$Type extends MessageType { return message; } internalBinaryWrite(message: RequestHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string Project = 1 [json_name = "Project"]; */ + /* string Project = 1; */ if (message.Project !== "") writer.tag(1, WireType.LengthDelimited).string(message.Project); let u = options.writeUnknownFields; @@ -821,15 +2679,74 @@ class RequestHeader$Type extends MessageType { */ export const RequestHeader = new RequestHeader$Type(); // @generated message type with reflection information, may provide speed optimized methods +class TimeRange$Type extends MessageType { + constructor() { + super("api.TimeRange", [ + { no: 1, name: "StartTime", kind: "scalar", localName: "StartTime", jsonName: "StartTime", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { pattern: "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$" } } } }, + { no: 2, name: "EndTime", kind: "scalar", localName: "EndTime", jsonName: "EndTime", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { pattern: "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$" } } } } + ]); + } + create(value?: PartialMessage): TimeRange { + const message = globalThis.Object.create((this.messagePrototype!)); + message.StartTime = ""; + message.EndTime = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TimeRange): TimeRange { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string StartTime */ 1: + message.StartTime = reader.string(); + break; + case /* string EndTime */ 2: + message.EndTime = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: TimeRange, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string StartTime = 1; */ + if (message.StartTime !== "") + writer.tag(1, WireType.LengthDelimited).string(message.StartTime); + /* string EndTime = 2; */ + if (message.EndTime !== "") + writer.tag(2, WireType.LengthDelimited).string(message.EndTime); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.TimeRange + */ +export const TimeRange = new TimeRange$Type(); +// @generated message type with reflection information, may provide speed optimized methods class RequestProjectHeader$Type extends MessageType { constructor() { super("api.RequestProjectHeader", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the project" }, "validate.rules": { string: { minLen: "1", notContains: " " } } } } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Header for all requests on project resource", required: ["ProjectID"] } } }); + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the project", example: "\"Your_Project_ID\"" }, "validate.rules": { string: { minLen: "1", notContains: " " } } } }, + { no: 3, name: "CorrelationID", kind: "scalar", localName: "CorrelationID", jsonName: "CorrelationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"CorrID_A\"" } } }, + { no: 4, name: "TechnicalID", kind: "scalar", localName: "TechnicalID", jsonName: "TechnicalID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"TechID_A\"" } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID"] } } }); } create(value?: PartialMessage): RequestProjectHeader { const message = globalThis.Object.create((this.messagePrototype!)); message.ProjectID = ""; + message.CorrelationID = ""; + message.TechnicalID = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; @@ -839,9 +2756,15 @@ class RequestProjectHeader$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string ProjectID = 1 [json_name = "ProjectID"];*/ 1: + case /* string ProjectID */ 1: message.ProjectID = reader.string(); break; + case /* string CorrelationID */ 3: + message.CorrelationID = reader.string(); + break; + case /* string TechnicalID */ 4: + message.TechnicalID = reader.string(); + break; default: let u = options.readUnknownField; if (u === "throw") @@ -854,9 +2777,15 @@ class RequestProjectHeader$Type extends MessageType { return message; } internalBinaryWrite(message: RequestProjectHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string ProjectID = 1 [json_name = "ProjectID"]; */ + /* string ProjectID = 1; */ if (message.ProjectID !== "") writer.tag(1, WireType.LengthDelimited).string(message.ProjectID); + /* string CorrelationID = 3; */ + if (message.CorrelationID !== "") + writer.tag(3, WireType.LengthDelimited).string(message.CorrelationID); + /* string TechnicalID = 4; */ + if (message.TechnicalID !== "") + writer.tag(4, WireType.LengthDelimited).string(message.TechnicalID); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -868,15 +2797,82 @@ class RequestProjectHeader$Type extends MessageType { */ export const RequestProjectHeader = new RequestProjectHeader$Type(); // @generated message type with reflection information, may provide speed optimized methods +class RequestSiteHeader$Type extends MessageType { + constructor() { + super("api.RequestSiteHeader", [ + { no: 1, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the site", example: "\"Your_Site_ID\"" }, "validate.rules": { string: { minLen: "1", notContains: " " } } } }, + { no: 3, name: "CorrelationID", kind: "scalar", localName: "CorrelationID", jsonName: "CorrelationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"CorrID_A\"" } } }, + { no: 4, name: "TechnicalID", kind: "scalar", localName: "TechnicalID", jsonName: "TechnicalID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"TechID_A\"" } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["SiteID"] } } }); + } + create(value?: PartialMessage): RequestSiteHeader { + const message = globalThis.Object.create((this.messagePrototype!)); + message.SiteID = ""; + message.CorrelationID = ""; + message.TechnicalID = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RequestSiteHeader): RequestSiteHeader { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string SiteID */ 1: + message.SiteID = reader.string(); + break; + case /* string CorrelationID */ 3: + message.CorrelationID = reader.string(); + break; + case /* string TechnicalID */ 4: + message.TechnicalID = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: RequestSiteHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string SiteID = 1; */ + if (message.SiteID !== "") + writer.tag(1, WireType.LengthDelimited).string(message.SiteID); + /* string CorrelationID = 3; */ + if (message.CorrelationID !== "") + writer.tag(3, WireType.LengthDelimited).string(message.CorrelationID); + /* string TechnicalID = 4; */ + if (message.TechnicalID !== "") + writer.tag(4, WireType.LengthDelimited).string(message.TechnicalID); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.RequestSiteHeader + */ +export const RequestSiteHeader = new RequestSiteHeader$Type(); +// @generated message type with reflection information, may provide speed optimized methods class RequestOrganisationHeader$Type extends MessageType { constructor() { super("api.RequestOrganisationHeader", [ - { no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the organisation" }, "validate.rules": { string: { minLen: "1", notContains: " " } } } } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Header for all requests on project resource", required: ["OrganisationID"] } } }); + { no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the organisation" }, "validate.rules": { string: { minLen: "1", notContains: " " } } } }, + { no: 2, name: "CorrelationID", kind: "scalar", localName: "CorrelationID", jsonName: "CorrelationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"CorrID_A\"" } } }, + { no: 3, name: "TechnicalID", kind: "scalar", localName: "TechnicalID", jsonName: "TechnicalID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"TechID_A\"" } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["OrganisationID"] } } }); } create(value?: PartialMessage): RequestOrganisationHeader { const message = globalThis.Object.create((this.messagePrototype!)); message.OrganisationID = ""; + message.CorrelationID = ""; + message.TechnicalID = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; @@ -886,9 +2882,15 @@ class RequestOrganisationHeader$Type extends MessageType { constructor() { super("api.RequestBucketHeader", [ - { no: 1, name: "BucketID", kind: "scalar", localName: "BucketID", jsonName: "BucketID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the bucket" }, "validate.rules": { string: { minLen: "1", notContains: " " } } } } - ]); + { no: 1, name: "BucketID", kind: "scalar", localName: "BucketID", jsonName: "BucketID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the bucket" }, "validate.rules": { string: { minLen: "1", notContains: " " } } } }, + { no: 2, name: "CorrelationID", kind: "scalar", localName: "CorrelationID", jsonName: "CorrelationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"CorrID_A\"" } } }, + { no: 3, name: "TechnicalID", kind: "scalar", localName: "TechnicalID", jsonName: "TechnicalID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"TechID_A\"" } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["BucketID"] } } }); } create(value?: PartialMessage): RequestBucketHeader { const message = globalThis.Object.create((this.messagePrototype!)); message.BucketID = ""; + message.CorrelationID = ""; + message.TechnicalID = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; @@ -933,9 +2945,15 @@ class RequestBucketHeader$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string BucketID = 1 [json_name = "BucketID"];*/ 1: + case /* string BucketID */ 1: message.BucketID = reader.string(); break; + case /* string CorrelationID */ 2: + message.CorrelationID = reader.string(); + break; + case /* string TechnicalID */ 3: + message.TechnicalID = reader.string(); + break; default: let u = options.readUnknownField; if (u === "throw") @@ -948,9 +2966,15 @@ class RequestBucketHeader$Type extends MessageType { return message; } internalBinaryWrite(message: RequestBucketHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string BucketID = 1 [json_name = "BucketID"]; */ + /* string BucketID = 1; */ if (message.BucketID !== "") writer.tag(1, WireType.LengthDelimited).string(message.BucketID); + /* string CorrelationID = 2; */ + if (message.CorrelationID !== "") + writer.tag(2, WireType.LengthDelimited).string(message.CorrelationID); + /* string TechnicalID = 3; */ + if (message.TechnicalID !== "") + writer.tag(3, WireType.LengthDelimited).string(message.TechnicalID); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -965,12 +2989,16 @@ export const RequestBucketHeader = new RequestBucketHeader$Type(); class RequestPartnerAppHeader$Type extends MessageType { constructor() { super("api.RequestPartnerAppHeader", [ - { no: 1, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the partnerApp" }, "validate.rules": { string: { minLen: "1", notContains: " " } } } } - ]); + { no: 1, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the partnerApp" }, "validate.rules": { string: { minLen: "1", notContains: " " } } } }, + { no: 2, name: "CorrelationID", kind: "scalar", localName: "CorrelationID", jsonName: "CorrelationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"CorrID_A\"" } } }, + { no: 3, name: "TechnicalID", kind: "scalar", localName: "TechnicalID", jsonName: "TechnicalID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"TechID_A\"" } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["PartnerAppID"] } } }); } create(value?: PartialMessage): RequestPartnerAppHeader { const message = globalThis.Object.create((this.messagePrototype!)); message.PartnerAppID = ""; + message.CorrelationID = ""; + message.TechnicalID = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; @@ -980,9 +3008,15 @@ class RequestPartnerAppHeader$Type extends MessageType while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string PartnerAppID = 1 [json_name = "PartnerAppID"];*/ 1: + case /* string PartnerAppID */ 1: message.PartnerAppID = reader.string(); break; + case /* string CorrelationID */ 2: + message.CorrelationID = reader.string(); + break; + case /* string TechnicalID */ 3: + message.TechnicalID = reader.string(); + break; default: let u = options.readUnknownField; if (u === "throw") @@ -995,9 +3029,15 @@ class RequestPartnerAppHeader$Type extends MessageType return message; } internalBinaryWrite(message: RequestPartnerAppHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string PartnerAppID = 1 [json_name = "PartnerAppID"]; */ + /* string PartnerAppID = 1; */ if (message.PartnerAppID !== "") writer.tag(1, WireType.LengthDelimited).string(message.PartnerAppID); + /* string CorrelationID = 2; */ + if (message.CorrelationID !== "") + writer.tag(2, WireType.LengthDelimited).string(message.CorrelationID); + /* string TechnicalID = 3; */ + if (message.TechnicalID !== "") + writer.tag(3, WireType.LengthDelimited).string(message.TechnicalID); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -1009,12 +3049,145 @@ class RequestPartnerAppHeader$Type extends MessageType */ export const RequestPartnerAppHeader = new RequestPartnerAppHeader$Type(); // @generated message type with reflection information, may provide speed optimized methods +class RequestConnectionHeader$Type extends MessageType { + constructor() { + super("api.RequestConnectionHeader", [ + { no: 1, name: "ConnectionID", kind: "scalar", localName: "ConnectionID", jsonName: "ConnectionID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the connection" }, "validate.rules": { string: { minLen: "1", notContains: " " } } } }, + { no: 2, name: "CorrelationID", kind: "scalar", localName: "CorrelationID", jsonName: "CorrelationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"CorrID_A\"" } } }, + { no: 3, name: "TechnicalID", kind: "scalar", localName: "TechnicalID", jsonName: "TechnicalID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"TechID_A\"" } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ConnectionID"] } } }); + } + create(value?: PartialMessage): RequestConnectionHeader { + const message = globalThis.Object.create((this.messagePrototype!)); + message.ConnectionID = ""; + message.CorrelationID = ""; + message.TechnicalID = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RequestConnectionHeader): RequestConnectionHeader { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string ConnectionID */ 1: + message.ConnectionID = reader.string(); + break; + case /* string CorrelationID */ 2: + message.CorrelationID = reader.string(); + break; + case /* string TechnicalID */ 3: + message.TechnicalID = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: RequestConnectionHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string ConnectionID = 1; */ + if (message.ConnectionID !== "") + writer.tag(1, WireType.LengthDelimited).string(message.ConnectionID); + /* string CorrelationID = 2; */ + if (message.CorrelationID !== "") + writer.tag(2, WireType.LengthDelimited).string(message.CorrelationID); + /* string TechnicalID = 3; */ + if (message.TechnicalID !== "") + writer.tag(3, WireType.LengthDelimited).string(message.TechnicalID); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.RequestConnectionHeader + */ +export const RequestConnectionHeader = new RequestConnectionHeader$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class RequestAttachmentTypeHeader$Type extends MessageType { + constructor() { + super("api.RequestAttachmentTypeHeader", [ + { no: 1, name: "AttachmentTypeID", kind: "scalar", localName: "AttachmentTypeID", jsonName: "AttachmentTypeID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the attachment type" }, "validate.rules": { string: { minLen: "1", notContains: " " } } } }, + { no: 2, name: "CorrelationID", kind: "scalar", localName: "CorrelationID", jsonName: "CorrelationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"CorrID_A\"" } } }, + { no: 3, name: "TechnicalID", kind: "scalar", localName: "TechnicalID", jsonName: "TechnicalID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"TechID_A\"" } } } + ]); + } + create(value?: PartialMessage): RequestAttachmentTypeHeader { + const message = globalThis.Object.create((this.messagePrototype!)); + message.AttachmentTypeID = ""; + message.CorrelationID = ""; + message.TechnicalID = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RequestAttachmentTypeHeader): RequestAttachmentTypeHeader { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string AttachmentTypeID */ 1: + message.AttachmentTypeID = reader.string(); + break; + case /* string CorrelationID */ 2: + message.CorrelationID = reader.string(); + break; + case /* string TechnicalID */ 3: + message.TechnicalID = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: RequestAttachmentTypeHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string AttachmentTypeID = 1; */ + if (message.AttachmentTypeID !== "") + writer.tag(1, WireType.LengthDelimited).string(message.AttachmentTypeID); + /* string CorrelationID = 2; */ + if (message.CorrelationID !== "") + writer.tag(2, WireType.LengthDelimited).string(message.CorrelationID); + /* string TechnicalID = 3; */ + if (message.TechnicalID !== "") + writer.tag(3, WireType.LengthDelimited).string(message.TechnicalID); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.RequestAttachmentTypeHeader + */ +export const RequestAttachmentTypeHeader = new RequestAttachmentTypeHeader$Type(); +// @generated message type with reflection information, may provide speed optimized methods class ResponseHeader$Type extends MessageType { constructor() { - super("api.ResponseHeader", []); + super("api.ResponseHeader", [ + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the project" } } }, + { no: 2, name: "CorrelationID", kind: "scalar", localName: "CorrelationID", jsonName: "CorrelationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is filled using the request CorrelationID if provided in order to be able to correlate request and response", example: "\"CorrID_A\"" } } }, + { no: 3, name: "TechnicalID", kind: "scalar", localName: "TechnicalID", jsonName: "TechnicalID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is filled using the request TechnicalID if provided in order to be able to correlate request and response", example: "\"TechID_A\"" } } } + ]); } create(value?: PartialMessage): ResponseHeader { const message = globalThis.Object.create((this.messagePrototype!)); + message.ProjectID = ""; + message.CorrelationID = ""; + message.TechnicalID = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; @@ -1024,6 +3197,15 @@ class ResponseHeader$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { + case /* string ProjectID */ 1: + message.ProjectID = reader.string(); + break; + case /* string CorrelationID */ 2: + message.CorrelationID = reader.string(); + break; + case /* string TechnicalID */ 3: + message.TechnicalID = reader.string(); + break; default: let u = options.readUnknownField; if (u === "throw") @@ -1036,6 +3218,15 @@ class ResponseHeader$Type extends MessageType { return message; } internalBinaryWrite(message: ResponseHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string ProjectID = 1; */ + if (message.ProjectID !== "") + writer.tag(1, WireType.LengthDelimited).string(message.ProjectID); + /* string CorrelationID = 2; */ + if (message.CorrelationID !== "") + writer.tag(2, WireType.LengthDelimited).string(message.CorrelationID); + /* string TechnicalID = 3; */ + if (message.TechnicalID !== "") + writer.tag(3, WireType.LengthDelimited).string(message.TechnicalID); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -1047,6 +3238,132 @@ class ResponseHeader$Type extends MessageType { */ export const ResponseHeader = new ResponseHeader$Type(); // @generated message type with reflection information, may provide speed optimized methods +class ResponseSiteHeader$Type extends MessageType { + constructor() { + super("api.ResponseSiteHeader", [ + { no: 1, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the site" } } }, + { no: 2, name: "CorrelationID", kind: "scalar", localName: "CorrelationID", jsonName: "CorrelationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is filled using the request CorrelationID if provided in order to be able to correlate request and response", example: "\"CorrID_A\"" } } }, + { no: 3, name: "TechnicalID", kind: "scalar", localName: "TechnicalID", jsonName: "TechnicalID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is filled using the request TechnicalID if provided in order to be able to correlate request and response", example: "\"TechID_A\"" } } } + ]); + } + create(value?: PartialMessage): ResponseSiteHeader { + const message = globalThis.Object.create((this.messagePrototype!)); + message.SiteID = ""; + message.CorrelationID = ""; + message.TechnicalID = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResponseSiteHeader): ResponseSiteHeader { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string SiteID */ 1: + message.SiteID = reader.string(); + break; + case /* string CorrelationID */ 2: + message.CorrelationID = reader.string(); + break; + case /* string TechnicalID */ 3: + message.TechnicalID = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: ResponseSiteHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string SiteID = 1; */ + if (message.SiteID !== "") + writer.tag(1, WireType.LengthDelimited).string(message.SiteID); + /* string CorrelationID = 2; */ + if (message.CorrelationID !== "") + writer.tag(2, WireType.LengthDelimited).string(message.CorrelationID); + /* string TechnicalID = 3; */ + if (message.TechnicalID !== "") + writer.tag(3, WireType.LengthDelimited).string(message.TechnicalID); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.ResponseSiteHeader + */ +export const ResponseSiteHeader = new ResponseSiteHeader$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class AttachmentTypeResponseHeader$Type extends MessageType { + constructor() { + super("api.AttachmentTypeResponseHeader", [ + { no: 1, name: "AttachmentTypeID", kind: "scalar", localName: "AttachmentTypeID", jsonName: "AttachmentTypeID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the AttachmentType" } } }, + { no: 2, name: "CorrelationID", kind: "scalar", localName: "CorrelationID", jsonName: "CorrelationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is filled using the request CorrelationID if provided in order to be able to correlate request and response", example: "\"CorrID_A\"" } } }, + { no: 3, name: "TechnicalID", kind: "scalar", localName: "TechnicalID", jsonName: "TechnicalID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is filled using the request TechnicalID if provided in order to be able to correlate request and response", example: "\"TechID_A\"" } } } + ]); + } + create(value?: PartialMessage): AttachmentTypeResponseHeader { + const message = globalThis.Object.create((this.messagePrototype!)); + message.AttachmentTypeID = ""; + message.CorrelationID = ""; + message.TechnicalID = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AttachmentTypeResponseHeader): AttachmentTypeResponseHeader { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string AttachmentTypeID */ 1: + message.AttachmentTypeID = reader.string(); + break; + case /* string CorrelationID */ 2: + message.CorrelationID = reader.string(); + break; + case /* string TechnicalID */ 3: + message.TechnicalID = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: AttachmentTypeResponseHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string AttachmentTypeID = 1; */ + if (message.AttachmentTypeID !== "") + writer.tag(1, WireType.LengthDelimited).string(message.AttachmentTypeID); + /* string CorrelationID = 2; */ + if (message.CorrelationID !== "") + writer.tag(2, WireType.LengthDelimited).string(message.CorrelationID); + /* string TechnicalID = 3; */ + if (message.TechnicalID !== "") + writer.tag(3, WireType.LengthDelimited).string(message.TechnicalID); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.AttachmentTypeResponseHeader + */ +export const AttachmentTypeResponseHeader = new AttachmentTypeResponseHeader$Type(); +// @generated message type with reflection information, may provide speed optimized methods class QueryHeader$Type extends MessageType { constructor() { super("api.QueryHeader", [ @@ -1054,7 +3371,7 @@ class QueryHeader$Type extends MessageType { { no: 3, name: "PagingState", kind: "scalar", localName: "PagingState", jsonName: "PagingState", T: 9 /*ScalarType.STRING*/ }, { no: 4, name: "Limit", kind: "scalar", localName: "Limit", jsonName: "Limit", T: 9 /*ScalarType.STRING*/ }, { no: 5, name: "LocalizedLabel", kind: "scalar", localName: "LocalizedLabel", jsonName: "LocalizedLabel", T: 8 /*ScalarType.BOOL*/ } - ]); + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID"] } } }); } create(value?: PartialMessage): QueryHeader { const message = globalThis.Object.create((this.messagePrototype!)); @@ -1071,16 +3388,16 @@ class QueryHeader$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string Project = 1 [json_name = "Project"];*/ 1: + case /* string Project */ 1: message.Project = reader.string(); break; - case /* string PagingState = 3 [json_name = "PagingState"];*/ 3: + case /* string PagingState */ 3: message.PagingState = reader.string(); break; - case /* string Limit = 4 [json_name = "Limit"];*/ 4: + case /* string Limit */ 4: message.Limit = reader.string(); break; - case /* bool LocalizedLabel = 5 [json_name = "LocalizedLabel"];*/ 5: + case /* bool LocalizedLabel */ 5: message.LocalizedLabel = reader.bool(); break; default: @@ -1095,16 +3412,16 @@ class QueryHeader$Type extends MessageType { return message; } internalBinaryWrite(message: QueryHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string Project = 1 [json_name = "Project"]; */ + /* string Project = 1; */ if (message.Project !== "") writer.tag(1, WireType.LengthDelimited).string(message.Project); - /* string PagingState = 3 [json_name = "PagingState"]; */ + /* string PagingState = 3; */ if (message.PagingState !== "") writer.tag(3, WireType.LengthDelimited).string(message.PagingState); - /* string Limit = 4 [json_name = "Limit"]; */ + /* string Limit = 4; */ if (message.Limit !== "") writer.tag(4, WireType.LengthDelimited).string(message.Limit); - /* bool LocalizedLabel = 5 [json_name = "LocalizedLabel"]; */ + /* bool LocalizedLabel = 5; */ if (message.LocalizedLabel !== false) writer.tag(5, WireType.Varint).bool(message.LocalizedLabel); let u = options.writeUnknownFields; @@ -1122,10 +3439,10 @@ class QueryProjectHeader$Type extends MessageType { constructor() { super("api.QueryProjectHeader", [ { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the project" }, "validate.rules": { string: { minLen: "1", notContains: " " } } } }, - { no: 3, name: "PagingState", kind: "scalar", localName: "PagingState", jsonName: "PagingState", T: 9 /*ScalarType.STRING*/ }, - { no: 4, name: "Limit", kind: "scalar", localName: "Limit", jsonName: "Limit", T: 9 /*ScalarType.STRING*/ }, - { no: 5, name: "LocalizedLabel", kind: "scalar", localName: "LocalizedLabel", jsonName: "LocalizedLabel", T: 8 /*ScalarType.BOOL*/ } - ]); + { no: 3, name: "PagingState", kind: "scalar", localName: "PagingState", jsonName: "PagingState", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Start position of the query result page. Pagination disabled if equal to -1.", example: "\"50\"" } } }, + { no: 4, name: "Limit", kind: "scalar", localName: "Limit", jsonName: "Limit", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Length of the query result page", example: "\"50\"" } } }, + { no: 5, name: "LocalizedLabel", kind: "scalar", localName: "LocalizedLabel", jsonName: "LocalizedLabel", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Return the message in the user's language" } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID"] } } }); } create(value?: PartialMessage): QueryProjectHeader { const message = globalThis.Object.create((this.messagePrototype!)); @@ -1142,16 +3459,16 @@ class QueryProjectHeader$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string ProjectID = 1 [json_name = "ProjectID"];*/ 1: + case /* string ProjectID */ 1: message.ProjectID = reader.string(); break; - case /* string PagingState = 3 [json_name = "PagingState"];*/ 3: + case /* string PagingState */ 3: message.PagingState = reader.string(); break; - case /* string Limit = 4 [json_name = "Limit"];*/ 4: + case /* string Limit */ 4: message.Limit = reader.string(); break; - case /* bool LocalizedLabel = 5 [json_name = "LocalizedLabel"];*/ 5: + case /* bool LocalizedLabel */ 5: message.LocalizedLabel = reader.bool(); break; default: @@ -1166,16 +3483,16 @@ class QueryProjectHeader$Type extends MessageType { return message; } internalBinaryWrite(message: QueryProjectHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string ProjectID = 1 [json_name = "ProjectID"]; */ + /* string ProjectID = 1; */ if (message.ProjectID !== "") writer.tag(1, WireType.LengthDelimited).string(message.ProjectID); - /* string PagingState = 3 [json_name = "PagingState"]; */ + /* string PagingState = 3; */ if (message.PagingState !== "") writer.tag(3, WireType.LengthDelimited).string(message.PagingState); - /* string Limit = 4 [json_name = "Limit"]; */ + /* string Limit = 4; */ if (message.Limit !== "") writer.tag(4, WireType.LengthDelimited).string(message.Limit); - /* bool LocalizedLabel = 5 [json_name = "LocalizedLabel"]; */ + /* bool LocalizedLabel = 5; */ if (message.LocalizedLabel !== false) writer.tag(5, WireType.Varint).bool(message.LocalizedLabel); let u = options.writeUnknownFields; @@ -1189,10 +3506,81 @@ class QueryProjectHeader$Type extends MessageType { */ export const QueryProjectHeader = new QueryProjectHeader$Type(); // @generated message type with reflection information, may provide speed optimized methods +class QuerySiteHeader$Type extends MessageType { + constructor() { + super("api.QuerySiteHeader", [ + { no: 1, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the site" }, "validate.rules": { string: { minLen: "1", notContains: " " } } } }, + { no: 3, name: "PagingState", kind: "scalar", localName: "PagingState", jsonName: "PagingState", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Start position of the query result page. Pagination disabled if equal to -1.", example: "\"50\"" } } }, + { no: 4, name: "Limit", kind: "scalar", localName: "Limit", jsonName: "Limit", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Length of the query result page", example: "\"50\"" } } }, + { no: 5, name: "LocalizedLabel", kind: "scalar", localName: "LocalizedLabel", jsonName: "LocalizedLabel", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Return the message in the user's language" } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["SiteID"] } } }); + } + create(value?: PartialMessage): QuerySiteHeader { + const message = globalThis.Object.create((this.messagePrototype!)); + message.SiteID = ""; + message.PagingState = ""; + message.Limit = ""; + message.LocalizedLabel = false; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QuerySiteHeader): QuerySiteHeader { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string SiteID */ 1: + message.SiteID = reader.string(); + break; + case /* string PagingState */ 3: + message.PagingState = reader.string(); + break; + case /* string Limit */ 4: + message.Limit = reader.string(); + break; + case /* bool LocalizedLabel */ 5: + message.LocalizedLabel = reader.bool(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: QuerySiteHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string SiteID = 1; */ + if (message.SiteID !== "") + writer.tag(1, WireType.LengthDelimited).string(message.SiteID); + /* string PagingState = 3; */ + if (message.PagingState !== "") + writer.tag(3, WireType.LengthDelimited).string(message.PagingState); + /* string Limit = 4; */ + if (message.Limit !== "") + writer.tag(4, WireType.LengthDelimited).string(message.Limit); + /* bool LocalizedLabel = 5; */ + if (message.LocalizedLabel !== false) + writer.tag(5, WireType.Varint).bool(message.LocalizedLabel); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.QuerySiteHeader + */ +export const QuerySiteHeader = new QuerySiteHeader$Type(); +// @generated message type with reflection information, may provide speed optimized methods class ResultHeader$Type extends MessageType { constructor() { super("api.ResultHeader", [ - { no: 1, name: "PagingState", kind: "scalar", localName: "PagingState", jsonName: "PagingState", T: 9 /*ScalarType.STRING*/ } + { no: 1, name: "PagingState", kind: "scalar", localName: "PagingState", jsonName: "PagingState", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of elements displayed", example: "\"50\"" } } } ]); } create(value?: PartialMessage): ResultHeader { @@ -1207,7 +3595,7 @@ class ResultHeader$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string PagingState = 1 [json_name = "PagingState"];*/ 1: + case /* string PagingState */ 1: message.PagingState = reader.string(); break; default: @@ -1222,7 +3610,7 @@ class ResultHeader$Type extends MessageType { return message; } internalBinaryWrite(message: ResultHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string PagingState = 1 [json_name = "PagingState"]; */ + /* string PagingState = 1; */ if (message.PagingState !== "") writer.tag(1, WireType.LengthDelimited).string(message.PagingState); let u = options.writeUnknownFields; @@ -1242,18 +3630,24 @@ class CommandHeader$Type extends MessageType { { no: 1, name: "ActionCommand", kind: "scalar", localName: "ActionCommand", jsonName: "ActionCommand", T: 9 /*ScalarType.STRING*/ }, { no: 2, name: "CommandTS", kind: "message", localName: "CommandTS", jsonName: "CommandTS", T: () => DateTime }, { no: 3, name: "Project", kind: "scalar", localName: "Project", jsonName: "Project", T: 9 /*ScalarType.STRING*/ }, + { no: 9, name: "Site", kind: "scalar", localName: "Site", jsonName: "Site", T: 9 /*ScalarType.STRING*/ }, { no: 4, name: "FromDomain", kind: "scalar", localName: "FromDomain", jsonName: "FromDomain", T: 9 /*ScalarType.STRING*/ }, { no: 5, name: "FromObject", kind: "scalar", localName: "FromObject", jsonName: "FromObject", T: 9 /*ScalarType.STRING*/ }, - { no: 6, name: "FromRule", kind: "scalar", localName: "FromRule", jsonName: "FromRule", T: 9 /*ScalarType.STRING*/ } + { no: 6, name: "FromRule", kind: "scalar", localName: "FromRule", jsonName: "FromRule", T: 9 /*ScalarType.STRING*/ }, + { no: 7, name: "FromEvent", kind: "scalar", localName: "FromEvent", jsonName: "FromEvent", T: 9 /*ScalarType.STRING*/ }, + { no: 8, name: "FromAuthor", kind: "scalar", localName: "FromAuthor", jsonName: "FromAuthor", T: 9 /*ScalarType.STRING*/ } ]); } create(value?: PartialMessage): CommandHeader { const message = globalThis.Object.create((this.messagePrototype!)); message.ActionCommand = ""; message.Project = ""; + message.Site = ""; message.FromDomain = ""; message.FromObject = ""; message.FromRule = ""; + message.FromEvent = ""; + message.FromAuthor = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; @@ -1263,24 +3657,33 @@ class CommandHeader$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string ActionCommand = 1 [json_name = "ActionCommand"];*/ 1: + case /* string ActionCommand */ 1: message.ActionCommand = reader.string(); break; - case /* api.DateTime CommandTS = 2 [json_name = "CommandTS"];*/ 2: + case /* api.DateTime CommandTS */ 2: message.CommandTS = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.CommandTS); break; - case /* string Project = 3 [json_name = "Project"];*/ 3: + case /* string Project */ 3: message.Project = reader.string(); break; - case /* string FromDomain = 4 [json_name = "FromDomain"];*/ 4: + case /* string Site */ 9: + message.Site = reader.string(); + break; + case /* string FromDomain */ 4: message.FromDomain = reader.string(); break; - case /* string FromObject = 5 [json_name = "FromObject"];*/ 5: + case /* string FromObject */ 5: message.FromObject = reader.string(); break; - case /* string FromRule = 6 [json_name = "FromRule"];*/ 6: + case /* string FromRule */ 6: message.FromRule = reader.string(); break; + case /* string FromEvent */ 7: + message.FromEvent = reader.string(); + break; + case /* string FromAuthor */ 8: + message.FromAuthor = reader.string(); + break; default: let u = options.readUnknownField; if (u === "throw") @@ -1293,24 +3696,33 @@ class CommandHeader$Type extends MessageType { return message; } internalBinaryWrite(message: CommandHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string ActionCommand = 1 [json_name = "ActionCommand"]; */ + /* string ActionCommand = 1; */ if (message.ActionCommand !== "") writer.tag(1, WireType.LengthDelimited).string(message.ActionCommand); - /* api.DateTime CommandTS = 2 [json_name = "CommandTS"]; */ + /* api.DateTime CommandTS = 2; */ if (message.CommandTS) DateTime.internalBinaryWrite(message.CommandTS, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); - /* string Project = 3 [json_name = "Project"]; */ + /* string Project = 3; */ if (message.Project !== "") writer.tag(3, WireType.LengthDelimited).string(message.Project); - /* string FromDomain = 4 [json_name = "FromDomain"]; */ + /* string FromDomain = 4; */ if (message.FromDomain !== "") writer.tag(4, WireType.LengthDelimited).string(message.FromDomain); - /* string FromObject = 5 [json_name = "FromObject"]; */ + /* string FromObject = 5; */ if (message.FromObject !== "") writer.tag(5, WireType.LengthDelimited).string(message.FromObject); - /* string FromRule = 6 [json_name = "FromRule"]; */ + /* string FromRule = 6; */ if (message.FromRule !== "") writer.tag(6, WireType.LengthDelimited).string(message.FromRule); + /* string FromEvent = 7; */ + if (message.FromEvent !== "") + writer.tag(7, WireType.LengthDelimited).string(message.FromEvent); + /* string FromAuthor = 8; */ + if (message.FromAuthor !== "") + writer.tag(8, WireType.LengthDelimited).string(message.FromAuthor); + /* string Site = 9; */ + if (message.Site !== "") + writer.tag(9, WireType.LengthDelimited).string(message.Site); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -1327,17 +3739,23 @@ class EventHeader$Type extends MessageType { super("api.EventHeader", [ { no: 1, name: "InputEvent", kind: "scalar", localName: "InputEvent", jsonName: "InputEvent", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "EventTS", kind: "message", localName: "EventTS", jsonName: "EventTS", T: () => DateTime, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Project", kind: "scalar", localName: "Project", jsonName: "Project", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", notContains: " " } } } }, - { no: 4, name: "Author", kind: "scalar", localName: "Author", jsonName: "Author", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 5, name: "EventID", kind: "scalar", localName: "EventID", jsonName: "EventID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } - ]); + { no: 3, name: "Project", kind: "scalar", localName: "Project", jsonName: "Project", T: 9 /*ScalarType.STRING*/ }, + { no: 8, name: "Site", kind: "scalar", localName: "Site", jsonName: "Site", T: 9 /*ScalarType.STRING*/ }, + { no: 4, name: "Author", kind: "scalar", localName: "Author", jsonName: "Author", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.viewType": { Types: [{ Context: "*", Type: "user" }] } } }, + { no: 5, name: "EventID", kind: "scalar", localName: "EventID", jsonName: "EventID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 6, name: "CreatedBy", kind: "scalar", localName: "CreatedBy", jsonName: "CreatedBy", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "text" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Claim", Group: "claim", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "user" }] } } }, + { no: 7, name: "Version", kind: "scalar", localName: "Version", jsonName: "Version", T: 13 /*ScalarType.UINT32*/ } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["InputEvent", "EventTS", "Project", "Author", "EventID"] } } }); } create(value?: PartialMessage): EventHeader { const message = globalThis.Object.create((this.messagePrototype!)); message.InputEvent = ""; message.Project = ""; + message.Site = ""; message.Author = ""; message.EventID = ""; + message.CreatedBy = ""; + message.Version = 0; if (value !== undefined) reflectionMergePartial(this, message, value); return message; @@ -1347,21 +3765,30 @@ class EventHeader$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string InputEvent = 1 [json_name = "InputEvent"];*/ 1: + case /* string InputEvent */ 1: message.InputEvent = reader.string(); break; - case /* api.DateTime EventTS = 2 [json_name = "EventTS"];*/ 2: + case /* api.DateTime EventTS */ 2: message.EventTS = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.EventTS); break; - case /* string Project = 3 [json_name = "Project"];*/ 3: + case /* string Project */ 3: message.Project = reader.string(); break; - case /* string Author = 4 [json_name = "Author"];*/ 4: + case /* string Site */ 8: + message.Site = reader.string(); + break; + case /* string Author */ 4: message.Author = reader.string(); break; - case /* string EventID = 5 [json_name = "EventID"];*/ 5: + case /* string EventID */ 5: message.EventID = reader.string(); break; + case /* string CreatedBy */ 6: + message.CreatedBy = reader.string(); + break; + case /* uint32 Version */ 7: + message.Version = reader.uint32(); + break; default: let u = options.readUnknownField; if (u === "throw") @@ -1374,21 +3801,30 @@ class EventHeader$Type extends MessageType { return message; } internalBinaryWrite(message: EventHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string InputEvent = 1 [json_name = "InputEvent"]; */ + /* string InputEvent = 1; */ if (message.InputEvent !== "") writer.tag(1, WireType.LengthDelimited).string(message.InputEvent); - /* api.DateTime EventTS = 2 [json_name = "EventTS"]; */ + /* api.DateTime EventTS = 2; */ if (message.EventTS) DateTime.internalBinaryWrite(message.EventTS, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); - /* string Project = 3 [json_name = "Project"]; */ + /* string Project = 3; */ if (message.Project !== "") writer.tag(3, WireType.LengthDelimited).string(message.Project); - /* string Author = 4 [json_name = "Author"]; */ + /* string Author = 4; */ if (message.Author !== "") writer.tag(4, WireType.LengthDelimited).string(message.Author); - /* string EventID = 5 [json_name = "EventID"]; */ + /* string EventID = 5; */ if (message.EventID !== "") writer.tag(5, WireType.LengthDelimited).string(message.EventID); + /* string CreatedBy = 6; */ + if (message.CreatedBy !== "") + writer.tag(6, WireType.LengthDelimited).string(message.CreatedBy); + /* uint32 Version = 7; */ + if (message.Version !== 0) + writer.tag(7, WireType.Varint).uint32(message.Version); + /* string Site = 8; */ + if (message.Site !== "") + writer.tag(8, WireType.LengthDelimited).string(message.Site); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -1403,8 +3839,9 @@ export const EventHeader = new EventHeader$Type(); class EntityID$Type extends MessageType { constructor() { super("api.EntityID", [ - { no: 2, name: "RefID", kind: "scalar", localName: "RefID", jsonName: "RefID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your identifier" }, "validate.rules": { string: { minLen: "1" } } } } - ]); + { no: 2, name: "RefID", kind: "scalar", localName: "RefID", jsonName: "RefID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your identifier", example: "\"Your_Object_ID\"" }, "validate.rules": { string: { minLen: "1", maxLen: "192" } } } }, + { no: 3, name: "RefDate", kind: "message", localName: "RefDate", jsonName: "RefDate", T: () => DateTime, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your effective date. If your event triggers a status change, this date will be used into the status ActualDate" } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["RefID"] } } }); } create(value?: PartialMessage): EntityID { const message = globalThis.Object.create((this.messagePrototype!)); @@ -1418,9 +3855,12 @@ class EntityID$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string RefID = 2 [json_name = "RefID"];*/ 2: + case /* string RefID */ 2: message.RefID = reader.string(); break; + case /* api.DateTime RefDate */ 3: + message.RefDate = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.RefDate); + break; default: let u = options.readUnknownField; if (u === "throw") @@ -1433,9 +3873,12 @@ class EntityID$Type extends MessageType { return message; } internalBinaryWrite(message: EntityID, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string RefID = 2 [json_name = "RefID"]; */ + /* string RefID = 2; */ if (message.RefID !== "") writer.tag(2, WireType.LengthDelimited).string(message.RefID); + /* api.DateTime RefDate = 3; */ + if (message.RefDate) + DateTime.internalBinaryWrite(message.RefDate, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -1447,11 +3890,104 @@ class EntityID$Type extends MessageType { */ export const EntityID = new EntityID$Type(); // @generated message type with reflection information, may provide speed optimized methods +class StockID$Type extends MessageType { + constructor() { + super("api.StockID", [ + { no: 3, name: "RefDate", kind: "message", localName: "RefDate", jsonName: "RefDate", T: () => DateTime, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your effective date" } } } + ]); + } + create(value?: PartialMessage): StockID { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StockID): StockID { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.DateTime RefDate */ 3: + message.RefDate = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.RefDate); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: StockID, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.DateTime RefDate = 3; */ + if (message.RefDate) + DateTime.internalBinaryWrite(message.RefDate, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.StockID + */ +export const StockID = new StockID$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class NoID$Type extends MessageType { + constructor() { + super("api.NoID", [ + { no: 3, name: "RefDate", kind: "message", localName: "RefDate", jsonName: "RefDate", T: () => DateTime, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your effective date" } } } + ]); + } + create(value?: PartialMessage): NoID { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: NoID): NoID { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.DateTime RefDate */ 3: + message.RefDate = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.RefDate); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: NoID, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.DateTime RefDate = 3; */ + if (message.RefDate) + DateTime.internalBinaryWrite(message.RefDate, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.NoID + */ +export const NoID = new NoID$Type(); +// @generated message type with reflection information, may provide speed optimized methods class GenericObject$Type extends MessageType { constructor() { super("api.GenericObject", [ { no: 1, name: "LastEventHeader", kind: "message", localName: "LastEventHeader", jsonName: "LastEventHeader", T: () => EventHeader }, - { no: 2, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => GenericObjectPayload } + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => GenericObjectPayload } ]); } create(value?: PartialMessage): GenericObject { @@ -1465,10 +4001,13 @@ class GenericObject$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* api.EventHeader LastEventHeader = 1 [json_name = "LastEventHeader"];*/ 1: + case /* api.EventHeader LastEventHeader */ 1: message.LastEventHeader = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.LastEventHeader); break; - case /* api.GenericObjectPayload Payload = 2 [json_name = "Payload"];*/ 2: + case /* api.EntityID ID */ 2: + message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); + break; + case /* api.GenericObjectPayload Payload */ 3: message.Payload = GenericObjectPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload); break; default: @@ -1483,12 +4022,15 @@ class GenericObject$Type extends MessageType { return message; } internalBinaryWrite(message: GenericObject, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* api.EventHeader LastEventHeader = 1 [json_name = "LastEventHeader"]; */ + /* api.EventHeader LastEventHeader = 1; */ if (message.LastEventHeader) EventHeader.internalBinaryWrite(message.LastEventHeader, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); - /* api.GenericObjectPayload Payload = 2 [json_name = "Payload"]; */ + /* api.EntityID ID = 2; */ + if (message.ID) + EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); + /* api.GenericObjectPayload Payload = 3; */ if (message.Payload) - GenericObjectPayload.internalBinaryWrite(message.Payload, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); + GenericObjectPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -1502,9 +4044,7 @@ export const GenericObject = new GenericObject$Type(); // @generated message type with reflection information, may provide speed optimized methods class GenericObjectPayload$Type extends MessageType { constructor() { - super("api.GenericObjectPayload", [ - { no: 1, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID } - ]); + super("api.GenericObjectPayload", []); } create(value?: PartialMessage): GenericObjectPayload { const message = globalThis.Object.create((this.messagePrototype!)); @@ -1517,9 +4057,6 @@ class GenericObjectPayload$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* api.EntityID ID = 1 [json_name = "ID"];*/ 1: - message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); - break; default: let u = options.readUnknownField; if (u === "throw") @@ -1532,9 +4069,6 @@ class GenericObjectPayload$Type extends MessageType { return message; } internalBinaryWrite(message: GenericObjectPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* api.EntityID ID = 1 [json_name = "ID"]; */ - if (message.ID) - EntityID.internalBinaryWrite(message.ID, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -1549,8 +4083,8 @@ export const GenericObjectPayload = new GenericObjectPayload$Type(); class DateTime$Type extends MessageType { constructor() { super("api.DateTime", [ - { no: 1, name: "DateTime", kind: "scalar", localName: "DateTime", jsonName: "DateTime", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z])", example: "2020-11-26T21:32:52+02:00" }, "validate.rules": { string: { dateIso8601: true } }, "api.kpi": true } }, - { no: 2, name: "AuthorTimeZone", kind: "scalar", localName: "AuthorTimeZone", jsonName: "AuthorTimeZone", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Time zone from where the author emits the event", example: "Europe/Paris" }, "validate.rules": { string: { tzData: true } } } } + { no: 1, name: "DateTime", kind: "scalar", localName: "DateTime", jsonName: "DateTime", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in ISO 8601 format", example: "\"2023-01-01T00:00:00Z\"" }, "validate.rules": { string: { dateIso8601: true } }, "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.kpiItems": { Items: [{ Context: "Actor", Group: "actor", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Item", Group: "item", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Partner", Group: "partner", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,DateTime)" }, { Context: "Tracking", Group: "tracking", Queryable: true }, { Context: "Claim", Group: "claim", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }, + { no: 2, name: "AuthorTimeZone", kind: "scalar", localName: "AuthorTimeZone", jsonName: "AuthorTimeZone", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Time zone from where the author emits the event in this format", example: "\"Europe/Paris\"" }, "validate.rules": { string: { tzData: true } } } } ]); } create(value?: PartialMessage): DateTime { @@ -1566,10 +4100,10 @@ class DateTime$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string DateTime = 1 [json_name = "DateTime"];*/ 1: + case /* string DateTime */ 1: message.DateTime = reader.string(); break; - case /* string AuthorTimeZone = 2 [json_name = "AuthorTimeZone"];*/ 2: + case /* string AuthorTimeZone */ 2: message.AuthorTimeZone = reader.string(); break; default: @@ -1584,10 +4118,10 @@ class DateTime$Type extends MessageType { return message; } internalBinaryWrite(message: DateTime, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string DateTime = 1 [json_name = "DateTime"]; */ + /* string DateTime = 1; */ if (message.DateTime !== "") writer.tag(1, WireType.LengthDelimited).string(message.DateTime); - /* string AuthorTimeZone = 2 [json_name = "AuthorTimeZone"]; */ + /* string AuthorTimeZone = 2; */ if (message.AuthorTimeZone !== "") writer.tag(2, WireType.LengthDelimited).string(message.AuthorTimeZone); let u = options.writeUnknownFields; @@ -1604,11 +4138,11 @@ export const DateTime = new DateTime$Type(); class ValueType$Type extends MessageType { constructor() { super("api.ValueType", [ - { no: 1, name: "String", kind: "scalar", localName: "String", jsonName: "String", oneof: "ValueType", T: 9 /*ScalarType.STRING*/ }, - { no: 2, name: "Int", kind: "scalar", localName: "Int", jsonName: "Int", oneof: "ValueType", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }, - { no: 3, name: "Float", kind: "scalar", localName: "Float", jsonName: "Float", oneof: "ValueType", T: 2 /*ScalarType.FLOAT*/ }, - { no: 4, name: "Bool", kind: "scalar", localName: "Bool", jsonName: "Bool", oneof: "ValueType", T: 8 /*ScalarType.BOOL*/ }, - { no: 5, name: "Timestamp", kind: "message", localName: "Timestamp", jsonName: "Timestamp", oneof: "ValueType", T: () => DateTime } + { no: 1, name: "String", kind: "scalar", localName: "String", jsonName: "String", oneof: "ValueType", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"Hello World !\"" } } }, + { no: 2, name: "Int", kind: "scalar", localName: "Int", jsonName: "Int", oneof: "ValueType", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "42" } } }, + { no: 3, name: "Float", kind: "scalar", localName: "Float", jsonName: "Float", oneof: "ValueType", T: 2 /*ScalarType.FLOAT*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "3.1415" } } }, + { no: 4, name: "Bool", kind: "scalar", localName: "Bool", jsonName: "Bool", oneof: "ValueType", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"true / false\"" } } }, + { no: 5, name: "Timestamp", kind: "message", localName: "Timestamp", jsonName: "Timestamp", oneof: "ValueType", T: () => DateTime, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": {} } } ]); } create(value?: PartialMessage): ValueType { @@ -1623,31 +4157,31 @@ class ValueType$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string String = 1 [json_name = "String"];*/ 1: + case /* string String */ 1: message.ValueType = { oneofKind: "String", String: reader.string() }; break; - case /* int64 Int = 2 [json_name = "Int"];*/ 2: + case /* int64 Int */ 2: message.ValueType = { oneofKind: "Int", Int: reader.int64().toBigInt() }; break; - case /* float Float = 3 [json_name = "Float"];*/ 3: + case /* float Float */ 3: message.ValueType = { oneofKind: "Float", Float: reader.float() }; break; - case /* bool Bool = 4 [json_name = "Bool"];*/ 4: + case /* bool Bool */ 4: message.ValueType = { oneofKind: "Bool", Bool: reader.bool() }; break; - case /* api.DateTime Timestamp = 5 [json_name = "Timestamp"];*/ 5: + case /* api.DateTime Timestamp */ 5: message.ValueType = { oneofKind: "Timestamp", Timestamp: DateTime.internalBinaryRead(reader, reader.uint32(), options, (message.ValueType as any).Timestamp) @@ -1665,19 +4199,19 @@ class ValueType$Type extends MessageType { return message; } internalBinaryWrite(message: ValueType, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string String = 1 [json_name = "String"]; */ + /* string String = 1; */ if (message.ValueType.oneofKind === "String") writer.tag(1, WireType.LengthDelimited).string(message.ValueType.String); - /* int64 Int = 2 [json_name = "Int"]; */ + /* int64 Int = 2; */ if (message.ValueType.oneofKind === "Int") writer.tag(2, WireType.Varint).int64(message.ValueType.Int); - /* float Float = 3 [json_name = "Float"]; */ + /* float Float = 3; */ if (message.ValueType.oneofKind === "Float") writer.tag(3, WireType.Bit32).float(message.ValueType.Float); - /* bool Bool = 4 [json_name = "Bool"]; */ + /* bool Bool = 4; */ if (message.ValueType.oneofKind === "Bool") writer.tag(4, WireType.Varint).bool(message.ValueType.Bool); - /* api.DateTime Timestamp = 5 [json_name = "Timestamp"]; */ + /* api.DateTime Timestamp = 5; */ if (message.ValueType.oneofKind === "Timestamp") DateTime.internalBinaryWrite(message.ValueType.Timestamp, writer.tag(5, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; @@ -1691,6 +4225,61 @@ class ValueType$Type extends MessageType { */ export const ValueType = new ValueType$Type(); // @generated message type with reflection information, may provide speed optimized methods +class Amount$Type extends MessageType { + constructor() { + super("api.Amount", [ + { no: 1, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 2 /*ScalarType.FLOAT*/, options: { "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } }, + { no: 2, name: "Currency", kind: "enum", localName: "Currency", jsonName: "Currency", T: () => ["api.Currency", Currency], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ISO 4217 currency code", example: "[\"EUR\", \"USD\"]" }, "validate.rules": { enum: { definedOnly: true } }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } } + ]); + } + create(value?: PartialMessage): Amount { + const message = globalThis.Object.create((this.messagePrototype!)); + message.Value = 0; + message.Currency = 0; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Amount): Amount { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* float Value */ 1: + message.Value = reader.float(); + break; + case /* api.Currency Currency */ 2: + message.Currency = reader.int32(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: Amount, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* float Value = 1; */ + if (message.Value !== 0) + writer.tag(1, WireType.Bit32).float(message.Value); + /* api.Currency Currency = 2; */ + if (message.Currency !== 0) + writer.tag(2, WireType.Varint).int32(message.Currency); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.Amount + */ +export const Amount = new Amount$Type(); +// @generated message type with reflection information, may provide speed optimized methods class QuantityLength$Type extends MessageType { constructor() { super("api.QuantityLength", [ @@ -1711,10 +4300,10 @@ class QuantityLength$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* float Value = 1 [json_name = "Value"];*/ 1: + case /* float Value */ 1: message.Value = reader.float(); break; - case /* api.Length Unit = 2 [json_name = "Unit"];*/ 2: + case /* api.Length Unit */ 2: message.Unit = reader.int32(); break; default: @@ -1729,10 +4318,10 @@ class QuantityLength$Type extends MessageType { return message; } internalBinaryWrite(message: QuantityLength, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* float Value = 1 [json_name = "Value"]; */ + /* float Value = 1; */ if (message.Value !== 0) writer.tag(1, WireType.Bit32).float(message.Value); - /* api.Length Unit = 2 [json_name = "Unit"]; */ + /* api.Length Unit = 2; */ if (message.Unit !== 0) writer.tag(2, WireType.Varint).int32(message.Unit); let u = options.writeUnknownFields; @@ -1749,8 +4338,8 @@ export const QuantityLength = new QuantityLength$Type(); class QuantityVolume$Type extends MessageType { constructor() { super("api.QuantityVolume", [ - { no: 1, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 2 /*ScalarType.FLOAT*/, options: { "api.kpi": true } }, - { no: 2, name: "Unit", kind: "enum", localName: "Unit", jsonName: "Unit", T: () => ["api.Volume", Volume], options: { "api.kpi": true } } + { no: 1, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 2 /*ScalarType.FLOAT*/, options: { "api.dataRestrictionKey": "Movement,Stock,Executionflow,Handlingunit,Order,Item,Actor,Partner,Tracking", "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }] } } }, + { no: 2, name: "Unit", kind: "enum", localName: "Unit", jsonName: "Unit", T: () => ["api.Volume", Volume], options: { "api.dataRestrictionKey": "Movement,Stock,Executionflow,Handlingunit,Order,Item,Actor,Partner,Tracking", "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }] } } } ]); } create(value?: PartialMessage): QuantityVolume { @@ -1766,10 +4355,10 @@ class QuantityVolume$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* float Value = 1 [json_name = "Value"];*/ 1: + case /* float Value */ 1: message.Value = reader.float(); break; - case /* api.Volume Unit = 2 [json_name = "Unit"];*/ 2: + case /* api.Volume Unit */ 2: message.Unit = reader.int32(); break; default: @@ -1784,10 +4373,10 @@ class QuantityVolume$Type extends MessageType { return message; } internalBinaryWrite(message: QuantityVolume, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* float Value = 1 [json_name = "Value"]; */ + /* float Value = 1; */ if (message.Value !== 0) writer.tag(1, WireType.Bit32).float(message.Value); - /* api.Volume Unit = 2 [json_name = "Unit"]; */ + /* api.Volume Unit = 2; */ if (message.Unit !== 0) writer.tag(2, WireType.Varint).int32(message.Unit); let u = options.writeUnknownFields; @@ -1804,8 +4393,8 @@ export const QuantityVolume = new QuantityVolume$Type(); class QuantityWeight$Type extends MessageType { constructor() { super("api.QuantityWeight", [ - { no: 1, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 2 /*ScalarType.FLOAT*/, options: { "api.kpi": true } }, - { no: 2, name: "Unit", kind: "enum", localName: "Unit", jsonName: "Unit", T: () => ["api.Weight", Weight], options: { "api.kpi": true } } + { no: 1, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 2 /*ScalarType.FLOAT*/, options: { "api.dataRestrictionKey": "Movement,Stock,Executionflow,Handlingunit,Order,Item,Actor,Partner,Tracking", "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }] } } }, + { no: 2, name: "Unit", kind: "enum", localName: "Unit", jsonName: "Unit", T: () => ["api.Weight", Weight], options: { "api.dataRestrictionKey": "Movement,Stock,Executionflow,Handlingunit,Order,Item,Actor,Partner,Tracking", "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }] } } } ]); } create(value?: PartialMessage): QuantityWeight { @@ -1821,10 +4410,10 @@ class QuantityWeight$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* float Value = 1 [json_name = "Value"];*/ 1: + case /* float Value */ 1: message.Value = reader.float(); break; - case /* api.Weight Unit = 2 [json_name = "Unit"];*/ 2: + case /* api.Weight Unit */ 2: message.Unit = reader.int32(); break; default: @@ -1839,10 +4428,10 @@ class QuantityWeight$Type extends MessageType { return message; } internalBinaryWrite(message: QuantityWeight, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* float Value = 1 [json_name = "Value"]; */ + /* float Value = 1; */ if (message.Value !== 0) writer.tag(1, WireType.Bit32).float(message.Value); - /* api.Weight Unit = 2 [json_name = "Unit"]; */ + /* api.Weight Unit = 2; */ if (message.Unit !== 0) writer.tag(2, WireType.Varint).int32(message.Unit); let u = options.writeUnknownFields; @@ -1876,10 +4465,10 @@ class QuantityArea$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* float Value = 1 [json_name = "Value"];*/ 1: + case /* float Value */ 1: message.Value = reader.float(); break; - case /* api.Area Unit = 2 [json_name = "Unit"];*/ 2: + case /* api.Area Unit */ 2: message.Unit = reader.int32(); break; default: @@ -1894,10 +4483,10 @@ class QuantityArea$Type extends MessageType { return message; } internalBinaryWrite(message: QuantityArea, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* float Value = 1 [json_name = "Value"]; */ + /* float Value = 1; */ if (message.Value !== 0) writer.tag(1, WireType.Bit32).float(message.Value); - /* api.Area Unit = 2 [json_name = "Unit"]; */ + /* api.Area Unit = 2; */ if (message.Unit !== 0) writer.tag(2, WireType.Varint).int32(message.Unit); let u = options.writeUnknownFields; @@ -1931,10 +4520,10 @@ class QuantityUnit$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* float Value = 1 [json_name = "Value"];*/ 1: + case /* float Value */ 1: message.Value = reader.float(); break; - case /* api.DimensionLess Unit = 2 [json_name = "Unit"];*/ 2: + case /* api.DimensionLess Unit */ 2: message.Unit = reader.int32(); break; default: @@ -1949,10 +4538,10 @@ class QuantityUnit$Type extends MessageType { return message; } internalBinaryWrite(message: QuantityUnit, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* float Value = 1 [json_name = "Value"]; */ + /* float Value = 1; */ if (message.Value !== 0) writer.tag(1, WireType.Bit32).float(message.Value); - /* api.DimensionLess Unit = 2 [json_name = "Unit"]; */ + /* api.DimensionLess Unit = 2; */ if (message.Unit !== 0) writer.tag(2, WireType.Varint).int32(message.Unit); let u = options.writeUnknownFields; @@ -2022,10 +4611,10 @@ class DomainDescriptionResponse$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string Name = 1 [json_name = "Name"];*/ 1: + case /* string Name */ 1: message.Name = reader.string(); break; - case /* repeated api.ObjectDescription ObjectDescription = 2 [json_name = "ObjectDescription"];*/ 2: + case /* repeated api.ObjectDescription ObjectDescription */ 2: message.ObjectDescription.push(ObjectDescription.internalBinaryRead(reader, reader.uint32(), options)); break; default: @@ -2095,10 +4684,10 @@ class DomainDescription$Type extends MessageType { return message; } internalBinaryWrite(message: DomainDescription, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string Name = 1 [json_name = "Name"]; */ + /* string Name = 1; */ if (message.Name !== "") writer.tag(1, WireType.LengthDelimited).string(message.Name); - /* repeated api.ObjectDescription ObjectDescription = 2 [json_name = "ObjectDescription"]; */ + /* repeated api.ObjectDescription ObjectDescription = 2; */ for (let i = 0; i < message.ObjectDescription.length; i++) ObjectDescription.internalBinaryWrite(message.ObjectDescription[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; @@ -2138,19 +4727,19 @@ class ObjectDescription$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string Name = 1 [json_name = "Name"];*/ 1: + case /* string Name */ 1: message.Name = reader.string(); break; - case /* repeated api.ObjectAction ApiAction = 2 [json_name = "ApiAction"];*/ 2: + case /* repeated api.ObjectAction ApiAction */ 2: message.ApiAction.push(ObjectAction.internalBinaryRead(reader, reader.uint32(), options)); break; - case /* string PayloadJSON = 3 [json_name = "PayloadJSON"];*/ 3: + case /* string PayloadJSON */ 3: message.PayloadJSON = reader.string(); break; - case /* repeated api.ObjectAction ApiInput = 4 [json_name = "ApiInput"];*/ 4: + case /* repeated api.ObjectAction ApiInput */ 4: message.ApiInput.push(ObjectAction.internalBinaryRead(reader, reader.uint32(), options)); break; - case /* repeated api.ObjectAction ApiQuery = 5 [json_name = "ApiQuery"];*/ 5: + case /* repeated api.ObjectAction ApiQuery */ 5: message.ApiQuery.push(ObjectAction.internalBinaryRead(reader, reader.uint32(), options)); break; default: @@ -2165,19 +4754,19 @@ class ObjectDescription$Type extends MessageType { return message; } internalBinaryWrite(message: ObjectDescription, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string Name = 1 [json_name = "Name"]; */ + /* string Name = 1; */ if (message.Name !== "") writer.tag(1, WireType.LengthDelimited).string(message.Name); - /* repeated api.ObjectAction ApiAction = 2 [json_name = "ApiAction"]; */ + /* repeated api.ObjectAction ApiAction = 2; */ for (let i = 0; i < message.ApiAction.length; i++) ObjectAction.internalBinaryWrite(message.ApiAction[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join(); - /* string PayloadJSON = 3 [json_name = "PayloadJSON"]; */ + /* string PayloadJSON = 3; */ if (message.PayloadJSON !== "") writer.tag(3, WireType.LengthDelimited).string(message.PayloadJSON); - /* repeated api.ObjectAction ApiInput = 4 [json_name = "ApiInput"]; */ + /* repeated api.ObjectAction ApiInput = 4; */ for (let i = 0; i < message.ApiInput.length; i++) ObjectAction.internalBinaryWrite(message.ApiInput[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join(); - /* repeated api.ObjectAction ApiQuery = 5 [json_name = "ApiQuery"]; */ + /* repeated api.ObjectAction ApiQuery = 5; */ for (let i = 0; i < message.ApiQuery.length; i++) ObjectAction.internalBinaryWrite(message.ApiQuery[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; @@ -2211,10 +4800,10 @@ class ObjectAction$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string Name = 1 [json_name = "Name"];*/ 1: + case /* string Name */ 1: message.Name = reader.string(); break; - case /* string JsonTemplate = 2 [json_name = "JsonTemplate"];*/ 2: + case /* string JsonTemplate */ 2: message.JsonTemplate = reader.string(); break; default: @@ -2229,10 +4818,10 @@ class ObjectAction$Type extends MessageType { return message; } internalBinaryWrite(message: ObjectAction, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string Name = 1 [json_name = "Name"]; */ + /* string Name = 1; */ if (message.Name !== "") writer.tag(1, WireType.LengthDelimited).string(message.Name); - /* string JsonTemplate = 2 [json_name = "JsonTemplate"]; */ + /* string JsonTemplate = 2; */ if (message.JsonTemplate !== "") writer.tag(2, WireType.LengthDelimited).string(message.JsonTemplate); let u = options.writeUnknownFields; @@ -2249,8 +4838,8 @@ export const ObjectAction = new ObjectAction$Type(); class MetadataElement$Type extends MessageType { constructor() { super("api.MetadataElement", [ - { no: 1, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/ }, - { no: 2, name: "Value", kind: "message", localName: "Value", jsonName: "Value", T: () => ValueType } + { no: 1, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Key of the Metadata and Segmentation of the project" } } }, + { no: 2, name: "Value", kind: "message", localName: "Value", jsonName: "Value", T: () => ValueType, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Value of the Metadata and Segmentation of the project" } } } ]); } create(value?: PartialMessage): MetadataElement { @@ -2265,10 +4854,10 @@ class MetadataElement$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string Key = 1 [json_name = "Key"];*/ 1: + case /* string Key */ 1: message.Key = reader.string(); break; - case /* api.ValueType Value = 2 [json_name = "Value"];*/ 2: + case /* api.ValueType Value */ 2: message.Value = ValueType.internalBinaryRead(reader, reader.uint32(), options, message.Value); break; default: @@ -2283,10 +4872,10 @@ class MetadataElement$Type extends MessageType { return message; } internalBinaryWrite(message: MetadataElement, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string Key = 1 [json_name = "Key"]; */ + /* string Key = 1; */ if (message.Key !== "") writer.tag(1, WireType.LengthDelimited).string(message.Key); - /* api.ValueType Value = 2 [json_name = "Value"]; */ + /* api.ValueType Value = 2; */ if (message.Value) ValueType.internalBinaryWrite(message.Value, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; @@ -2303,12 +4892,12 @@ export const MetadataElement = new MetadataElement$Type(); class SimpleFilter$Type extends MessageType { constructor() { super("api.SimpleFilter", [ - { no: 1, name: "Attribute", kind: "scalar", localName: "Attribute", jsonName: "Attribute", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Filter path", example: "\"ID.refID\"" } } }, - { no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Use this parameter if only one value" } } }, - { no: 3, name: "Values", kind: "scalar", localName: "Values", jsonName: "Values", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Use this parameter if more than one value" } } }, - { no: 4, name: "Operator", kind: "scalar", localName: "Operator", jsonName: "Operator", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "\" EQUAL: 'EQUAL',\u00A0 DIFF: 'DIFF',\u00A0 START_BY: 'START_BY',\u00A0 NOT_START_BY: 'NOT_START_BY',\u00A0 FINISH_BY: 'FINISH_BY',\u00A0 NOT_FINISH_BY: 'NOT_FINISH_BY',\u00A0 CONTAINS: 'CONTAINS',\u00A0 NOT_CONTAINS: 'NOT_CONTAINS'\"" } } }, - { no: 5, name: "CombinedID", kind: "scalar", localName: "CombinedID", jsonName: "CombinedID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "metadata's key" } } } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Filter on a simple value" } } }); + { no: 1, name: "Attribute", kind: "scalar", localName: "Attribute", jsonName: "Attribute", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Filter path", example: "\"ID.RefID\"" }, "validate.rules": { string: { maxLen: "250" } } } }, + { no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Use this parameter if only one value" }, "validate.rules": { string: { maxLen: "250" } } } }, + { no: 3, name: "Values", kind: "scalar", localName: "Values", jsonName: "Values", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Use this parameter if more than one value" }, "validate.rules": { repeated: { items: { string: { maxLen: "250" } } } } } }, + { no: 4, name: "Operator", kind: "scalar", localName: "Operator", jsonName: "Operator", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Allowed values : \"\", \"not\"" }, "validate.rules": { string: { maxLen: "50" } } } }, + { no: 5, name: "CombinedID", kind: "scalar", localName: "CombinedID", jsonName: "CombinedID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata's key" }, "validate.rules": { string: { maxLen: "250" } } } } + ]); } create(value?: PartialMessage): SimpleFilter { const message = globalThis.Object.create((this.messagePrototype!)); @@ -2326,19 +4915,19 @@ class SimpleFilter$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string Attribute = 1 [json_name = "Attribute"];*/ 1: + case /* string Attribute */ 1: message.Attribute = reader.string(); break; - case /* string Value = 2 [json_name = "Value"];*/ 2: + case /* string Value */ 2: message.Value = reader.string(); break; - case /* repeated string Values = 3 [json_name = "Values"];*/ 3: + case /* repeated string Values */ 3: message.Values.push(reader.string()); break; - case /* string Operator = 4 [json_name = "Operator"];*/ 4: + case /* string Operator */ 4: message.Operator = reader.string(); break; - case /* string CombinedID = 5 [json_name = "CombinedID"];*/ 5: + case /* string CombinedID */ 5: message.CombinedID = reader.string(); break; default: @@ -2353,19 +4942,19 @@ class SimpleFilter$Type extends MessageType { return message; } internalBinaryWrite(message: SimpleFilter, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string Attribute = 1 [json_name = "Attribute"]; */ + /* string Attribute = 1; */ if (message.Attribute !== "") writer.tag(1, WireType.LengthDelimited).string(message.Attribute); - /* string Value = 2 [json_name = "Value"]; */ + /* string Value = 2; */ if (message.Value !== "") writer.tag(2, WireType.LengthDelimited).string(message.Value); - /* repeated string Values = 3 [json_name = "Values"]; */ + /* repeated string Values = 3; */ for (let i = 0; i < message.Values.length; i++) writer.tag(3, WireType.LengthDelimited).string(message.Values[i]); - /* string Operator = 4 [json_name = "Operator"]; */ + /* string Operator = 4; */ if (message.Operator !== "") writer.tag(4, WireType.LengthDelimited).string(message.Operator); - /* string CombinedID = 5 [json_name = "CombinedID"]; */ + /* string CombinedID = 5; */ if (message.CombinedID !== "") writer.tag(5, WireType.LengthDelimited).string(message.CombinedID); let u = options.writeUnknownFields; @@ -2403,7 +4992,7 @@ class CombinedFilter$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string Path = 1 [json_name = "Path"];*/ 1: + case /* string Path */ 1: message.Path = reader.string(); break; case /* repeated api.SimpleFilter simpleFilters */ 2: @@ -2412,7 +5001,7 @@ class CombinedFilter$Type extends MessageType { case /* repeated api.RangeFilter rangeFilters */ 3: message.rangeFilters.push(RangeFilter.internalBinaryRead(reader, reader.uint32(), options)); break; - case /* string CombinedID = 4 [json_name = "CombinedID"];*/ 4: + case /* string CombinedID */ 4: message.CombinedID = reader.string(); break; default: @@ -2427,7 +5016,7 @@ class CombinedFilter$Type extends MessageType { return message; } internalBinaryWrite(message: CombinedFilter, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string Path = 1 [json_name = "Path"]; */ + /* string Path = 1; */ if (message.Path !== "") writer.tag(1, WireType.LengthDelimited).string(message.Path); /* repeated api.SimpleFilter simpleFilters = 2; */ @@ -2436,7 +5025,7 @@ class CombinedFilter$Type extends MessageType { /* repeated api.RangeFilter rangeFilters = 3; */ for (let i = 0; i < message.rangeFilters.length; i++) RangeFilter.internalBinaryWrite(message.rangeFilters[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join(); - /* string CombinedID = 4 [json_name = "CombinedID"]; */ + /* string CombinedID = 4; */ if (message.CombinedID !== "") writer.tag(4, WireType.LengthDelimited).string(message.CombinedID); let u = options.writeUnknownFields; @@ -2453,11 +5042,11 @@ export const CombinedFilter = new CombinedFilter$Type(); class RangeFilter$Type extends MessageType { constructor() { super("api.RangeFilter", [ - { no: 1, name: "Attribute", kind: "scalar", localName: "Attribute", jsonName: "Attribute", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Filter path", example: "\"ID.refID\"" } } }, - { no: 2, name: "valueLt", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Maximum value" }, "validate.rules": { string: { maxLen: "300" } } } }, - { no: 3, name: "valueGt", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Minimum value" }, "validate.rules": { string: { maxLen: "300" } } } }, - { no: 4, name: "CombinedID", kind: "scalar", localName: "CombinedID", jsonName: "CombinedID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata's key" }, "validate.rules": { string: { maxLen: "300" } } } } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Filter between two values" } } }); + { no: 1, name: "Attribute", kind: "scalar", localName: "Attribute", jsonName: "Attribute", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Filter path", example: "\"ID.RefID\"" }, "validate.rules": { string: { maxLen: "250" } } } }, + { no: 2, name: "valueLt", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Maximum value" }, "validate.rules": { string: { maxLen: "250" } } } }, + { no: 3, name: "valueGt", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Minimum value" }, "validate.rules": { string: { maxLen: "250" } } } }, + { no: 4, name: "CombinedID", kind: "scalar", localName: "CombinedID", jsonName: "CombinedID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata's key" }, "validate.rules": { string: { maxLen: "250" } } } } + ]); } create(value?: PartialMessage): RangeFilter { const message = globalThis.Object.create((this.messagePrototype!)); @@ -2474,7 +5063,7 @@ class RangeFilter$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string Attribute = 1 [json_name = "Attribute"];*/ 1: + case /* string Attribute */ 1: message.Attribute = reader.string(); break; case /* string valueLt */ 2: @@ -2483,7 +5072,7 @@ class RangeFilter$Type extends MessageType { case /* string valueGt */ 3: message.valueGt = reader.string(); break; - case /* string CombinedID = 4 [json_name = "CombinedID"];*/ 4: + case /* string CombinedID */ 4: message.CombinedID = reader.string(); break; default: @@ -2498,7 +5087,7 @@ class RangeFilter$Type extends MessageType { return message; } internalBinaryWrite(message: RangeFilter, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string Attribute = 1 [json_name = "Attribute"]; */ + /* string Attribute = 1; */ if (message.Attribute !== "") writer.tag(1, WireType.LengthDelimited).string(message.Attribute); /* string valueLt = 2; */ @@ -2507,7 +5096,7 @@ class RangeFilter$Type extends MessageType { /* string valueGt = 3; */ if (message.valueGt !== "") writer.tag(3, WireType.LengthDelimited).string(message.valueGt); - /* string CombinedID = 4 [json_name = "CombinedID"]; */ + /* string CombinedID = 4; */ if (message.CombinedID !== "") writer.tag(4, WireType.LengthDelimited).string(message.CombinedID); let u = options.writeUnknownFields; @@ -2549,7 +5138,7 @@ class BlockFilter$Type extends MessageType { case /* repeated api.RangeFilter rangeFilters */ 2: message.rangeFilters.push(RangeFilter.internalBinaryRead(reader, reader.uint32(), options)); break; - case /* repeated api.BlockFilter BlockFilters = 3 [json_name = "BlockFilters"];*/ 3: + case /* repeated api.BlockFilter BlockFilters */ 3: message.BlockFilters.push(BlockFilter.internalBinaryRead(reader, reader.uint32(), options)); break; default: @@ -2570,7 +5159,7 @@ class BlockFilter$Type extends MessageType { /* repeated api.RangeFilter rangeFilters = 2; */ for (let i = 0; i < message.rangeFilters.length; i++) RangeFilter.internalBinaryWrite(message.rangeFilters[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join(); - /* repeated api.BlockFilter BlockFilters = 3 [json_name = "BlockFilters"]; */ + /* repeated api.BlockFilter BlockFilters = 3; */ for (let i = 0; i < message.BlockFilters.length; i++) BlockFilter.internalBinaryWrite(message.BlockFilters[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; @@ -2587,9 +5176,9 @@ export const BlockFilter = new BlockFilter$Type(); class MatchField$Type extends MessageType { constructor() { super("api.MatchField", [ - { no: 1, name: "Attribute", kind: "scalar", localName: "Attribute", jsonName: "Attribute", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "AttributeCombined", kind: "scalar", localName: "AttributeCombined", jsonName: "AttributeCombined", T: 9 /*ScalarType.STRING*/ }, - { no: 3, name: "CombinedID", kind: "scalar", localName: "CombinedID", jsonName: "CombinedID", T: 9 /*ScalarType.STRING*/ } + { no: 1, name: "Attribute", kind: "scalar", localName: "Attribute", jsonName: "Attribute", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Filter path" }, "validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "AttributeCombined", kind: "scalar", localName: "AttributeCombined", jsonName: "AttributeCombined", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Filter path for metadata filter" } } }, + { no: 3, name: "CombinedID", kind: "scalar", localName: "CombinedID", jsonName: "CombinedID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata's key" } } } ]); } create(value?: PartialMessage): MatchField { @@ -2606,13 +5195,13 @@ class MatchField$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string Attribute = 1 [json_name = "Attribute"];*/ 1: + case /* string Attribute */ 1: message.Attribute = reader.string(); break; - case /* string AttributeCombined = 2 [json_name = "AttributeCombined"];*/ 2: + case /* string AttributeCombined */ 2: message.AttributeCombined = reader.string(); break; - case /* string CombinedID = 3 [json_name = "CombinedID"];*/ 3: + case /* string CombinedID */ 3: message.CombinedID = reader.string(); break; default: @@ -2627,13 +5216,13 @@ class MatchField$Type extends MessageType { return message; } internalBinaryWrite(message: MatchField, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string Attribute = 1 [json_name = "Attribute"]; */ + /* string Attribute = 1; */ if (message.Attribute !== "") writer.tag(1, WireType.LengthDelimited).string(message.Attribute); - /* string AttributeCombined = 2 [json_name = "AttributeCombined"]; */ + /* string AttributeCombined = 2; */ if (message.AttributeCombined !== "") writer.tag(2, WireType.LengthDelimited).string(message.AttributeCombined); - /* string CombinedID = 3 [json_name = "CombinedID"]; */ + /* string CombinedID = 3; */ if (message.CombinedID !== "") writer.tag(3, WireType.LengthDelimited).string(message.CombinedID); let u = options.writeUnknownFields; @@ -2647,6 +5236,69 @@ class MatchField$Type extends MessageType { */ export const MatchField = new MatchField$Type(); // @generated message type with reflection information, may provide speed optimized methods +class MatchFieldResult$Type extends MessageType { + constructor() { + super("api.MatchFieldResult", [ + { no: 1, name: "Attribute", kind: "scalar", localName: "Attribute", jsonName: "Attribute", T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "Values", kind: "scalar", localName: "Values", jsonName: "Values", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, + { no: 3, name: "CombinedID", kind: "scalar", localName: "CombinedID", jsonName: "CombinedID", T: 9 /*ScalarType.STRING*/ } + ]); + } + create(value?: PartialMessage): MatchFieldResult { + const message = globalThis.Object.create((this.messagePrototype!)); + message.Attribute = ""; + message.Values = []; + message.CombinedID = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MatchFieldResult): MatchFieldResult { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string Attribute */ 1: + message.Attribute = reader.string(); + break; + case /* repeated string Values */ 2: + message.Values.push(reader.string()); + break; + case /* string CombinedID */ 3: + message.CombinedID = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: MatchFieldResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string Attribute = 1; */ + if (message.Attribute !== "") + writer.tag(1, WireType.LengthDelimited).string(message.Attribute); + /* repeated string Values = 2; */ + for (let i = 0; i < message.Values.length; i++) + writer.tag(2, WireType.LengthDelimited).string(message.Values[i]); + /* string CombinedID = 3; */ + if (message.CombinedID !== "") + writer.tag(3, WireType.LengthDelimited).string(message.CombinedID); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.MatchFieldResult + */ +export const MatchFieldResult = new MatchFieldResult$Type(); +// @generated message type with reflection information, may provide speed optimized methods class ErrorDetail$Type extends MessageType { constructor() { super("api.ErrorDetail", [ @@ -2667,10 +5319,10 @@ class ErrorDetail$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string Key = 1 [json_name = "Key"];*/ 1: + case /* string Key */ 1: message.Key = reader.string(); break; - case /* string Value = 2 [json_name = "Value"];*/ 2: + case /* string Value */ 2: message.Value = reader.string(); break; default: @@ -2685,10 +5337,10 @@ class ErrorDetail$Type extends MessageType { return message; } internalBinaryWrite(message: ErrorDetail, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string Key = 1 [json_name = "Key"]; */ + /* string Key = 1; */ if (message.Key !== "") writer.tag(1, WireType.LengthDelimited).string(message.Key); - /* string Value = 2 [json_name = "Value"]; */ + /* string Value = 2; */ if (message.Value !== "") writer.tag(2, WireType.LengthDelimited).string(message.Value); let u = options.writeUnknownFields; @@ -2730,22 +5382,22 @@ class Errors$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string ErrorCode = 1 [json_name = "ErrorCode"];*/ 1: + case /* string ErrorCode */ 1: message.ErrorCode = reader.string(); break; - case /* string ErrorTrace = 2 [json_name = "ErrorTrace"];*/ 2: + case /* string ErrorTrace */ 2: message.ErrorTrace = reader.string(); break; - case /* repeated api.ErrorDetail ErrorDetails = 3 [json_name = "ErrorDetails"];*/ 3: + case /* repeated api.ErrorDetail ErrorDetails */ 3: message.ErrorDetails.push(ErrorDetail.internalBinaryRead(reader, reader.uint32(), options)); break; - case /* string ContextType = 4 [json_name = "ContextType"];*/ 4: + case /* string ContextType */ 4: message.ContextType = reader.string(); break; - case /* string ContextProcess = 5 [json_name = "ContextProcess"];*/ 5: + case /* string ContextProcess */ 5: message.ContextProcess = reader.string(); break; - case /* string ContextPayload = 6 [json_name = "ContextPayload"];*/ 6: + case /* string ContextPayload */ 6: message.ContextPayload = reader.string(); break; default: @@ -2760,22 +5412,22 @@ class Errors$Type extends MessageType { return message; } internalBinaryWrite(message: Errors, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string ErrorCode = 1 [json_name = "ErrorCode"]; */ + /* string ErrorCode = 1; */ if (message.ErrorCode !== "") writer.tag(1, WireType.LengthDelimited).string(message.ErrorCode); - /* string ErrorTrace = 2 [json_name = "ErrorTrace"]; */ + /* string ErrorTrace = 2; */ if (message.ErrorTrace !== "") writer.tag(2, WireType.LengthDelimited).string(message.ErrorTrace); - /* repeated api.ErrorDetail ErrorDetails = 3 [json_name = "ErrorDetails"]; */ + /* repeated api.ErrorDetail ErrorDetails = 3; */ for (let i = 0; i < message.ErrorDetails.length; i++) ErrorDetail.internalBinaryWrite(message.ErrorDetails[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join(); - /* string ContextType = 4 [json_name = "ContextType"]; */ + /* string ContextType = 4; */ if (message.ContextType !== "") writer.tag(4, WireType.LengthDelimited).string(message.ContextType); - /* string ContextProcess = 5 [json_name = "ContextProcess"]; */ + /* string ContextProcess = 5; */ if (message.ContextProcess !== "") writer.tag(5, WireType.LengthDelimited).string(message.ContextProcess); - /* string ContextPayload = 6 [json_name = "ContextPayload"]; */ + /* string ContextPayload = 6; */ if (message.ContextPayload !== "") writer.tag(6, WireType.LengthDelimited).string(message.ContextPayload); let u = options.writeUnknownFields; @@ -2808,10 +5460,10 @@ class ParamElement$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string Key = 1 [json_name = "Key"];*/ 1: + case /* string Key */ 1: message.Key = reader.string(); break; - case /* api.ValueType Value = 3 [json_name = "Value"];*/ 3: + case /* api.ValueType Value */ 3: message.Value = ValueType.internalBinaryRead(reader, reader.uint32(), options, message.Value); break; default: @@ -2826,10 +5478,10 @@ class ParamElement$Type extends MessageType { return message; } internalBinaryWrite(message: ParamElement, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string Key = 1 [json_name = "Key"]; */ + /* string Key = 1; */ if (message.Key !== "") writer.tag(1, WireType.LengthDelimited).string(message.Key); - /* api.ValueType Value = 3 [json_name = "Value"]; */ + /* api.ValueType Value = 3; */ if (message.Value) ValueType.internalBinaryWrite(message.Value, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; @@ -2846,10 +5498,10 @@ export const ParamElement = new ParamElement$Type(); class LabelStructure$Type extends MessageType { constructor() { super("api.LabelStructure", [ - { no: 1, name: "Code", kind: "scalar", localName: "Code", jsonName: "Code", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Code of the message" }, "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Code", kind: "scalar", localName: "Code", jsonName: "Code", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Code of the message" }, "validate.rules": { string: { minLen: "1" } }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } }, { no: 2, name: "Label", kind: "scalar", localName: "Label", jsonName: "Label", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Label of the message" }, "validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "Params", kind: "message", localName: "Params", jsonName: "Params", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ParamElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Parameters for label" }, "api.aggKey": "Key" } } - ]); + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Code", "Label"] } } }); } create(value?: PartialMessage): LabelStructure { const message = globalThis.Object.create((this.messagePrototype!)); @@ -2865,13 +5517,13 @@ class LabelStructure$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string Code = 1 [json_name = "Code"];*/ 1: + case /* string Code */ 1: message.Code = reader.string(); break; - case /* string Label = 2 [json_name = "Label"];*/ 2: + case /* string Label */ 2: message.Label = reader.string(); break; - case /* repeated api.ParamElement Params = 3 [json_name = "Params"];*/ 3: + case /* repeated api.ParamElement Params */ 3: message.Params.push(ParamElement.internalBinaryRead(reader, reader.uint32(), options)); break; default: @@ -2886,13 +5538,13 @@ class LabelStructure$Type extends MessageType { return message; } internalBinaryWrite(message: LabelStructure, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string Code = 1 [json_name = "Code"]; */ + /* string Code = 1; */ if (message.Code !== "") writer.tag(1, WireType.LengthDelimited).string(message.Code); - /* string Label = 2 [json_name = "Label"]; */ + /* string Label = 2; */ if (message.Label !== "") writer.tag(2, WireType.LengthDelimited).string(message.Label); - /* repeated api.ParamElement Params = 3 [json_name = "Params"]; */ + /* repeated api.ParamElement Params = 3; */ for (let i = 0; i < message.Params.length; i++) ParamElement.internalBinaryWrite(message.Params[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; @@ -2906,31 +5558,66 @@ class LabelStructure$Type extends MessageType { */ export const LabelStructure = new LabelStructure$Type(); // @generated message type with reflection information, may provide speed optimized methods -class Credentials$Type extends MessageType { +class CoreEndpoint$Type extends MessageType { constructor() { - super("api.Credentials", [ - { no: 1, name: "Jwt", kind: "scalar", localName: "Jwt", jsonName: "Jwt", T: 9 /*ScalarType.STRING*/ }, - { no: 2, name: "Seed", kind: "scalar", localName: "Seed", jsonName: "Seed", T: 9 /*ScalarType.STRING*/ } + super("api.CoreEndpoint", [ + { no: 1, name: "RestEndpoint", kind: "scalar", localName: "RestEndpoint", jsonName: "RestEndpoint", T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "GrpcInputEndpoint", kind: "scalar", localName: "GrpcInputEndpoint", jsonName: "GrpcInputEndpoint", T: 9 /*ScalarType.STRING*/ }, + { no: 3, name: "GrpcQueryEndpoint", kind: "scalar", localName: "GrpcQueryEndpoint", jsonName: "GrpcQueryEndpoint", T: 9 /*ScalarType.STRING*/ }, + { no: 4, name: "GrpcGcsEndpoint", kind: "scalar", localName: "GrpcGcsEndpoint", jsonName: "GrpcGcsEndpoint", T: 9 /*ScalarType.STRING*/ }, + { no: 5, name: "GrpcLoggerEndpoint", kind: "scalar", localName: "GrpcLoggerEndpoint", jsonName: "GrpcLoggerEndpoint", T: 9 /*ScalarType.STRING*/ }, + { no: 6, name: "GrpcProjectModelEndpoint", kind: "scalar", localName: "GrpcProjectModelEndpoint", jsonName: "GrpcProjectModelEndpoint", T: 9 /*ScalarType.STRING*/ }, + { no: 7, name: "GrpcCoreCollabInputEndpoint", kind: "scalar", localName: "GrpcCoreCollabInputEndpoint", jsonName: "GrpcCoreCollabInputEndpoint", T: 9 /*ScalarType.STRING*/ }, + { no: 8, name: "GrpcCoreCollabQueryEndpoint", kind: "scalar", localName: "GrpcCoreCollabQueryEndpoint", jsonName: "GrpcCoreCollabQueryEndpoint", T: 9 /*ScalarType.STRING*/ }, + { no: 9, name: "GrpcCoreClaimTypeEndpoint", kind: "scalar", localName: "GrpcCoreClaimTypeEndpoint", jsonName: "GrpcCoreClaimTypeEndpoint", T: 9 /*ScalarType.STRING*/ } ]); } - create(value?: PartialMessage): Credentials { + create(value?: PartialMessage): CoreEndpoint { const message = globalThis.Object.create((this.messagePrototype!)); - message.Jwt = ""; - message.Seed = ""; + message.RestEndpoint = ""; + message.GrpcInputEndpoint = ""; + message.GrpcQueryEndpoint = ""; + message.GrpcGcsEndpoint = ""; + message.GrpcLoggerEndpoint = ""; + message.GrpcProjectModelEndpoint = ""; + message.GrpcCoreCollabInputEndpoint = ""; + message.GrpcCoreCollabQueryEndpoint = ""; + message.GrpcCoreClaimTypeEndpoint = ""; if (value !== undefined) - reflectionMergePartial(this, message, value); + reflectionMergePartial(this, message, value); return message; } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Credentials): Credentials { + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CoreEndpoint): CoreEndpoint { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string Jwt = 1 [json_name = "Jwt"];*/ 1: - message.Jwt = reader.string(); + case /* string RestEndpoint */ 1: + message.RestEndpoint = reader.string(); break; - case /* string Seed = 2 [json_name = "Seed"];*/ 2: - message.Seed = reader.string(); + case /* string GrpcInputEndpoint */ 2: + message.GrpcInputEndpoint = reader.string(); + break; + case /* string GrpcQueryEndpoint */ 3: + message.GrpcQueryEndpoint = reader.string(); + break; + case /* string GrpcGcsEndpoint */ 4: + message.GrpcGcsEndpoint = reader.string(); + break; + case /* string GrpcLoggerEndpoint */ 5: + message.GrpcLoggerEndpoint = reader.string(); + break; + case /* string GrpcProjectModelEndpoint */ 6: + message.GrpcProjectModelEndpoint = reader.string(); + break; + case /* string GrpcCoreCollabInputEndpoint */ 7: + message.GrpcCoreCollabInputEndpoint = reader.string(); + break; + case /* string GrpcCoreCollabQueryEndpoint */ 8: + message.GrpcCoreCollabQueryEndpoint = reader.string(); + break; + case /* string GrpcCoreClaimTypeEndpoint */ 9: + message.GrpcCoreClaimTypeEndpoint = reader.string(); break; default: let u = options.readUnknownField; @@ -2943,13 +5630,34 @@ class Credentials$Type extends MessageType { } return message; } - internalBinaryWrite(message: Credentials, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string Jwt = 1 [json_name = "Jwt"]; */ - if (message.Jwt !== "") - writer.tag(1, WireType.LengthDelimited).string(message.Jwt); - /* string Seed = 2 [json_name = "Seed"]; */ - if (message.Seed !== "") - writer.tag(2, WireType.LengthDelimited).string(message.Seed); + internalBinaryWrite(message: CoreEndpoint, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string RestEndpoint = 1; */ + if (message.RestEndpoint !== "") + writer.tag(1, WireType.LengthDelimited).string(message.RestEndpoint); + /* string GrpcInputEndpoint = 2; */ + if (message.GrpcInputEndpoint !== "") + writer.tag(2, WireType.LengthDelimited).string(message.GrpcInputEndpoint); + /* string GrpcQueryEndpoint = 3; */ + if (message.GrpcQueryEndpoint !== "") + writer.tag(3, WireType.LengthDelimited).string(message.GrpcQueryEndpoint); + /* string GrpcGcsEndpoint = 4; */ + if (message.GrpcGcsEndpoint !== "") + writer.tag(4, WireType.LengthDelimited).string(message.GrpcGcsEndpoint); + /* string GrpcLoggerEndpoint = 5; */ + if (message.GrpcLoggerEndpoint !== "") + writer.tag(5, WireType.LengthDelimited).string(message.GrpcLoggerEndpoint); + /* string GrpcProjectModelEndpoint = 6; */ + if (message.GrpcProjectModelEndpoint !== "") + writer.tag(6, WireType.LengthDelimited).string(message.GrpcProjectModelEndpoint); + /* string GrpcCoreCollabInputEndpoint = 7; */ + if (message.GrpcCoreCollabInputEndpoint !== "") + writer.tag(7, WireType.LengthDelimited).string(message.GrpcCoreCollabInputEndpoint); + /* string GrpcCoreCollabQueryEndpoint = 8; */ + if (message.GrpcCoreCollabQueryEndpoint !== "") + writer.tag(8, WireType.LengthDelimited).string(message.GrpcCoreCollabQueryEndpoint); + /* string GrpcCoreClaimTypeEndpoint = 9; */ + if (message.GrpcCoreClaimTypeEndpoint !== "") + writer.tag(9, WireType.LengthDelimited).string(message.GrpcCoreClaimTypeEndpoint); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -2957,9 +5665,332 @@ class Credentials$Type extends MessageType { } } /** - * @generated MessageType for protobuf message api.Credentials + * @generated MessageType for protobuf message api.CoreEndpoint */ -export const Credentials = new Credentials$Type(); +export const CoreEndpoint = new CoreEndpoint$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class IntegrationEndpoint$Type extends MessageType { + constructor() { + super("api.IntegrationEndpoint", [ + { no: 1, name: "RestEndpoint", kind: "scalar", localName: "RestEndpoint", jsonName: "RestEndpoint", T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "GrpcEndpoint", kind: "scalar", localName: "GrpcEndpoint", jsonName: "GrpcEndpoint", T: 9 /*ScalarType.STRING*/ } + ]); + } + create(value?: PartialMessage): IntegrationEndpoint { + const message = globalThis.Object.create((this.messagePrototype!)); + message.RestEndpoint = ""; + message.GrpcEndpoint = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: IntegrationEndpoint): IntegrationEndpoint { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string RestEndpoint */ 1: + message.RestEndpoint = reader.string(); + break; + case /* string GrpcEndpoint */ 2: + message.GrpcEndpoint = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: IntegrationEndpoint, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string RestEndpoint = 1; */ + if (message.RestEndpoint !== "") + writer.tag(1, WireType.LengthDelimited).string(message.RestEndpoint); + /* string GrpcEndpoint = 2; */ + if (message.GrpcEndpoint !== "") + writer.tag(2, WireType.LengthDelimited).string(message.GrpcEndpoint); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.IntegrationEndpoint + */ +export const IntegrationEndpoint = new IntegrationEndpoint$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class StorageEndpoint$Type extends MessageType { + constructor() { + super("api.StorageEndpoint", [ + { no: 1, name: "Endpoint", kind: "scalar", localName: "Endpoint", jsonName: "Endpoint", T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "Bucket", kind: "scalar", localName: "Bucket", jsonName: "Bucket", T: 9 /*ScalarType.STRING*/ } + ]); + } + create(value?: PartialMessage): StorageEndpoint { + const message = globalThis.Object.create((this.messagePrototype!)); + message.Endpoint = ""; + message.Bucket = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StorageEndpoint): StorageEndpoint { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string Endpoint */ 1: + message.Endpoint = reader.string(); + break; + case /* string Bucket */ 2: + message.Bucket = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: StorageEndpoint, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string Endpoint = 1; */ + if (message.Endpoint !== "") + writer.tag(1, WireType.LengthDelimited).string(message.Endpoint); + /* string Bucket = 2; */ + if (message.Bucket !== "") + writer.tag(2, WireType.LengthDelimited).string(message.Bucket); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.StorageEndpoint + */ +export const StorageEndpoint = new StorageEndpoint$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class NatsCredentials$Type extends MessageType { + constructor() { + super("api.NatsCredentials", [ + { no: 1, name: "Endpoint", kind: "scalar", localName: "Endpoint", jsonName: "Endpoint", T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "RootSubject", kind: "scalar", localName: "RootSubject", jsonName: "RootSubject", T: 9 /*ScalarType.STRING*/ }, + { no: 3, name: "Username", kind: "scalar", localName: "Username", jsonName: "Username", T: 9 /*ScalarType.STRING*/ }, + { no: 4, name: "UserJwt", kind: "scalar", localName: "UserJwt", jsonName: "UserJwt", T: 9 /*ScalarType.STRING*/ }, + { no: 5, name: "UserNkeySeed", kind: "scalar", localName: "UserNkeySeed", jsonName: "UserNkeySeed", T: 9 /*ScalarType.STRING*/ } + ]); + } + create(value?: PartialMessage): NatsCredentials { + const message = globalThis.Object.create((this.messagePrototype!)); + message.Endpoint = ""; + message.RootSubject = ""; + message.Username = ""; + message.UserJwt = ""; + message.UserNkeySeed = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: NatsCredentials): NatsCredentials { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string Endpoint */ 1: + message.Endpoint = reader.string(); + break; + case /* string RootSubject */ 2: + message.RootSubject = reader.string(); + break; + case /* string Username */ 3: + message.Username = reader.string(); + break; + case /* string UserJwt */ 4: + message.UserJwt = reader.string(); + break; + case /* string UserNkeySeed */ 5: + message.UserNkeySeed = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: NatsCredentials, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string Endpoint = 1; */ + if (message.Endpoint !== "") + writer.tag(1, WireType.LengthDelimited).string(message.Endpoint); + /* string RootSubject = 2; */ + if (message.RootSubject !== "") + writer.tag(2, WireType.LengthDelimited).string(message.RootSubject); + /* string Username = 3; */ + if (message.Username !== "") + writer.tag(3, WireType.LengthDelimited).string(message.Username); + /* string UserJwt = 4; */ + if (message.UserJwt !== "") + writer.tag(4, WireType.LengthDelimited).string(message.UserJwt); + /* string UserNkeySeed = 5; */ + if (message.UserNkeySeed !== "") + writer.tag(5, WireType.LengthDelimited).string(message.UserNkeySeed); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.NatsCredentials + */ +export const NatsCredentials = new NatsCredentials$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class OpenSearchCredentials$Type extends MessageType { + constructor() { + super("api.OpenSearchCredentials", [ + { no: 1, name: "Endpoint", kind: "scalar", localName: "Endpoint", jsonName: "Endpoint", T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "Username", kind: "scalar", localName: "Username", jsonName: "Username", T: 9 /*ScalarType.STRING*/ }, + { no: 3, name: "Password", kind: "scalar", localName: "Password", jsonName: "Password", T: 9 /*ScalarType.STRING*/ }, + { no: 4, name: "Index", kind: "scalar", localName: "Index", jsonName: "Index", T: 9 /*ScalarType.STRING*/ } + ]); + } + create(value?: PartialMessage): OpenSearchCredentials { + const message = globalThis.Object.create((this.messagePrototype!)); + message.Endpoint = ""; + message.Username = ""; + message.Password = ""; + message.Index = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OpenSearchCredentials): OpenSearchCredentials { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string Endpoint */ 1: + message.Endpoint = reader.string(); + break; + case /* string Username */ 2: + message.Username = reader.string(); + break; + case /* string Password */ 3: + message.Password = reader.string(); + break; + case /* string Index */ 4: + message.Index = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: OpenSearchCredentials, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string Endpoint = 1; */ + if (message.Endpoint !== "") + writer.tag(1, WireType.LengthDelimited).string(message.Endpoint); + /* string Username = 2; */ + if (message.Username !== "") + writer.tag(2, WireType.LengthDelimited).string(message.Username); + /* string Password = 3; */ + if (message.Password !== "") + writer.tag(3, WireType.LengthDelimited).string(message.Password); + /* string Index = 4; */ + if (message.Index !== "") + writer.tag(4, WireType.LengthDelimited).string(message.Index); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.OpenSearchCredentials + */ +export const OpenSearchCredentials = new OpenSearchCredentials$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class OpenIDCredentials$Type extends MessageType { + constructor() { + super("api.OpenIDCredentials", [ + { no: 1, name: "WellKnownURI", kind: "scalar", localName: "WellKnownURI", jsonName: "WellKnownURI", T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "ServiceAccountName", kind: "scalar", localName: "ServiceAccountName", jsonName: "ServiceAccountName", T: 9 /*ScalarType.STRING*/ }, + { no: 3, name: "ServiceAccountPEM", kind: "scalar", localName: "ServiceAccountPEM", jsonName: "ServiceAccountPEM", T: 9 /*ScalarType.STRING*/ } + ]); + } + create(value?: PartialMessage): OpenIDCredentials { + const message = globalThis.Object.create((this.messagePrototype!)); + message.WellKnownURI = ""; + message.ServiceAccountName = ""; + message.ServiceAccountPEM = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OpenIDCredentials): OpenIDCredentials { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string WellKnownURI */ 1: + message.WellKnownURI = reader.string(); + break; + case /* string ServiceAccountName */ 2: + message.ServiceAccountName = reader.string(); + break; + case /* string ServiceAccountPEM */ 3: + message.ServiceAccountPEM = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: OpenIDCredentials, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string WellKnownURI = 1; */ + if (message.WellKnownURI !== "") + writer.tag(1, WireType.LengthDelimited).string(message.WellKnownURI); + /* string ServiceAccountName = 2; */ + if (message.ServiceAccountName !== "") + writer.tag(2, WireType.LengthDelimited).string(message.ServiceAccountName); + /* string ServiceAccountPEM = 3; */ + if (message.ServiceAccountPEM !== "") + writer.tag(3, WireType.LengthDelimited).string(message.ServiceAccountPEM); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.OpenIDCredentials + */ +export const OpenIDCredentials = new OpenIDCredentials$Type(); // @generated message type with reflection information, may provide speed optimized methods class Int32Object$Type extends MessageType { constructor() { @@ -2979,7 +6010,7 @@ class Int32Object$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* int32 Int32 = 1 [json_name = "Int32"];*/ 1: + case /* int32 Int32 */ 1: message.Int32 = reader.int32(); break; default: @@ -2994,7 +6025,7 @@ class Int32Object$Type extends MessageType { return message; } internalBinaryWrite(message: Int32Object, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* int32 Int32 = 1 [json_name = "Int32"]; */ + /* int32 Int32 = 1; */ if (message.Int32 !== 0) writer.tag(1, WireType.Varint).int32(message.Int32); let u = options.writeUnknownFields; @@ -3026,7 +6057,7 @@ class BoolObject$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* bool Bool = 1 [json_name = "Bool"];*/ 1: + case /* bool Bool */ 1: message.Bool = reader.bool(); break; default: @@ -3041,7 +6072,7 @@ class BoolObject$Type extends MessageType { return message; } internalBinaryWrite(message: BoolObject, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* bool Bool = 1 [json_name = "Bool"]; */ + /* bool Bool = 1; */ if (message.Bool !== false) writer.tag(1, WireType.Varint).bool(message.Bool); let u = options.writeUnknownFields; @@ -3073,7 +6104,7 @@ class StringObject$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string String = 1 [json_name = "String"];*/ 1: + case /* string String */ 1: message.String = reader.string(); break; default: @@ -3088,7 +6119,7 @@ class StringObject$Type extends MessageType { return message; } internalBinaryWrite(message: StringObject, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string String = 1 [json_name = "String"]; */ + /* string String = 1; */ if (message.String !== "") writer.tag(1, WireType.LengthDelimited).string(message.String); let u = options.writeUnknownFields; @@ -3105,7 +6136,7 @@ export const StringObject = new StringObject$Type(); class StringDateObject$Type extends MessageType { constructor() { super("api.StringDateObject", [ - { no: 10, name: "DateTime", kind: "scalar", localName: "DateTime", jsonName: "DateTime", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z])", example: "2020-11-26T21:32:52+02:00" }, "validate.rules": { string: { dateIso8601: true } } } } + { no: 10, name: "DateTime", kind: "scalar", localName: "DateTime", jsonName: "DateTime", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in ISO 8601 format" }, "validate.rules": { string: { dateIso8601: true } }, "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } } ]); } create(value?: PartialMessage): StringDateObject { @@ -3120,7 +6151,7 @@ class StringDateObject$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string DateTime = 10 [json_name = "DateTime"];*/ 10: + case /* string DateTime */ 10: message.DateTime = reader.string(); break; default: @@ -3135,7 +6166,7 @@ class StringDateObject$Type extends MessageType { return message; } internalBinaryWrite(message: StringDateObject, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string DateTime = 10 [json_name = "DateTime"]; */ + /* string DateTime = 10; */ if (message.DateTime !== "") writer.tag(10, WireType.LengthDelimited).string(message.DateTime); let u = options.writeUnknownFields; @@ -3148,3 +6179,2041 @@ class StringDateObject$Type extends MessageType { * @generated MessageType for protobuf message api.StringDateObject */ export const StringDateObject = new StringDateObject$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class WorkflowExecutionResult$Type extends MessageType { + constructor() { + super("api.WorkflowExecutionResult", [ + { no: 1, name: "WorkflowId", kind: "scalar", localName: "WorkflowId", jsonName: "WorkflowId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "RunId", kind: "scalar", localName: "RunId", jsonName: "RunId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + ]); + } + create(value?: PartialMessage): WorkflowExecutionResult { + const message = globalThis.Object.create((this.messagePrototype!)); + message.WorkflowId = ""; + message.RunId = ""; + message.Domain = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: WorkflowExecutionResult): WorkflowExecutionResult { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string WorkflowId */ 1: + message.WorkflowId = reader.string(); + break; + case /* string RunId */ 2: + message.RunId = reader.string(); + break; + case /* string Domain */ 3: + message.Domain = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: WorkflowExecutionResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string WorkflowId = 1; */ + if (message.WorkflowId !== "") + writer.tag(1, WireType.LengthDelimited).string(message.WorkflowId); + /* string RunId = 2; */ + if (message.RunId !== "") + writer.tag(2, WireType.LengthDelimited).string(message.RunId); + /* string Domain = 3; */ + if (message.Domain !== "") + writer.tag(3, WireType.LengthDelimited).string(message.Domain); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.WorkflowExecutionResult + */ +export const WorkflowExecutionResult = new WorkflowExecutionResult$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class ModuleRegistration$Type extends MessageType { + constructor() { + super("api.ModuleRegistration", [ + { no: 1, name: "WorkflowTarget", kind: "enum", localName: "WorkflowTarget", jsonName: "WorkflowTarget", T: () => ["api.WorkflowTypeEnum", WorkflowTypeEnum], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Into which core workflow, the module child workflow will be registered" } } }, + { no: 2, name: "WorkflowPath", kind: "scalar", localName: "WorkflowPath", jsonName: "WorkflowPath", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Go path of module child workflow implementation" }, "validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.ModuleWorkflowTypeEnum", ModuleWorkflowTypeEnum], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "PRE or POST to execute before or after the core workfow targeted" } } }, + { no: 4, name: "Timeout", kind: "scalar", localName: "Timeout", jsonName: "Timeout", T: 5 /*ScalarType.INT32*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "max timeout in minutes of the module child workflow, ignored if it exceeds the platform default value." }, "validate.rules": { int32: { gt: 0 } } } } + ]); + } + create(value?: PartialMessage): ModuleRegistration { + const message = globalThis.Object.create((this.messagePrototype!)); + message.WorkflowTarget = 0; + message.WorkflowPath = ""; + message.Type = 0; + message.Timeout = 0; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ModuleRegistration): ModuleRegistration { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.WorkflowTypeEnum WorkflowTarget */ 1: + message.WorkflowTarget = reader.int32(); + break; + case /* string WorkflowPath */ 2: + message.WorkflowPath = reader.string(); + break; + case /* api.ModuleWorkflowTypeEnum Type */ 3: + message.Type = reader.int32(); + break; + case /* int32 Timeout */ 4: + message.Timeout = reader.int32(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: ModuleRegistration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.WorkflowTypeEnum WorkflowTarget = 1; */ + if (message.WorkflowTarget !== 0) + writer.tag(1, WireType.Varint).int32(message.WorkflowTarget); + /* string WorkflowPath = 2; */ + if (message.WorkflowPath !== "") + writer.tag(2, WireType.LengthDelimited).string(message.WorkflowPath); + /* api.ModuleWorkflowTypeEnum Type = 3; */ + if (message.Type !== 0) + writer.tag(3, WireType.Varint).int32(message.Type); + /* int32 Timeout = 4; */ + if (message.Timeout !== 0) + writer.tag(4, WireType.Varint).int32(message.Timeout); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.ModuleRegistration + */ +export const ModuleRegistration = new ModuleRegistration$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class ModuleDeregistration$Type extends MessageType { + constructor() { + super("api.ModuleDeregistration", [ + { no: 1, name: "WorkflowTarget", kind: "enum", localName: "WorkflowTarget", jsonName: "WorkflowTarget", T: () => ["api.WorkflowTypeEnum", WorkflowTypeEnum], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Into which core workflow, the module child workflow will be registered" } } }, + { no: 2, name: "WorkflowPath", kind: "scalar", localName: "WorkflowPath", jsonName: "WorkflowPath", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Go path of module child workflow implementation" }, "validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.ModuleWorkflowTypeEnum", ModuleWorkflowTypeEnum], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "PRE or POST to execute before or after the core workfow targeted" } } } + ]); + } + create(value?: PartialMessage): ModuleDeregistration { + const message = globalThis.Object.create((this.messagePrototype!)); + message.WorkflowTarget = 0; + message.WorkflowPath = ""; + message.Type = 0; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ModuleDeregistration): ModuleDeregistration { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.WorkflowTypeEnum WorkflowTarget */ 1: + message.WorkflowTarget = reader.int32(); + break; + case /* string WorkflowPath */ 2: + message.WorkflowPath = reader.string(); + break; + case /* api.ModuleWorkflowTypeEnum Type */ 3: + message.Type = reader.int32(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: ModuleDeregistration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.WorkflowTypeEnum WorkflowTarget = 1; */ + if (message.WorkflowTarget !== 0) + writer.tag(1, WireType.Varint).int32(message.WorkflowTarget); + /* string WorkflowPath = 2; */ + if (message.WorkflowPath !== "") + writer.tag(2, WireType.LengthDelimited).string(message.WorkflowPath); + /* api.ModuleWorkflowTypeEnum Type = 3; */ + if (message.Type !== 0) + writer.tag(3, WireType.Varint).int32(message.Type); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.ModuleDeregistration + */ +export const ModuleDeregistration = new ModuleDeregistration$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class ClaimType$Type extends MessageType { + constructor() { + super("api.ClaimType", [ + { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "ReasonCode", kind: "scalar", localName: "ReasonCode", jsonName: "ReasonCode", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+$" } } } }, + { no: 5, name: "EntityType", kind: "enum", localName: "EntityType", jsonName: "EntityType", T: () => ["api.ClaimEntityType", ClaimEntityType, "CLAIM_ENTITY_TYPE_"], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 6, name: "DefaultCriticality", kind: "enum", localName: "DefaultCriticality", jsonName: "DefaultCriticality", T: () => ["api.ClaimCriticality", ClaimCriticality, "CLAIM_CRITICALITY_"], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 7, name: "Transitions", kind: "message", localName: "Transitions", jsonName: "Transitions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ClaimTransition }, + { no: 8, name: "PossibleClosures", kind: "message", localName: "PossibleClosures", jsonName: "PossibleClosures", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ClaimTypeClosure }, + { no: 9, name: "CriticalityAllowedRoles", kind: "scalar", localName: "CriticalityAllowedRoles", jsonName: "CriticalityAllowedRoles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, + { no: 10, name: "ReadAllowedRoles", kind: "scalar", localName: "ReadAllowedRoles", jsonName: "ReadAllowedRoles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, + { no: 11, name: "WriteAllowedRoles", kind: "scalar", localName: "WriteAllowedRoles", jsonName: "WriteAllowedRoles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, + { no: 12, name: "AssignAllowedRoles", kind: "scalar", localName: "AssignAllowedRoles", jsonName: "AssignAllowedRoles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, + { no: 13, name: "AllowedStatuses", kind: "enum", localName: "AllowedStatuses", jsonName: "AllowedStatuses", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.ClaimStatus", ClaimStatus, "CLAIM_STATUS_"] }, + { no: 14, name: "DefaultStatus", kind: "enum", localName: "DefaultStatus", jsonName: "DefaultStatus", T: () => ["api.ClaimStatus", ClaimStatus, "CLAIM_STATUS_"], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 15, name: "Sector", kind: "enum", localName: "Sector", jsonName: "Sector", T: () => ["api.ClaimSector", ClaimSector, "CLAIM_SECTOR_"] }, + { no: 16, name: "DefaultAssignees", kind: "scalar", localName: "DefaultAssignees", jsonName: "DefaultAssignees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } + ]); + } + create(value?: PartialMessage): ClaimType { + const message = globalThis.Object.create((this.messagePrototype!)); + message.ID = ""; + message.ProjectID = ""; + message.Reason = ""; + message.ReasonCode = ""; + message.EntityType = 0; + message.DefaultCriticality = 0; + message.Transitions = []; + message.PossibleClosures = []; + message.CriticalityAllowedRoles = []; + message.ReadAllowedRoles = []; + message.WriteAllowedRoles = []; + message.AssignAllowedRoles = []; + message.AllowedStatuses = []; + message.DefaultStatus = 0; + message.Sector = 0; + message.DefaultAssignees = []; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClaimType): ClaimType { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string ID */ 1: + message.ID = reader.string(); + break; + case /* string ProjectID */ 2: + message.ProjectID = reader.string(); + break; + case /* string Reason */ 3: + message.Reason = reader.string(); + break; + case /* string ReasonCode */ 4: + message.ReasonCode = reader.string(); + break; + case /* api.ClaimEntityType EntityType */ 5: + message.EntityType = reader.int32(); + break; + case /* api.ClaimCriticality DefaultCriticality */ 6: + message.DefaultCriticality = reader.int32(); + break; + case /* repeated api.ClaimTransition Transitions */ 7: + message.Transitions.push(ClaimTransition.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* repeated api.ClaimTypeClosure PossibleClosures */ 8: + message.PossibleClosures.push(ClaimTypeClosure.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* repeated string CriticalityAllowedRoles */ 9: + message.CriticalityAllowedRoles.push(reader.string()); + break; + case /* repeated string ReadAllowedRoles */ 10: + message.ReadAllowedRoles.push(reader.string()); + break; + case /* repeated string WriteAllowedRoles */ 11: + message.WriteAllowedRoles.push(reader.string()); + break; + case /* repeated string AssignAllowedRoles */ 12: + message.AssignAllowedRoles.push(reader.string()); + break; + case /* repeated api.ClaimStatus AllowedStatuses */ 13: + if (wireType === WireType.LengthDelimited) + for (let e = reader.int32() + reader.pos; reader.pos < e;) + message.AllowedStatuses.push(reader.int32()); + else + message.AllowedStatuses.push(reader.int32()); + break; + case /* api.ClaimStatus DefaultStatus */ 14: + message.DefaultStatus = reader.int32(); + break; + case /* api.ClaimSector Sector */ 15: + message.Sector = reader.int32(); + break; + case /* repeated string DefaultAssignees */ 16: + message.DefaultAssignees.push(reader.string()); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: ClaimType, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string ID = 1; */ + if (message.ID !== "") + writer.tag(1, WireType.LengthDelimited).string(message.ID); + /* string ProjectID = 2; */ + if (message.ProjectID !== "") + writer.tag(2, WireType.LengthDelimited).string(message.ProjectID); + /* string Reason = 3; */ + if (message.Reason !== "") + writer.tag(3, WireType.LengthDelimited).string(message.Reason); + /* string ReasonCode = 4; */ + if (message.ReasonCode !== "") + writer.tag(4, WireType.LengthDelimited).string(message.ReasonCode); + /* api.ClaimEntityType EntityType = 5; */ + if (message.EntityType !== 0) + writer.tag(5, WireType.Varint).int32(message.EntityType); + /* api.ClaimCriticality DefaultCriticality = 6; */ + if (message.DefaultCriticality !== 0) + writer.tag(6, WireType.Varint).int32(message.DefaultCriticality); + /* repeated api.ClaimTransition Transitions = 7; */ + for (let i = 0; i < message.Transitions.length; i++) + ClaimTransition.internalBinaryWrite(message.Transitions[i], writer.tag(7, WireType.LengthDelimited).fork(), options).join(); + /* repeated api.ClaimTypeClosure PossibleClosures = 8; */ + for (let i = 0; i < message.PossibleClosures.length; i++) + ClaimTypeClosure.internalBinaryWrite(message.PossibleClosures[i], writer.tag(8, WireType.LengthDelimited).fork(), options).join(); + /* repeated string CriticalityAllowedRoles = 9; */ + for (let i = 0; i < message.CriticalityAllowedRoles.length; i++) + writer.tag(9, WireType.LengthDelimited).string(message.CriticalityAllowedRoles[i]); + /* repeated string ReadAllowedRoles = 10; */ + for (let i = 0; i < message.ReadAllowedRoles.length; i++) + writer.tag(10, WireType.LengthDelimited).string(message.ReadAllowedRoles[i]); + /* repeated string WriteAllowedRoles = 11; */ + for (let i = 0; i < message.WriteAllowedRoles.length; i++) + writer.tag(11, WireType.LengthDelimited).string(message.WriteAllowedRoles[i]); + /* repeated string AssignAllowedRoles = 12; */ + for (let i = 0; i < message.AssignAllowedRoles.length; i++) + writer.tag(12, WireType.LengthDelimited).string(message.AssignAllowedRoles[i]); + /* repeated api.ClaimStatus AllowedStatuses = 13; */ + if (message.AllowedStatuses.length) { + writer.tag(13, WireType.LengthDelimited).fork(); + for (let i = 0; i < message.AllowedStatuses.length; i++) + writer.int32(message.AllowedStatuses[i]); + writer.join(); + } + /* api.ClaimStatus DefaultStatus = 14; */ + if (message.DefaultStatus !== 0) + writer.tag(14, WireType.Varint).int32(message.DefaultStatus); + /* api.ClaimSector Sector = 15; */ + if (message.Sector !== 0) + writer.tag(15, WireType.Varint).int32(message.Sector); + /* repeated string DefaultAssignees = 16; */ + for (let i = 0; i < message.DefaultAssignees.length; i++) + writer.tag(16, WireType.LengthDelimited).string(message.DefaultAssignees[i]); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.ClaimType + */ +export const ClaimType = new ClaimType$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class ClaimTransition$Type extends MessageType { + constructor() { + super("api.ClaimTransition", [ + { no: 1, name: "FromStatus", kind: "enum", localName: "FromStatus", jsonName: "FromStatus", T: () => ["api.ClaimStatus", ClaimStatus, "CLAIM_STATUS_"], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 2, name: "ToStatus", kind: "enum", localName: "ToStatus", jsonName: "ToStatus", T: () => ["api.ClaimStatus", ClaimStatus, "CLAIM_STATUS_"], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 3, name: "AllowedRoles", kind: "scalar", localName: "AllowedRoles", jsonName: "AllowedRoles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, + { no: 4, name: "ShouldNotify", kind: "scalar", localName: "ShouldNotify", jsonName: "ShouldNotify", T: 8 /*ScalarType.BOOL*/ } + ]); + } + create(value?: PartialMessage): ClaimTransition { + const message = globalThis.Object.create((this.messagePrototype!)); + message.FromStatus = 0; + message.ToStatus = 0; + message.AllowedRoles = []; + message.ShouldNotify = false; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClaimTransition): ClaimTransition { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.ClaimStatus FromStatus */ 1: + message.FromStatus = reader.int32(); + break; + case /* api.ClaimStatus ToStatus */ 2: + message.ToStatus = reader.int32(); + break; + case /* repeated string AllowedRoles */ 3: + message.AllowedRoles.push(reader.string()); + break; + case /* bool ShouldNotify */ 4: + message.ShouldNotify = reader.bool(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: ClaimTransition, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.ClaimStatus FromStatus = 1; */ + if (message.FromStatus !== 0) + writer.tag(1, WireType.Varint).int32(message.FromStatus); + /* api.ClaimStatus ToStatus = 2; */ + if (message.ToStatus !== 0) + writer.tag(2, WireType.Varint).int32(message.ToStatus); + /* repeated string AllowedRoles = 3; */ + for (let i = 0; i < message.AllowedRoles.length; i++) + writer.tag(3, WireType.LengthDelimited).string(message.AllowedRoles[i]); + /* bool ShouldNotify = 4; */ + if (message.ShouldNotify !== false) + writer.tag(4, WireType.Varint).bool(message.ShouldNotify); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.ClaimTransition + */ +export const ClaimTransition = new ClaimTransition$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class ClaimTypeClosure$Type extends MessageType { + constructor() { + super("api.ClaimTypeClosure", [ + { no: 1, name: "Responsible", kind: "scalar", localName: "Responsible", jsonName: "Responsible", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Causes", kind: "scalar", localName: "Causes", jsonName: "Causes", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } + ]); + } + create(value?: PartialMessage): ClaimTypeClosure { + const message = globalThis.Object.create((this.messagePrototype!)); + message.Responsible = ""; + message.Causes = []; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClaimTypeClosure): ClaimTypeClosure { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string Responsible */ 1: + message.Responsible = reader.string(); + break; + case /* repeated string Causes */ 2: + message.Causes.push(reader.string()); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: ClaimTypeClosure, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string Responsible = 1; */ + if (message.Responsible !== "") + writer.tag(1, WireType.LengthDelimited).string(message.Responsible); + /* repeated string Causes = 2; */ + for (let i = 0; i < message.Causes.length; i++) + writer.tag(2, WireType.LengthDelimited).string(message.Causes[i]); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.ClaimTypeClosure + */ +export const ClaimTypeClosure = new ClaimTypeClosure$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class ClaimClosure$Type extends MessageType { + constructor() { + super("api.ClaimClosure", [ + { no: 1, name: "Responsible", kind: "scalar", localName: "Responsible", jsonName: "Responsible", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } }, + { no: 2, name: "Cause", kind: "scalar", localName: "Cause", jsonName: "Cause", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } } + ]); + } + create(value?: PartialMessage): ClaimClosure { + const message = globalThis.Object.create((this.messagePrototype!)); + message.Responsible = ""; + message.Cause = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClaimClosure): ClaimClosure { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string Responsible */ 1: + message.Responsible = reader.string(); + break; + case /* string Cause */ 2: + message.Cause = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: ClaimClosure, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string Responsible = 1; */ + if (message.Responsible !== "") + writer.tag(1, WireType.LengthDelimited).string(message.Responsible); + /* string Cause = 2; */ + if (message.Cause !== "") + writer.tag(2, WireType.LengthDelimited).string(message.Cause); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.ClaimClosure + */ +export const ClaimClosure = new ClaimClosure$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class ClaimSummary$Type extends MessageType { + constructor() { + super("api.ClaimSummary", [ + { no: 1, name: "ClaimTypeID", kind: "scalar", localName: "ClaimTypeID", jsonName: "ClaimTypeID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the claim type" }, "validate.rules": { string: { minLen: "1" } }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, + { no: 2, name: "ClaimTypeReason", kind: "scalar", localName: "ClaimTypeReason", jsonName: "ClaimTypeReason", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Reason of the claim type" }, "validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "Number", kind: "scalar", localName: "Number", jsonName: "Number", T: 5 /*ScalarType.INT32*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of claims with this type" } } } + ]); + } + create(value?: PartialMessage): ClaimSummary { + const message = globalThis.Object.create((this.messagePrototype!)); + message.ClaimTypeID = ""; + message.ClaimTypeReason = ""; + message.Number = 0; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClaimSummary): ClaimSummary { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string ClaimTypeID */ 1: + message.ClaimTypeID = reader.string(); + break; + case /* string ClaimTypeReason */ 2: + message.ClaimTypeReason = reader.string(); + break; + case /* int32 Number */ 3: + message.Number = reader.int32(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: ClaimSummary, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string ClaimTypeID = 1; */ + if (message.ClaimTypeID !== "") + writer.tag(1, WireType.LengthDelimited).string(message.ClaimTypeID); + /* string ClaimTypeReason = 2; */ + if (message.ClaimTypeReason !== "") + writer.tag(2, WireType.LengthDelimited).string(message.ClaimTypeReason); + /* int32 Number = 3; */ + if (message.Number !== 0) + writer.tag(3, WireType.Varint).int32(message.Number); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.ClaimSummary + */ +export const ClaimSummary = new ClaimSummary$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class AttachmentType$Type extends MessageType { + constructor() { + super("api.AttachmentType", [ + { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "Code", kind: "scalar", localName: "Code", jsonName: "Code", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType, "ENTITY_TYPE_"], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 5, name: "Label", kind: "scalar", localName: "Label", jsonName: "Label", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 6, name: "SharePolicy", kind: "enum", localName: "SharePolicy", jsonName: "SharePolicy", T: () => ["api.SharePolicy", SharePolicy], options: { "validate.rules": { enum: { definedOnly: true } } } } + ]); + } + create(value?: PartialMessage): AttachmentType { + const message = globalThis.Object.create((this.messagePrototype!)); + message.ID = ""; + message.ProjectID = ""; + message.Code = ""; + message.Entity = 0; + message.Label = ""; + message.SharePolicy = 0; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AttachmentType): AttachmentType { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string ID */ 1: + message.ID = reader.string(); + break; + case /* string ProjectID */ 2: + message.ProjectID = reader.string(); + break; + case /* string Code */ 3: + message.Code = reader.string(); + break; + case /* api.EntityType Entity */ 4: + message.Entity = reader.int32(); + break; + case /* string Label */ 5: + message.Label = reader.string(); + break; + case /* api.SharePolicy SharePolicy */ 6: + message.SharePolicy = reader.int32(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: AttachmentType, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string ID = 1; */ + if (message.ID !== "") + writer.tag(1, WireType.LengthDelimited).string(message.ID); + /* string ProjectID = 2; */ + if (message.ProjectID !== "") + writer.tag(2, WireType.LengthDelimited).string(message.ProjectID); + /* string Code = 3; */ + if (message.Code !== "") + writer.tag(3, WireType.LengthDelimited).string(message.Code); + /* api.EntityType Entity = 4; */ + if (message.Entity !== 0) + writer.tag(4, WireType.Varint).int32(message.Entity); + /* string Label = 5; */ + if (message.Label !== "") + writer.tag(5, WireType.LengthDelimited).string(message.Label); + /* api.SharePolicy SharePolicy = 6; */ + if (message.SharePolicy !== 0) + writer.tag(6, WireType.Varint).int32(message.SharePolicy); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.AttachmentType + */ +export const AttachmentType = new AttachmentType$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class AttachmentSummary$Type extends MessageType { + constructor() { + super("api.AttachmentSummary", [ + { no: 1, name: "AttachmentTypeID", kind: "scalar", localName: "AttachmentTypeID", jsonName: "AttachmentTypeID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ID of the attachment type" }, "validate.rules": { string: { minLen: "1" } }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, + { no: 2, name: "AttachmentTypeCode", kind: "scalar", localName: "AttachmentTypeCode", jsonName: "AttachmentTypeCode", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Code of the attachment type" }, "validate.rules": { string: { minLen: "1" } }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } }, + { no: 3, name: "Number", kind: "scalar", localName: "Number", jsonName: "Number", T: 5 /*ScalarType.INT32*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of attachments with this type" } } } + ]); + } + create(value?: PartialMessage): AttachmentSummary { + const message = globalThis.Object.create((this.messagePrototype!)); + message.AttachmentTypeID = ""; + message.AttachmentTypeCode = ""; + message.Number = 0; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AttachmentSummary): AttachmentSummary { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string AttachmentTypeID */ 1: + message.AttachmentTypeID = reader.string(); + break; + case /* string AttachmentTypeCode */ 2: + message.AttachmentTypeCode = reader.string(); + break; + case /* int32 Number */ 3: + message.Number = reader.int32(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: AttachmentSummary, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string AttachmentTypeID = 1; */ + if (message.AttachmentTypeID !== "") + writer.tag(1, WireType.LengthDelimited).string(message.AttachmentTypeID); + /* string AttachmentTypeCode = 2; */ + if (message.AttachmentTypeCode !== "") + writer.tag(2, WireType.LengthDelimited).string(message.AttachmentTypeCode); + /* int32 Number = 3; */ + if (message.Number !== 0) + writer.tag(3, WireType.Varint).int32(message.Number); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.AttachmentSummary + */ +export const AttachmentSummary = new AttachmentSummary$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class TranslationMap$Type extends MessageType { + constructor() { + super("api.TranslationMap", [ + { no: 1, name: "data", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } } + ]); + } + create(value?: PartialMessage): TranslationMap { + const message = globalThis.Object.create((this.messagePrototype!)); + message.data = {}; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TranslationMap): TranslationMap { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* map data */ 1: + this.binaryReadMap1(message.data, reader, options); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + private binaryReadMap1(map: TranslationMap["data"], reader: IBinaryReader, options: BinaryReadOptions): void { + let len = reader.uint32(), end = reader.pos + len, key: keyof TranslationMap["data"] | undefined, val: TranslationMap["data"][any] | undefined; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case 1: + key = reader.string(); + break; + case 2: + val = reader.string(); + break; + default: throw new globalThis.Error("unknown map entry field for api.TranslationMap.data"); + } + } + map[key ?? ""] = val ?? ""; + } + internalBinaryWrite(message: TranslationMap, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* map data = 1; */ + for (let k of globalThis.Object.keys(message.data)) + writer.tag(1, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.data[k]).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.TranslationMap + */ +export const TranslationMap = new TranslationMap$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class ExtractColumnFormat$Type extends MessageType { + constructor() { + super("api.ExtractColumnFormat", [ + { no: 1, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.ExtractColumnFormat.type", ExtractColumnFormat_type] }, + { no: 2, name: "Format", kind: "scalar", localName: "Format", jsonName: "Format", T: 9 /*ScalarType.STRING*/ }, + { no: 3, name: "DisplayDate", kind: "enum", localName: "DisplayDate", jsonName: "DisplayDate", T: () => ["api.DisplayDate", DisplayDate] } + ]); + } + create(value?: PartialMessage): ExtractColumnFormat { + const message = globalThis.Object.create((this.messagePrototype!)); + message.Type = 0; + message.Format = ""; + message.DisplayDate = 0; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExtractColumnFormat): ExtractColumnFormat { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.ExtractColumnFormat.type Type */ 1: + message.Type = reader.int32(); + break; + case /* string Format */ 2: + message.Format = reader.string(); + break; + case /* api.DisplayDate DisplayDate */ 3: + message.DisplayDate = reader.int32(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: ExtractColumnFormat, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.ExtractColumnFormat.type Type = 1; */ + if (message.Type !== 0) + writer.tag(1, WireType.Varint).int32(message.Type); + /* string Format = 2; */ + if (message.Format !== "") + writer.tag(2, WireType.LengthDelimited).string(message.Format); + /* api.DisplayDate DisplayDate = 3; */ + if (message.DisplayDate !== 0) + writer.tag(3, WireType.Varint).int32(message.DisplayDate); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.ExtractColumnFormat + */ +export const ExtractColumnFormat = new ExtractColumnFormat$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class ExtractQuery$Type extends MessageType { + constructor() { + super("api.ExtractQuery", [ + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 2, name: "UserId", kind: "scalar", localName: "UserId", jsonName: "UserId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter }, + { no: 4, name: "Fields", kind: "scalar", localName: "Fields", jsonName: "Fields", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, + { no: 5, name: "ListSeparator", kind: "scalar", localName: "ListSeparator", jsonName: "ListSeparator", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 6, name: "DecimalSeparator", kind: "scalar", localName: "DecimalSeparator", jsonName: "DecimalSeparator", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 7, name: "ColumnNames", kind: "scalar", localName: "ColumnNames", jsonName: "ColumnNames", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, + { no: 8, name: "ColumnTranslationMaps", kind: "map", localName: "ColumnTranslationMaps", jsonName: "ColumnTranslationMaps", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => TranslationMap } }, + { no: 9, name: "ColumnFormats", kind: "map", localName: "ColumnFormats", jsonName: "ColumnFormats", K: 5 /*ScalarType.INT32*/, V: { kind: "message", T: () => ExtractColumnFormat } }, + { no: 10, name: "TargetTimeZone", kind: "scalar", localName: "TargetTimeZone", jsonName: "TargetTimeZone", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Target user time zone format", example: "\"Europe/Paris\"" }, "validate.rules": { string: { minLen: "1", tzData: true } } } }, + { no: 11, name: "DateFormat", kind: "scalar", localName: "DateFormat", jsonName: "DateFormat", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Language code to format dates format", example: "\"en-US\"" } } }, + { no: 12, name: "NumberFormat", kind: "scalar", localName: "NumberFormat", jsonName: "NumberFormat", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Language code to format numbers format", example: "\"en-US\"" } } }, + { no: 13, name: "TimeFormat", kind: "enum", localName: "TimeFormat", jsonName: "TimeFormat", T: () => ["api.TimeFormat", TimeFormat], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Hour clock time format" } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "UserId", "Fields", "ListSeparator", "DecimalSeparator", "ColumnName"] } } }); + } + create(value?: PartialMessage): ExtractQuery { + const message = globalThis.Object.create((this.messagePrototype!)); + message.UserId = ""; + message.BlockFilters = []; + message.Fields = []; + message.ListSeparator = ""; + message.DecimalSeparator = ""; + message.ColumnNames = []; + message.ColumnTranslationMaps = {}; + message.ColumnFormats = {}; + message.TargetTimeZone = ""; + message.DateFormat = ""; + message.NumberFormat = ""; + message.TimeFormat = 0; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExtractQuery): ExtractQuery { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.QueryProjectHeader Header */ 1: + message.Header = QueryProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); + break; + case /* string UserId */ 2: + message.UserId = reader.string(); + break; + case /* repeated api.BlockFilter BlockFilters */ 3: + message.BlockFilters.push(BlockFilter.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* repeated string Fields */ 4: + message.Fields.push(reader.string()); + break; + case /* string ListSeparator */ 5: + message.ListSeparator = reader.string(); + break; + case /* string DecimalSeparator */ 6: + message.DecimalSeparator = reader.string(); + break; + case /* repeated string ColumnNames */ 7: + message.ColumnNames.push(reader.string()); + break; + case /* map ColumnTranslationMaps */ 8: + this.binaryReadMap8(message.ColumnTranslationMaps, reader, options); + break; + case /* map ColumnFormats */ 9: + this.binaryReadMap9(message.ColumnFormats, reader, options); + break; + case /* string TargetTimeZone */ 10: + message.TargetTimeZone = reader.string(); + break; + case /* string DateFormat */ 11: + message.DateFormat = reader.string(); + break; + case /* string NumberFormat */ 12: + message.NumberFormat = reader.string(); + break; + case /* api.TimeFormat TimeFormat */ 13: + message.TimeFormat = reader.int32(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + private binaryReadMap8(map: ExtractQuery["ColumnTranslationMaps"], reader: IBinaryReader, options: BinaryReadOptions): void { + let len = reader.uint32(), end = reader.pos + len, key: keyof ExtractQuery["ColumnTranslationMaps"] | undefined, val: ExtractQuery["ColumnTranslationMaps"][any] | undefined; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case 1: + key = reader.string(); + break; + case 2: + val = TranslationMap.internalBinaryRead(reader, reader.uint32(), options); + break; + default: throw new globalThis.Error("unknown map entry field for api.ExtractQuery.ColumnTranslationMaps"); + } + } + map[key ?? ""] = val ?? TranslationMap.create(); + } + private binaryReadMap9(map: ExtractQuery["ColumnFormats"], reader: IBinaryReader, options: BinaryReadOptions): void { + let len = reader.uint32(), end = reader.pos + len, key: keyof ExtractQuery["ColumnFormats"] | undefined, val: ExtractQuery["ColumnFormats"][any] | undefined; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case 1: + key = reader.int32(); + break; + case 2: + val = ExtractColumnFormat.internalBinaryRead(reader, reader.uint32(), options); + break; + default: throw new globalThis.Error("unknown map entry field for api.ExtractQuery.ColumnFormats"); + } + } + map[key ?? 0] = val ?? ExtractColumnFormat.create(); + } + internalBinaryWrite(message: ExtractQuery, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.QueryProjectHeader Header = 1; */ + if (message.Header) + QueryProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + /* string UserId = 2; */ + if (message.UserId !== "") + writer.tag(2, WireType.LengthDelimited).string(message.UserId); + /* repeated api.BlockFilter BlockFilters = 3; */ + for (let i = 0; i < message.BlockFilters.length; i++) + BlockFilter.internalBinaryWrite(message.BlockFilters[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join(); + /* repeated string Fields = 4; */ + for (let i = 0; i < message.Fields.length; i++) + writer.tag(4, WireType.LengthDelimited).string(message.Fields[i]); + /* string ListSeparator = 5; */ + if (message.ListSeparator !== "") + writer.tag(5, WireType.LengthDelimited).string(message.ListSeparator); + /* string DecimalSeparator = 6; */ + if (message.DecimalSeparator !== "") + writer.tag(6, WireType.LengthDelimited).string(message.DecimalSeparator); + /* repeated string ColumnNames = 7; */ + for (let i = 0; i < message.ColumnNames.length; i++) + writer.tag(7, WireType.LengthDelimited).string(message.ColumnNames[i]); + /* map ColumnTranslationMaps = 8; */ + for (let k of globalThis.Object.keys(message.ColumnTranslationMaps)) { + writer.tag(8, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k); + writer.tag(2, WireType.LengthDelimited).fork(); + TranslationMap.internalBinaryWrite(message.ColumnTranslationMaps[k], writer, options); + writer.join().join(); + } + /* map ColumnFormats = 9; */ + for (let k of globalThis.Object.keys(message.ColumnFormats)) { + writer.tag(9, WireType.LengthDelimited).fork().tag(1, WireType.Varint).int32(parseInt(k)); + writer.tag(2, WireType.LengthDelimited).fork(); + ExtractColumnFormat.internalBinaryWrite(message.ColumnFormats[k as any], writer, options); + writer.join().join(); + } + /* string TargetTimeZone = 10; */ + if (message.TargetTimeZone !== "") + writer.tag(10, WireType.LengthDelimited).string(message.TargetTimeZone); + /* string DateFormat = 11; */ + if (message.DateFormat !== "") + writer.tag(11, WireType.LengthDelimited).string(message.DateFormat); + /* string NumberFormat = 12; */ + if (message.NumberFormat !== "") + writer.tag(12, WireType.LengthDelimited).string(message.NumberFormat); + /* api.TimeFormat TimeFormat = 13; */ + if (message.TimeFormat !== 0) + writer.tag(13, WireType.Varint).int32(message.TimeFormat); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.ExtractQuery + */ +export const ExtractQuery = new ExtractQuery$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class ExtractSiteQuery$Type extends MessageType { + constructor() { + super("api.ExtractSiteQuery", [ + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QuerySiteHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 2, name: "UserId", kind: "scalar", localName: "UserId", jsonName: "UserId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter }, + { no: 4, name: "Fields", kind: "scalar", localName: "Fields", jsonName: "Fields", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, + { no: 5, name: "ListSeparator", kind: "scalar", localName: "ListSeparator", jsonName: "ListSeparator", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 6, name: "DecimalSeparator", kind: "scalar", localName: "DecimalSeparator", jsonName: "DecimalSeparator", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 7, name: "ColumnNames", kind: "scalar", localName: "ColumnNames", jsonName: "ColumnNames", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, + { no: 8, name: "ColumnTranslationMaps", kind: "map", localName: "ColumnTranslationMaps", jsonName: "ColumnTranslationMaps", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => TranslationMap } }, + { no: 9, name: "ColumnFormats", kind: "map", localName: "ColumnFormats", jsonName: "ColumnFormats", K: 5 /*ScalarType.INT32*/, V: { kind: "message", T: () => ExtractColumnFormat } }, + { no: 10, name: "TargetTimeZone", kind: "scalar", localName: "TargetTimeZone", jsonName: "TargetTimeZone", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Target user time zone format", example: "\"Europe/Paris\"" }, "validate.rules": { string: { minLen: "1", tzData: true } } } }, + { no: 11, name: "DateFormat", kind: "scalar", localName: "DateFormat", jsonName: "DateFormat", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Language code to format dates format", example: "\"en-US\"" } } }, + { no: 12, name: "NumberFormat", kind: "scalar", localName: "NumberFormat", jsonName: "NumberFormat", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Language code to format numbers format", example: "\"en-US\"" } } }, + { no: 13, name: "TimeFormat", kind: "enum", localName: "TimeFormat", jsonName: "TimeFormat", T: () => ["api.TimeFormat", TimeFormat], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Hour clock time format" } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "UserId", "Fields", "ListSeparator", "DecimalSeparator", "ColumnName"] } } }); + } + create(value?: PartialMessage): ExtractSiteQuery { + const message = globalThis.Object.create((this.messagePrototype!)); + message.UserId = ""; + message.BlockFilters = []; + message.Fields = []; + message.ListSeparator = ""; + message.DecimalSeparator = ""; + message.ColumnNames = []; + message.ColumnTranslationMaps = {}; + message.ColumnFormats = {}; + message.TargetTimeZone = ""; + message.DateFormat = ""; + message.NumberFormat = ""; + message.TimeFormat = 0; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExtractSiteQuery): ExtractSiteQuery { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.QuerySiteHeader Header */ 1: + message.Header = QuerySiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); + break; + case /* string UserId */ 2: + message.UserId = reader.string(); + break; + case /* repeated api.BlockFilter BlockFilters */ 3: + message.BlockFilters.push(BlockFilter.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* repeated string Fields */ 4: + message.Fields.push(reader.string()); + break; + case /* string ListSeparator */ 5: + message.ListSeparator = reader.string(); + break; + case /* string DecimalSeparator */ 6: + message.DecimalSeparator = reader.string(); + break; + case /* repeated string ColumnNames */ 7: + message.ColumnNames.push(reader.string()); + break; + case /* map ColumnTranslationMaps */ 8: + this.binaryReadMap8(message.ColumnTranslationMaps, reader, options); + break; + case /* map ColumnFormats */ 9: + this.binaryReadMap9(message.ColumnFormats, reader, options); + break; + case /* string TargetTimeZone */ 10: + message.TargetTimeZone = reader.string(); + break; + case /* string DateFormat */ 11: + message.DateFormat = reader.string(); + break; + case /* string NumberFormat */ 12: + message.NumberFormat = reader.string(); + break; + case /* api.TimeFormat TimeFormat */ 13: + message.TimeFormat = reader.int32(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + private binaryReadMap8(map: ExtractSiteQuery["ColumnTranslationMaps"], reader: IBinaryReader, options: BinaryReadOptions): void { + let len = reader.uint32(), end = reader.pos + len, key: keyof ExtractSiteQuery["ColumnTranslationMaps"] | undefined, val: ExtractSiteQuery["ColumnTranslationMaps"][any] | undefined; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case 1: + key = reader.string(); + break; + case 2: + val = TranslationMap.internalBinaryRead(reader, reader.uint32(), options); + break; + default: throw new globalThis.Error("unknown map entry field for api.ExtractSiteQuery.ColumnTranslationMaps"); + } + } + map[key ?? ""] = val ?? TranslationMap.create(); + } + private binaryReadMap9(map: ExtractSiteQuery["ColumnFormats"], reader: IBinaryReader, options: BinaryReadOptions): void { + let len = reader.uint32(), end = reader.pos + len, key: keyof ExtractSiteQuery["ColumnFormats"] | undefined, val: ExtractSiteQuery["ColumnFormats"][any] | undefined; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case 1: + key = reader.int32(); + break; + case 2: + val = ExtractColumnFormat.internalBinaryRead(reader, reader.uint32(), options); + break; + default: throw new globalThis.Error("unknown map entry field for api.ExtractSiteQuery.ColumnFormats"); + } + } + map[key ?? 0] = val ?? ExtractColumnFormat.create(); + } + internalBinaryWrite(message: ExtractSiteQuery, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.QuerySiteHeader Header = 1; */ + if (message.Header) + QuerySiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + /* string UserId = 2; */ + if (message.UserId !== "") + writer.tag(2, WireType.LengthDelimited).string(message.UserId); + /* repeated api.BlockFilter BlockFilters = 3; */ + for (let i = 0; i < message.BlockFilters.length; i++) + BlockFilter.internalBinaryWrite(message.BlockFilters[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join(); + /* repeated string Fields = 4; */ + for (let i = 0; i < message.Fields.length; i++) + writer.tag(4, WireType.LengthDelimited).string(message.Fields[i]); + /* string ListSeparator = 5; */ + if (message.ListSeparator !== "") + writer.tag(5, WireType.LengthDelimited).string(message.ListSeparator); + /* string DecimalSeparator = 6; */ + if (message.DecimalSeparator !== "") + writer.tag(6, WireType.LengthDelimited).string(message.DecimalSeparator); + /* repeated string ColumnNames = 7; */ + for (let i = 0; i < message.ColumnNames.length; i++) + writer.tag(7, WireType.LengthDelimited).string(message.ColumnNames[i]); + /* map ColumnTranslationMaps = 8; */ + for (let k of globalThis.Object.keys(message.ColumnTranslationMaps)) { + writer.tag(8, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k); + writer.tag(2, WireType.LengthDelimited).fork(); + TranslationMap.internalBinaryWrite(message.ColumnTranslationMaps[k], writer, options); + writer.join().join(); + } + /* map ColumnFormats = 9; */ + for (let k of globalThis.Object.keys(message.ColumnFormats)) { + writer.tag(9, WireType.LengthDelimited).fork().tag(1, WireType.Varint).int32(parseInt(k)); + writer.tag(2, WireType.LengthDelimited).fork(); + ExtractColumnFormat.internalBinaryWrite(message.ColumnFormats[k as any], writer, options); + writer.join().join(); + } + /* string TargetTimeZone = 10; */ + if (message.TargetTimeZone !== "") + writer.tag(10, WireType.LengthDelimited).string(message.TargetTimeZone); + /* string DateFormat = 11; */ + if (message.DateFormat !== "") + writer.tag(11, WireType.LengthDelimited).string(message.DateFormat); + /* string NumberFormat = 12; */ + if (message.NumberFormat !== "") + writer.tag(12, WireType.LengthDelimited).string(message.NumberFormat); + /* api.TimeFormat TimeFormat = 13; */ + if (message.TimeFormat !== 0) + writer.tag(13, WireType.Varint).int32(message.TimeFormat); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.ExtractSiteQuery + */ +export const ExtractSiteQuery = new ExtractSiteQuery$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class ExtractResult$Type extends MessageType { + constructor() { + super("api.ExtractResult", [ + { no: 1, name: "WorkflowExecution", kind: "message", localName: "WorkflowExecution", jsonName: "WorkflowExecution", T: () => WorkflowExecutionResult } + ]); + } + create(value?: PartialMessage): ExtractResult { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExtractResult): ExtractResult { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.WorkflowExecutionResult WorkflowExecution */ 1: + message.WorkflowExecution = WorkflowExecutionResult.internalBinaryRead(reader, reader.uint32(), options, message.WorkflowExecution); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: ExtractResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.WorkflowExecutionResult WorkflowExecution = 1; */ + if (message.WorkflowExecution) + WorkflowExecutionResult.internalBinaryWrite(message.WorkflowExecution, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.ExtractResult + */ +export const ExtractResult = new ExtractResult$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class CountLinesQuery$Type extends MessageType { + constructor() { + super("api.CountLinesQuery", [ + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Partition", kind: "scalar", localName: "Partition", jsonName: "Partition", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID"] } } }); + } + create(value?: PartialMessage): CountLinesQuery { + const message = globalThis.Object.create((this.messagePrototype!)); + message.ProjectID = ""; + message.Partition = 0; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CountLinesQuery): CountLinesQuery { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string ProjectID */ 1: + message.ProjectID = reader.string(); + break; + case /* int32 Partition */ 2: + message.Partition = reader.int32(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: CountLinesQuery, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string ProjectID = 1; */ + if (message.ProjectID !== "") + writer.tag(1, WireType.LengthDelimited).string(message.ProjectID); + /* int32 Partition = 2; */ + if (message.Partition !== 0) + writer.tag(2, WireType.Varint).int32(message.Partition); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.CountLinesQuery + */ +export const CountLinesQuery = new CountLinesQuery$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class CountLinesResult$Type extends MessageType { + constructor() { + super("api.CountLinesResult", [ + { no: 1, name: "NbLines", kind: "scalar", localName: "NbLines", jsonName: "NbLines", T: 5 /*ScalarType.INT32*/ } + ]); + } + create(value?: PartialMessage): CountLinesResult { + const message = globalThis.Object.create((this.messagePrototype!)); + message.NbLines = 0; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CountLinesResult): CountLinesResult { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* int32 NbLines */ 1: + message.NbLines = reader.int32(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: CountLinesResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* int32 NbLines = 1; */ + if (message.NbLines !== 0) + writer.tag(1, WireType.Varint).int32(message.NbLines); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.CountLinesResult + */ +export const CountLinesResult = new CountLinesResult$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Scope$Type extends MessageType { + constructor() { + super("api.Scope", [ + { no: 1, name: "Service", kind: "scalar", localName: "Service", jsonName: "Service", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Method", kind: "scalar", localName: "Method", jsonName: "Method", T: 9 /*ScalarType.STRING*/ }, + { no: 3, name: "RscType", kind: "enum", localName: "RscType", jsonName: "RscType", T: () => ["api.ResourceType", ResourceType, "RESOURCE_TYPE_"] }, + { no: 4, name: "PlatformReserved", kind: "scalar", localName: "PlatformReserved", jsonName: "PlatformReserved", T: 8 /*ScalarType.BOOL*/ }, + { no: 5, name: "TransientPermissions", kind: "message", localName: "TransientPermissions", jsonName: "TransientPermissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission }, + { no: 6, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/ }, + { no: 7, name: "AppliesOnIDs", kind: "scalar", localName: "AppliesOnIDs", jsonName: "AppliesOnIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, + { no: 8, name: "ModuleID", kind: "scalar", localName: "ModuleID", jsonName: "ModuleID", T: 9 /*ScalarType.STRING*/ }, + { no: 9, name: "Mandatory", kind: "scalar", localName: "Mandatory", jsonName: "Mandatory", T: 8 /*ScalarType.BOOL*/ } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Service"] } } }); + } + create(value?: PartialMessage): Scope { + const message = globalThis.Object.create((this.messagePrototype!)); + message.Service = ""; + message.Method = ""; + message.RscType = 0; + message.PlatformReserved = false; + message.TransientPermissions = []; + message.RscID = ""; + message.AppliesOnIDs = []; + message.ModuleID = ""; + message.Mandatory = false; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Scope): Scope { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string Service */ 1: + message.Service = reader.string(); + break; + case /* string Method */ 2: + message.Method = reader.string(); + break; + case /* api.ResourceType RscType */ 3: + message.RscType = reader.int32(); + break; + case /* bool PlatformReserved */ 4: + message.PlatformReserved = reader.bool(); + break; + case /* repeated api.Permission TransientPermissions */ 5: + message.TransientPermissions.push(Permission.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* string RscID */ 6: + message.RscID = reader.string(); + break; + case /* repeated string AppliesOnIDs */ 7: + message.AppliesOnIDs.push(reader.string()); + break; + case /* string ModuleID */ 8: + message.ModuleID = reader.string(); + break; + case /* bool Mandatory */ 9: + message.Mandatory = reader.bool(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: Scope, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string Service = 1; */ + if (message.Service !== "") + writer.tag(1, WireType.LengthDelimited).string(message.Service); + /* string Method = 2; */ + if (message.Method !== "") + writer.tag(2, WireType.LengthDelimited).string(message.Method); + /* api.ResourceType RscType = 3; */ + if (message.RscType !== 0) + writer.tag(3, WireType.Varint).int32(message.RscType); + /* bool PlatformReserved = 4; */ + if (message.PlatformReserved !== false) + writer.tag(4, WireType.Varint).bool(message.PlatformReserved); + /* repeated api.Permission TransientPermissions = 5; */ + for (let i = 0; i < message.TransientPermissions.length; i++) + Permission.internalBinaryWrite(message.TransientPermissions[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join(); + /* string RscID = 6; */ + if (message.RscID !== "") + writer.tag(6, WireType.LengthDelimited).string(message.RscID); + /* repeated string AppliesOnIDs = 7; */ + for (let i = 0; i < message.AppliesOnIDs.length; i++) + writer.tag(7, WireType.LengthDelimited).string(message.AppliesOnIDs[i]); + /* string ModuleID = 8; */ + if (message.ModuleID !== "") + writer.tag(8, WireType.LengthDelimited).string(message.ModuleID); + /* bool Mandatory = 9; */ + if (message.Mandatory !== false) + writer.tag(9, WireType.Varint).bool(message.Mandatory); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.Scope + */ +export const Scope = new Scope$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class ClientAPI$Type extends MessageType { + constructor() { + super("api.ClientAPI", [ + { no: 1, name: "Client", kind: "scalar", localName: "Client", jsonName: "Client", T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "APIs", kind: "message", localName: "APIs", jsonName: "APIs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Scope }, + { no: 3, name: "Roles", kind: "scalar", localName: "Roles", jsonName: "Roles", T: 9 /*ScalarType.STRING*/ } + ]); + } + create(value?: PartialMessage): ClientAPI { + const message = globalThis.Object.create((this.messagePrototype!)); + message.Client = ""; + message.APIs = []; + message.Roles = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClientAPI): ClientAPI { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string Client */ 1: + message.Client = reader.string(); + break; + case /* repeated api.Scope APIs */ 2: + message.APIs.push(Scope.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* string Roles */ 3: + message.Roles = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: ClientAPI, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string Client = 1; */ + if (message.Client !== "") + writer.tag(1, WireType.LengthDelimited).string(message.Client); + /* repeated api.Scope APIs = 2; */ + for (let i = 0; i < message.APIs.length; i++) + Scope.internalBinaryWrite(message.APIs[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join(); + /* string Roles = 3; */ + if (message.Roles !== "") + writer.tag(3, WireType.LengthDelimited).string(message.Roles); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.ClientAPI + */ +export const ClientAPI = new ClientAPI$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Permission$Type extends MessageType { + constructor() { + super("api.Permission", [ + { no: 1, name: "Client", kind: "scalar", localName: "Client", jsonName: "Client", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Scopes", kind: "message", localName: "Scopes", jsonName: "Scopes", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Scope, options: { "validate.rules": { repeated: { minItems: "1" } } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Client", "Scopes"] } } }); + } + create(value?: PartialMessage): Permission { + const message = globalThis.Object.create((this.messagePrototype!)); + message.Client = ""; + message.Scopes = []; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Permission): Permission { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string Client */ 1: + message.Client = reader.string(); + break; + case /* repeated api.Scope Scopes */ 2: + message.Scopes.push(Scope.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: Permission, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string Client = 1; */ + if (message.Client !== "") + writer.tag(1, WireType.LengthDelimited).string(message.Client); + /* repeated api.Scope Scopes = 2; */ + for (let i = 0; i < message.Scopes.length; i++) + Scope.internalBinaryWrite(message.Scopes[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.Permission + */ +export const Permission = new Permission$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class UserUIPermissions$Type extends MessageType { + constructor() { + super("api.UserUIPermissions", [ + { no: 1, name: "RscType", kind: "enum", localName: "RscType", jsonName: "RscType", T: () => ["api.ResourceType", ResourceType, "RESOURCE_TYPE_"] }, + { no: 2, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/ }, + { no: 3, name: "Scopes", kind: "message", localName: "Scopes", jsonName: "Scopes", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Scope } + ]); + } + create(value?: PartialMessage): UserUIPermissions { + const message = globalThis.Object.create((this.messagePrototype!)); + message.RscType = 0; + message.RscID = ""; + message.Scopes = []; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UserUIPermissions): UserUIPermissions { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.ResourceType RscType */ 1: + message.RscType = reader.int32(); + break; + case /* string RscID */ 2: + message.RscID = reader.string(); + break; + case /* repeated api.Scope Scopes */ 3: + message.Scopes.push(Scope.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: UserUIPermissions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.ResourceType RscType = 1; */ + if (message.RscType !== 0) + writer.tag(1, WireType.Varint).int32(message.RscType); + /* string RscID = 2; */ + if (message.RscID !== "") + writer.tag(2, WireType.LengthDelimited).string(message.RscID); + /* repeated api.Scope Scopes = 3; */ + for (let i = 0; i < message.Scopes.length; i++) + Scope.internalBinaryWrite(message.Scopes[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.UserUIPermissions + */ +export const UserUIPermissions = new UserUIPermissions$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class ElementByMatchQuery$Type extends MessageType { + constructor() { + super("api.ElementByMatchQuery", [ + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 2, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter }, + { no: 3, name: "MatchElementField", kind: "message", localName: "MatchElementField", jsonName: "MatchElementField", T: () => MatchElementField, options: { "validate.rules": { message: { required: true } } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); + } + create(value?: PartialMessage): ElementByMatchQuery { + const message = globalThis.Object.create((this.messagePrototype!)); + message.BlockFilters = []; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ElementByMatchQuery): ElementByMatchQuery { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.QueryProjectHeader Header */ 1: + message.Header = QueryProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); + break; + case /* repeated api.BlockFilter BlockFilters */ 2: + message.BlockFilters.push(BlockFilter.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* api.MatchElementField MatchElementField */ 3: + message.MatchElementField = MatchElementField.internalBinaryRead(reader, reader.uint32(), options, message.MatchElementField); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: ElementByMatchQuery, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.QueryProjectHeader Header = 1; */ + if (message.Header) + QueryProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + /* repeated api.BlockFilter BlockFilters = 2; */ + for (let i = 0; i < message.BlockFilters.length; i++) + BlockFilter.internalBinaryWrite(message.BlockFilters[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join(); + /* api.MatchElementField MatchElementField = 3; */ + if (message.MatchElementField) + MatchElementField.internalBinaryWrite(message.MatchElementField, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.ElementByMatchQuery + */ +export const ElementByMatchQuery = new ElementByMatchQuery$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class ElementByMatchSiteQuery$Type extends MessageType { + constructor() { + super("api.ElementByMatchSiteQuery", [ + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QuerySiteHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 2, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter }, + { no: 3, name: "MatchElementField", kind: "message", localName: "MatchElementField", jsonName: "MatchElementField", T: () => MatchElementField, options: { "validate.rules": { message: { required: true } } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); + } + create(value?: PartialMessage): ElementByMatchSiteQuery { + const message = globalThis.Object.create((this.messagePrototype!)); + message.BlockFilters = []; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ElementByMatchSiteQuery): ElementByMatchSiteQuery { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.QuerySiteHeader Header */ 1: + message.Header = QuerySiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); + break; + case /* repeated api.BlockFilter BlockFilters */ 2: + message.BlockFilters.push(BlockFilter.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* api.MatchElementField MatchElementField */ 3: + message.MatchElementField = MatchElementField.internalBinaryRead(reader, reader.uint32(), options, message.MatchElementField); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: ElementByMatchSiteQuery, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.QuerySiteHeader Header = 1; */ + if (message.Header) + QuerySiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + /* repeated api.BlockFilter BlockFilters = 2; */ + for (let i = 0; i < message.BlockFilters.length; i++) + BlockFilter.internalBinaryWrite(message.BlockFilters[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join(); + /* api.MatchElementField MatchElementField = 3; */ + if (message.MatchElementField) + MatchElementField.internalBinaryWrite(message.MatchElementField, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.ElementByMatchSiteQuery + */ +export const ElementByMatchSiteQuery = new ElementByMatchSiteQuery$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class ElementByMatchResult$Type extends MessageType { + constructor() { + super("api.ElementByMatchResult", [ + { no: 1, name: "MatchResults", kind: "message", localName: "MatchResults", jsonName: "MatchResults", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MatchFieldElementResult } + ]); + } + create(value?: PartialMessage): ElementByMatchResult { + const message = globalThis.Object.create((this.messagePrototype!)); + message.MatchResults = []; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ElementByMatchResult): ElementByMatchResult { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated api.MatchFieldElementResult MatchResults */ 1: + message.MatchResults.push(MatchFieldElementResult.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: ElementByMatchResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* repeated api.MatchFieldElementResult MatchResults = 1; */ + for (let i = 0; i < message.MatchResults.length; i++) + MatchFieldElementResult.internalBinaryWrite(message.MatchResults[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.ElementByMatchResult + */ +export const ElementByMatchResult = new ElementByMatchResult$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class MatchElementField$Type extends MessageType { + constructor() { + super("api.MatchElementField", [ + { no: 1, name: "Match", kind: "scalar", localName: "Match", jsonName: "Match", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Value required for the search", example: "\"ObjectID\"" }, "validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "MatchFields", kind: "message", localName: "MatchFields", jsonName: "MatchFields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MatchField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "MatchField list structure, for FindMatching query" }, "validate.rules": { repeated: { minItems: "1" } } } } + ]); + } + create(value?: PartialMessage): MatchElementField { + const message = globalThis.Object.create((this.messagePrototype!)); + message.Match = ""; + message.MatchFields = []; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MatchElementField): MatchElementField { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string Match */ 1: + message.Match = reader.string(); + break; + case /* repeated api.MatchField MatchFields */ 2: + message.MatchFields.push(MatchField.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: MatchElementField, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string Match = 1; */ + if (message.Match !== "") + writer.tag(1, WireType.LengthDelimited).string(message.Match); + /* repeated api.MatchField MatchFields = 2; */ + for (let i = 0; i < message.MatchFields.length; i++) + MatchField.internalBinaryWrite(message.MatchFields[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.MatchElementField + */ +export const MatchElementField = new MatchElementField$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class MatchFieldElementResult$Type extends MessageType { + constructor() { + super("api.MatchFieldElementResult", [ + { no: 3, name: "MatchingElements", kind: "map", localName: "MatchingElements", jsonName: "MatchingElements", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } } + ]); + } + create(value?: PartialMessage): MatchFieldElementResult { + const message = globalThis.Object.create((this.messagePrototype!)); + message.MatchingElements = {}; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MatchFieldElementResult): MatchFieldElementResult { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* map MatchingElements */ 3: + this.binaryReadMap3(message.MatchingElements, reader, options); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + private binaryReadMap3(map: MatchFieldElementResult["MatchingElements"], reader: IBinaryReader, options: BinaryReadOptions): void { + let len = reader.uint32(), end = reader.pos + len, key: keyof MatchFieldElementResult["MatchingElements"] | undefined, val: MatchFieldElementResult["MatchingElements"][any] | undefined; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case 1: + key = reader.string(); + break; + case 2: + val = reader.string(); + break; + default: throw new globalThis.Error("unknown map entry field for api.MatchFieldElementResult.MatchingElements"); + } + } + map[key ?? ""] = val ?? ""; + } + internalBinaryWrite(message: MatchFieldElementResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* map MatchingElements = 3; */ + for (let k of globalThis.Object.keys(message.MatchingElements)) + writer.tag(3, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.MatchingElements[k]).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.MatchFieldElementResult + */ +export const MatchFieldElementResult = new MatchFieldElementResult$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class LabelByLanguage$Type extends MessageType { + constructor() { + super("api.LabelByLanguage", [ + { no: 1, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "LanguageCodeISO6391", kind: "scalar", localName: "LanguageCodeISO6391", jsonName: "LanguageCodeISO6391", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ISO 639 code message language", example: "\"en\"" }, "validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } } } } + ]); + } + create(value?: PartialMessage): LabelByLanguage { + const message = globalThis.Object.create((this.messagePrototype!)); + message.Value = ""; + message.LanguageCodeISO6391 = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LabelByLanguage): LabelByLanguage { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string Value */ 1: + message.Value = reader.string(); + break; + case /* string LanguageCodeISO6391 */ 2: + message.LanguageCodeISO6391 = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: LabelByLanguage, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string Value = 1; */ + if (message.Value !== "") + writer.tag(1, WireType.LengthDelimited).string(message.Value); + /* string LanguageCodeISO6391 = 2; */ + if (message.LanguageCodeISO6391 !== "") + writer.tag(2, WireType.LengthDelimited).string(message.LanguageCodeISO6391); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.LabelByLanguage + */ +export const LabelByLanguage = new LabelByLanguage$Type(); diff --git a/core/unitOfMeasures.ts b/core/unitOfMeasures.ts index cd2ecc8..88dacc7 100644 --- a/core/unitOfMeasures.ts +++ b/core/unitOfMeasures.ts @@ -1,6 +1,18 @@ -// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name +// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name // @generated from protobuf file "core/unitOfMeasures.proto" (package "api", syntax proto3) // tslint:disable +// +// This files contains enums for a selection of unit of measure +// references: +// Difference entre US et imperial : https://en.wikipedia.org/wiki/Comparison_of_the_imperial_and_US_customary_measurement_systems +// SI : http://www.ilocis.org/fr/documents/ilo105.htm +// brochure complete BIPM (SI) https://www.bipm.org/utils/common/pdf/si-brochure/SI-Brochure-9.pdf +// The Unified Code for Units of Measure (UCUM) : https://ucum.org/ucum.html +// Weight Unit Abbreviations - Metric, Imperial & Troy : https://www.weightconversions.org/abbreviations.htm +// +// Note: The conversion tables between the different units are implemented in the SinkToClickhouse code. You have to complete this when you add +// a new unit of measure + /** * @generated from protobuf enum api.Length */ diff --git a/counter.client.ts b/counter.client.ts index 64c52ba..84e1dd3 100644 --- a/counter.client.ts +++ b/counter.client.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name +// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name // @generated from protobuf file "counter.proto" (package "vizapi", syntax proto3) // tslint:disable import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; @@ -14,7 +14,7 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc"; */ export interface IProjectCountersServiceClient { /** - * @generated from protobuf rpc: Next(vizapi.NextProjectCounterRequest) returns (vizapi.NextCounterResult); + * @generated from protobuf rpc: Next */ next(input: NextProjectCounterRequest, options?: RpcOptions): UnaryCall; } @@ -28,7 +28,7 @@ export class ProjectCountersServiceClient implements IProjectCountersServiceClie constructor(private readonly _transport: RpcTransport) { } /** - * @generated from protobuf rpc: Next(vizapi.NextProjectCounterRequest) returns (vizapi.NextCounterResult); + * @generated from protobuf rpc: Next */ next(input: NextProjectCounterRequest, options?: RpcOptions): UnaryCall { const method = this.methods[0], opt = this._transport.mergeOptions(options); diff --git a/counter.ts b/counter.ts index cbce9ab..c87f732 100644 --- a/counter.ts +++ b/counter.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name +// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name // @generated from protobuf file "counter.proto" (package "vizapi", syntax proto3) // tslint:disable import { ServiceType } from "@protobuf-ts/runtime-rpc"; @@ -17,11 +17,11 @@ import { RequestProjectHeader } from "./core/shared"; */ export interface NextProjectCounterRequest { /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"]; + * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** - * @generated from protobuf field: string Key = 2 [json_name = "Key"]; + * @generated from protobuf field: string Key = 2 */ Key: string; } @@ -30,7 +30,7 @@ export interface NextProjectCounterRequest { */ export interface NextCounterResult { /** - * @generated from protobuf field: int64 Value = 1 [json_name = "Value"]; + * @generated from protobuf field: int64 Value = 1 */ Value: bigint; } @@ -54,10 +54,10 @@ class NextProjectCounterRequest$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* int64 Value = 1 [json_name = "Value"];*/ 1: + case /* int64 Value */ 1: message.Value = reader.int64().toBigInt(); break; default: @@ -122,7 +122,7 @@ class NextCounterResult$Type extends MessageType { return message; } internalBinaryWrite(message: NextCounterResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* int64 Value = 1 [json_name = "Value"]; */ + /* int64 Value = 1; */ if (message.Value !== 0n) writer.tag(1, WireType.Varint).int64(message.Value); let u = options.writeUnknownFields; diff --git a/google/api/field_behavior.ts b/google/api/field_behavior.ts index 042edc8..1198df6 100644 --- a/google/api/field_behavior.ts +++ b/google/api/field_behavior.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name +// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name // @generated from protobuf file "google/api/field_behavior.proto" (package "google.api", syntax proto3) // tslint:disable // diff --git a/google/api/http.ts b/google/api/http.ts index b8433e9..f7c0172 100644 --- a/google/api/http.ts +++ b/google/api/http.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name +// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name // @generated from protobuf file "google/api/http.proto" (package "google.api", syntax proto3) // tslint:disable // @@ -38,7 +38,7 @@ export interface Http { * * **NOTE:** All service configuration rules follow "last one wins" order. * - * @generated from protobuf field: repeated google.api.HttpRule rules = 1; + * @generated from protobuf field: repeated google.api.HttpRule rules = 1 */ rules: HttpRule[]; /** @@ -49,7 +49,7 @@ export interface Http { * The default behavior is to not decode RFC 6570 reserved characters in multi * segment matches. * - * @generated from protobuf field: bool fully_decode_reserved_expansion = 2; + * @generated from protobuf field: bool fully_decode_reserved_expansion = 2 */ fully_decode_reserved_expansion: boolean; } @@ -332,10 +332,14 @@ export interface HttpRule { * * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. * - * @generated from protobuf field: string selector = 1; + * @generated from protobuf field: string selector = 1 */ selector: string; /** + * Determines the URL pattern is matched by this rules. This pattern can be + * used with any of the {get|put|post|delete|patch} methods. A custom method + * can be defined using the 'custom' field. + * * @generated from protobuf oneof: pattern */ pattern: { @@ -344,7 +348,7 @@ export interface HttpRule { * Maps to HTTP GET. Used for listing and getting information about * resources. * - * @generated from protobuf field: string get = 2; + * @generated from protobuf field: string get = 2 */ get: string; } | { @@ -352,7 +356,7 @@ export interface HttpRule { /** * Maps to HTTP PUT. Used for replacing a resource. * - * @generated from protobuf field: string put = 3; + * @generated from protobuf field: string put = 3 */ put: string; } | { @@ -360,7 +364,7 @@ export interface HttpRule { /** * Maps to HTTP POST. Used for creating a resource or performing an action. * - * @generated from protobuf field: string post = 4; + * @generated from protobuf field: string post = 4 */ post: string; } | { @@ -368,7 +372,7 @@ export interface HttpRule { /** * Maps to HTTP DELETE. Used for deleting a resource. * - * @generated from protobuf field: string delete = 5; + * @generated from protobuf field: string delete = 5 */ delete: string; } | { @@ -376,7 +380,7 @@ export interface HttpRule { /** * Maps to HTTP PATCH. Used for updating a resource. * - * @generated from protobuf field: string patch = 6; + * @generated from protobuf field: string patch = 6 */ patch: string; } | { @@ -387,7 +391,7 @@ export interface HttpRule { * HTTP method unspecified for this rule. The wild-card rule is useful * for services that provide content to Web (HTML) clients. * - * @generated from protobuf field: google.api.CustomHttpPattern custom = 8; + * @generated from protobuf field: google.api.CustomHttpPattern custom = 8 */ custom: CustomHttpPattern; } | { @@ -401,7 +405,7 @@ export interface HttpRule { * NOTE: the referred field must be present at the top-level of the request * message type. * - * @generated from protobuf field: string body = 7; + * @generated from protobuf field: string body = 7 */ body: string; /** @@ -412,7 +416,7 @@ export interface HttpRule { * NOTE: The referred field must be present at the top-level of the response * message type. * - * @generated from protobuf field: string response_body = 12; + * @generated from protobuf field: string response_body = 12 */ response_body: string; /** @@ -420,7 +424,7 @@ export interface HttpRule { * not contain an `additional_bindings` field themselves (that is, * the nesting may only be one level deep). * - * @generated from protobuf field: repeated google.api.HttpRule additional_bindings = 11; + * @generated from protobuf field: repeated google.api.HttpRule additional_bindings = 11 */ additional_bindings: HttpRule[]; } @@ -433,13 +437,13 @@ export interface CustomHttpPattern { /** * The name of this custom HTTP verb. * - * @generated from protobuf field: string kind = 1; + * @generated from protobuf field: string kind = 1 */ kind: string; /** * The path matched by this custom verb. * - * @generated from protobuf field: string path = 2; + * @generated from protobuf field: string path = 2 */ path: string; } diff --git a/google/api/httpbody.ts b/google/api/httpbody.ts index 2878c32..61d47b7 100644 --- a/google/api/httpbody.ts +++ b/google/api/httpbody.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name +// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name // @generated from protobuf file "google/api/httpbody.proto" (package "google.api", syntax proto3) // tslint:disable // @@ -73,20 +73,20 @@ export interface HttpBody { /** * The HTTP Content-Type header value specifying the content type of the body. * - * @generated from protobuf field: string content_type = 1; + * @generated from protobuf field: string content_type = 1 */ content_type: string; /** * The HTTP request/response body as raw binary. * - * @generated from protobuf field: bytes data = 2; + * @generated from protobuf field: bytes data = 2 */ data: Uint8Array; /** * Application specific response metadata. Must be set in the first response * for streaming APIs. * - * @generated from protobuf field: repeated google.protobuf.Any extensions = 3; + * @generated from protobuf field: repeated google.protobuf.Any extensions = 3 */ extensions: Any[]; } diff --git a/google/protobuf/any.ts b/google/protobuf/any.ts index d865451..2dd215c 100644 --- a/google/protobuf/any.ts +++ b/google/protobuf/any.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name +// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name // @generated from protobuf file "google/protobuf/any.proto" (package "google.protobuf", syntax proto3) // tslint:disable // @@ -163,13 +163,13 @@ export interface Any { * used with implementation specific semantics. * * - * @generated from protobuf field: string type_url = 1; + * @generated from protobuf field: string type_url = 1 */ type_url: string; /** * Must be a valid serialized protocol buffer of the above specified type. * - * @generated from protobuf field: bytes value = 2; + * @generated from protobuf field: bytes value = 2 */ value: Uint8Array; } diff --git a/google/protobuf/api.ts b/google/protobuf/api.ts index a07dc26..e8627bc 100644 --- a/google/protobuf/api.ts +++ b/google/protobuf/api.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name +// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name // @generated from protobuf file "google/protobuf/api.proto" (package "google.protobuf", syntax proto3) // tslint:disable // @@ -62,19 +62,19 @@ export interface Api { * The fully qualified name of this interface, including package name * followed by the interface's simple name. * - * @generated from protobuf field: string name = 1; + * @generated from protobuf field: string name = 1 */ name: string; /** * The methods of this interface, in unspecified order. * - * @generated from protobuf field: repeated google.protobuf.Method methods = 2; + * @generated from protobuf field: repeated google.protobuf.Method methods = 2 */ methods: Method[]; /** * Any metadata attached to the interface. * - * @generated from protobuf field: repeated google.protobuf.Option options = 3; + * @generated from protobuf field: repeated google.protobuf.Option options = 3 */ options: Option[]; /** @@ -100,26 +100,26 @@ export interface Api { * * * - * @generated from protobuf field: string version = 4; + * @generated from protobuf field: string version = 4 */ version: string; /** * Source context for the protocol buffer service represented by this * message. * - * @generated from protobuf field: google.protobuf.SourceContext source_context = 5; + * @generated from protobuf field: google.protobuf.SourceContext source_context = 5 */ source_context?: SourceContext; /** * Included interfaces. See [Mixin][]. * - * @generated from protobuf field: repeated google.protobuf.Mixin mixins = 6; + * @generated from protobuf field: repeated google.protobuf.Mixin mixins = 6 */ mixins: Mixin[]; /** * The source syntax of the service. * - * @generated from protobuf field: google.protobuf.Syntax syntax = 7; + * @generated from protobuf field: google.protobuf.Syntax syntax = 7 */ syntax: Syntax; } @@ -132,43 +132,43 @@ export interface Method { /** * The simple name of this method. * - * @generated from protobuf field: string name = 1; + * @generated from protobuf field: string name = 1 */ name: string; /** * A URL of the input message type. * - * @generated from protobuf field: string request_type_url = 2; + * @generated from protobuf field: string request_type_url = 2 */ request_type_url: string; /** * If true, the request is streamed. * - * @generated from protobuf field: bool request_streaming = 3; + * @generated from protobuf field: bool request_streaming = 3 */ request_streaming: boolean; /** * The URL of the output message type. * - * @generated from protobuf field: string response_type_url = 4; + * @generated from protobuf field: string response_type_url = 4 */ response_type_url: string; /** * If true, the response is streamed. * - * @generated from protobuf field: bool response_streaming = 5; + * @generated from protobuf field: bool response_streaming = 5 */ response_streaming: boolean; /** * Any metadata attached to the method. * - * @generated from protobuf field: repeated google.protobuf.Option options = 6; + * @generated from protobuf field: repeated google.protobuf.Option options = 6 */ options: Option[]; /** * The source syntax of this method. * - * @generated from protobuf field: google.protobuf.Syntax syntax = 7; + * @generated from protobuf field: google.protobuf.Syntax syntax = 7 */ syntax: Syntax; } @@ -258,14 +258,14 @@ export interface Mixin { /** * The fully qualified name of the interface which is included. * - * @generated from protobuf field: string name = 1; + * @generated from protobuf field: string name = 1 */ name: string; /** * If non-empty specifies a path under which inherited HTTP paths * are rooted. * - * @generated from protobuf field: string root = 2; + * @generated from protobuf field: string root = 2 */ root: string; } diff --git a/google/protobuf/compiler/plugin.ts b/google/protobuf/compiler/plugin.ts index f7e7508..5ee957c 100644 --- a/google/protobuf/compiler/plugin.ts +++ b/google/protobuf/compiler/plugin.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name +// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name // @generated from protobuf file "google/protobuf/compiler/plugin.proto" (package "google.protobuf.compiler", syntax proto2) // tslint:disable // @@ -66,22 +66,22 @@ import { FileDescriptorProto } from "../descriptor"; */ export interface Version { /** - * @generated from protobuf field: optional int32 major = 1; + * @generated from protobuf field: optional int32 major = 1 */ major?: number; /** - * @generated from protobuf field: optional int32 minor = 2; + * @generated from protobuf field: optional int32 minor = 2 */ minor?: number; /** - * @generated from protobuf field: optional int32 patch = 3; + * @generated from protobuf field: optional int32 patch = 3 */ patch?: number; /** * A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should * be empty for mainline stable releases. * - * @generated from protobuf field: optional string suffix = 4; + * @generated from protobuf field: optional string suffix = 4 */ suffix?: string; } @@ -96,13 +96,13 @@ export interface CodeGeneratorRequest { * code generator should generate code only for these files. Each file's * descriptor will be included in proto_file, below. * - * @generated from protobuf field: repeated string file_to_generate = 1; + * @generated from protobuf field: repeated string file_to_generate = 1 */ file_to_generate: string[]; /** * The generator parameter passed on the command-line. * - * @generated from protobuf field: optional string parameter = 2; + * @generated from protobuf field: optional string parameter = 2 */ parameter?: string; /** @@ -121,13 +121,13 @@ export interface CodeGeneratorRequest { * Type names of fields and extensions in the FileDescriptorProto are always * fully qualified. * - * @generated from protobuf field: repeated google.protobuf.FileDescriptorProto proto_file = 15; + * @generated from protobuf field: repeated google.protobuf.FileDescriptorProto proto_file = 15 */ proto_file: FileDescriptorProto[]; /** * The version number of protocol compiler. * - * @generated from protobuf field: optional google.protobuf.compiler.Version compiler_version = 3; + * @generated from protobuf field: optional google.protobuf.compiler.Version compiler_version = 3 */ compiler_version?: Version; } @@ -147,11 +147,11 @@ export interface CodeGeneratorResponse { * unparseable -- should be reported by writing a message to stderr and * exiting with a non-zero status code. * - * @generated from protobuf field: optional string error = 1; + * @generated from protobuf field: optional string error = 1 */ error?: string; /** - * @generated from protobuf field: repeated google.protobuf.compiler.CodeGeneratorResponse.File file = 15; + * @generated from protobuf field: repeated google.protobuf.compiler.CodeGeneratorResponse.File file = 15 */ file: CodeGeneratorResponse_File[]; } @@ -174,7 +174,7 @@ export interface CodeGeneratorResponse_File { * this writing protoc does not optimize for this -- it will read the entire * CodeGeneratorResponse before writing files to disk. * - * @generated from protobuf field: optional string name = 1; + * @generated from protobuf field: optional string name = 1 */ name?: string; /** @@ -216,13 +216,13 @@ export interface CodeGeneratorResponse_File { * * If |insertion_point| is present, |name| must also be present. * - * @generated from protobuf field: optional string insertion_point = 2; + * @generated from protobuf field: optional string insertion_point = 2 */ insertion_point?: string; /** * The file contents. * - * @generated from protobuf field: optional string content = 15; + * @generated from protobuf field: optional string content = 15 */ content?: string; } diff --git a/google/protobuf/descriptor.ts b/google/protobuf/descriptor.ts index 94acd0c..69e6987 100644 --- a/google/protobuf/descriptor.ts +++ b/google/protobuf/descriptor.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name +// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name // @generated from protobuf file "google/protobuf/descriptor.proto" (package "google.protobuf", syntax proto2) // tslint:disable // @@ -58,7 +58,7 @@ import { MessageType } from "@protobuf-ts/runtime"; */ export interface FileDescriptorSet { /** - * @generated from protobuf field: repeated google.protobuf.FileDescriptorProto file = 1; + * @generated from protobuf field: repeated google.protobuf.FileDescriptorProto file = 1 */ file: FileDescriptorProto[]; } @@ -69,52 +69,52 @@ export interface FileDescriptorSet { */ export interface FileDescriptorProto { /** - * @generated from protobuf field: optional string name = 1; + * @generated from protobuf field: optional string name = 1 */ name?: string; // file name, relative to root of source tree /** - * @generated from protobuf field: optional string package = 2; + * @generated from protobuf field: optional string package = 2 */ package?: string; // e.g. "foo", "foo.bar", etc. /** * Names of files imported by this file. * - * @generated from protobuf field: repeated string dependency = 3; + * @generated from protobuf field: repeated string dependency = 3 */ dependency: string[]; /** * Indexes of the public imported files in the dependency list above. * - * @generated from protobuf field: repeated int32 public_dependency = 10; + * @generated from protobuf field: repeated int32 public_dependency = 10 */ public_dependency: number[]; /** * Indexes of the weak imported files in the dependency list. * For Google-internal migration only. Do not use. * - * @generated from protobuf field: repeated int32 weak_dependency = 11; + * @generated from protobuf field: repeated int32 weak_dependency = 11 */ weak_dependency: number[]; /** * All top-level definitions in this file. * - * @generated from protobuf field: repeated google.protobuf.DescriptorProto message_type = 4; + * @generated from protobuf field: repeated google.protobuf.DescriptorProto message_type = 4 */ message_type: DescriptorProto[]; /** - * @generated from protobuf field: repeated google.protobuf.EnumDescriptorProto enum_type = 5; + * @generated from protobuf field: repeated google.protobuf.EnumDescriptorProto enum_type = 5 */ enum_type: EnumDescriptorProto[]; /** - * @generated from protobuf field: repeated google.protobuf.ServiceDescriptorProto service = 6; + * @generated from protobuf field: repeated google.protobuf.ServiceDescriptorProto service = 6 */ service: ServiceDescriptorProto[]; /** - * @generated from protobuf field: repeated google.protobuf.FieldDescriptorProto extension = 7; + * @generated from protobuf field: repeated google.protobuf.FieldDescriptorProto extension = 7 */ extension: FieldDescriptorProto[]; /** - * @generated from protobuf field: optional google.protobuf.FileOptions options = 8; + * @generated from protobuf field: optional google.protobuf.FileOptions options = 8 */ options?: FileOptions; /** @@ -123,14 +123,14 @@ export interface FileDescriptorProto { * functionality of the descriptors -- the information is needed only by * development tools. * - * @generated from protobuf field: optional google.protobuf.SourceCodeInfo source_code_info = 9; + * @generated from protobuf field: optional google.protobuf.SourceCodeInfo source_code_info = 9 */ source_code_info?: SourceCodeInfo; /** * The syntax of the proto file. * The supported values are "proto2" and "proto3". * - * @generated from protobuf field: optional string syntax = 12; + * @generated from protobuf field: optional string syntax = 12 */ syntax?: string; } @@ -141,46 +141,46 @@ export interface FileDescriptorProto { */ export interface DescriptorProto { /** - * @generated from protobuf field: optional string name = 1; + * @generated from protobuf field: optional string name = 1 */ name?: string; /** - * @generated from protobuf field: repeated google.protobuf.FieldDescriptorProto field = 2; + * @generated from protobuf field: repeated google.protobuf.FieldDescriptorProto field = 2 */ field: FieldDescriptorProto[]; /** - * @generated from protobuf field: repeated google.protobuf.FieldDescriptorProto extension = 6; + * @generated from protobuf field: repeated google.protobuf.FieldDescriptorProto extension = 6 */ extension: FieldDescriptorProto[]; /** - * @generated from protobuf field: repeated google.protobuf.DescriptorProto nested_type = 3; + * @generated from protobuf field: repeated google.protobuf.DescriptorProto nested_type = 3 */ nested_type: DescriptorProto[]; /** - * @generated from protobuf field: repeated google.protobuf.EnumDescriptorProto enum_type = 4; + * @generated from protobuf field: repeated google.protobuf.EnumDescriptorProto enum_type = 4 */ enum_type: EnumDescriptorProto[]; /** - * @generated from protobuf field: repeated google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; + * @generated from protobuf field: repeated google.protobuf.DescriptorProto.ExtensionRange extension_range = 5 */ extension_range: DescriptorProto_ExtensionRange[]; /** - * @generated from protobuf field: repeated google.protobuf.OneofDescriptorProto oneof_decl = 8; + * @generated from protobuf field: repeated google.protobuf.OneofDescriptorProto oneof_decl = 8 */ oneof_decl: OneofDescriptorProto[]; /** - * @generated from protobuf field: optional google.protobuf.MessageOptions options = 7; + * @generated from protobuf field: optional google.protobuf.MessageOptions options = 7 */ options?: MessageOptions; /** - * @generated from protobuf field: repeated google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; + * @generated from protobuf field: repeated google.protobuf.DescriptorProto.ReservedRange reserved_range = 9 */ reserved_range: DescriptorProto_ReservedRange[]; /** * Reserved field names, which may not be used by fields in the same message. * A given name may only be reserved once. * - * @generated from protobuf field: repeated string reserved_name = 10; + * @generated from protobuf field: repeated string reserved_name = 10 */ reserved_name: string[]; } @@ -189,15 +189,15 @@ export interface DescriptorProto { */ export interface DescriptorProto_ExtensionRange { /** - * @generated from protobuf field: optional int32 start = 1; + * @generated from protobuf field: optional int32 start = 1 */ start?: number; // Inclusive. /** - * @generated from protobuf field: optional int32 end = 2; + * @generated from protobuf field: optional int32 end = 2 */ end?: number; // Exclusive. /** - * @generated from protobuf field: optional google.protobuf.ExtensionRangeOptions options = 3; + * @generated from protobuf field: optional google.protobuf.ExtensionRangeOptions options = 3 */ options?: ExtensionRangeOptions; } @@ -210,11 +210,11 @@ export interface DescriptorProto_ExtensionRange { */ export interface DescriptorProto_ReservedRange { /** - * @generated from protobuf field: optional int32 start = 1; + * @generated from protobuf field: optional int32 start = 1 */ start?: number; // Inclusive. /** - * @generated from protobuf field: optional int32 end = 2; + * @generated from protobuf field: optional int32 end = 2 */ end?: number; // Exclusive. } @@ -225,7 +225,7 @@ export interface ExtensionRangeOptions { /** * The parser stores options it doesn't recognize here. See above. * - * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; + * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999 */ uninterpreted_option: UninterpretedOption[]; } @@ -236,22 +236,22 @@ export interface ExtensionRangeOptions { */ export interface FieldDescriptorProto { /** - * @generated from protobuf field: optional string name = 1; + * @generated from protobuf field: optional string name = 1 */ name?: string; /** - * @generated from protobuf field: optional int32 number = 3; + * @generated from protobuf field: optional int32 number = 3 */ number?: number; /** - * @generated from protobuf field: optional google.protobuf.FieldDescriptorProto.Label label = 4; + * @generated from protobuf field: optional google.protobuf.FieldDescriptorProto.Label label = 4 */ label?: FieldDescriptorProto_Label; /** * If type_name is set, this need not be set. If both this and type_name * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. * - * @generated from protobuf field: optional google.protobuf.FieldDescriptorProto.Type type = 5; + * @generated from protobuf field: optional google.protobuf.FieldDescriptorProto.Type type = 5 */ type?: FieldDescriptorProto_Type; /** @@ -261,14 +261,14 @@ export interface FieldDescriptorProto { * message are searched, then within the parent, on up to the root * namespace). * - * @generated from protobuf field: optional string type_name = 6; + * @generated from protobuf field: optional string type_name = 6 */ type_name?: string; /** * For extensions, this is the name of the type being extended. It is * resolved in the same manner as type_name. * - * @generated from protobuf field: optional string extendee = 2; + * @generated from protobuf field: optional string extendee = 2 */ extendee?: string; /** @@ -278,14 +278,14 @@ export interface FieldDescriptorProto { * For bytes, contains the C escaped value. All bytes >= 128 are escaped. * TODO(kenton): Base-64 encode? * - * @generated from protobuf field: optional string default_value = 7; + * @generated from protobuf field: optional string default_value = 7 */ default_value?: string; /** * If set, gives the index of a oneof in the containing type's oneof_decl * list. This field is a member of that oneof. * - * @generated from protobuf field: optional int32 oneof_index = 9; + * @generated from protobuf field: optional int32 oneof_index = 9 */ oneof_index?: number; /** @@ -294,11 +294,11 @@ export interface FieldDescriptorProto { * will be used. Otherwise, it's deduced from the field's name by converting * it to camelCase. * - * @generated from protobuf field: optional string json_name = 10; + * @generated from protobuf field: optional string json_name = 10 */ json_name?: string; /** - * @generated from protobuf field: optional google.protobuf.FieldOptions options = 8; + * @generated from protobuf field: optional google.protobuf.FieldOptions options = 8 */ options?: FieldOptions; } @@ -435,11 +435,11 @@ export enum FieldDescriptorProto_Label { */ export interface OneofDescriptorProto { /** - * @generated from protobuf field: optional string name = 1; + * @generated from protobuf field: optional string name = 1 */ name?: string; /** - * @generated from protobuf field: optional google.protobuf.OneofOptions options = 2; + * @generated from protobuf field: optional google.protobuf.OneofOptions options = 2 */ options?: OneofOptions; } @@ -450,15 +450,15 @@ export interface OneofDescriptorProto { */ export interface EnumDescriptorProto { /** - * @generated from protobuf field: optional string name = 1; + * @generated from protobuf field: optional string name = 1 */ name?: string; /** - * @generated from protobuf field: repeated google.protobuf.EnumValueDescriptorProto value = 2; + * @generated from protobuf field: repeated google.protobuf.EnumValueDescriptorProto value = 2 */ value: EnumValueDescriptorProto[]; /** - * @generated from protobuf field: optional google.protobuf.EnumOptions options = 3; + * @generated from protobuf field: optional google.protobuf.EnumOptions options = 3 */ options?: EnumOptions; /** @@ -466,14 +466,14 @@ export interface EnumDescriptorProto { * by enum values in the same enum declaration. Reserved ranges may not * overlap. * - * @generated from protobuf field: repeated google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4; + * @generated from protobuf field: repeated google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4 */ reserved_range: EnumDescriptorProto_EnumReservedRange[]; /** * Reserved enum value names, which may not be reused. A given name may only * be reserved once. * - * @generated from protobuf field: repeated string reserved_name = 5; + * @generated from protobuf field: repeated string reserved_name = 5 */ reserved_name: string[]; } @@ -489,11 +489,11 @@ export interface EnumDescriptorProto { */ export interface EnumDescriptorProto_EnumReservedRange { /** - * @generated from protobuf field: optional int32 start = 1; + * @generated from protobuf field: optional int32 start = 1 */ start?: number; // Inclusive. /** - * @generated from protobuf field: optional int32 end = 2; + * @generated from protobuf field: optional int32 end = 2 */ end?: number; // Inclusive. } @@ -504,15 +504,15 @@ export interface EnumDescriptorProto_EnumReservedRange { */ export interface EnumValueDescriptorProto { /** - * @generated from protobuf field: optional string name = 1; + * @generated from protobuf field: optional string name = 1 */ name?: string; /** - * @generated from protobuf field: optional int32 number = 2; + * @generated from protobuf field: optional int32 number = 2 */ number?: number; /** - * @generated from protobuf field: optional google.protobuf.EnumValueOptions options = 3; + * @generated from protobuf field: optional google.protobuf.EnumValueOptions options = 3 */ options?: EnumValueOptions; } @@ -523,15 +523,15 @@ export interface EnumValueDescriptorProto { */ export interface ServiceDescriptorProto { /** - * @generated from protobuf field: optional string name = 1; + * @generated from protobuf field: optional string name = 1 */ name?: string; /** - * @generated from protobuf field: repeated google.protobuf.MethodDescriptorProto method = 2; + * @generated from protobuf field: repeated google.protobuf.MethodDescriptorProto method = 2 */ method: MethodDescriptorProto[]; /** - * @generated from protobuf field: optional google.protobuf.ServiceOptions options = 3; + * @generated from protobuf field: optional google.protobuf.ServiceOptions options = 3 */ options?: ServiceOptions; } @@ -542,34 +542,34 @@ export interface ServiceDescriptorProto { */ export interface MethodDescriptorProto { /** - * @generated from protobuf field: optional string name = 1; + * @generated from protobuf field: optional string name = 1 */ name?: string; /** * Input and output type names. These are resolved in the same way as * FieldDescriptorProto.type_name, but must refer to a message type. * - * @generated from protobuf field: optional string input_type = 2; + * @generated from protobuf field: optional string input_type = 2 */ input_type?: string; /** - * @generated from protobuf field: optional string output_type = 3; + * @generated from protobuf field: optional string output_type = 3 */ output_type?: string; /** - * @generated from protobuf field: optional google.protobuf.MethodOptions options = 4; + * @generated from protobuf field: optional google.protobuf.MethodOptions options = 4 */ options?: MethodOptions; /** * Identifies if client streams multiple client messages * - * @generated from protobuf field: optional bool client_streaming = 5; + * @generated from protobuf field: optional bool client_streaming = 5 [default = false] */ client_streaming?: boolean; /** * Identifies if server streams multiple server messages * - * @generated from protobuf field: optional bool server_streaming = 6; + * @generated from protobuf field: optional bool server_streaming = 6 [default = false] */ server_streaming?: boolean; } @@ -615,7 +615,7 @@ export interface FileOptions { * inappropriate because proto packages do not normally start with backwards * domain names. * - * @generated from protobuf field: optional string java_package = 1; + * @generated from protobuf field: optional string java_package = 1 */ java_package?: string; /** @@ -625,7 +625,7 @@ export interface FileOptions { * a .proto always translates to a single class, but you may want to * explicitly choose the class name). * - * @generated from protobuf field: optional string java_outer_classname = 8; + * @generated from protobuf field: optional string java_outer_classname = 8 */ java_outer_classname?: string; /** @@ -636,14 +636,14 @@ export interface FileOptions { * generated to contain the file's getDescriptor() method as well as any * top-level extensions defined in the file. * - * @generated from protobuf field: optional bool java_multiple_files = 10; + * @generated from protobuf field: optional bool java_multiple_files = 10 [default = false] */ java_multiple_files?: boolean; /** * This option does nothing. * * @deprecated - * @generated from protobuf field: optional bool java_generate_equals_and_hash = 20 [deprecated = true]; + * @generated from protobuf field: optional bool java_generate_equals_and_hash = 20 [deprecated = true] */ java_generate_equals_and_hash?: boolean; /** @@ -654,11 +654,11 @@ export interface FileOptions { * However, an extension field still accepts non-UTF-8 byte sequences. * This option has no effect on when used with the lite runtime. * - * @generated from protobuf field: optional bool java_string_check_utf8 = 27; + * @generated from protobuf field: optional bool java_string_check_utf8 = 27 [default = false] */ java_string_check_utf8?: boolean; /** - * @generated from protobuf field: optional google.protobuf.FileOptions.OptimizeMode optimize_for = 9; + * @generated from protobuf field: optional google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED] */ optimize_for?: FileOptions_OptimizeMode; /** @@ -668,7 +668,7 @@ export interface FileOptions { * - Otherwise, the package statement in the .proto file, if present. * - Otherwise, the basename of the .proto file, without extension. * - * @generated from protobuf field: optional string go_package = 11; + * @generated from protobuf field: optional string go_package = 11 */ go_package?: string; /** @@ -683,19 +683,19 @@ export interface FileOptions { * these default to false. Old code which depends on generic services should * explicitly set them to true. * - * @generated from protobuf field: optional bool cc_generic_services = 16; + * @generated from protobuf field: optional bool cc_generic_services = 16 [default = false] */ cc_generic_services?: boolean; /** - * @generated from protobuf field: optional bool java_generic_services = 17; + * @generated from protobuf field: optional bool java_generic_services = 17 [default = false] */ java_generic_services?: boolean; /** - * @generated from protobuf field: optional bool py_generic_services = 18; + * @generated from protobuf field: optional bool py_generic_services = 18 [default = false] */ py_generic_services?: boolean; /** - * @generated from protobuf field: optional bool php_generic_services = 42; + * @generated from protobuf field: optional bool php_generic_services = 42 [default = false] */ php_generic_services?: boolean; /** @@ -704,27 +704,27 @@ export interface FileOptions { * for everything in the file, or it will be completely ignored; in the very * least, this is a formalization for deprecating files. * - * @generated from protobuf field: optional bool deprecated = 23; + * @generated from protobuf field: optional bool deprecated = 23 [default = false] */ deprecated?: boolean; /** * Enables the use of arenas for the proto messages in this file. This applies * only to generated classes for C++. * - * @generated from protobuf field: optional bool cc_enable_arenas = 31; + * @generated from protobuf field: optional bool cc_enable_arenas = 31 [default = false] */ cc_enable_arenas?: boolean; /** * Sets the objective c class prefix which is prepended to all objective c * generated classes from this .proto. There is no default. * - * @generated from protobuf field: optional string objc_class_prefix = 36; + * @generated from protobuf field: optional string objc_class_prefix = 36 */ objc_class_prefix?: string; /** * Namespace for generated classes; defaults to the package. * - * @generated from protobuf field: optional string csharp_namespace = 37; + * @generated from protobuf field: optional string csharp_namespace = 37 */ csharp_namespace?: string; /** @@ -733,14 +733,14 @@ export interface FileOptions { * defined. When this options is provided, they will use this value instead * to prefix the types/symbols defined. * - * @generated from protobuf field: optional string swift_prefix = 39; + * @generated from protobuf field: optional string swift_prefix = 39 */ swift_prefix?: string; /** * Sets the php class prefix which is prepended to all php generated classes * from this .proto. Default is empty. * - * @generated from protobuf field: optional string php_class_prefix = 40; + * @generated from protobuf field: optional string php_class_prefix = 40 */ php_class_prefix?: string; /** @@ -748,7 +748,7 @@ export interface FileOptions { * is empty. When this option is empty, the package name will be used for * determining the namespace. * - * @generated from protobuf field: optional string php_namespace = 41; + * @generated from protobuf field: optional string php_namespace = 41 */ php_namespace?: string; /** @@ -756,7 +756,7 @@ export interface FileOptions { * Default is empty. When this option is empty, the proto file name will be * used for determining the namespace. * - * @generated from protobuf field: optional string php_metadata_namespace = 44; + * @generated from protobuf field: optional string php_metadata_namespace = 44 */ php_metadata_namespace?: string; /** @@ -764,14 +764,14 @@ export interface FileOptions { * is empty. When this option is not set, the package name will be used for * determining the ruby package. * - * @generated from protobuf field: optional string ruby_package = 45; + * @generated from protobuf field: optional string ruby_package = 45 */ ruby_package?: string; /** * The parser stores options it doesn't recognize here. * See the documentation for the "Options" section above. * - * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; + * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999 */ uninterpreted_option: UninterpretedOption[]; } @@ -830,7 +830,7 @@ export interface MessageOptions { * Because this is an option, the above two restrictions are not enforced by * the protocol compiler. * - * @generated from protobuf field: optional bool message_set_wire_format = 1; + * @generated from protobuf field: optional bool message_set_wire_format = 1 [default = false] */ message_set_wire_format?: boolean; /** @@ -838,7 +838,7 @@ export interface MessageOptions { * conflict with a field of the same name. This is meant to make migration * from proto1 easier; new code should avoid fields named "descriptor". * - * @generated from protobuf field: optional bool no_standard_descriptor_accessor = 2; + * @generated from protobuf field: optional bool no_standard_descriptor_accessor = 2 [default = false] */ no_standard_descriptor_accessor?: boolean; /** @@ -847,7 +847,7 @@ export interface MessageOptions { * for the message, or it will be completely ignored; in the very least, * this is a formalization for deprecating messages. * - * @generated from protobuf field: optional bool deprecated = 3; + * @generated from protobuf field: optional bool deprecated = 3 [default = false] */ deprecated?: boolean; /** @@ -873,13 +873,13 @@ export interface MessageOptions { * instead. The option should only be implicitly set by the proto compiler * parser. * - * @generated from protobuf field: optional bool map_entry = 7; + * @generated from protobuf field: optional bool map_entry = 7 */ map_entry?: boolean; /** * The parser stores options it doesn't recognize here. See above. * - * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; + * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999 */ uninterpreted_option: UninterpretedOption[]; } @@ -893,7 +893,7 @@ export interface FieldOptions { * options below. This option is not yet implemented in the open source * release -- sorry, we'll try to include it in a future version! * - * @generated from protobuf field: optional google.protobuf.FieldOptions.CType ctype = 1; + * @generated from protobuf field: optional google.protobuf.FieldOptions.CType ctype = 1 [default = STRING] */ ctype?: FieldOptions_CType; /** @@ -903,7 +903,7 @@ export interface FieldOptions { * a single length-delimited blob. In proto3, only explicit setting it to * false will avoid using packed encoding. * - * @generated from protobuf field: optional bool packed = 2; + * @generated from protobuf field: optional bool packed = 2 */ packed?: boolean; /** @@ -919,7 +919,7 @@ export interface FieldOptions { * This option is an enum to permit additional types to be added, e.g. * goog.math.Integer. * - * @generated from protobuf field: optional google.protobuf.FieldOptions.JSType jstype = 6; + * @generated from protobuf field: optional google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL] */ jstype?: FieldOptions_JSType; /** @@ -952,7 +952,7 @@ export interface FieldOptions { * check its required fields, regardless of whether or not the message has * been parsed. * - * @generated from protobuf field: optional bool lazy = 5; + * @generated from protobuf field: optional bool lazy = 5 [default = false] */ lazy?: boolean; /** @@ -961,19 +961,19 @@ export interface FieldOptions { * for accessors, or it will be completely ignored; in the very least, this * is a formalization for deprecating fields. * - * @generated from protobuf field: optional bool deprecated = 3; + * @generated from protobuf field: optional bool deprecated = 3 [default = false] */ deprecated?: boolean; /** * For Google-internal migration only. Do not use. * - * @generated from protobuf field: optional bool weak = 10; + * @generated from protobuf field: optional bool weak = 10 [default = false] */ weak?: boolean; /** * The parser stores options it doesn't recognize here. See above. * - * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; + * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999 */ uninterpreted_option: UninterpretedOption[]; } @@ -1026,7 +1026,7 @@ export interface OneofOptions { /** * The parser stores options it doesn't recognize here. See above. * - * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; + * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999 */ uninterpreted_option: UninterpretedOption[]; } @@ -1038,7 +1038,7 @@ export interface EnumOptions { * Set this option to true to allow mapping different tag names to the same * value. * - * @generated from protobuf field: optional bool allow_alias = 2; + * @generated from protobuf field: optional bool allow_alias = 2 */ allow_alias?: boolean; /** @@ -1047,13 +1047,13 @@ export interface EnumOptions { * for the enum, or it will be completely ignored; in the very least, this * is a formalization for deprecating enums. * - * @generated from protobuf field: optional bool deprecated = 3; + * @generated from protobuf field: optional bool deprecated = 3 [default = false] */ deprecated?: boolean; /** * The parser stores options it doesn't recognize here. See above. * - * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; + * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999 */ uninterpreted_option: UninterpretedOption[]; } @@ -1067,13 +1067,13 @@ export interface EnumValueOptions { * for the enum value, or it will be completely ignored; in the very least, * this is a formalization for deprecating enum values. * - * @generated from protobuf field: optional bool deprecated = 1; + * @generated from protobuf field: optional bool deprecated = 1 [default = false] */ deprecated?: boolean; /** * The parser stores options it doesn't recognize here. See above. * - * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; + * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999 */ uninterpreted_option: UninterpretedOption[]; } @@ -1092,13 +1092,13 @@ export interface ServiceOptions { * for the service, or it will be completely ignored; in the very least, * this is a formalization for deprecating services. * - * @generated from protobuf field: optional bool deprecated = 33; + * @generated from protobuf field: optional bool deprecated = 33 [default = false] */ deprecated?: boolean; /** * The parser stores options it doesn't recognize here. See above. * - * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; + * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999 */ uninterpreted_option: UninterpretedOption[]; } @@ -1117,17 +1117,17 @@ export interface MethodOptions { * for the method, or it will be completely ignored; in the very least, * this is a formalization for deprecating methods. * - * @generated from protobuf field: optional bool deprecated = 33; + * @generated from protobuf field: optional bool deprecated = 33 [default = false] */ deprecated?: boolean; /** - * @generated from protobuf field: optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34; + * @generated from protobuf field: optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN] */ idempotency_level?: MethodOptions_IdempotencyLevel; /** * The parser stores options it doesn't recognize here. See above. * - * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; + * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999 */ uninterpreted_option: UninterpretedOption[]; } @@ -1168,34 +1168,34 @@ export enum MethodOptions_IdempotencyLevel { */ export interface UninterpretedOption { /** - * @generated from protobuf field: repeated google.protobuf.UninterpretedOption.NamePart name = 2; + * @generated from protobuf field: repeated google.protobuf.UninterpretedOption.NamePart name = 2 */ name: UninterpretedOption_NamePart[]; /** * The value of the uninterpreted option, in whatever type the tokenizer * identified it as during parsing. Exactly one of these should be set. * - * @generated from protobuf field: optional string identifier_value = 3; + * @generated from protobuf field: optional string identifier_value = 3 */ identifier_value?: string; /** - * @generated from protobuf field: optional uint64 positive_int_value = 4; + * @generated from protobuf field: optional uint64 positive_int_value = 4 */ positive_int_value?: bigint; /** - * @generated from protobuf field: optional int64 negative_int_value = 5; + * @generated from protobuf field: optional int64 negative_int_value = 5 */ negative_int_value?: bigint; /** - * @generated from protobuf field: optional double double_value = 6; + * @generated from protobuf field: optional double double_value = 6 */ double_value?: number; /** - * @generated from protobuf field: optional bytes string_value = 7; + * @generated from protobuf field: optional bytes string_value = 7 */ string_value?: Uint8Array; /** - * @generated from protobuf field: optional string aggregate_value = 8; + * @generated from protobuf field: optional string aggregate_value = 8 */ aggregate_value?: string; } @@ -1210,11 +1210,11 @@ export interface UninterpretedOption { */ export interface UninterpretedOption_NamePart { /** - * @generated from protobuf field: string name_part = 1; + * @generated from protobuf field: required string name_part = 1 */ name_part: string; /** - * @generated from protobuf field: bool is_extension = 2; + * @generated from protobuf field: required bool is_extension = 2 */ is_extension: boolean; } @@ -1273,7 +1273,7 @@ export interface SourceCodeInfo { * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * - * @generated from protobuf field: repeated google.protobuf.SourceCodeInfo.Location location = 1; + * @generated from protobuf field: repeated google.protobuf.SourceCodeInfo.Location location = 1 */ location: SourceCodeInfo_Location[]; } @@ -1306,7 +1306,7 @@ export interface SourceCodeInfo_Location { * this path refers to the whole field declaration (from the beginning * of the label to the terminating semicolon). * - * @generated from protobuf field: repeated int32 path = 1 [packed = true]; + * @generated from protobuf field: repeated int32 path = 1 [packed = true] */ path: number[]; /** @@ -1316,7 +1316,7 @@ export interface SourceCodeInfo_Location { * and column numbers are zero-based -- typically you will want to add * 1 to each before displaying to a user. * - * @generated from protobuf field: repeated int32 span = 2 [packed = true]; + * @generated from protobuf field: repeated int32 span = 2 [packed = true] */ span: number[]; /** @@ -1368,15 +1368,15 @@ export interface SourceCodeInfo_Location { * * // ignored detached comments. * - * @generated from protobuf field: optional string leading_comments = 3; + * @generated from protobuf field: optional string leading_comments = 3 */ leading_comments?: string; /** - * @generated from protobuf field: optional string trailing_comments = 4; + * @generated from protobuf field: optional string trailing_comments = 4 */ trailing_comments?: string; /** - * @generated from protobuf field: repeated string leading_detached_comments = 6; + * @generated from protobuf field: repeated string leading_detached_comments = 6 */ leading_detached_comments: string[]; } @@ -1392,7 +1392,7 @@ export interface GeneratedCodeInfo { * An Annotation connects some span of text in generated code to an element * of its generating .proto file. * - * @generated from protobuf field: repeated google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; + * @generated from protobuf field: repeated google.protobuf.GeneratedCodeInfo.Annotation annotation = 1 */ annotation: GeneratedCodeInfo_Annotation[]; } @@ -1404,20 +1404,20 @@ export interface GeneratedCodeInfo_Annotation { * Identifies the element in the original source .proto file. This field * is formatted the same as SourceCodeInfo.Location.path. * - * @generated from protobuf field: repeated int32 path = 1 [packed = true]; + * @generated from protobuf field: repeated int32 path = 1 [packed = true] */ path: number[]; /** * Identifies the filesystem path to the original source .proto. * - * @generated from protobuf field: optional string source_file = 2; + * @generated from protobuf field: optional string source_file = 2 */ source_file?: string; /** * Identifies the starting offset in bytes in the generated code * that relates to the identified object. * - * @generated from protobuf field: optional int32 begin = 3; + * @generated from protobuf field: optional int32 begin = 3 */ begin?: number; /** @@ -1425,7 +1425,7 @@ export interface GeneratedCodeInfo_Annotation { * relates to the identified offset. The end offset should be one past * the last relevant byte (so the length of the text = end - begin). * - * @generated from protobuf field: optional int32 end = 4; + * @generated from protobuf field: optional int32 end = 4 */ end?: number; } @@ -2339,10 +2339,10 @@ class MethodDescriptorProto$Type extends MessageType { case /* optional google.protobuf.MethodOptions options */ 4: message.options = MethodOptions.internalBinaryRead(reader, reader.uint32(), options, message.options); break; - case /* optional bool client_streaming */ 5: + case /* optional bool client_streaming = 5 [default = false] */ 5: message.client_streaming = reader.bool(); break; - case /* optional bool server_streaming */ 6: + case /* optional bool server_streaming = 6 [default = false] */ 6: message.server_streaming = reader.bool(); break; default: @@ -2369,10 +2369,10 @@ class MethodDescriptorProto$Type extends MessageType { /* optional google.protobuf.MethodOptions options = 4; */ if (message.options) MethodOptions.internalBinaryWrite(message.options, writer.tag(4, WireType.LengthDelimited).fork(), options).join(); - /* optional bool client_streaming = 5; */ + /* optional bool client_streaming = 5 [default = false]; */ if (message.client_streaming !== undefined) writer.tag(5, WireType.Varint).bool(message.client_streaming); - /* optional bool server_streaming = 6; */ + /* optional bool server_streaming = 6 [default = false]; */ if (message.server_streaming !== undefined) writer.tag(6, WireType.Varint).bool(message.server_streaming); let u = options.writeUnknownFields; @@ -2430,37 +2430,37 @@ class FileOptions$Type extends MessageType { case /* optional string java_outer_classname */ 8: message.java_outer_classname = reader.string(); break; - case /* optional bool java_multiple_files */ 10: + case /* optional bool java_multiple_files = 10 [default = false] */ 10: message.java_multiple_files = reader.bool(); break; - case /* optional bool java_generate_equals_and_hash = 20 [deprecated = true];*/ 20: + case /* optional bool java_generate_equals_and_hash = 20 [deprecated = true] */ 20: message.java_generate_equals_and_hash = reader.bool(); break; - case /* optional bool java_string_check_utf8 */ 27: + case /* optional bool java_string_check_utf8 = 27 [default = false] */ 27: message.java_string_check_utf8 = reader.bool(); break; - case /* optional google.protobuf.FileOptions.OptimizeMode optimize_for */ 9: + case /* optional google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED] */ 9: message.optimize_for = reader.int32(); break; case /* optional string go_package */ 11: message.go_package = reader.string(); break; - case /* optional bool cc_generic_services */ 16: + case /* optional bool cc_generic_services = 16 [default = false] */ 16: message.cc_generic_services = reader.bool(); break; - case /* optional bool java_generic_services */ 17: + case /* optional bool java_generic_services = 17 [default = false] */ 17: message.java_generic_services = reader.bool(); break; - case /* optional bool py_generic_services */ 18: + case /* optional bool py_generic_services = 18 [default = false] */ 18: message.py_generic_services = reader.bool(); break; - case /* optional bool php_generic_services */ 42: + case /* optional bool php_generic_services = 42 [default = false] */ 42: message.php_generic_services = reader.bool(); break; - case /* optional bool deprecated */ 23: + case /* optional bool deprecated = 23 [default = false] */ 23: message.deprecated = reader.bool(); break; - case /* optional bool cc_enable_arenas */ 31: + case /* optional bool cc_enable_arenas = 31 [default = false] */ 31: message.cc_enable_arenas = reader.bool(); break; case /* optional string objc_class_prefix */ 36: @@ -2505,34 +2505,34 @@ class FileOptions$Type extends MessageType { /* optional string java_outer_classname = 8; */ if (message.java_outer_classname !== undefined) writer.tag(8, WireType.LengthDelimited).string(message.java_outer_classname); - /* optional google.protobuf.FileOptions.OptimizeMode optimize_for = 9; */ + /* optional google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; */ if (message.optimize_for !== undefined) writer.tag(9, WireType.Varint).int32(message.optimize_for); - /* optional bool java_multiple_files = 10; */ + /* optional bool java_multiple_files = 10 [default = false]; */ if (message.java_multiple_files !== undefined) writer.tag(10, WireType.Varint).bool(message.java_multiple_files); /* optional string go_package = 11; */ if (message.go_package !== undefined) writer.tag(11, WireType.LengthDelimited).string(message.go_package); - /* optional bool cc_generic_services = 16; */ + /* optional bool cc_generic_services = 16 [default = false]; */ if (message.cc_generic_services !== undefined) writer.tag(16, WireType.Varint).bool(message.cc_generic_services); - /* optional bool java_generic_services = 17; */ + /* optional bool java_generic_services = 17 [default = false]; */ if (message.java_generic_services !== undefined) writer.tag(17, WireType.Varint).bool(message.java_generic_services); - /* optional bool py_generic_services = 18; */ + /* optional bool py_generic_services = 18 [default = false]; */ if (message.py_generic_services !== undefined) writer.tag(18, WireType.Varint).bool(message.py_generic_services); /* optional bool java_generate_equals_and_hash = 20 [deprecated = true]; */ if (message.java_generate_equals_and_hash !== undefined) writer.tag(20, WireType.Varint).bool(message.java_generate_equals_and_hash); - /* optional bool deprecated = 23; */ + /* optional bool deprecated = 23 [default = false]; */ if (message.deprecated !== undefined) writer.tag(23, WireType.Varint).bool(message.deprecated); - /* optional bool java_string_check_utf8 = 27; */ + /* optional bool java_string_check_utf8 = 27 [default = false]; */ if (message.java_string_check_utf8 !== undefined) writer.tag(27, WireType.Varint).bool(message.java_string_check_utf8); - /* optional bool cc_enable_arenas = 31; */ + /* optional bool cc_enable_arenas = 31 [default = false]; */ if (message.cc_enable_arenas !== undefined) writer.tag(31, WireType.Varint).bool(message.cc_enable_arenas); /* optional string objc_class_prefix = 36; */ @@ -2550,7 +2550,7 @@ class FileOptions$Type extends MessageType { /* optional string php_namespace = 41; */ if (message.php_namespace !== undefined) writer.tag(41, WireType.LengthDelimited).string(message.php_namespace); - /* optional bool php_generic_services = 42; */ + /* optional bool php_generic_services = 42 [default = false]; */ if (message.php_generic_services !== undefined) writer.tag(42, WireType.Varint).bool(message.php_generic_services); /* optional string php_metadata_namespace = 44; */ @@ -2595,13 +2595,13 @@ class MessageOptions$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* optional bool message_set_wire_format */ 1: + case /* optional bool message_set_wire_format = 1 [default = false] */ 1: message.message_set_wire_format = reader.bool(); break; - case /* optional bool no_standard_descriptor_accessor */ 2: + case /* optional bool no_standard_descriptor_accessor = 2 [default = false] */ 2: message.no_standard_descriptor_accessor = reader.bool(); break; - case /* optional bool deprecated */ 3: + case /* optional bool deprecated = 3 [default = false] */ 3: message.deprecated = reader.bool(); break; case /* optional bool map_entry */ 7: @@ -2622,13 +2622,13 @@ class MessageOptions$Type extends MessageType { return message; } internalBinaryWrite(message: MessageOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* optional bool message_set_wire_format = 1; */ + /* optional bool message_set_wire_format = 1 [default = false]; */ if (message.message_set_wire_format !== undefined) writer.tag(1, WireType.Varint).bool(message.message_set_wire_format); - /* optional bool no_standard_descriptor_accessor = 2; */ + /* optional bool no_standard_descriptor_accessor = 2 [default = false]; */ if (message.no_standard_descriptor_accessor !== undefined) writer.tag(2, WireType.Varint).bool(message.no_standard_descriptor_accessor); - /* optional bool deprecated = 3; */ + /* optional bool deprecated = 3 [default = false]; */ if (message.deprecated !== undefined) writer.tag(3, WireType.Varint).bool(message.deprecated); /* optional bool map_entry = 7; */ @@ -2672,22 +2672,22 @@ class FieldOptions$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* optional google.protobuf.FieldOptions.CType ctype */ 1: + case /* optional google.protobuf.FieldOptions.CType ctype = 1 [default = STRING] */ 1: message.ctype = reader.int32(); break; case /* optional bool packed */ 2: message.packed = reader.bool(); break; - case /* optional google.protobuf.FieldOptions.JSType jstype */ 6: + case /* optional google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL] */ 6: message.jstype = reader.int32(); break; - case /* optional bool lazy */ 5: + case /* optional bool lazy = 5 [default = false] */ 5: message.lazy = reader.bool(); break; - case /* optional bool deprecated */ 3: + case /* optional bool deprecated = 3 [default = false] */ 3: message.deprecated = reader.bool(); break; - case /* optional bool weak */ 10: + case /* optional bool weak = 10 [default = false] */ 10: message.weak = reader.bool(); break; case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: @@ -2705,22 +2705,22 @@ class FieldOptions$Type extends MessageType { return message; } internalBinaryWrite(message: FieldOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* optional google.protobuf.FieldOptions.CType ctype = 1; */ + /* optional google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; */ if (message.ctype !== undefined) writer.tag(1, WireType.Varint).int32(message.ctype); /* optional bool packed = 2; */ if (message.packed !== undefined) writer.tag(2, WireType.Varint).bool(message.packed); - /* optional bool deprecated = 3; */ + /* optional bool deprecated = 3 [default = false]; */ if (message.deprecated !== undefined) writer.tag(3, WireType.Varint).bool(message.deprecated); - /* optional bool lazy = 5; */ + /* optional bool lazy = 5 [default = false]; */ if (message.lazy !== undefined) writer.tag(5, WireType.Varint).bool(message.lazy); - /* optional google.protobuf.FieldOptions.JSType jstype = 6; */ + /* optional google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL]; */ if (message.jstype !== undefined) writer.tag(6, WireType.Varint).int32(message.jstype); - /* optional bool weak = 10; */ + /* optional bool weak = 10 [default = false]; */ if (message.weak !== undefined) writer.tag(10, WireType.Varint).bool(message.weak); /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ @@ -2807,7 +2807,7 @@ class EnumOptions$Type extends MessageType { case /* optional bool allow_alias */ 2: message.allow_alias = reader.bool(); break; - case /* optional bool deprecated */ 3: + case /* optional bool deprecated = 3 [default = false] */ 3: message.deprecated = reader.bool(); break; case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: @@ -2828,7 +2828,7 @@ class EnumOptions$Type extends MessageType { /* optional bool allow_alias = 2; */ if (message.allow_alias !== undefined) writer.tag(2, WireType.Varint).bool(message.allow_alias); - /* optional bool deprecated = 3; */ + /* optional bool deprecated = 3 [default = false]; */ if (message.deprecated !== undefined) writer.tag(3, WireType.Varint).bool(message.deprecated); /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ @@ -2864,7 +2864,7 @@ class EnumValueOptions$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* optional bool deprecated */ 1: + case /* optional bool deprecated = 1 [default = false] */ 1: message.deprecated = reader.bool(); break; case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: @@ -2882,7 +2882,7 @@ class EnumValueOptions$Type extends MessageType { return message; } internalBinaryWrite(message: EnumValueOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* optional bool deprecated = 1; */ + /* optional bool deprecated = 1 [default = false]; */ if (message.deprecated !== undefined) writer.tag(1, WireType.Varint).bool(message.deprecated); /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ @@ -2918,7 +2918,7 @@ class ServiceOptions$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* optional bool deprecated */ 33: + case /* optional bool deprecated = 33 [default = false] */ 33: message.deprecated = reader.bool(); break; case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: @@ -2936,7 +2936,7 @@ class ServiceOptions$Type extends MessageType { return message; } internalBinaryWrite(message: ServiceOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* optional bool deprecated = 33; */ + /* optional bool deprecated = 33 [default = false]; */ if (message.deprecated !== undefined) writer.tag(33, WireType.Varint).bool(message.deprecated); /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ @@ -2973,10 +2973,10 @@ class MethodOptions$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* optional bool deprecated */ 33: + case /* optional bool deprecated = 33 [default = false] */ 33: message.deprecated = reader.bool(); break; - case /* optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level */ 34: + case /* optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN] */ 34: message.idempotency_level = reader.int32(); break; case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: @@ -2994,10 +2994,10 @@ class MethodOptions$Type extends MessageType { return message; } internalBinaryWrite(message: MethodOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* optional bool deprecated = 33; */ + /* optional bool deprecated = 33 [default = false]; */ if (message.deprecated !== undefined) writer.tag(33, WireType.Varint).bool(message.deprecated); - /* optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34; */ + /* optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN]; */ if (message.idempotency_level !== undefined) writer.tag(34, WireType.Varint).int32(message.idempotency_level); /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ @@ -3123,10 +3123,10 @@ class UninterpretedOption_NamePart$Type extends MessageType while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* repeated int32 path = 1 [packed = true];*/ 1: + case /* repeated int32 path = 1 [packed = true] */ 1: if (wireType === WireType.LengthDelimited) for (let e = reader.int32() + reader.pos; reader.pos < e;) message.path.push(reader.int32()); else message.path.push(reader.int32()); break; - case /* repeated int32 span = 2 [packed = true];*/ 2: + case /* repeated int32 span = 2 [packed = true] */ 2: if (wireType === WireType.LengthDelimited) for (let e = reader.int32() + reader.pos; reader.pos < e;) message.span.push(reader.int32()); @@ -3366,7 +3366,7 @@ class GeneratedCodeInfo_Annotation$Type extends MessageType fields = 1; + * @generated from protobuf field: map fields = 1 */ fields: { [key: string]: Value; @@ -81,6 +81,8 @@ export interface Struct { */ export interface Value { /** + * The kind of value. + * * @generated from protobuf oneof: kind */ kind: { @@ -88,7 +90,7 @@ export interface Value { /** * Represents a null value. * - * @generated from protobuf field: google.protobuf.NullValue null_value = 1; + * @generated from protobuf field: google.protobuf.NullValue null_value = 1 */ null_value: NullValue; } | { @@ -96,7 +98,7 @@ export interface Value { /** * Represents a double value. * - * @generated from protobuf field: double number_value = 2; + * @generated from protobuf field: double number_value = 2 */ number_value: number; } | { @@ -104,7 +106,7 @@ export interface Value { /** * Represents a string value. * - * @generated from protobuf field: string string_value = 3; + * @generated from protobuf field: string string_value = 3 */ string_value: string; } | { @@ -112,7 +114,7 @@ export interface Value { /** * Represents a boolean value. * - * @generated from protobuf field: bool bool_value = 4; + * @generated from protobuf field: bool bool_value = 4 */ bool_value: boolean; } | { @@ -120,7 +122,7 @@ export interface Value { /** * Represents a structured value. * - * @generated from protobuf field: google.protobuf.Struct struct_value = 5; + * @generated from protobuf field: google.protobuf.Struct struct_value = 5 */ struct_value: Struct; } | { @@ -128,7 +130,7 @@ export interface Value { /** * Represents a repeated `Value`. * - * @generated from protobuf field: google.protobuf.ListValue list_value = 6; + * @generated from protobuf field: google.protobuf.ListValue list_value = 6 */ list_value: ListValue; } | { @@ -146,7 +148,7 @@ export interface ListValue { /** * Repeated field of dynamically typed values. * - * @generated from protobuf field: repeated google.protobuf.Value values = 1; + * @generated from protobuf field: repeated google.protobuf.Value values = 1 */ values: Value[]; } @@ -233,7 +235,7 @@ class Struct$Type extends MessageType { case 2: val = Value.internalBinaryRead(reader, reader.uint32(), options); break; - default: throw new globalThis.Error("unknown map entry field for field google.protobuf.Struct.fields"); + default: throw new globalThis.Error("unknown map entry field for google.protobuf.Struct.fields"); } } map[key ?? ""] = val ?? Value.create(); diff --git a/google/protobuf/timestamp.ts b/google/protobuf/timestamp.ts index 7fbda13..a7cfa6b 100644 --- a/google/protobuf/timestamp.ts +++ b/google/protobuf/timestamp.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name +// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name // @generated from protobuf file "google/protobuf/timestamp.proto" (package "google.protobuf", syntax proto3) // tslint:disable // @@ -140,7 +140,7 @@ export interface Timestamp { * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to * 9999-12-31T23:59:59Z inclusive. * - * @generated from protobuf field: int64 seconds = 1; + * @generated from protobuf field: int64 seconds = 1 */ seconds: bigint; /** @@ -149,7 +149,7 @@ export interface Timestamp { * that count forward in time. Must be from 0 to 999,999,999 * inclusive. * - * @generated from protobuf field: int32 nanos = 2; + * @generated from protobuf field: int32 nanos = 2 */ nanos: number; } diff --git a/google/protobuf/type.ts b/google/protobuf/type.ts index 79cce24..db8aa4f 100644 --- a/google/protobuf/type.ts +++ b/google/protobuf/type.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name +// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name // @generated from protobuf file "google/protobuf/type.proto" (package "google.protobuf", syntax proto3) // tslint:disable // @@ -52,37 +52,37 @@ export interface Type { /** * The fully qualified message name. * - * @generated from protobuf field: string name = 1; + * @generated from protobuf field: string name = 1 */ name: string; /** * The list of fields. * - * @generated from protobuf field: repeated google.protobuf.Field fields = 2; + * @generated from protobuf field: repeated google.protobuf.Field fields = 2 */ fields: Field[]; /** * The list of types appearing in `oneof` definitions in this type. * - * @generated from protobuf field: repeated string oneofs = 3; + * @generated from protobuf field: repeated string oneofs = 3 */ oneofs: string[]; /** * The protocol buffer options. * - * @generated from protobuf field: repeated google.protobuf.Option options = 4; + * @generated from protobuf field: repeated google.protobuf.Option options = 4 */ options: Option[]; /** * The source context. * - * @generated from protobuf field: google.protobuf.SourceContext source_context = 5; + * @generated from protobuf field: google.protobuf.SourceContext source_context = 5 */ source_context?: SourceContext; /** * The source syntax. * - * @generated from protobuf field: google.protobuf.Syntax syntax = 6; + * @generated from protobuf field: google.protobuf.Syntax syntax = 6 */ syntax: Syntax; } @@ -95,63 +95,63 @@ export interface Field { /** * The field type. * - * @generated from protobuf field: google.protobuf.Field.Kind kind = 1; + * @generated from protobuf field: google.protobuf.Field.Kind kind = 1 */ kind: Field_Kind; /** * The field cardinality. * - * @generated from protobuf field: google.protobuf.Field.Cardinality cardinality = 2; + * @generated from protobuf field: google.protobuf.Field.Cardinality cardinality = 2 */ cardinality: Field_Cardinality; /** * The field number. * - * @generated from protobuf field: int32 number = 3; + * @generated from protobuf field: int32 number = 3 */ number: number; /** * The field name. * - * @generated from protobuf field: string name = 4; + * @generated from protobuf field: string name = 4 */ name: string; /** * The field type URL, without the scheme, for message or enumeration * types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`. * - * @generated from protobuf field: string type_url = 6; + * @generated from protobuf field: string type_url = 6 */ type_url: string; /** * The index of the field type in `Type.oneofs`, for message or enumeration * types. The first type has index 1; zero means the type is not in the list. * - * @generated from protobuf field: int32 oneof_index = 7; + * @generated from protobuf field: int32 oneof_index = 7 */ oneof_index: number; /** * Whether to use alternative packed wire representation. * - * @generated from protobuf field: bool packed = 8; + * @generated from protobuf field: bool packed = 8 */ packed: boolean; /** * The protocol buffer options. * - * @generated from protobuf field: repeated google.protobuf.Option options = 9; + * @generated from protobuf field: repeated google.protobuf.Option options = 9 */ options: Option[]; /** * The field JSON name. * - * @generated from protobuf field: string json_name = 10; + * @generated from protobuf field: string json_name = 10 */ json_name: string; /** * The string value of the default value of this field. Proto2 syntax only. * - * @generated from protobuf field: string default_value = 11; + * @generated from protobuf field: string default_value = 11 */ default_value: string; } @@ -316,31 +316,31 @@ export interface Enum { /** * Enum type name. * - * @generated from protobuf field: string name = 1; + * @generated from protobuf field: string name = 1 */ name: string; /** * Enum value definitions. * - * @generated from protobuf field: repeated google.protobuf.EnumValue enumvalue = 2; + * @generated from protobuf field: repeated google.protobuf.EnumValue enumvalue = 2 */ enumvalue: EnumValue[]; /** * Protocol buffer options. * - * @generated from protobuf field: repeated google.protobuf.Option options = 3; + * @generated from protobuf field: repeated google.protobuf.Option options = 3 */ options: Option[]; /** * The source context. * - * @generated from protobuf field: google.protobuf.SourceContext source_context = 4; + * @generated from protobuf field: google.protobuf.SourceContext source_context = 4 */ source_context?: SourceContext; /** * The source syntax. * - * @generated from protobuf field: google.protobuf.Syntax syntax = 5; + * @generated from protobuf field: google.protobuf.Syntax syntax = 5 */ syntax: Syntax; } @@ -353,19 +353,19 @@ export interface EnumValue { /** * Enum value name. * - * @generated from protobuf field: string name = 1; + * @generated from protobuf field: string name = 1 */ name: string; /** * Enum value number. * - * @generated from protobuf field: int32 number = 2; + * @generated from protobuf field: int32 number = 2 */ number: number; /** * Protocol buffer options. * - * @generated from protobuf field: repeated google.protobuf.Option options = 3; + * @generated from protobuf field: repeated google.protobuf.Option options = 3 */ options: Option[]; } @@ -382,7 +382,7 @@ export interface Option { * For custom options, it should be the fully-qualified name. For example, * `"google.api.http"`. * - * @generated from protobuf field: string name = 1; + * @generated from protobuf field: string name = 1 */ name: string; /** @@ -391,7 +391,7 @@ export interface Option { * should be used. If the value is an enum, it should be stored as an int32 * value using the google.protobuf.Int32Value type. * - * @generated from protobuf field: google.protobuf.Any value = 2; + * @generated from protobuf field: google.protobuf.Any value = 2 */ value?: Any; } diff --git a/google/protobuf/wrappers.ts b/google/protobuf/wrappers.ts index 7fae099..cb1ec51 100644 --- a/google/protobuf/wrappers.ts +++ b/google/protobuf/wrappers.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name +// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name // @generated from protobuf file "google/protobuf/wrappers.proto" (package "google.protobuf", syntax proto3) // tslint:disable // @@ -68,7 +68,7 @@ export interface DoubleValue { /** * The double value. * - * @generated from protobuf field: double value = 1; + * @generated from protobuf field: double value = 1 */ value: number; } @@ -83,7 +83,7 @@ export interface FloatValue { /** * The float value. * - * @generated from protobuf field: float value = 1; + * @generated from protobuf field: float value = 1 */ value: number; } @@ -98,7 +98,7 @@ export interface Int64Value { /** * The int64 value. * - * @generated from protobuf field: int64 value = 1; + * @generated from protobuf field: int64 value = 1 */ value: bigint; } @@ -113,7 +113,7 @@ export interface UInt64Value { /** * The uint64 value. * - * @generated from protobuf field: uint64 value = 1; + * @generated from protobuf field: uint64 value = 1 */ value: bigint; } @@ -128,7 +128,7 @@ export interface Int32Value { /** * The int32 value. * - * @generated from protobuf field: int32 value = 1; + * @generated from protobuf field: int32 value = 1 */ value: number; } @@ -143,7 +143,7 @@ export interface UInt32Value { /** * The uint32 value. * - * @generated from protobuf field: uint32 value = 1; + * @generated from protobuf field: uint32 value = 1 */ value: number; } @@ -158,7 +158,7 @@ export interface BoolValue { /** * The bool value. * - * @generated from protobuf field: bool value = 1; + * @generated from protobuf field: bool value = 1 */ value: boolean; } @@ -173,7 +173,7 @@ export interface StringValue { /** * The string value. * - * @generated from protobuf field: string value = 1; + * @generated from protobuf field: string value = 1 */ value: string; } @@ -188,7 +188,7 @@ export interface BytesValue { /** * The bytes value. * - * @generated from protobuf field: bytes value = 1; + * @generated from protobuf field: bytes value = 1 */ value: Uint8Array; } diff --git a/google/rpc/code.ts b/google/rpc/code.ts index 583bbd8..def4eec 100644 --- a/google/rpc/code.ts +++ b/google/rpc/code.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name +// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name // @generated from protobuf file "google/rpc/code.proto" (package "google.rpc", syntax proto3) // tslint:disable // diff --git a/google/rpc/error_details.ts b/google/rpc/error_details.ts index aad8f5b..d60a3e1 100644 --- a/google/rpc/error_details.ts +++ b/google/rpc/error_details.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name +// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name // @generated from protobuf file "google/rpc/error_details.proto" (package "google.rpc", syntax proto3) // tslint:disable // @@ -47,7 +47,7 @@ export interface RetryInfo { /** * Clients should wait at least this long between retrying the same request. * - * @generated from protobuf field: google.protobuf.Duration retry_delay = 1; + * @generated from protobuf field: google.protobuf.Duration retry_delay = 1 */ retry_delay?: Duration; } @@ -60,13 +60,13 @@ export interface DebugInfo { /** * The stack trace entries indicating where the error occurred. * - * @generated from protobuf field: repeated string stack_entries = 1; + * @generated from protobuf field: repeated string stack_entries = 1 */ stack_entries: string[]; /** * Additional debugging information provided by the server. * - * @generated from protobuf field: string detail = 2; + * @generated from protobuf field: string detail = 2 */ detail: string; } @@ -89,7 +89,7 @@ export interface QuotaFailure { /** * Describes all quota violations. * - * @generated from protobuf field: repeated google.rpc.QuotaFailure.Violation violations = 1; + * @generated from protobuf field: repeated google.rpc.QuotaFailure.Violation violations = 1 */ violations: QuotaFailure_Violation[]; } @@ -105,7 +105,7 @@ export interface QuotaFailure_Violation { * For example, "clientip:" or "project:". * - * @generated from protobuf field: string subject = 1; + * @generated from protobuf field: string subject = 1 */ subject: string; /** @@ -117,7 +117,7 @@ export interface QuotaFailure_Violation { * For example: "Service disabled" or "Daily Limit for read operations * exceeded". * - * @generated from protobuf field: string description = 2; + * @generated from protobuf field: string description = 2 */ description: string; } @@ -134,7 +134,7 @@ export interface PreconditionFailure { /** * Describes all precondition violations. * - * @generated from protobuf field: repeated google.rpc.PreconditionFailure.Violation violations = 1; + * @generated from protobuf field: repeated google.rpc.PreconditionFailure.Violation violations = 1 */ violations: PreconditionFailure_Violation[]; } @@ -149,7 +149,7 @@ export interface PreconditionFailure_Violation { * enum type to define the supported precondition violation types. For * example, "TOS" for "Terms of Service violation". * - * @generated from protobuf field: string type = 1; + * @generated from protobuf field: string type = 1 */ type: string; /** @@ -157,7 +157,7 @@ export interface PreconditionFailure_Violation { * For example, "google.com/cloud" relative to the "TOS" type would * indicate which terms of service is being referenced. * - * @generated from protobuf field: string subject = 2; + * @generated from protobuf field: string subject = 2 */ subject: string; /** @@ -166,7 +166,7 @@ export interface PreconditionFailure_Violation { * * For example: "Terms of service not accepted". * - * @generated from protobuf field: string description = 3; + * @generated from protobuf field: string description = 3 */ description: string; } @@ -180,7 +180,7 @@ export interface BadRequest { /** * Describes all violations in a client request. * - * @generated from protobuf field: repeated google.rpc.BadRequest.FieldViolation field_violations = 1; + * @generated from protobuf field: repeated google.rpc.BadRequest.FieldViolation field_violations = 1 */ field_violations: BadRequest_FieldViolation[]; } @@ -195,13 +195,13 @@ export interface BadRequest_FieldViolation { * sequence of dot-separated identifiers that identify a protocol buffer * field. E.g., "field_violations.field" would identify this field. * - * @generated from protobuf field: string field = 1; + * @generated from protobuf field: string field = 1 */ field: string; /** * A description of why the request element is bad. * - * @generated from protobuf field: string description = 2; + * @generated from protobuf field: string description = 2 */ description: string; } @@ -216,14 +216,14 @@ export interface RequestInfo { * An opaque string that should only be interpreted by the service generating * it. For example, it can be used to identify requests in the service's logs. * - * @generated from protobuf field: string request_id = 1; + * @generated from protobuf field: string request_id = 1 */ request_id: string; /** * Any data that was used to serve this request. For example, an encrypted * stack trace that can be sent back to the service provider for debugging. * - * @generated from protobuf field: string serving_data = 2; + * @generated from protobuf field: string serving_data = 2 */ serving_data: string; } @@ -238,7 +238,7 @@ export interface ResourceInfo { * "cloud storage bucket", "file", "Google calendar"; or the type URL * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic". * - * @generated from protobuf field: string resource_type = 1; + * @generated from protobuf field: string resource_type = 1 */ resource_type: string; /** @@ -246,7 +246,7 @@ export interface ResourceInfo { * name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current * error is [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED]. * - * @generated from protobuf field: string resource_name = 2; + * @generated from protobuf field: string resource_name = 2 */ resource_name: string; /** @@ -254,7 +254,7 @@ export interface ResourceInfo { * For example, "user:" or "project:". * - * @generated from protobuf field: string owner = 3; + * @generated from protobuf field: string owner = 3 */ owner: string; /** @@ -262,7 +262,7 @@ export interface ResourceInfo { * For example, updating a cloud project may require the `writer` permission * on the developer console project. * - * @generated from protobuf field: string description = 4; + * @generated from protobuf field: string description = 4 */ description: string; } @@ -279,7 +279,7 @@ export interface Help { /** * URL(s) pointing to additional information on handling the current error. * - * @generated from protobuf field: repeated google.rpc.Help.Link links = 1; + * @generated from protobuf field: repeated google.rpc.Help.Link links = 1 */ links: Help_Link[]; } @@ -292,13 +292,13 @@ export interface Help_Link { /** * Describes what the link offers. * - * @generated from protobuf field: string description = 1; + * @generated from protobuf field: string description = 1 */ description: string; /** * The URL of the link. * - * @generated from protobuf field: string url = 2; + * @generated from protobuf field: string url = 2 */ url: string; } @@ -314,13 +314,13 @@ export interface LocalizedMessage { * http://www.rfc-editor.org/rfc/bcp/bcp47.txt. * Examples are: "en-US", "fr-CH", "es-MX" * - * @generated from protobuf field: string locale = 1; + * @generated from protobuf field: string locale = 1 */ locale: string; /** * The localized error message in the above locale. * - * @generated from protobuf field: string message = 2; + * @generated from protobuf field: string message = 2 */ message: string; } diff --git a/google/rpc/status.ts b/google/rpc/status.ts index 18071ab..324d1a4 100644 --- a/google/rpc/status.ts +++ b/google/rpc/status.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name +// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name // @generated from protobuf file "google/rpc/status.proto" (package "google.rpc", syntax proto3) // tslint:disable // @@ -86,7 +86,7 @@ export interface Status { /** * The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]. * - * @generated from protobuf field: int32 code = 1; + * @generated from protobuf field: int32 code = 1 */ code: number; /** @@ -94,14 +94,14 @@ export interface Status { * user-facing error message should be localized and sent in the * [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client. * - * @generated from protobuf field: string message = 2; + * @generated from protobuf field: string message = 2 */ message: string; /** * A list of messages that carry the error details. There is a common set of * message types for APIs to use. * - * @generated from protobuf field: repeated google.protobuf.Any details = 3; + * @generated from protobuf field: repeated google.protobuf.Any details = 3 */ details: Any[]; } diff --git a/openapiv2.ts b/openapiv2.ts index 184272b..902733b 100644 --- a/openapiv2.ts +++ b/openapiv2.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name +// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name // @generated from protobuf file "openapiv2.proto" (package "grpc.gateway.protoc_gen_openapiv2.options", syntax proto3) // tslint:disable import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; @@ -47,14 +47,14 @@ export interface Swagger { * used by the OpenAPI UI and other clients to interpret the API listing. The * value MUST be "2.0". * - * @generated from protobuf field: string swagger = 1; + * @generated from protobuf field: string swagger = 1 */ swagger: string; /** * Provides metadata about the API. The metadata can be used by the * clients if needed. * - * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; + * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.Info info = 2 */ info?: Info; /** @@ -63,7 +63,7 @@ export interface Swagger { * not included, the host serving the documentation is to be used (including * the port). The host does not support path templating. * - * @generated from protobuf field: string host = 3; + * @generated from protobuf field: string host = 3 */ host: string; /** @@ -77,7 +77,7 @@ export interface Swagger { * manually removed from your `google.api.http` paths and your code changed to * serve the API from the `base_path`. * - * @generated from protobuf field: string base_path = 4; + * @generated from protobuf field: string base_path = 4 */ base_path: string; /** @@ -85,7 +85,7 @@ export interface Swagger { * "https", "ws", "wss". If the schemes is not included, the default scheme to * be used is the one used to access the OpenAPI definition itself. * - * @generated from protobuf field: repeated grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; + * @generated from protobuf field: repeated grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5 */ schemes: Scheme[]; /** @@ -93,7 +93,7 @@ export interface Swagger { * can be overridden on specific API calls. Value MUST be as described under * Mime Types. * - * @generated from protobuf field: repeated string consumes = 6; + * @generated from protobuf field: repeated string consumes = 6 */ consumes: string[]; /** @@ -101,14 +101,14 @@ export interface Swagger { * can be overridden on specific API calls. Value MUST be as described under * Mime Types. * - * @generated from protobuf field: repeated string produces = 7; + * @generated from protobuf field: repeated string produces = 7 */ produces: string[]; /** * An object to hold responses that can be used across operations. This * property does not define global responses for all operations. * - * @generated from protobuf field: map responses = 10; + * @generated from protobuf field: map responses = 10 */ responses: { [key: string]: Response; @@ -116,7 +116,7 @@ export interface Swagger { /** * Security scheme definitions that can be used across the specification. * - * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11; + * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11 */ security_definitions?: SecurityDefinitions; /** @@ -125,17 +125,17 @@ export interface Swagger { * (that is, there is a logical OR between the security requirements). * Individual operations can override this definition. * - * @generated from protobuf field: repeated grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; + * @generated from protobuf field: repeated grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12 */ security: SecurityRequirement[]; /** * Additional external documentation. * - * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14; + * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14 */ external_docs?: ExternalDocumentation; /** - * @generated from protobuf field: map extensions = 15; + * @generated from protobuf field: map extensions = 15 */ extensions: { [key: string]: Value; @@ -175,27 +175,27 @@ export interface Operation { * A list of tags for API documentation control. Tags can be used for logical * grouping of operations by resources or any other qualifier. * - * @generated from protobuf field: repeated string tags = 1; + * @generated from protobuf field: repeated string tags = 1 */ tags: string[]; /** * A short summary of what the operation does. For maximum readability in the * swagger-ui, this field SHOULD be less than 120 characters. * - * @generated from protobuf field: string summary = 2; + * @generated from protobuf field: string summary = 2 */ summary: string; /** * A verbose explanation of the operation behavior. GFM syntax can be used for * rich text representation. * - * @generated from protobuf field: string description = 3; + * @generated from protobuf field: string description = 3 */ description: string; /** * Additional external documentation for this operation. * - * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; + * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4 */ external_docs?: ExternalDocumentation; /** @@ -204,7 +204,7 @@ export interface Operation { * operationId to uniquely identify an operation, therefore, it is recommended * to follow common programming naming conventions. * - * @generated from protobuf field: string operation_id = 5; + * @generated from protobuf field: string operation_id = 5 */ operation_id: string; /** @@ -212,7 +212,7 @@ export interface Operation { * definition at the OpenAPI Object. An empty value MAY be used to clear the * global definition. Value MUST be as described under Mime Types. * - * @generated from protobuf field: repeated string consumes = 6; + * @generated from protobuf field: repeated string consumes = 6 */ consumes: string[]; /** @@ -220,14 +220,14 @@ export interface Operation { * definition at the OpenAPI Object. An empty value MAY be used to clear the * global definition. Value MUST be as described under Mime Types. * - * @generated from protobuf field: repeated string produces = 7; + * @generated from protobuf field: repeated string produces = 7 */ produces: string[]; /** * The list of possible responses as they are returned from executing this * operation. * - * @generated from protobuf field: map responses = 9; + * @generated from protobuf field: map responses = 9 */ responses: { [key: string]: Response; @@ -237,14 +237,14 @@ export interface Operation { * "http", "https", "ws", "wss". The value overrides the OpenAPI Object * schemes definition. * - * @generated from protobuf field: repeated grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10; + * @generated from protobuf field: repeated grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10 */ schemes: Scheme[]; /** * Declares this operation to be deprecated. Usage of the declared operation * should be refrained. Default value is false. * - * @generated from protobuf field: bool deprecated = 11; + * @generated from protobuf field: bool deprecated = 11 */ deprecated: boolean; /** @@ -254,11 +254,11 @@ export interface Operation { * definition overrides any declared top-level security. To remove a top-level * security declaration, an empty array can be used. * - * @generated from protobuf field: repeated grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; + * @generated from protobuf field: repeated grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12 */ security: SecurityRequirement[]; /** - * @generated from protobuf field: map extensions = 13; + * @generated from protobuf field: map extensions = 13 */ extensions: { [key: string]: Value; @@ -276,19 +276,19 @@ export interface Header { /** * `Description` is a short description of the header. * - * @generated from protobuf field: string description = 1; + * @generated from protobuf field: string description = 1 */ description: string; /** * The type of the object. The value MUST be one of "string", "number", "integer", or "boolean". The "array" type is not supported. * - * @generated from protobuf field: string type = 2; + * @generated from protobuf field: string type = 2 */ type: string; /** * `Format` The extending format for the previously mentioned type. * - * @generated from protobuf field: string format = 3; + * @generated from protobuf field: string format = 3 */ format: string; /** @@ -296,13 +296,13 @@ export interface Header { * See: https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-6.2. * Unlike JSON Schema this value MUST conform to the defined type for the header. * - * @generated from protobuf field: string default = 6; + * @generated from protobuf field: string default = 6 */ default: string; /** * 'Pattern' See https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.2.3. * - * @generated from protobuf field: string pattern = 13; + * @generated from protobuf field: string pattern = 13 */ pattern: string; } @@ -319,14 +319,14 @@ export interface Response { * `Description` is a short description of the response. * GFM syntax can be used for rich text representation. * - * @generated from protobuf field: string description = 1; + * @generated from protobuf field: string description = 1 */ description: string; /** * `Schema` optionally defines the structure of the response. * If `Schema` is not provided, it means there is no content to the response. * - * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2; + * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2 */ schema?: Schema; /** @@ -334,7 +334,7 @@ export interface Response { * `Header` name is expected to be a string in the canonical format of the MIME header key * See: https://golang.org/pkg/net/textproto/#CanonicalMIMEHeaderKey * - * @generated from protobuf field: map headers = 3; + * @generated from protobuf field: map headers = 3 */ headers: { [key: string]: Header; @@ -343,13 +343,13 @@ export interface Response { * `Examples` gives per-mimetype response examples. * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#example-object * - * @generated from protobuf field: map examples = 4; + * @generated from protobuf field: map examples = 4 */ examples: { [key: string]: string; }; /** - * @generated from protobuf field: map extensions = 5; + * @generated from protobuf field: map extensions = 5 */ extensions: { [key: string]: Value; @@ -387,43 +387,43 @@ export interface Info { /** * The title of the application. * - * @generated from protobuf field: string title = 1; + * @generated from protobuf field: string title = 1 */ title: string; /** * A short description of the application. GFM syntax can be used for rich * text representation. * - * @generated from protobuf field: string description = 2; + * @generated from protobuf field: string description = 2 */ description: string; /** * The Terms of Service for the API. * - * @generated from protobuf field: string terms_of_service = 3; + * @generated from protobuf field: string terms_of_service = 3 */ terms_of_service: string; /** * The contact information for the exposed API. * - * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; + * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4 */ contact?: Contact; /** * The license information for the exposed API. * - * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.License license = 5; + * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.License license = 5 */ license?: License; /** * Provides the version of the application API (not to be confused * with the specification version). * - * @generated from protobuf field: string version = 6; + * @generated from protobuf field: string version = 6 */ version: string; /** - * @generated from protobuf field: map extensions = 7; + * @generated from protobuf field: map extensions = 7 */ extensions: { [key: string]: Value; @@ -456,21 +456,21 @@ export interface Contact { /** * The identifying name of the contact person/organization. * - * @generated from protobuf field: string name = 1; + * @generated from protobuf field: string name = 1 */ name: string; /** * The URL pointing to the contact information. MUST be in the format of a * URL. * - * @generated from protobuf field: string url = 2; + * @generated from protobuf field: string url = 2 */ url: string; /** * The email address of the contact person/organization. MUST be in the format * of an email address. * - * @generated from protobuf field: string email = 3; + * @generated from protobuf field: string email = 3 */ email: string; } @@ -500,13 +500,13 @@ export interface License { /** * The license name used for the API. * - * @generated from protobuf field: string name = 1; + * @generated from protobuf field: string name = 1 */ name: string; /** * A URL to the license used for the API. MUST be in the format of a URL. * - * @generated from protobuf field: string url = 2; + * @generated from protobuf field: string url = 2 */ url: string; } @@ -535,14 +535,14 @@ export interface ExternalDocumentation { * A short description of the target documentation. GFM syntax can be used for * rich text representation. * - * @generated from protobuf field: string description = 1; + * @generated from protobuf field: string description = 1 */ description: string; /** * The URL for the target documentation. Value MUST be in the format * of a URL. * - * @generated from protobuf field: string url = 2; + * @generated from protobuf field: string url = 2 */ url: string; } @@ -556,7 +556,7 @@ export interface ExternalDocumentation { */ export interface Schema { /** - * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; + * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1 */ json_schema?: JSONSchema; /** @@ -566,7 +566,7 @@ export interface Schema { * be in the required property list. When used, the value MUST be the name of * this schema or any schema that inherits it. * - * @generated from protobuf field: string discriminator = 2; + * @generated from protobuf field: string discriminator = 2 */ discriminator: string; /** @@ -576,20 +576,20 @@ export interface Schema { * true SHOULD NOT be in the required list of the defined schema. Default * value is false. * - * @generated from protobuf field: bool read_only = 3; + * @generated from protobuf field: bool read_only = 3 */ read_only: boolean; /** * Additional external documentation for this schema. * - * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5; + * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5 */ external_docs?: ExternalDocumentation; /** * A free-form property to include an example of an instance for this schema in JSON. * This is copied verbatim to the output. * - * @generated from protobuf field: string example = 6; + * @generated from protobuf field: string example = 6 */ example: string; } @@ -635,27 +635,27 @@ export interface JSONSchema { * For example: * `ref: ".google.protobuf.Timestamp"`. * - * @generated from protobuf field: string ref = 3; + * @generated from protobuf field: string ref = 3 */ ref: string; /** * The title of the schema. * - * @generated from protobuf field: string title = 5; + * @generated from protobuf field: string title = 5 */ title: string; /** * A short description of the schema. * - * @generated from protobuf field: string description = 6; + * @generated from protobuf field: string description = 6 */ description: string; /** - * @generated from protobuf field: string default = 7; + * @generated from protobuf field: string default = 7 */ default: string; /** - * @generated from protobuf field: bool read_only = 8; + * @generated from protobuf field: bool read_only = 8 */ read_only: boolean; /** @@ -663,91 +663,91 @@ export interface JSONSchema { * verbatim to the output swagger.json. Quotes must be escaped. * This property is the same for 2.0 and 3.0.0 https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/3.0.0.md#schemaObject https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject * - * @generated from protobuf field: string example = 9; + * @generated from protobuf field: string example = 9 */ example: string; /** - * @generated from protobuf field: double multiple_of = 10; + * @generated from protobuf field: double multiple_of = 10 */ multiple_of: number; /** * Maximum represents an inclusive upper limit for a numeric instance. The * value of MUST be a number, * - * @generated from protobuf field: double maximum = 11; + * @generated from protobuf field: double maximum = 11 */ maximum: number; /** - * @generated from protobuf field: bool exclusive_maximum = 12; + * @generated from protobuf field: bool exclusive_maximum = 12 */ exclusive_maximum: boolean; /** * minimum represents an inclusive lower limit for a numeric instance. The * value of MUST be a number, * - * @generated from protobuf field: double minimum = 13; + * @generated from protobuf field: double minimum = 13 */ minimum: number; /** - * @generated from protobuf field: bool exclusive_minimum = 14; + * @generated from protobuf field: bool exclusive_minimum = 14 */ exclusive_minimum: boolean; /** - * @generated from protobuf field: uint64 max_length = 15; + * @generated from protobuf field: uint64 max_length = 15 */ max_length: bigint; /** - * @generated from protobuf field: uint64 min_length = 16; + * @generated from protobuf field: uint64 min_length = 16 */ min_length: bigint; /** - * @generated from protobuf field: string pattern = 17; + * @generated from protobuf field: string pattern = 17 */ pattern: string; /** - * @generated from protobuf field: uint64 max_items = 20; + * @generated from protobuf field: uint64 max_items = 20 */ max_items: bigint; /** - * @generated from protobuf field: uint64 min_items = 21; + * @generated from protobuf field: uint64 min_items = 21 */ min_items: bigint; /** - * @generated from protobuf field: bool unique_items = 22; + * @generated from protobuf field: bool unique_items = 22 */ unique_items: boolean; /** - * @generated from protobuf field: uint64 max_properties = 24; + * @generated from protobuf field: uint64 max_properties = 24 */ max_properties: bigint; /** - * @generated from protobuf field: uint64 min_properties = 25; + * @generated from protobuf field: uint64 min_properties = 25 */ min_properties: bigint; /** - * @generated from protobuf field: repeated string required = 26; + * @generated from protobuf field: repeated string required = 26 */ required: string[]; /** * Items in 'array' must be unique. * - * @generated from protobuf field: repeated string array = 34; + * @generated from protobuf field: repeated string array = 34 */ array: string[]; /** - * @generated from protobuf field: repeated grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; + * @generated from protobuf field: repeated grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35 */ type: JSONSchema_JSONSchemaSimpleTypes[]; /** * `Format` * - * @generated from protobuf field: string format = 36; + * @generated from protobuf field: string format = 36 */ format: string; /** * Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1 * - * @generated from protobuf field: repeated string enum = 46; + * @generated from protobuf field: repeated string enum = 46 */ enum: string[]; } @@ -801,13 +801,13 @@ export interface Tag { * A short description for the tag. GFM syntax can be used for rich text * representation. * - * @generated from protobuf field: string description = 2; + * @generated from protobuf field: string description = 2 */ description: string; /** * Additional external documentation for this tag. * - * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; + * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3 */ external_docs?: ExternalDocumentation; } @@ -828,7 +828,7 @@ export interface SecurityDefinitions { * A single security scheme definition, mapping a "name" to the scheme it * defines. * - * @generated from protobuf field: map security = 1; + * @generated from protobuf field: map security = 1 */ security: { [key: string]: SecurityScheme; @@ -852,20 +852,20 @@ export interface SecurityScheme { * The type of the security scheme. Valid values are "basic", * "apiKey" or "oauth2". * - * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type type = 1; + * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type type = 1 */ type: SecurityScheme_Type; /** * A short description for security scheme. * - * @generated from protobuf field: string description = 2; + * @generated from protobuf field: string description = 2 */ description: string; /** * The name of the header or query parameter to be used. * Valid for apiKey. * - * @generated from protobuf field: string name = 3; + * @generated from protobuf field: string name = 3 */ name: string; /** @@ -873,7 +873,7 @@ export interface SecurityScheme { * "header". * Valid for apiKey. * - * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In in = 4; + * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In in = 4 */ in: SecurityScheme_In; /** @@ -881,7 +881,7 @@ export interface SecurityScheme { * "implicit", "password", "application" or "accessCode". * Valid for oauth2. * - * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow flow = 5; + * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow flow = 5 */ flow: SecurityScheme_Flow; /** @@ -889,7 +889,7 @@ export interface SecurityScheme { * the form of a URL. * Valid for oauth2/implicit and oauth2/accessCode. * - * @generated from protobuf field: string authorization_url = 6; + * @generated from protobuf field: string authorization_url = 6 */ authorization_url: string; /** @@ -897,18 +897,18 @@ export interface SecurityScheme { * form of a URL. * Valid for oauth2/password, oauth2/application and oauth2/accessCode. * - * @generated from protobuf field: string token_url = 7; + * @generated from protobuf field: string token_url = 7 */ token_url: string; /** * The available scopes for the OAuth2 security scheme. * Valid for oauth2. * - * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8; + * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8 */ scopes?: Scopes; /** - * @generated from protobuf field: map extensions = 9; + * @generated from protobuf field: map extensions = 9 */ extensions: { [key: string]: Value; @@ -1007,7 +1007,7 @@ export interface SecurityRequirement { * then the value is a list of scope names required for the execution. * For other security scheme types, the array MUST be empty. * - * @generated from protobuf field: map security_requirement = 1; + * @generated from protobuf field: map security_requirement = 1 */ security_requirement: { [key: string]: SecurityRequirement_SecurityRequirementValue; @@ -1022,7 +1022,7 @@ export interface SecurityRequirement { */ export interface SecurityRequirement_SecurityRequirementValue { /** - * @generated from protobuf field: repeated string scope = 1; + * @generated from protobuf field: repeated string scope = 1 */ scope: string[]; } @@ -1040,7 +1040,7 @@ export interface Scopes { * Maps between a name of a scope to a short description of it (as the value * of the property). * - * @generated from protobuf field: map scope = 1; + * @generated from protobuf field: map scope = 1 */ scope: { [key: string]: string; @@ -1174,7 +1174,7 @@ class Swagger$Type extends MessageType { case 2: val = Response.internalBinaryRead(reader, reader.uint32(), options); break; - default: throw new globalThis.Error("unknown map entry field for field grpc.gateway.protoc_gen_openapiv2.options.Swagger.responses"); + default: throw new globalThis.Error("unknown map entry field for grpc.gateway.protoc_gen_openapiv2.options.Swagger.responses"); } } map[key ?? ""] = val ?? Response.create(); @@ -1190,7 +1190,7 @@ class Swagger$Type extends MessageType { case 2: val = Value.internalBinaryRead(reader, reader.uint32(), options); break; - default: throw new globalThis.Error("unknown map entry field for field grpc.gateway.protoc_gen_openapiv2.options.Swagger.extensions"); + default: throw new globalThis.Error("unknown map entry field for grpc.gateway.protoc_gen_openapiv2.options.Swagger.extensions"); } } map[key ?? ""] = val ?? Value.create(); @@ -1356,7 +1356,7 @@ class Operation$Type extends MessageType { case 2: val = Response.internalBinaryRead(reader, reader.uint32(), options); break; - default: throw new globalThis.Error("unknown map entry field for field grpc.gateway.protoc_gen_openapiv2.options.Operation.responses"); + default: throw new globalThis.Error("unknown map entry field for grpc.gateway.protoc_gen_openapiv2.options.Operation.responses"); } } map[key ?? ""] = val ?? Response.create(); @@ -1372,7 +1372,7 @@ class Operation$Type extends MessageType { case 2: val = Value.internalBinaryRead(reader, reader.uint32(), options); break; - default: throw new globalThis.Error("unknown map entry field for field grpc.gateway.protoc_gen_openapiv2.options.Operation.extensions"); + default: throw new globalThis.Error("unknown map entry field for grpc.gateway.protoc_gen_openapiv2.options.Operation.extensions"); } } map[key ?? ""] = val ?? Value.create(); @@ -1578,7 +1578,7 @@ class Response$Type extends MessageType { case 2: val = Header.internalBinaryRead(reader, reader.uint32(), options); break; - default: throw new globalThis.Error("unknown map entry field for field grpc.gateway.protoc_gen_openapiv2.options.Response.headers"); + default: throw new globalThis.Error("unknown map entry field for grpc.gateway.protoc_gen_openapiv2.options.Response.headers"); } } map[key ?? ""] = val ?? Header.create(); @@ -1594,7 +1594,7 @@ class Response$Type extends MessageType { case 2: val = reader.string(); break; - default: throw new globalThis.Error("unknown map entry field for field grpc.gateway.protoc_gen_openapiv2.options.Response.examples"); + default: throw new globalThis.Error("unknown map entry field for grpc.gateway.protoc_gen_openapiv2.options.Response.examples"); } } map[key ?? ""] = val ?? ""; @@ -1610,7 +1610,7 @@ class Response$Type extends MessageType { case 2: val = Value.internalBinaryRead(reader, reader.uint32(), options); break; - default: throw new globalThis.Error("unknown map entry field for field grpc.gateway.protoc_gen_openapiv2.options.Response.extensions"); + default: throw new globalThis.Error("unknown map entry field for grpc.gateway.protoc_gen_openapiv2.options.Response.extensions"); } } map[key ?? ""] = val ?? Value.create(); @@ -1721,7 +1721,7 @@ class Info$Type extends MessageType { case 2: val = Value.internalBinaryRead(reader, reader.uint32(), options); break; - default: throw new globalThis.Error("unknown map entry field for field grpc.gateway.protoc_gen_openapiv2.options.Info.extensions"); + default: throw new globalThis.Error("unknown map entry field for grpc.gateway.protoc_gen_openapiv2.options.Info.extensions"); } } map[key ?? ""] = val ?? Value.create(); @@ -2349,7 +2349,7 @@ class SecurityDefinitions$Type extends MessageType { case 2: val = SecurityScheme.internalBinaryRead(reader, reader.uint32(), options); break; - default: throw new globalThis.Error("unknown map entry field for field grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions.security"); + default: throw new globalThis.Error("unknown map entry field for grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions.security"); } } map[key ?? ""] = val ?? SecurityScheme.create(); @@ -2455,7 +2455,7 @@ class SecurityScheme$Type extends MessageType { case 2: val = Value.internalBinaryRead(reader, reader.uint32(), options); break; - default: throw new globalThis.Error("unknown map entry field for field grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.extensions"); + default: throw new globalThis.Error("unknown map entry field for grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.extensions"); } } map[key ?? ""] = val ?? Value.create(); @@ -2546,7 +2546,7 @@ class SecurityRequirement$Type extends MessageType { case 2: val = SecurityRequirement_SecurityRequirementValue.internalBinaryRead(reader, reader.uint32(), options); break; - default: throw new globalThis.Error("unknown map entry field for field grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.security_requirement"); + default: throw new globalThis.Error("unknown map entry field for grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.security_requirement"); } } map[key ?? ""] = val ?? SecurityRequirement_SecurityRequirementValue.create(); @@ -2660,7 +2660,7 @@ class Scopes$Type extends MessageType { case 2: val = reader.string(); break; - default: throw new globalThis.Error("unknown map entry field for field grpc.gateway.protoc_gen_openapiv2.options.Scopes.scope"); + default: throw new globalThis.Error("unknown map entry field for grpc.gateway.protoc_gen_openapiv2.options.Scopes.scope"); } } map[key ?? ""] = val ?? ""; diff --git a/package.json b/package.json index 9722929..3c54d7e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reflex-platform/npm-viz-sdk", - "version": "1.11.0-SNAPSHOT-250506111645", + "version": "1.11.0-SNAPSHOT-250613134139", "description": "npm libs from visibility model proto files", "homepage": "", "main": "index.ts", diff --git a/validate.ts b/validate.ts index 57b8b50..061ad90 100644 --- a/validate.ts +++ b/validate.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name +// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name // @generated from protobuf file "validate.proto" (package "validate", syntax proto2) // tslint:disable import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; @@ -20,7 +20,7 @@ import { Duration } from "./google/protobuf/duration"; */ export interface FieldRules { /** - * @generated from protobuf field: optional validate.MessageRules message = 17; + * @generated from protobuf field: optional validate.MessageRules message = 17 */ message?: MessageRules; /** @@ -31,91 +31,91 @@ export interface FieldRules { /** * Scalar Field Types * - * @generated from protobuf field: validate.FloatRules float = 1; + * @generated from protobuf field: validate.FloatRules float = 1 */ float: FloatRules; } | { oneofKind: "double"; /** - * @generated from protobuf field: validate.DoubleRules double = 2; + * @generated from protobuf field: validate.DoubleRules double = 2 */ double: DoubleRules; } | { oneofKind: "int32"; /** - * @generated from protobuf field: validate.Int32Rules int32 = 3; + * @generated from protobuf field: validate.Int32Rules int32 = 3 */ int32: Int32Rules; } | { oneofKind: "int64"; /** - * @generated from protobuf field: validate.Int64Rules int64 = 4; + * @generated from protobuf field: validate.Int64Rules int64 = 4 */ int64: Int64Rules; } | { oneofKind: "uint32"; /** - * @generated from protobuf field: validate.UInt32Rules uint32 = 5; + * @generated from protobuf field: validate.UInt32Rules uint32 = 5 */ uint32: UInt32Rules; } | { oneofKind: "uint64"; /** - * @generated from protobuf field: validate.UInt64Rules uint64 = 6; + * @generated from protobuf field: validate.UInt64Rules uint64 = 6 */ uint64: UInt64Rules; } | { oneofKind: "sint32"; /** - * @generated from protobuf field: validate.SInt32Rules sint32 = 7; + * @generated from protobuf field: validate.SInt32Rules sint32 = 7 */ sint32: SInt32Rules; } | { oneofKind: "sint64"; /** - * @generated from protobuf field: validate.SInt64Rules sint64 = 8; + * @generated from protobuf field: validate.SInt64Rules sint64 = 8 */ sint64: SInt64Rules; } | { oneofKind: "fixed32"; /** - * @generated from protobuf field: validate.Fixed32Rules fixed32 = 9; + * @generated from protobuf field: validate.Fixed32Rules fixed32 = 9 */ fixed32: Fixed32Rules; } | { oneofKind: "fixed64"; /** - * @generated from protobuf field: validate.Fixed64Rules fixed64 = 10; + * @generated from protobuf field: validate.Fixed64Rules fixed64 = 10 */ fixed64: Fixed64Rules; } | { oneofKind: "sfixed32"; /** - * @generated from protobuf field: validate.SFixed32Rules sfixed32 = 11; + * @generated from protobuf field: validate.SFixed32Rules sfixed32 = 11 */ sfixed32: SFixed32Rules; } | { oneofKind: "sfixed64"; /** - * @generated from protobuf field: validate.SFixed64Rules sfixed64 = 12; + * @generated from protobuf field: validate.SFixed64Rules sfixed64 = 12 */ sfixed64: SFixed64Rules; } | { oneofKind: "bool"; /** - * @generated from protobuf field: validate.BoolRules bool = 13; + * @generated from protobuf field: validate.BoolRules bool = 13 */ bool: BoolRules; } | { oneofKind: "string"; /** - * @generated from protobuf field: validate.StringRules string = 14; + * @generated from protobuf field: validate.StringRules string = 14 */ string: StringRules; } | { oneofKind: "bytes"; /** - * @generated from protobuf field: validate.BytesRules bytes = 15; + * @generated from protobuf field: validate.BytesRules bytes = 15 */ bytes: BytesRules; } | { @@ -123,19 +123,19 @@ export interface FieldRules { /** * Complex Field Types * - * @generated from protobuf field: validate.EnumRules enum = 16; + * @generated from protobuf field: validate.EnumRules enum = 16 */ enum: EnumRules; } | { oneofKind: "repeated"; /** - * @generated from protobuf field: validate.RepeatedRules repeated = 18; + * @generated from protobuf field: validate.RepeatedRules repeated = 18 */ repeated: RepeatedRules; } | { oneofKind: "map"; /** - * @generated from protobuf field: validate.MapRules map = 19; + * @generated from protobuf field: validate.MapRules map = 19 */ map: MapRules; } | { @@ -143,19 +143,19 @@ export interface FieldRules { /** * Well-Known Field Types * - * @generated from protobuf field: validate.AnyRules any = 20; + * @generated from protobuf field: validate.AnyRules any = 20 */ any: AnyRules; } | { oneofKind: "duration"; /** - * @generated from protobuf field: validate.DurationRules duration = 21; + * @generated from protobuf field: validate.DurationRules duration = 21 */ duration: DurationRules; } | { oneofKind: "timestamp"; /** - * @generated from protobuf field: validate.TimestampRules timestamp = 22; + * @generated from protobuf field: validate.TimestampRules timestamp = 22 */ timestamp: TimestampRules; } | { @@ -171,21 +171,21 @@ export interface FloatRules { /** * Const specifies that this field must be exactly the specified value * - * @generated from protobuf field: optional float const = 1; + * @generated from protobuf field: optional float const = 1 */ const?: number; /** * Lt specifies that this field must be less than the specified value, * exclusive * - * @generated from protobuf field: optional float lt = 2; + * @generated from protobuf field: optional float lt = 2 */ lt?: number; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * - * @generated from protobuf field: optional float lte = 3; + * @generated from protobuf field: optional float lte = 3 */ lte?: number; /** @@ -193,7 +193,7 @@ export interface FloatRules { * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * - * @generated from protobuf field: optional float gt = 4; + * @generated from protobuf field: optional float gt = 4 */ gt?: number; /** @@ -201,34 +201,34 @@ export interface FloatRules { * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * - * @generated from protobuf field: optional float gte = 5; + * @generated from protobuf field: optional float gte = 5 */ gte?: number; /** * In specifies that this field must be equal to one of the specified * values * - * @generated from protobuf field: repeated float in = 6; + * @generated from protobuf field: repeated float in = 6 */ in: number[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * - * @generated from protobuf field: repeated float not_in = 7; + * @generated from protobuf field: repeated float not_in = 7 */ not_in: number[]; /** * unauthorized specifies that this field cannot be written. * - * @generated from protobuf field: optional bool unauthorized = 8; + * @generated from protobuf field: optional bool unauthorized = 8 */ unauthorized?: boolean; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * - * @generated from protobuf field: optional bool ignore_empty = 9; + * @generated from protobuf field: optional bool ignore_empty = 9 */ ignore_empty?: boolean; } @@ -241,21 +241,21 @@ export interface DoubleRules { /** * Const specifies that this field must be exactly the specified value * - * @generated from protobuf field: optional double const = 1; + * @generated from protobuf field: optional double const = 1 */ const?: number; /** * Lt specifies that this field must be less than the specified value, * exclusive * - * @generated from protobuf field: optional double lt = 2; + * @generated from protobuf field: optional double lt = 2 */ lt?: number; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * - * @generated from protobuf field: optional double lte = 3; + * @generated from protobuf field: optional double lte = 3 */ lte?: number; /** @@ -263,7 +263,7 @@ export interface DoubleRules { * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * - * @generated from protobuf field: optional double gt = 4; + * @generated from protobuf field: optional double gt = 4 */ gt?: number; /** @@ -271,34 +271,34 @@ export interface DoubleRules { * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * - * @generated from protobuf field: optional double gte = 5; + * @generated from protobuf field: optional double gte = 5 */ gte?: number; /** * In specifies that this field must be equal to one of the specified * values * - * @generated from protobuf field: repeated double in = 6; + * @generated from protobuf field: repeated double in = 6 */ in: number[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * - * @generated from protobuf field: repeated double not_in = 7; + * @generated from protobuf field: repeated double not_in = 7 */ not_in: number[]; /** * unauthorized specifies that this field cannot be written. * - * @generated from protobuf field: optional bool unauthorized = 8; + * @generated from protobuf field: optional bool unauthorized = 8 */ unauthorized?: boolean; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * - * @generated from protobuf field: optional bool ignore_empty = 9; + * @generated from protobuf field: optional bool ignore_empty = 9 */ ignore_empty?: boolean; } @@ -311,21 +311,21 @@ export interface Int32Rules { /** * Const specifies that this field must be exactly the specified value * - * @generated from protobuf field: optional int32 const = 1; + * @generated from protobuf field: optional int32 const = 1 */ const?: number; /** * Lt specifies that this field must be less than the specified value, * exclusive * - * @generated from protobuf field: optional int32 lt = 2; + * @generated from protobuf field: optional int32 lt = 2 */ lt?: number; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * - * @generated from protobuf field: optional int32 lte = 3; + * @generated from protobuf field: optional int32 lte = 3 */ lte?: number; /** @@ -333,7 +333,7 @@ export interface Int32Rules { * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * - * @generated from protobuf field: optional int32 gt = 4; + * @generated from protobuf field: optional int32 gt = 4 */ gt?: number; /** @@ -341,34 +341,34 @@ export interface Int32Rules { * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * - * @generated from protobuf field: optional int32 gte = 5; + * @generated from protobuf field: optional int32 gte = 5 */ gte?: number; /** * In specifies that this field must be equal to one of the specified * values * - * @generated from protobuf field: repeated int32 in = 6; + * @generated from protobuf field: repeated int32 in = 6 */ in: number[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * - * @generated from protobuf field: repeated int32 not_in = 7; + * @generated from protobuf field: repeated int32 not_in = 7 */ not_in: number[]; /** * unauthorized specifies that this field cannot be written. * - * @generated from protobuf field: optional bool unauthorized = 8; + * @generated from protobuf field: optional bool unauthorized = 8 */ unauthorized?: boolean; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * - * @generated from protobuf field: optional bool ignore_empty = 9; + * @generated from protobuf field: optional bool ignore_empty = 9 */ ignore_empty?: boolean; } @@ -381,21 +381,21 @@ export interface Int64Rules { /** * Const specifies that this field must be exactly the specified value * - * @generated from protobuf field: optional int64 const = 1; + * @generated from protobuf field: optional int64 const = 1 */ const?: bigint; /** * Lt specifies that this field must be less than the specified value, * exclusive * - * @generated from protobuf field: optional int64 lt = 2; + * @generated from protobuf field: optional int64 lt = 2 */ lt?: bigint; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * - * @generated from protobuf field: optional int64 lte = 3; + * @generated from protobuf field: optional int64 lte = 3 */ lte?: bigint; /** @@ -403,7 +403,7 @@ export interface Int64Rules { * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * - * @generated from protobuf field: optional int64 gt = 4; + * @generated from protobuf field: optional int64 gt = 4 */ gt?: bigint; /** @@ -411,34 +411,34 @@ export interface Int64Rules { * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * - * @generated from protobuf field: optional int64 gte = 5; + * @generated from protobuf field: optional int64 gte = 5 */ gte?: bigint; /** * In specifies that this field must be equal to one of the specified * values * - * @generated from protobuf field: repeated int64 in = 6; + * @generated from protobuf field: repeated int64 in = 6 */ in: bigint[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * - * @generated from protobuf field: repeated int64 not_in = 7; + * @generated from protobuf field: repeated int64 not_in = 7 */ not_in: bigint[]; /** * unauthorized specifies that this field cannot be written. * - * @generated from protobuf field: optional bool unauthorized = 8; + * @generated from protobuf field: optional bool unauthorized = 8 */ unauthorized?: boolean; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * - * @generated from protobuf field: optional bool ignore_empty = 9; + * @generated from protobuf field: optional bool ignore_empty = 9 */ ignore_empty?: boolean; } @@ -451,21 +451,21 @@ export interface UInt32Rules { /** * Const specifies that this field must be exactly the specified value * - * @generated from protobuf field: optional uint32 const = 1; + * @generated from protobuf field: optional uint32 const = 1 */ const?: number; /** * Lt specifies that this field must be less than the specified value, * exclusive * - * @generated from protobuf field: optional uint32 lt = 2; + * @generated from protobuf field: optional uint32 lt = 2 */ lt?: number; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * - * @generated from protobuf field: optional uint32 lte = 3; + * @generated from protobuf field: optional uint32 lte = 3 */ lte?: number; /** @@ -473,7 +473,7 @@ export interface UInt32Rules { * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * - * @generated from protobuf field: optional uint32 gt = 4; + * @generated from protobuf field: optional uint32 gt = 4 */ gt?: number; /** @@ -481,34 +481,34 @@ export interface UInt32Rules { * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * - * @generated from protobuf field: optional uint32 gte = 5; + * @generated from protobuf field: optional uint32 gte = 5 */ gte?: number; /** * In specifies that this field must be equal to one of the specified * values * - * @generated from protobuf field: repeated uint32 in = 6; + * @generated from protobuf field: repeated uint32 in = 6 */ in: number[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * - * @generated from protobuf field: repeated uint32 not_in = 7; + * @generated from protobuf field: repeated uint32 not_in = 7 */ not_in: number[]; /** * unauthorized specifies that this field cannot be written. * - * @generated from protobuf field: optional bool unauthorized = 8; + * @generated from protobuf field: optional bool unauthorized = 8 */ unauthorized?: boolean; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * - * @generated from protobuf field: optional bool ignore_empty = 9; + * @generated from protobuf field: optional bool ignore_empty = 9 */ ignore_empty?: boolean; } @@ -521,21 +521,21 @@ export interface UInt64Rules { /** * Const specifies that this field must be exactly the specified value * - * @generated from protobuf field: optional uint64 const = 1; + * @generated from protobuf field: optional uint64 const = 1 */ const?: bigint; /** * Lt specifies that this field must be less than the specified value, * exclusive * - * @generated from protobuf field: optional uint64 lt = 2; + * @generated from protobuf field: optional uint64 lt = 2 */ lt?: bigint; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * - * @generated from protobuf field: optional uint64 lte = 3; + * @generated from protobuf field: optional uint64 lte = 3 */ lte?: bigint; /** @@ -543,7 +543,7 @@ export interface UInt64Rules { * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * - * @generated from protobuf field: optional uint64 gt = 4; + * @generated from protobuf field: optional uint64 gt = 4 */ gt?: bigint; /** @@ -551,34 +551,34 @@ export interface UInt64Rules { * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * - * @generated from protobuf field: optional uint64 gte = 5; + * @generated from protobuf field: optional uint64 gte = 5 */ gte?: bigint; /** * In specifies that this field must be equal to one of the specified * values * - * @generated from protobuf field: repeated uint64 in = 6; + * @generated from protobuf field: repeated uint64 in = 6 */ in: bigint[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * - * @generated from protobuf field: repeated uint64 not_in = 7; + * @generated from protobuf field: repeated uint64 not_in = 7 */ not_in: bigint[]; /** * unauthorized specifies that this field cannot be written. * - * @generated from protobuf field: optional bool unauthorized = 8; + * @generated from protobuf field: optional bool unauthorized = 8 */ unauthorized?: boolean; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * - * @generated from protobuf field: optional bool ignore_empty = 9; + * @generated from protobuf field: optional bool ignore_empty = 9 */ ignore_empty?: boolean; } @@ -591,21 +591,21 @@ export interface SInt32Rules { /** * Const specifies that this field must be exactly the specified value * - * @generated from protobuf field: optional sint32 const = 1; + * @generated from protobuf field: optional sint32 const = 1 */ const?: number; /** * Lt specifies that this field must be less than the specified value, * exclusive * - * @generated from protobuf field: optional sint32 lt = 2; + * @generated from protobuf field: optional sint32 lt = 2 */ lt?: number; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * - * @generated from protobuf field: optional sint32 lte = 3; + * @generated from protobuf field: optional sint32 lte = 3 */ lte?: number; /** @@ -613,7 +613,7 @@ export interface SInt32Rules { * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * - * @generated from protobuf field: optional sint32 gt = 4; + * @generated from protobuf field: optional sint32 gt = 4 */ gt?: number; /** @@ -621,34 +621,34 @@ export interface SInt32Rules { * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * - * @generated from protobuf field: optional sint32 gte = 5; + * @generated from protobuf field: optional sint32 gte = 5 */ gte?: number; /** * In specifies that this field must be equal to one of the specified * values * - * @generated from protobuf field: repeated sint32 in = 6; + * @generated from protobuf field: repeated sint32 in = 6 */ in: number[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * - * @generated from protobuf field: repeated sint32 not_in = 7; + * @generated from protobuf field: repeated sint32 not_in = 7 */ not_in: number[]; /** * unauthorized specifies that this field cannot be written. * - * @generated from protobuf field: optional bool unauthorized = 8; + * @generated from protobuf field: optional bool unauthorized = 8 */ unauthorized?: boolean; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * - * @generated from protobuf field: optional bool ignore_empty = 9; + * @generated from protobuf field: optional bool ignore_empty = 9 */ ignore_empty?: boolean; } @@ -661,21 +661,21 @@ export interface SInt64Rules { /** * Const specifies that this field must be exactly the specified value * - * @generated from protobuf field: optional sint64 const = 1; + * @generated from protobuf field: optional sint64 const = 1 */ const?: bigint; /** * Lt specifies that this field must be less than the specified value, * exclusive * - * @generated from protobuf field: optional sint64 lt = 2; + * @generated from protobuf field: optional sint64 lt = 2 */ lt?: bigint; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * - * @generated from protobuf field: optional sint64 lte = 3; + * @generated from protobuf field: optional sint64 lte = 3 */ lte?: bigint; /** @@ -683,7 +683,7 @@ export interface SInt64Rules { * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * - * @generated from protobuf field: optional sint64 gt = 4; + * @generated from protobuf field: optional sint64 gt = 4 */ gt?: bigint; /** @@ -691,34 +691,34 @@ export interface SInt64Rules { * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * - * @generated from protobuf field: optional sint64 gte = 5; + * @generated from protobuf field: optional sint64 gte = 5 */ gte?: bigint; /** * In specifies that this field must be equal to one of the specified * values * - * @generated from protobuf field: repeated sint64 in = 6; + * @generated from protobuf field: repeated sint64 in = 6 */ in: bigint[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * - * @generated from protobuf field: repeated sint64 not_in = 7; + * @generated from protobuf field: repeated sint64 not_in = 7 */ not_in: bigint[]; /** * unauthorized specifies that this field cannot be written. * - * @generated from protobuf field: optional bool unauthorized = 8; + * @generated from protobuf field: optional bool unauthorized = 8 */ unauthorized?: boolean; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * - * @generated from protobuf field: optional bool ignore_empty = 9; + * @generated from protobuf field: optional bool ignore_empty = 9 */ ignore_empty?: boolean; } @@ -731,21 +731,21 @@ export interface Fixed32Rules { /** * Const specifies that this field must be exactly the specified value * - * @generated from protobuf field: optional fixed32 const = 1; + * @generated from protobuf field: optional fixed32 const = 1 */ const?: number; /** * Lt specifies that this field must be less than the specified value, * exclusive * - * @generated from protobuf field: optional fixed32 lt = 2; + * @generated from protobuf field: optional fixed32 lt = 2 */ lt?: number; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * - * @generated from protobuf field: optional fixed32 lte = 3; + * @generated from protobuf field: optional fixed32 lte = 3 */ lte?: number; /** @@ -753,7 +753,7 @@ export interface Fixed32Rules { * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * - * @generated from protobuf field: optional fixed32 gt = 4; + * @generated from protobuf field: optional fixed32 gt = 4 */ gt?: number; /** @@ -761,34 +761,34 @@ export interface Fixed32Rules { * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * - * @generated from protobuf field: optional fixed32 gte = 5; + * @generated from protobuf field: optional fixed32 gte = 5 */ gte?: number; /** * In specifies that this field must be equal to one of the specified * values * - * @generated from protobuf field: repeated fixed32 in = 6; + * @generated from protobuf field: repeated fixed32 in = 6 */ in: number[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * - * @generated from protobuf field: repeated fixed32 not_in = 7; + * @generated from protobuf field: repeated fixed32 not_in = 7 */ not_in: number[]; /** * unauthorized specifies that this field cannot be written. * - * @generated from protobuf field: optional bool unauthorized = 8; + * @generated from protobuf field: optional bool unauthorized = 8 */ unauthorized?: boolean; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * - * @generated from protobuf field: optional bool ignore_empty = 9; + * @generated from protobuf field: optional bool ignore_empty = 9 */ ignore_empty?: boolean; } @@ -801,21 +801,21 @@ export interface Fixed64Rules { /** * Const specifies that this field must be exactly the specified value * - * @generated from protobuf field: optional fixed64 const = 1; + * @generated from protobuf field: optional fixed64 const = 1 */ const?: bigint; /** * Lt specifies that this field must be less than the specified value, * exclusive * - * @generated from protobuf field: optional fixed64 lt = 2; + * @generated from protobuf field: optional fixed64 lt = 2 */ lt?: bigint; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * - * @generated from protobuf field: optional fixed64 lte = 3; + * @generated from protobuf field: optional fixed64 lte = 3 */ lte?: bigint; /** @@ -823,7 +823,7 @@ export interface Fixed64Rules { * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * - * @generated from protobuf field: optional fixed64 gt = 4; + * @generated from protobuf field: optional fixed64 gt = 4 */ gt?: bigint; /** @@ -831,34 +831,34 @@ export interface Fixed64Rules { * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * - * @generated from protobuf field: optional fixed64 gte = 5; + * @generated from protobuf field: optional fixed64 gte = 5 */ gte?: bigint; /** * In specifies that this field must be equal to one of the specified * values * - * @generated from protobuf field: repeated fixed64 in = 6; + * @generated from protobuf field: repeated fixed64 in = 6 */ in: bigint[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * - * @generated from protobuf field: repeated fixed64 not_in = 7; + * @generated from protobuf field: repeated fixed64 not_in = 7 */ not_in: bigint[]; /** * unauthorized specifies that this field cannot be written. * - * @generated from protobuf field: optional bool unauthorized = 8; + * @generated from protobuf field: optional bool unauthorized = 8 */ unauthorized?: boolean; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * - * @generated from protobuf field: optional bool ignore_empty = 9; + * @generated from protobuf field: optional bool ignore_empty = 9 */ ignore_empty?: boolean; } @@ -871,21 +871,21 @@ export interface SFixed32Rules { /** * Const specifies that this field must be exactly the specified value * - * @generated from protobuf field: optional sfixed32 const = 1; + * @generated from protobuf field: optional sfixed32 const = 1 */ const?: number; /** * Lt specifies that this field must be less than the specified value, * exclusive * - * @generated from protobuf field: optional sfixed32 lt = 2; + * @generated from protobuf field: optional sfixed32 lt = 2 */ lt?: number; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * - * @generated from protobuf field: optional sfixed32 lte = 3; + * @generated from protobuf field: optional sfixed32 lte = 3 */ lte?: number; /** @@ -893,7 +893,7 @@ export interface SFixed32Rules { * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * - * @generated from protobuf field: optional sfixed32 gt = 4; + * @generated from protobuf field: optional sfixed32 gt = 4 */ gt?: number; /** @@ -901,34 +901,34 @@ export interface SFixed32Rules { * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * - * @generated from protobuf field: optional sfixed32 gte = 5; + * @generated from protobuf field: optional sfixed32 gte = 5 */ gte?: number; /** * In specifies that this field must be equal to one of the specified * values * - * @generated from protobuf field: repeated sfixed32 in = 6; + * @generated from protobuf field: repeated sfixed32 in = 6 */ in: number[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * - * @generated from protobuf field: repeated sfixed32 not_in = 7; + * @generated from protobuf field: repeated sfixed32 not_in = 7 */ not_in: number[]; /** * unauthorized specifies that this field cannot be written. * - * @generated from protobuf field: optional bool unauthorized = 8; + * @generated from protobuf field: optional bool unauthorized = 8 */ unauthorized?: boolean; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * - * @generated from protobuf field: optional bool ignore_empty = 9; + * @generated from protobuf field: optional bool ignore_empty = 9 */ ignore_empty?: boolean; } @@ -941,21 +941,21 @@ export interface SFixed64Rules { /** * Const specifies that this field must be exactly the specified value * - * @generated from protobuf field: optional sfixed64 const = 1; + * @generated from protobuf field: optional sfixed64 const = 1 */ const?: bigint; /** * Lt specifies that this field must be less than the specified value, * exclusive * - * @generated from protobuf field: optional sfixed64 lt = 2; + * @generated from protobuf field: optional sfixed64 lt = 2 */ lt?: bigint; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * - * @generated from protobuf field: optional sfixed64 lte = 3; + * @generated from protobuf field: optional sfixed64 lte = 3 */ lte?: bigint; /** @@ -963,7 +963,7 @@ export interface SFixed64Rules { * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * - * @generated from protobuf field: optional sfixed64 gt = 4; + * @generated from protobuf field: optional sfixed64 gt = 4 */ gt?: bigint; /** @@ -971,34 +971,34 @@ export interface SFixed64Rules { * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * - * @generated from protobuf field: optional sfixed64 gte = 5; + * @generated from protobuf field: optional sfixed64 gte = 5 */ gte?: bigint; /** * In specifies that this field must be equal to one of the specified * values * - * @generated from protobuf field: repeated sfixed64 in = 6; + * @generated from protobuf field: repeated sfixed64 in = 6 */ in: bigint[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * - * @generated from protobuf field: repeated sfixed64 not_in = 7; + * @generated from protobuf field: repeated sfixed64 not_in = 7 */ not_in: bigint[]; /** * unauthorized specifies that this field cannot be written. * - * @generated from protobuf field: optional bool unauthorized = 8; + * @generated from protobuf field: optional bool unauthorized = 8 */ unauthorized?: boolean; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * - * @generated from protobuf field: optional bool ignore_empty = 9; + * @generated from protobuf field: optional bool ignore_empty = 9 */ ignore_empty?: boolean; } @@ -1011,13 +1011,13 @@ export interface BoolRules { /** * Const specifies that this field must be exactly the specified value * - * @generated from protobuf field: optional bool const = 1; + * @generated from protobuf field: optional bool const = 1 */ const?: boolean; /** * unauthorized specifies that this field cannot be written. * - * @generated from protobuf field: optional bool unauthorized = 2; + * @generated from protobuf field: optional bool unauthorized = 2 */ unauthorized?: boolean; } @@ -1030,7 +1030,7 @@ export interface StringRules { /** * Const specifies that this field must be exactly the specified value * - * @generated from protobuf field: optional string const = 1; + * @generated from protobuf field: optional string const = 1 */ const?: string; /** @@ -1038,7 +1038,7 @@ export interface StringRules { * characters (Unicode code points). Note that the number of * characters may differ from the number of bytes in the string. * - * @generated from protobuf field: optional uint64 len = 19; + * @generated from protobuf field: optional uint64 len = 19 */ len?: bigint; /** @@ -1046,7 +1046,7 @@ export interface StringRules { * characters (Unicode code points) at a minimum. Note that the number of * characters may differ from the number of bytes in the string. * - * @generated from protobuf field: optional uint64 min_len = 2; + * @generated from protobuf field: optional uint64 min_len = 2 */ min_len?: bigint; /** @@ -1054,28 +1054,28 @@ export interface StringRules { * characters (Unicode code points) at a maximum. Note that the number of * characters may differ from the number of bytes in the string. * - * @generated from protobuf field: optional uint64 max_len = 3; + * @generated from protobuf field: optional uint64 max_len = 3 */ max_len?: bigint; /** * LenBytes specifies that this field must be the specified number of bytes * at a minimum * - * @generated from protobuf field: optional uint64 len_bytes = 20; + * @generated from protobuf field: optional uint64 len_bytes = 20 */ len_bytes?: bigint; /** * MinBytes specifies that this field must be the specified number of bytes * at a minimum * - * @generated from protobuf field: optional uint64 min_bytes = 4; + * @generated from protobuf field: optional uint64 min_bytes = 4 */ min_bytes?: bigint; /** * MaxBytes specifies that this field must be the specified number of bytes * at a maximum * - * @generated from protobuf field: optional uint64 max_bytes = 5; + * @generated from protobuf field: optional uint64 max_bytes = 5 */ max_bytes?: bigint; /** @@ -1083,58 +1083,61 @@ export interface StringRules { * regular expression (RE2 syntax). The included expression should elide * any delimiters. * - * @generated from protobuf field: optional string pattern = 6; + * @generated from protobuf field: optional string pattern = 6 */ pattern?: string; /** * Prefix specifies that this field must have the specified substring at * the beginning of the string. * - * @generated from protobuf field: optional string prefix = 7; + * @generated from protobuf field: optional string prefix = 7 */ prefix?: string; /** * Suffix specifies that this field must have the specified substring at * the end of the string. * - * @generated from protobuf field: optional string suffix = 8; + * @generated from protobuf field: optional string suffix = 8 */ suffix?: string; /** * Contains specifies that this field must have the specified substring * anywhere in the string. * - * @generated from protobuf field: optional string contains = 9; + * @generated from protobuf field: optional string contains = 9 */ contains?: string; /** * NotContains specifies that this field cannot have the specified substring * anywhere in the string. * - * @generated from protobuf field: optional string not_contains = 23; + * @generated from protobuf field: optional string not_contains = 23 */ not_contains?: string; /** * In specifies that this field must be equal to one of the specified * values * - * @generated from protobuf field: repeated string in = 10; + * @generated from protobuf field: repeated string in = 10 */ in: string[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * - * @generated from protobuf field: repeated string not_in = 11; + * @generated from protobuf field: repeated string not_in = 11 */ not_in: string[]; /** * unauthorized specifies that this field cannot be written. * - * @generated from protobuf field: optional bool unauthorized = 29; + * @generated from protobuf field: optional bool unauthorized = 29 */ unauthorized?: boolean; /** + * WellKnown rules provide advanced constraints against common string + * patterns + * * @generated from protobuf oneof: well_known */ well_known: { @@ -1143,7 +1146,7 @@ export interface StringRules { * Email specifies that the field must be a valid email address as * defined by RFC 5322 * - * @generated from protobuf field: bool email = 12; + * @generated from protobuf field: bool email = 12 */ email: boolean; } | { @@ -1153,7 +1156,7 @@ export interface StringRules { * defined by RFC 1034. This constraint does not support * internationalized domain names (IDNs). * - * @generated from protobuf field: bool hostname = 13; + * @generated from protobuf field: bool hostname = 13 */ hostname: boolean; } | { @@ -1162,7 +1165,7 @@ export interface StringRules { * Ip specifies that the field must be a valid IP (v4 or v6) address. * Valid IPv6 addresses should not include surrounding square brackets. * - * @generated from protobuf field: bool ip = 14; + * @generated from protobuf field: bool ip = 14 */ ip: boolean; } | { @@ -1170,7 +1173,7 @@ export interface StringRules { /** * Ipv4 specifies that the field must be a valid IPv4 address. * - * @generated from protobuf field: bool ipv4 = 15; + * @generated from protobuf field: bool ipv4 = 15 */ ipv4: boolean; } | { @@ -1179,7 +1182,7 @@ export interface StringRules { * Ipv6 specifies that the field must be a valid IPv6 address. Valid * IPv6 addresses should not include surrounding square brackets. * - * @generated from protobuf field: bool ipv6 = 16; + * @generated from protobuf field: bool ipv6 = 16 */ ipv6: boolean; } | { @@ -1188,7 +1191,7 @@ export interface StringRules { * Uri specifies that the field must be a valid, absolute URI as defined * by RFC 3986 * - * @generated from protobuf field: bool uri = 17; + * @generated from protobuf field: bool uri = 17 */ uri: boolean; } | { @@ -1197,7 +1200,7 @@ export interface StringRules { * UriRef specifies that the field must be a valid URI as defined by RFC * 3986 and may be relative or absolute. * - * @generated from protobuf field: bool uri_ref = 18; + * @generated from protobuf field: bool uri_ref = 18 */ uri_ref: boolean; } | { @@ -1207,7 +1210,7 @@ export interface StringRules { * defined by RFC 1034 (which does not support internationalized domain * names or IDNs), or it can be a valid IP (v4 or v6). * - * @generated from protobuf field: bool address = 21; + * @generated from protobuf field: bool address = 21 */ address: boolean; } | { @@ -1216,7 +1219,7 @@ export interface StringRules { * Uuid specifies that the field must be a valid UUID as defined by * RFC 4122 * - * @generated from protobuf field: bool uuid = 22; + * @generated from protobuf field: bool uuid = 22 */ uuid: boolean; } | { @@ -1224,7 +1227,7 @@ export interface StringRules { /** * WellKnownRegex specifies a common well known pattern defined as a regex. * - * @generated from protobuf field: validate.KnownRegex well_known_regex = 24; + * @generated from protobuf field: validate.KnownRegex well_known_regex = 24 */ well_known_regex: KnownRegex; } | { @@ -1233,7 +1236,7 @@ export interface StringRules { * dateIso8601 specifes that the field must be either a valid date as * defined by ISO 8601 * - * @generated from protobuf field: bool dateIso8601 = 26; + * @generated from protobuf field: bool dateIso8601 = 26 */ dateIso8601: boolean; } | { @@ -1242,7 +1245,7 @@ export interface StringRules { * languageIso639 specifes that the field must be either a valid language name as * defined by ISO 639-1 * - * @generated from protobuf field: bool languageIso6391 = 27; + * @generated from protobuf field: bool languageIso6391 = 27 */ languageIso6391: boolean; } | { @@ -1251,9 +1254,36 @@ export interface StringRules { * tzData specifes that the field must be location name * corresponding to a file in the IANA Time Zone database, such as "America/New_York" * - * @generated from protobuf field: bool tzData = 28; + * @generated from protobuf field: bool tzData = 28 */ tzData: boolean; + } | { + oneofKind: "countryCodeIso3166"; + /** + * countryCodeIso3166 specifes that the field must be either a valid country code as + * defined by ISO 3166 + * + * @generated from protobuf field: bool countryCodeIso3166 = 31 + */ + countryCodeIso3166: boolean; + } | { + oneofKind: "languageIso639"; + /** + * languageIso639 specifes that the field must be either a valid language name as + * defined by ISO 639-1, 639-2, or 639-3 + * + * @generated from protobuf field: bool languageIso639 = 32 + */ + languageIso639: boolean; + } | { + oneofKind: "countryCodeIso3166Alpha2"; + /** + * countryCodeIso3166Alpha2 specifes that the field must be either a valid alpha-2 country code as + * defined by ISO 3166 + * + * @generated from protobuf field: bool countryCodeIso3166Alpha2 = 33 + */ + countryCodeIso3166Alpha2: boolean; } | { oneofKind: undefined; }; @@ -1264,14 +1294,14 @@ export interface StringRules { * Setting to false will enable a looser validations that only disallows * \r\n\0 characters, which can be used to bypass header matching rules. * - * @generated from protobuf field: optional bool strict = 25; + * @generated from protobuf field: optional bool strict = 25 [default = true] */ strict?: boolean; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * - * @generated from protobuf field: optional bool ignore_empty = 30; + * @generated from protobuf field: optional bool ignore_empty = 30 */ ignore_empty?: boolean; } @@ -1284,27 +1314,27 @@ export interface BytesRules { /** * Const specifies that this field must be exactly the specified value * - * @generated from protobuf field: optional bytes const = 1; + * @generated from protobuf field: optional bytes const = 1 */ const?: Uint8Array; /** * Len specifies that this field must be the specified number of bytes * - * @generated from protobuf field: optional uint64 len = 13; + * @generated from protobuf field: optional uint64 len = 13 */ len?: bigint; /** * MinLen specifies that this field must be the specified number of bytes * at a minimum * - * @generated from protobuf field: optional uint64 min_len = 2; + * @generated from protobuf field: optional uint64 min_len = 2 */ min_len?: bigint; /** * MaxLen specifies that this field must be the specified number of bytes * at a maximum * - * @generated from protobuf field: optional uint64 max_len = 3; + * @generated from protobuf field: optional uint64 max_len = 3 */ max_len?: bigint; /** @@ -1312,45 +1342,48 @@ export interface BytesRules { * regular expression (RE2 syntax). The included expression should elide * any delimiters. * - * @generated from protobuf field: optional string pattern = 4; + * @generated from protobuf field: optional string pattern = 4 */ pattern?: string; /** * Prefix specifies that this field must have the specified bytes at the * beginning of the string. * - * @generated from protobuf field: optional bytes prefix = 5; + * @generated from protobuf field: optional bytes prefix = 5 */ prefix?: Uint8Array; /** * Suffix specifies that this field must have the specified bytes at the * end of the string. * - * @generated from protobuf field: optional bytes suffix = 6; + * @generated from protobuf field: optional bytes suffix = 6 */ suffix?: Uint8Array; /** * Contains specifies that this field must have the specified bytes * anywhere in the string. * - * @generated from protobuf field: optional bytes contains = 7; + * @generated from protobuf field: optional bytes contains = 7 */ contains?: Uint8Array; /** * In specifies that this field must be equal to one of the specified * values * - * @generated from protobuf field: repeated bytes in = 8; + * @generated from protobuf field: repeated bytes in = 8 */ in: Uint8Array[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * - * @generated from protobuf field: repeated bytes not_in = 9; + * @generated from protobuf field: repeated bytes not_in = 9 */ not_in: Uint8Array[]; /** + * WellKnown rules provide advanced constraints against common byte + * patterns + * * @generated from protobuf oneof: well_known */ well_known: { @@ -1359,7 +1392,7 @@ export interface BytesRules { * Ip specifies that the field must be a valid IP (v4 or v6) address in * byte format * - * @generated from protobuf field: bool ip = 10; + * @generated from protobuf field: bool ip = 10 */ ip: boolean; } | { @@ -1368,7 +1401,7 @@ export interface BytesRules { * Ipv4 specifies that the field must be a valid IPv4 address in byte * format * - * @generated from protobuf field: bool ipv4 = 11; + * @generated from protobuf field: bool ipv4 = 11 */ ipv4: boolean; } | { @@ -1377,7 +1410,7 @@ export interface BytesRules { * Ipv6 specifies that the field must be a valid IPv6 address in byte * format * - * @generated from protobuf field: bool ipv6 = 12; + * @generated from protobuf field: bool ipv6 = 12 */ ipv6: boolean; } | { @@ -1387,7 +1420,7 @@ export interface BytesRules { * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * - * @generated from protobuf field: optional bool ignore_empty = 14; + * @generated from protobuf field: optional bool ignore_empty = 14 */ ignore_empty?: boolean; } @@ -1400,41 +1433,41 @@ export interface EnumRules { /** * Const specifies that this field must be exactly the specified value * - * @generated from protobuf field: optional int32 const = 1; + * @generated from protobuf field: optional int32 const = 1 */ const?: number; /** * DefinedOnly specifies that this field must be only one of the defined * values for this enum, failing on any undefined value. * - * @generated from protobuf field: optional bool defined_only = 2; + * @generated from protobuf field: optional bool defined_only = 2 */ defined_only?: boolean; /** * In specifies that this field must be equal to one of the specified * values * - * @generated from protobuf field: repeated int32 in = 3; + * @generated from protobuf field: repeated int32 in = 3 */ in: number[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * - * @generated from protobuf field: repeated int32 not_in = 4; + * @generated from protobuf field: repeated int32 not_in = 4 */ not_in: number[]; /** * unauthorized specifies that this field cannot be written. * - * @generated from protobuf field: optional bool unauthorized = 5; + * @generated from protobuf field: optional bool unauthorized = 5 */ unauthorized?: boolean; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * - * @generated from protobuf field: optional bool ignore_empty = 6; + * @generated from protobuf field: optional bool ignore_empty = 6 */ ignore_empty?: boolean; } @@ -1449,19 +1482,19 @@ export interface MessageRules { * Skip specifies that the validation rules of this field should not be * evaluated * - * @generated from protobuf field: optional bool skip = 1; + * @generated from protobuf field: optional bool skip = 1 */ skip?: boolean; /** * Required specifies that this field must be set * - * @generated from protobuf field: optional bool required = 2; + * @generated from protobuf field: optional bool required = 2 */ required?: boolean; /** * unauthorized specifies that this field cannot be written. * - * @generated from protobuf field: optional bool unauthorized = 3; + * @generated from protobuf field: optional bool unauthorized = 3 */ unauthorized?: boolean; } @@ -1475,14 +1508,14 @@ export interface RepeatedRules { * MinItems specifies that this field must have the specified number of * items at a minimum * - * @generated from protobuf field: optional uint64 min_items = 1; + * @generated from protobuf field: optional uint64 min_items = 1 */ min_items?: bigint; /** * MaxItems specifies that this field must have the specified number of * items at a maximum * - * @generated from protobuf field: optional uint64 max_items = 2; + * @generated from protobuf field: optional uint64 max_items = 2 */ max_items?: bigint; /** @@ -1490,7 +1523,7 @@ export interface RepeatedRules { * contraint is only applicable to scalar and enum types (messages are not * supported). * - * @generated from protobuf field: optional bool unique = 3; + * @generated from protobuf field: optional bool unique = 3 */ unique?: boolean; /** @@ -1498,7 +1531,7 @@ export interface RepeatedRules { * Repeated message fields will still execute validation against each item * unless skip is specified here. * - * @generated from protobuf field: optional validate.FieldRules items = 4; + * @generated from protobuf field: optional validate.FieldRules items = 4 */ items?: FieldRules; /** @@ -1506,7 +1539,7 @@ export interface RepeatedRules { * An item can only have one base LV. * Contraint is only applicable to the LogisticVariant field. * - * @generated from protobuf field: optional bool uniqueBaseLV = 5; + * @generated from protobuf field: optional bool uniqueBaseLV = 5 */ uniqueBaseLV?: boolean; /** @@ -1514,14 +1547,14 @@ export interface RepeatedRules { * A VL can only refer (RefLV) to a base LV known on this article. * Contraint is only applicable to the LogisticVariant field. * - * @generated from protobuf field: optional bool knownRefLV = 6; + * @generated from protobuf field: optional bool knownRefLV = 6 */ knownRefLV?: boolean; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * - * @generated from protobuf field: optional bool ignore_empty = 7; + * @generated from protobuf field: optional bool ignore_empty = 7 */ ignore_empty?: boolean; } @@ -1535,27 +1568,27 @@ export interface MapRules { * MinPairs specifies that this field must have the specified number of * KVs at a minimum * - * @generated from protobuf field: optional uint64 min_pairs = 1; + * @generated from protobuf field: optional uint64 min_pairs = 1 */ min_pairs?: bigint; /** * MaxPairs specifies that this field must have the specified number of * KVs at a maximum * - * @generated from protobuf field: optional uint64 max_pairs = 2; + * @generated from protobuf field: optional uint64 max_pairs = 2 */ max_pairs?: bigint; /** * NoSparse specifies values in this field cannot be unset. This only * applies to map's with message value types. * - * @generated from protobuf field: optional bool no_sparse = 3; + * @generated from protobuf field: optional bool no_sparse = 3 */ no_sparse?: boolean; /** * Keys specifies the constraints to be applied to each key in the field. * - * @generated from protobuf field: optional validate.FieldRules keys = 4; + * @generated from protobuf field: optional validate.FieldRules keys = 4 */ keys?: FieldRules; /** @@ -1563,14 +1596,14 @@ export interface MapRules { * in the field. Message values will still have their validations evaluated * unless skip is specified here. * - * @generated from protobuf field: optional validate.FieldRules values = 5; + * @generated from protobuf field: optional validate.FieldRules values = 5 */ values?: FieldRules; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * - * @generated from protobuf field: optional bool ignore_empty = 6; + * @generated from protobuf field: optional bool ignore_empty = 6 */ ignore_empty?: boolean; } @@ -1584,21 +1617,21 @@ export interface AnyRules { /** * Required specifies that this field must be set * - * @generated from protobuf field: optional bool required = 1; + * @generated from protobuf field: optional bool required = 1 */ required?: boolean; /** * In specifies that this field's `type_url` must be equal to one of the * specified values. * - * @generated from protobuf field: repeated string in = 2; + * @generated from protobuf field: repeated string in = 2 */ in: string[]; /** * NotIn specifies that this field's `type_url` must not be equal to any of * the specified values. * - * @generated from protobuf field: repeated string not_in = 3; + * @generated from protobuf field: repeated string not_in = 3 */ not_in: string[]; } @@ -1612,55 +1645,55 @@ export interface DurationRules { /** * Required specifies that this field must be set * - * @generated from protobuf field: optional bool required = 1; + * @generated from protobuf field: optional bool required = 1 */ required?: boolean; /** * Const specifies that this field must be exactly the specified value * - * @generated from protobuf field: optional google.protobuf.Duration const = 2; + * @generated from protobuf field: optional google.protobuf.Duration const = 2 */ const?: Duration; /** * Lt specifies that this field must be less than the specified value, * exclusive * - * @generated from protobuf field: optional google.protobuf.Duration lt = 3; + * @generated from protobuf field: optional google.protobuf.Duration lt = 3 */ lt?: Duration; /** * Lt specifies that this field must be less than the specified value, * inclusive * - * @generated from protobuf field: optional google.protobuf.Duration lte = 4; + * @generated from protobuf field: optional google.protobuf.Duration lte = 4 */ lte?: Duration; /** * Gt specifies that this field must be greater than the specified value, * exclusive * - * @generated from protobuf field: optional google.protobuf.Duration gt = 5; + * @generated from protobuf field: optional google.protobuf.Duration gt = 5 */ gt?: Duration; /** * Gte specifies that this field must be greater than the specified value, * inclusive * - * @generated from protobuf field: optional google.protobuf.Duration gte = 6; + * @generated from protobuf field: optional google.protobuf.Duration gte = 6 */ gte?: Duration; /** * In specifies that this field must be equal to one of the specified * values * - * @generated from protobuf field: repeated google.protobuf.Duration in = 7; + * @generated from protobuf field: repeated google.protobuf.Duration in = 7 */ in: Duration[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * - * @generated from protobuf field: repeated google.protobuf.Duration not_in = 8; + * @generated from protobuf field: repeated google.protobuf.Duration not_in = 8 */ not_in: Duration[]; } @@ -1674,55 +1707,55 @@ export interface TimestampRules { /** * Required specifies that this field must be set * - * @generated from protobuf field: optional bool required = 1; + * @generated from protobuf field: optional bool required = 1 */ required?: boolean; /** * Const specifies that this field must be exactly the specified value * - * @generated from protobuf field: optional google.protobuf.Timestamp const = 2; + * @generated from protobuf field: optional google.protobuf.Timestamp const = 2 */ const?: Timestamp; /** * Lt specifies that this field must be less than the specified value, * exclusive * - * @generated from protobuf field: optional google.protobuf.Timestamp lt = 3; + * @generated from protobuf field: optional google.protobuf.Timestamp lt = 3 */ lt?: Timestamp; /** * Lte specifies that this field must be less than the specified value, * inclusive * - * @generated from protobuf field: optional google.protobuf.Timestamp lte = 4; + * @generated from protobuf field: optional google.protobuf.Timestamp lte = 4 */ lte?: Timestamp; /** * Gt specifies that this field must be greater than the specified value, * exclusive * - * @generated from protobuf field: optional google.protobuf.Timestamp gt = 5; + * @generated from protobuf field: optional google.protobuf.Timestamp gt = 5 */ gt?: Timestamp; /** * Gte specifies that this field must be greater than the specified value, * inclusive * - * @generated from protobuf field: optional google.protobuf.Timestamp gte = 6; + * @generated from protobuf field: optional google.protobuf.Timestamp gte = 6 */ gte?: Timestamp; /** * LtNow specifies that this must be less than the current time. LtNow * can only be used with the Within rule. * - * @generated from protobuf field: optional bool lt_now = 7; + * @generated from protobuf field: optional bool lt_now = 7 */ lt_now?: boolean; /** * GtNow specifies that this must be greater than the current time. GtNow * can only be used with the Within rule. * - * @generated from protobuf field: optional bool gt_now = 8; + * @generated from protobuf field: optional bool gt_now = 8 */ gt_now?: boolean; /** @@ -1730,7 +1763,7 @@ export interface TimestampRules { * current time. This constraint can be used alone or with the LtNow and * GtNow rules. * - * @generated from protobuf field: optional google.protobuf.Duration within = 9; + * @generated from protobuf field: optional google.protobuf.Duration within = 9 */ within?: Duration; } @@ -3443,6 +3476,9 @@ class StringRules$Type extends MessageType { { no: 26, name: "dateIso8601", kind: "scalar", oneof: "well_known", T: 8 /*ScalarType.BOOL*/ }, { no: 27, name: "languageIso6391", kind: "scalar", oneof: "well_known", T: 8 /*ScalarType.BOOL*/ }, { no: 28, name: "tzData", kind: "scalar", oneof: "well_known", T: 8 /*ScalarType.BOOL*/ }, + { no: 31, name: "countryCodeIso3166", kind: "scalar", oneof: "well_known", T: 8 /*ScalarType.BOOL*/ }, + { no: 32, name: "languageIso639", kind: "scalar", oneof: "well_known", T: 8 /*ScalarType.BOOL*/ }, + { no: 33, name: "countryCodeIso3166Alpha2", kind: "scalar", oneof: "well_known", T: 8 /*ScalarType.BOOL*/ }, { no: 25, name: "strict", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, { no: 30, name: "ignore_empty", kind: "scalar", localName: "ignore_empty", opt: true, T: 8 /*ScalarType.BOOL*/ } ]); @@ -3584,7 +3620,25 @@ class StringRules$Type extends MessageType { tzData: reader.bool() }; break; - case /* optional bool strict */ 25: + case /* bool countryCodeIso3166 */ 31: + message.well_known = { + oneofKind: "countryCodeIso3166", + countryCodeIso3166: reader.bool() + }; + break; + case /* bool languageIso639 */ 32: + message.well_known = { + oneofKind: "languageIso639", + languageIso639: reader.bool() + }; + break; + case /* bool countryCodeIso3166Alpha2 */ 33: + message.well_known = { + oneofKind: "countryCodeIso3166Alpha2", + countryCodeIso3166Alpha2: reader.bool() + }; + break; + case /* optional bool strict = 25 [default = true] */ 25: message.strict = reader.bool(); break; case /* optional bool ignore_empty */ 30: @@ -3674,7 +3728,7 @@ class StringRules$Type extends MessageType { /* validate.KnownRegex well_known_regex = 24; */ if (message.well_known.oneofKind === "well_known_regex") writer.tag(24, WireType.Varint).int32(message.well_known.well_known_regex); - /* optional bool strict = 25; */ + /* optional bool strict = 25 [default = true]; */ if (message.strict !== undefined) writer.tag(25, WireType.Varint).bool(message.strict); /* bool dateIso8601 = 26; */ @@ -3692,6 +3746,15 @@ class StringRules$Type extends MessageType { /* optional bool ignore_empty = 30; */ if (message.ignore_empty !== undefined) writer.tag(30, WireType.Varint).bool(message.ignore_empty); + /* bool countryCodeIso3166 = 31; */ + if (message.well_known.oneofKind === "countryCodeIso3166") + writer.tag(31, WireType.Varint).bool(message.well_known.countryCodeIso3166); + /* bool languageIso639 = 32; */ + if (message.well_known.oneofKind === "languageIso639") + writer.tag(32, WireType.Varint).bool(message.well_known.languageIso639); + /* bool countryCodeIso3166Alpha2 = 33; */ + if (message.well_known.oneofKind === "countryCodeIso3166Alpha2") + writer.tag(33, WireType.Varint).bool(message.well_known.countryCodeIso3166Alpha2); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); diff --git a/visibility.ts b/visibility.ts index 2e9be95..55f978b 100644 --- a/visibility.ts +++ b/visibility.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name +// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name // @generated from protobuf file "visibility.proto" (package "google.api", syntax proto3) // tslint:disable // @@ -57,7 +57,7 @@ export interface Visibility { * * **NOTE:** All service configuration rules follow "last one wins" order. * - * @generated from protobuf field: repeated google.api.VisibilityRule rules = 1; + * @generated from protobuf field: repeated google.api.VisibilityRule rules = 1 */ rules: VisibilityRule[]; } @@ -73,7 +73,7 @@ export interface VisibilityRule { * * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. * - * @generated from protobuf field: string selector = 1; + * @generated from protobuf field: string selector = 1 */ selector: string; /** @@ -93,7 +93,7 @@ export interface VisibilityRule { * Removing INTERNAL from this restriction will break clients that rely on * this method and only had access to it through INTERNAL. * - * @generated from protobuf field: string restriction = 2; + * @generated from protobuf field: string restriction = 2 */ restriction: string; } diff --git a/viz-composed-field.client.ts b/viz-composed-field.client.ts index aec1d44..0d5c99e 100644 --- a/viz-composed-field.client.ts +++ b/viz-composed-field.client.ts @@ -1,9 +1,29 @@ -// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name +// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name // @generated from protobuf file "viz-composed-field.proto" (package "vizapi", syntax proto3) // tslint:disable import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; import type { ServiceInfo } from "@protobuf-ts/runtime-rpc"; import { ComposedFieldService } from "./viz-composed-field"; +import type { ListSiteComposedFieldResult } from "./viz-composed-field"; +import type { ListSiteComposedFieldRequest } from "./viz-composed-field"; +import type { DeleteSiteComposedFieldResult } from "./viz-composed-field"; +import type { DeleteSiteComposedFieldRequest } from "./viz-composed-field"; +import type { UpdateSiteComposedFieldResult } from "./viz-composed-field"; +import type { UpdateSiteComposedFieldRequest } from "./viz-composed-field"; +import type { CreateSiteComposedFieldResult } from "./viz-composed-field"; +import type { CreateSiteComposedFieldRequest } from "./viz-composed-field"; +import type { GetSiteComposedFieldResult } from "./viz-composed-field"; +import type { GetSiteComposedFieldRequest } from "./viz-composed-field"; +import type { ListProjectComposedFieldResult } from "./viz-composed-field"; +import type { ListProjectComposedFieldRequest } from "./viz-composed-field"; +import type { DeleteProjectComposedFieldResult } from "./viz-composed-field"; +import type { DeleteProjectComposedFieldRequest } from "./viz-composed-field"; +import type { UpdateProjectComposedFieldResult } from "./viz-composed-field"; +import type { UpdateProjectComposedFieldRequest } from "./viz-composed-field"; +import type { CreateProjectComposedFieldResult } from "./viz-composed-field"; +import type { CreateProjectComposedFieldRequest } from "./viz-composed-field"; +import type { GetProjectComposedFieldResult } from "./viz-composed-field"; +import type { GetProjectComposedFieldRequest } from "./viz-composed-field"; import type { ListComposedFieldResult } from "./viz-composed-field"; import type { ListComposedFieldRequest } from "./viz-composed-field"; import type { DeleteComposedFieldResult } from "./viz-composed-field"; @@ -22,25 +42,65 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc"; */ export interface IComposedFieldServiceClient { /** - * @generated from protobuf rpc: Get(vizapi.GetComposedFieldRequest) returns (vizapi.GetComposedFieldResult); + * @generated from protobuf rpc: Get */ get(input: GetComposedFieldRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: Create(vizapi.CreateComposedFieldRequest) returns (vizapi.CreateComposedFieldResult); + * @generated from protobuf rpc: Create */ create(input: CreateComposedFieldRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: Update(vizapi.UpdateComposedFieldRequest) returns (vizapi.UpdateComposedFieldResult); + * @generated from protobuf rpc: Update */ update(input: UpdateComposedFieldRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: Delete(vizapi.DeleteComposedFieldRequest) returns (vizapi.DeleteComposedFieldResult); + * @generated from protobuf rpc: Delete */ delete(input: DeleteComposedFieldRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: List(vizapi.ListComposedFieldRequest) returns (vizapi.ListComposedFieldResult); + * @generated from protobuf rpc: List */ list(input: ListComposedFieldRequest, options?: RpcOptions): UnaryCall; + /** + * @generated from protobuf rpc: GetProject + */ + getProject(input: GetProjectComposedFieldRequest, options?: RpcOptions): UnaryCall; + /** + * @generated from protobuf rpc: CreateProject + */ + createProject(input: CreateProjectComposedFieldRequest, options?: RpcOptions): UnaryCall; + /** + * @generated from protobuf rpc: UpdateProject + */ + updateProject(input: UpdateProjectComposedFieldRequest, options?: RpcOptions): UnaryCall; + /** + * @generated from protobuf rpc: DeleteProject + */ + deleteProject(input: DeleteProjectComposedFieldRequest, options?: RpcOptions): UnaryCall; + /** + * @generated from protobuf rpc: ListProject + */ + listProject(input: ListProjectComposedFieldRequest, options?: RpcOptions): UnaryCall; + /** + * @generated from protobuf rpc: GetSite + */ + getSite(input: GetSiteComposedFieldRequest, options?: RpcOptions): UnaryCall; + /** + * @generated from protobuf rpc: CreateSite + */ + createSite(input: CreateSiteComposedFieldRequest, options?: RpcOptions): UnaryCall; + /** + * @generated from protobuf rpc: UpdateSite + */ + updateSite(input: UpdateSiteComposedFieldRequest, options?: RpcOptions): UnaryCall; + /** + * @generated from protobuf rpc: DeleteSite + */ + deleteSite(input: DeleteSiteComposedFieldRequest, options?: RpcOptions): UnaryCall; + /** + * @generated from protobuf rpc: ListSite + */ + listSite(input: ListSiteComposedFieldRequest, options?: RpcOptions): UnaryCall; } /** * @generated from protobuf service vizapi.ComposedFieldService @@ -52,38 +112,108 @@ export class ComposedFieldServiceClient implements IComposedFieldServiceClient, constructor(private readonly _transport: RpcTransport) { } /** - * @generated from protobuf rpc: Get(vizapi.GetComposedFieldRequest) returns (vizapi.GetComposedFieldResult); + * @generated from protobuf rpc: Get */ get(input: GetComposedFieldRequest, options?: RpcOptions): UnaryCall { const method = this.methods[0], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: Create(vizapi.CreateComposedFieldRequest) returns (vizapi.CreateComposedFieldResult); + * @generated from protobuf rpc: Create */ create(input: CreateComposedFieldRequest, options?: RpcOptions): UnaryCall { const method = this.methods[1], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: Update(vizapi.UpdateComposedFieldRequest) returns (vizapi.UpdateComposedFieldResult); + * @generated from protobuf rpc: Update */ update(input: UpdateComposedFieldRequest, options?: RpcOptions): UnaryCall { const method = this.methods[2], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: Delete(vizapi.DeleteComposedFieldRequest) returns (vizapi.DeleteComposedFieldResult); + * @generated from protobuf rpc: Delete */ delete(input: DeleteComposedFieldRequest, options?: RpcOptions): UnaryCall { const method = this.methods[3], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: List(vizapi.ListComposedFieldRequest) returns (vizapi.ListComposedFieldResult); + * @generated from protobuf rpc: List */ list(input: ListComposedFieldRequest, options?: RpcOptions): UnaryCall { const method = this.methods[4], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } + /** + * @generated from protobuf rpc: GetProject + */ + getProject(input: GetProjectComposedFieldRequest, options?: RpcOptions): UnaryCall { + const method = this.methods[5], opt = this._transport.mergeOptions(options); + return stackIntercept("unary", this._transport, method, opt, input); + } + /** + * @generated from protobuf rpc: CreateProject + */ + createProject(input: CreateProjectComposedFieldRequest, options?: RpcOptions): UnaryCall { + const method = this.methods[6], opt = this._transport.mergeOptions(options); + return stackIntercept("unary", this._transport, method, opt, input); + } + /** + * @generated from protobuf rpc: UpdateProject + */ + updateProject(input: UpdateProjectComposedFieldRequest, options?: RpcOptions): UnaryCall { + const method = this.methods[7], opt = this._transport.mergeOptions(options); + return stackIntercept("unary", this._transport, method, opt, input); + } + /** + * @generated from protobuf rpc: DeleteProject + */ + deleteProject(input: DeleteProjectComposedFieldRequest, options?: RpcOptions): UnaryCall { + const method = this.methods[8], opt = this._transport.mergeOptions(options); + return stackIntercept("unary", this._transport, method, opt, input); + } + /** + * @generated from protobuf rpc: ListProject + */ + listProject(input: ListProjectComposedFieldRequest, options?: RpcOptions): UnaryCall { + const method = this.methods[9], opt = this._transport.mergeOptions(options); + return stackIntercept("unary", this._transport, method, opt, input); + } + /** + * @generated from protobuf rpc: GetSite + */ + getSite(input: GetSiteComposedFieldRequest, options?: RpcOptions): UnaryCall { + const method = this.methods[10], opt = this._transport.mergeOptions(options); + return stackIntercept("unary", this._transport, method, opt, input); + } + /** + * @generated from protobuf rpc: CreateSite + */ + createSite(input: CreateSiteComposedFieldRequest, options?: RpcOptions): UnaryCall { + const method = this.methods[11], opt = this._transport.mergeOptions(options); + return stackIntercept("unary", this._transport, method, opt, input); + } + /** + * @generated from protobuf rpc: UpdateSite + */ + updateSite(input: UpdateSiteComposedFieldRequest, options?: RpcOptions): UnaryCall { + const method = this.methods[12], opt = this._transport.mergeOptions(options); + return stackIntercept("unary", this._transport, method, opt, input); + } + /** + * @generated from protobuf rpc: DeleteSite + */ + deleteSite(input: DeleteSiteComposedFieldRequest, options?: RpcOptions): UnaryCall { + const method = this.methods[13], opt = this._transport.mergeOptions(options); + return stackIntercept("unary", this._transport, method, opt, input); + } + /** + * @generated from protobuf rpc: ListSite + */ + listSite(input: ListSiteComposedFieldRequest, options?: RpcOptions): UnaryCall { + const method = this.methods[14], opt = this._transport.mergeOptions(options); + return stackIntercept("unary", this._transport, method, opt, input); + } } diff --git a/viz-composed-field.ts b/viz-composed-field.ts index 1bf2832..c202b70 100644 --- a/viz-composed-field.ts +++ b/viz-composed-field.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name +// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name // @generated from protobuf file "viz-composed-field.proto" (package "vizapi", syntax proto3) // tslint:disable import { ServiceType } from "@protobuf-ts/runtime-rpc"; @@ -11,6 +11,7 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime"; import type { PartialMessage } from "@protobuf-ts/runtime"; import { reflectionMergePartial } from "@protobuf-ts/runtime"; import { MessageType } from "@protobuf-ts/runtime"; +import { RequestSiteHeader } from "./core/shared"; import { RequestProjectHeader } from "./core/shared"; /** * @generated from protobuf message vizapi.ComposedField @@ -19,61 +20,61 @@ export interface ComposedField { /** * Identifier of the Composed Field * - * @generated from protobuf field: string ComposedFieldID = 1 [json_name = "ComposedFieldID"]; + * @generated from protobuf field: string ComposedFieldID = 1 */ ComposedFieldID: string; /** * Name of the Composed Field * - * @generated from protobuf field: string Name = 2 [json_name = "Name"]; + * @generated from protobuf field: string Name = 2 */ Name: string; /** * Identifier of the project * - * @generated from protobuf field: string ProjectID = 3 [json_name = "ProjectID"]; + * @generated from protobuf field: string ProjectID = 3 */ ProjectID: string; /** * Identifier of the Screen * - * @generated from protobuf field: string ScreenID = 4 [json_name = "ScreenID"]; + * @generated from protobuf field: string ScreenID = 4 */ ScreenID: string; /** * Identifier of the user who created * - * @generated from protobuf field: string CreateUserID = 5 [json_name = "CreateUserID"]; + * @generated from protobuf field: string CreateUserID = 5 */ CreateUserID: string; /** * Identifier of the user who did the last update * - * @generated from protobuf field: string UpdateUserID = 6 [json_name = "UpdateUserID"]; + * @generated from protobuf field: string UpdateUserID = 6 */ UpdateUserID: string; /** * Date of creation in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z] * - * @generated from protobuf field: string CreateDateTime = 7 [json_name = "CreateDateTime"]; + * @generated from protobuf field: string CreateDateTime = 7 */ CreateDateTime: string; /** * Date of last update in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z] * - * @generated from protobuf field: string UpdateDateTime = 8 [json_name = "UpdateDateTime"]; + * @generated from protobuf field: string UpdateDateTime = 8 */ UpdateDateTime: string; /** * Identifier of the Tab * - * @generated from protobuf field: string TabID = 9 [json_name = "TabID"]; + * @generated from protobuf field: string TabID = 9 */ TabID: string; /** * Content in the Composed Field * - * @generated from protobuf field: string Payload = 10 [json_name = "Payload"]; + * @generated from protobuf field: string Payload = 10 */ Payload: string; } @@ -84,13 +85,13 @@ export interface ComposedField { */ export interface GetComposedFieldRequest { /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"]; + * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * Identifier of the Composed Field * - * @generated from protobuf field: string ComposedFieldID = 2 [json_name = "ComposedFieldID"]; + * @generated from protobuf field: string ComposedFieldID = 2 */ ComposedFieldID: string; } @@ -101,7 +102,7 @@ export interface GetComposedFieldRequest { */ export interface GetComposedFieldResult { /** - * @generated from protobuf field: vizapi.ComposedField Result = 1 [json_name = "Result"]; + * @generated from protobuf field: vizapi.ComposedField Result = 1 */ Result?: ComposedField; } @@ -112,31 +113,31 @@ export interface GetComposedFieldResult { */ export interface CreateComposedFieldRequest { /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"]; + * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * Name of the Composed Field * - * @generated from protobuf field: string Name = 2 [json_name = "Name"]; + * @generated from protobuf field: string Name = 2 */ Name: string; /** * Identifier of the Screen * - * @generated from protobuf field: string ScreenID = 3 [json_name = "ScreenID"]; + * @generated from protobuf field: string ScreenID = 3 */ ScreenID: string; /** * Identifier of the Tab * - * @generated from protobuf field: string TabID = 4 [json_name = "TabID"]; + * @generated from protobuf field: string TabID = 4 */ TabID: string; /** * Content in the Composed Field * - * @generated from protobuf field: string Payload = 5 [json_name = "Payload"]; + * @generated from protobuf field: string Payload = 5 */ Payload: string; } @@ -149,7 +150,7 @@ export interface CreateComposedFieldResult { /** * Identifier of the Composed Field * - * @generated from protobuf field: string ComposedFieldID = 1 [json_name = "ComposedFieldID"]; + * @generated from protobuf field: string ComposedFieldID = 1 */ ComposedFieldID: string; } @@ -160,37 +161,37 @@ export interface CreateComposedFieldResult { */ export interface UpdateComposedFieldRequest { /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"]; + * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * Identifier of the Composed Field * - * @generated from protobuf field: string ComposedFieldID = 2 [json_name = "ComposedFieldID"]; + * @generated from protobuf field: string ComposedFieldID = 2 */ ComposedFieldID: string; /** * Name of the Composed Field * - * @generated from protobuf field: string Name = 3 [json_name = "Name"]; + * @generated from protobuf field: string Name = 3 */ Name: string; /** * Identifier of the Screen * - * @generated from protobuf field: string ScreenID = 4 [json_name = "ScreenID"]; + * @generated from protobuf field: string ScreenID = 4 */ ScreenID: string; /** * Identifier of the Tab * - * @generated from protobuf field: string TabID = 5 [json_name = "TabID"]; + * @generated from protobuf field: string TabID = 5 */ TabID: string; /** * Content in the Composed Field * - * @generated from protobuf field: string Payload = 6 [json_name = "Payload"]; + * @generated from protobuf field: string Payload = 6 */ Payload: string; } @@ -203,7 +204,7 @@ export interface UpdateComposedFieldResult { /** * Identifier of the Composed Field * - * @generated from protobuf field: string ComposedFieldID = 1 [json_name = "ComposedFieldID"]; + * @generated from protobuf field: string ComposedFieldID = 1 */ ComposedFieldID: string; } @@ -214,13 +215,13 @@ export interface UpdateComposedFieldResult { */ export interface DeleteComposedFieldRequest { /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"]; + * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * Identifier of the Composed Field * - * @generated from protobuf field: string ComposedFieldID = 2 [json_name = "ComposedFieldID"]; + * @generated from protobuf field: string ComposedFieldID = 2 */ ComposedFieldID: string; } @@ -234,19 +235,19 @@ export interface DeleteComposedFieldResult { */ export interface ListComposedFieldRequest { /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"]; + * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * Identifier of the Screen * - * @generated from protobuf field: string ScreenID = 2 [json_name = "ScreenID"]; + * @generated from protobuf field: string ScreenID = 2 */ ScreenID: string; /** * Identifier of the Tab * - * @generated from protobuf field: string TabID = 3 [json_name = "TabID"]; + * @generated from protobuf field: string TabID = 3 */ TabID: string; } @@ -259,7 +260,379 @@ export interface ListComposedFieldResult { /** * All Content in a Composed Field * - * @generated from protobuf field: repeated vizapi.ComposedField Results = 1 [json_name = "Results"]; + * @generated from protobuf field: repeated vizapi.ComposedField Results = 1 + */ + Results: ComposedField[]; +} +/** + * IDs of the Composed Field + * + * @generated from protobuf message vizapi.GetProjectComposedFieldRequest + */ +export interface GetProjectComposedFieldRequest { + /** + * @generated from protobuf field: api.RequestProjectHeader Header = 1 + */ + Header?: RequestProjectHeader; + /** + * Identifier of the Composed Field + * + * @generated from protobuf field: string ComposedFieldID = 2 + */ + ComposedFieldID: string; +} +/** + * All the Content about the composed field + * + * @generated from protobuf message vizapi.GetProjectComposedFieldResult + */ +export interface GetProjectComposedFieldResult { + /** + * @generated from protobuf field: vizapi.ComposedField Result = 1 + */ + Result?: ComposedField; +} +/** + * Content that needs to be stored + * + * @generated from protobuf message vizapi.CreateProjectComposedFieldRequest + */ +export interface CreateProjectComposedFieldRequest { + /** + * @generated from protobuf field: api.RequestProjectHeader Header = 1 + */ + Header?: RequestProjectHeader; + /** + * Name of the Composed Field + * + * @generated from protobuf field: string Name = 2 + */ + Name: string; + /** + * Identifier of the Screen + * + * @generated from protobuf field: string ScreenID = 3 + */ + ScreenID: string; + /** + * Identifier of the Tab + * + * @generated from protobuf field: string TabID = 4 + */ + TabID: string; + /** + * Content in the Composed Field + * + * @generated from protobuf field: string Payload = 5 + */ + Payload: string; +} +/** + * ID of the created Composed Field + * + * @generated from protobuf message vizapi.CreateProjectComposedFieldResult + */ +export interface CreateProjectComposedFieldResult { + /** + * Identifier of the Composed Field + * + * @generated from protobuf field: string ComposedFieldID = 1 + */ + ComposedFieldID: string; +} +/** + * Content that needs to be updated + * + * @generated from protobuf message vizapi.UpdateProjectComposedFieldRequest + */ +export interface UpdateProjectComposedFieldRequest { + /** + * @generated from protobuf field: api.RequestProjectHeader Header = 1 + */ + Header?: RequestProjectHeader; + /** + * Identifier of the Composed Field + * + * @generated from protobuf field: string ComposedFieldID = 2 + */ + ComposedFieldID: string; + /** + * Name of the Composed Field + * + * @generated from protobuf field: string Name = 3 + */ + Name: string; + /** + * Identifier of the Screen + * + * @generated from protobuf field: string ScreenID = 4 + */ + ScreenID: string; + /** + * Identifier of the Tab + * + * @generated from protobuf field: string TabID = 5 + */ + TabID: string; + /** + * Content in the Composed Field + * + * @generated from protobuf field: string Payload = 6 + */ + Payload: string; +} +/** + * Updated dashboard ID + * + * @generated from protobuf message vizapi.UpdateProjectComposedFieldResult + */ +export interface UpdateProjectComposedFieldResult { + /** + * Identifier of the Composed Field + * + * @generated from protobuf field: string ComposedFieldID = 1 + */ + ComposedFieldID: string; +} +/** + * IDs of the Composed Field to be deleted + * + * @generated from protobuf message vizapi.DeleteProjectComposedFieldRequest + */ +export interface DeleteProjectComposedFieldRequest { + /** + * @generated from protobuf field: api.RequestProjectHeader Header = 1 + */ + Header?: RequestProjectHeader; + /** + * Identifier of the Composed Field + * + * @generated from protobuf field: string ComposedFieldID = 2 + */ + ComposedFieldID: string; +} +/** + * @generated from protobuf message vizapi.DeleteProjectComposedFieldResult + */ +export interface DeleteProjectComposedFieldResult { +} +/** + * @generated from protobuf message vizapi.ListProjectComposedFieldRequest + */ +export interface ListProjectComposedFieldRequest { + /** + * @generated from protobuf field: api.RequestProjectHeader Header = 1 + */ + Header?: RequestProjectHeader; + /** + * Identifier of the Screen + * + * @generated from protobuf field: string ScreenID = 2 + */ + ScreenID: string; + /** + * Identifier of the Tab + * + * @generated from protobuf field: string TabID = 3 + */ + TabID: string; +} +/** + * List of Composed Fields + * + * @generated from protobuf message vizapi.ListProjectComposedFieldResult + */ +export interface ListProjectComposedFieldResult { + /** + * All Content in a Composed Field + * + * @generated from protobuf field: repeated vizapi.ComposedField Results = 1 + */ + Results: ComposedField[]; +} +/** + * IDs of the Composed Field + * + * @generated from protobuf message vizapi.GetSiteComposedFieldRequest + */ +export interface GetSiteComposedFieldRequest { + /** + * @generated from protobuf field: api.RequestSiteHeader Header = 1 + */ + Header?: RequestSiteHeader; + /** + * Identifier of the Composed Field + * + * @generated from protobuf field: string ComposedFieldID = 2 + */ + ComposedFieldID: string; +} +/** + * All the Content about the composed field + * + * @generated from protobuf message vizapi.GetSiteComposedFieldResult + */ +export interface GetSiteComposedFieldResult { + /** + * @generated from protobuf field: vizapi.ComposedField Result = 1 + */ + Result?: ComposedField; +} +/** + * Content that needs to be stored + * + * @generated from protobuf message vizapi.CreateSiteComposedFieldRequest + */ +export interface CreateSiteComposedFieldRequest { + /** + * @generated from protobuf field: api.RequestSiteHeader Header = 1 + */ + Header?: RequestSiteHeader; + /** + * Name of the Composed Field + * + * @generated from protobuf field: string Name = 2 + */ + Name: string; + /** + * Identifier of the Screen + * + * @generated from protobuf field: string ScreenID = 3 + */ + ScreenID: string; + /** + * Identifier of the Tab + * + * @generated from protobuf field: string TabID = 4 + */ + TabID: string; + /** + * Content in the Composed Field + * + * @generated from protobuf field: string Payload = 5 + */ + Payload: string; +} +/** + * ID of the created Composed Field + * + * @generated from protobuf message vizapi.CreateSiteComposedFieldResult + */ +export interface CreateSiteComposedFieldResult { + /** + * Identifier of the Composed Field + * + * @generated from protobuf field: string ComposedFieldID = 1 + */ + ComposedFieldID: string; +} +/** + * Content that needs to be updated + * + * @generated from protobuf message vizapi.UpdateSiteComposedFieldRequest + */ +export interface UpdateSiteComposedFieldRequest { + /** + * @generated from protobuf field: api.RequestSiteHeader Header = 1 + */ + Header?: RequestSiteHeader; + /** + * Identifier of the Composed Field + * + * @generated from protobuf field: string ComposedFieldID = 2 + */ + ComposedFieldID: string; + /** + * Name of the Composed Field + * + * @generated from protobuf field: string Name = 3 + */ + Name: string; + /** + * Identifier of the Screen + * + * @generated from protobuf field: string ScreenID = 4 + */ + ScreenID: string; + /** + * Identifier of the Tab + * + * @generated from protobuf field: string TabID = 5 + */ + TabID: string; + /** + * Content in the Composed Field + * + * @generated from protobuf field: string Payload = 6 + */ + Payload: string; +} +/** + * Updated dashboard ID + * + * @generated from protobuf message vizapi.UpdateSiteComposedFieldResult + */ +export interface UpdateSiteComposedFieldResult { + /** + * Identifier of the Composed Field + * + * @generated from protobuf field: string ComposedFieldID = 1 + */ + ComposedFieldID: string; +} +/** + * IDs of the Composed Field to be deleted + * + * @generated from protobuf message vizapi.DeleteSiteComposedFieldRequest + */ +export interface DeleteSiteComposedFieldRequest { + /** + * @generated from protobuf field: api.RequestSiteHeader Header = 1 + */ + Header?: RequestSiteHeader; + /** + * Identifier of the Composed Field + * + * @generated from protobuf field: string ComposedFieldID = 2 + */ + ComposedFieldID: string; +} +/** + * @generated from protobuf message vizapi.DeleteSiteComposedFieldResult + */ +export interface DeleteSiteComposedFieldResult { +} +/** + * @generated from protobuf message vizapi.ListSiteComposedFieldRequest + */ +export interface ListSiteComposedFieldRequest { + /** + * @generated from protobuf field: api.RequestSiteHeader Header = 1 + */ + Header?: RequestSiteHeader; + /** + * Identifier of the Screen + * + * @generated from protobuf field: string ScreenID = 2 + */ + ScreenID: string; + /** + * Identifier of the Tab + * + * @generated from protobuf field: string TabID = 3 + */ + TabID: string; +} +/** + * List of Composed Fields + * + * @generated from protobuf message vizapi.ListSiteComposedFieldResult + */ +export interface ListSiteComposedFieldResult { + /** + * All Content in a Composed Field + * + * @generated from protobuf field: repeated vizapi.ComposedField Results = 1 */ Results: ComposedField[]; } @@ -300,34 +673,34 @@ class ComposedField$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string ComposedFieldID = 1 [json_name = "ComposedFieldID"];*/ 1: + case /* string ComposedFieldID */ 1: message.ComposedFieldID = reader.string(); break; - case /* string Name = 2 [json_name = "Name"];*/ 2: + case /* string Name */ 2: message.Name = reader.string(); break; - case /* string ProjectID = 3 [json_name = "ProjectID"];*/ 3: + case /* string ProjectID */ 3: message.ProjectID = reader.string(); break; - case /* string ScreenID = 4 [json_name = "ScreenID"];*/ 4: + case /* string ScreenID */ 4: message.ScreenID = reader.string(); break; - case /* string CreateUserID = 5 [json_name = "CreateUserID"];*/ 5: + case /* string CreateUserID */ 5: message.CreateUserID = reader.string(); break; - case /* string UpdateUserID = 6 [json_name = "UpdateUserID"];*/ 6: + case /* string UpdateUserID */ 6: message.UpdateUserID = reader.string(); break; - case /* string CreateDateTime = 7 [json_name = "CreateDateTime"];*/ 7: + case /* string CreateDateTime */ 7: message.CreateDateTime = reader.string(); break; - case /* string UpdateDateTime = 8 [json_name = "UpdateDateTime"];*/ 8: + case /* string UpdateDateTime */ 8: message.UpdateDateTime = reader.string(); break; - case /* string TabID = 9 [json_name = "TabID"];*/ 9: + case /* string TabID */ 9: message.TabID = reader.string(); break; - case /* string Payload = 10 [json_name = "Payload"];*/ 10: + case /* string Payload */ 10: message.Payload = reader.string(); break; default: @@ -342,34 +715,34 @@ class ComposedField$Type extends MessageType { return message; } internalBinaryWrite(message: ComposedField, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string ComposedFieldID = 1 [json_name = "ComposedFieldID"]; */ + /* string ComposedFieldID = 1; */ if (message.ComposedFieldID !== "") writer.tag(1, WireType.LengthDelimited).string(message.ComposedFieldID); - /* string Name = 2 [json_name = "Name"]; */ + /* string Name = 2; */ if (message.Name !== "") writer.tag(2, WireType.LengthDelimited).string(message.Name); - /* string ProjectID = 3 [json_name = "ProjectID"]; */ + /* string ProjectID = 3; */ if (message.ProjectID !== "") writer.tag(3, WireType.LengthDelimited).string(message.ProjectID); - /* string ScreenID = 4 [json_name = "ScreenID"]; */ + /* string ScreenID = 4; */ if (message.ScreenID !== "") writer.tag(4, WireType.LengthDelimited).string(message.ScreenID); - /* string CreateUserID = 5 [json_name = "CreateUserID"]; */ + /* string CreateUserID = 5; */ if (message.CreateUserID !== "") writer.tag(5, WireType.LengthDelimited).string(message.CreateUserID); - /* string UpdateUserID = 6 [json_name = "UpdateUserID"]; */ + /* string UpdateUserID = 6; */ if (message.UpdateUserID !== "") writer.tag(6, WireType.LengthDelimited).string(message.UpdateUserID); - /* string CreateDateTime = 7 [json_name = "CreateDateTime"]; */ + /* string CreateDateTime = 7; */ if (message.CreateDateTime !== "") writer.tag(7, WireType.LengthDelimited).string(message.CreateDateTime); - /* string UpdateDateTime = 8 [json_name = "UpdateDateTime"]; */ + /* string UpdateDateTime = 8; */ if (message.UpdateDateTime !== "") writer.tag(8, WireType.LengthDelimited).string(message.UpdateDateTime); - /* string TabID = 9 [json_name = "TabID"]; */ + /* string TabID = 9; */ if (message.TabID !== "") writer.tag(9, WireType.LengthDelimited).string(message.TabID); - /* string Payload = 10 [json_name = "Payload"]; */ + /* string Payload = 10; */ if (message.Payload !== "") writer.tag(10, WireType.LengthDelimited).string(message.Payload); let u = options.writeUnknownFields; @@ -402,10 +775,10 @@ class GetComposedFieldRequest$Type extends MessageType while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* api.RequestProjectHeader Header = 1 [json_name = "Header"];*/ 1: + case /* api.RequestProjectHeader Header */ 1: message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; - case /* string ComposedFieldID = 2 [json_name = "ComposedFieldID"];*/ 2: + case /* string ComposedFieldID */ 2: message.ComposedFieldID = reader.string(); break; default: @@ -420,10 +793,10 @@ class GetComposedFieldRequest$Type extends MessageType return message; } internalBinaryWrite(message: GetComposedFieldRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* api.RequestProjectHeader Header = 1 [json_name = "Header"]; */ + /* api.RequestProjectHeader Header = 1; */ if (message.Header) RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); - /* string ComposedFieldID = 2 [json_name = "ComposedFieldID"]; */ + /* string ComposedFieldID = 2; */ if (message.ComposedFieldID !== "") writer.tag(2, WireType.LengthDelimited).string(message.ComposedFieldID); let u = options.writeUnknownFields; @@ -454,7 +827,7 @@ class GetComposedFieldResult$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* vizapi.ComposedField Result = 1 [json_name = "Result"];*/ 1: + case /* vizapi.ComposedField Result */ 1: message.Result = ComposedField.internalBinaryRead(reader, reader.uint32(), options, message.Result); break; default: @@ -469,7 +842,7 @@ class GetComposedFieldResult$Type extends MessageType { return message; } internalBinaryWrite(message: GetComposedFieldResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* vizapi.ComposedField Result = 1 [json_name = "Result"]; */ + /* vizapi.ComposedField Result = 1; */ if (message.Result) ComposedField.internalBinaryWrite(message.Result, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; @@ -508,19 +881,19 @@ class CreateComposedFieldRequest$Type extends MessageType while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* repeated vizapi.ComposedField Results = 1 [json_name = "Results"];*/ 1: + case /* repeated vizapi.ComposedField Results */ 1: message.Results.push(ComposedField.internalBinaryRead(reader, reader.uint32(), options)); break; default: @@ -928,7 +1301,7 @@ class ListComposedFieldResult$Type extends MessageType return message; } internalBinaryWrite(message: ListComposedFieldResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* repeated vizapi.ComposedField Results = 1 [json_name = "Results"]; */ + /* repeated vizapi.ComposedField Results = 1; */ for (let i = 0; i < message.Results.length; i++) ComposedField.internalBinaryWrite(message.Results[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; @@ -941,6 +1314,1124 @@ class ListComposedFieldResult$Type extends MessageType * @generated MessageType for protobuf message vizapi.ListComposedFieldResult */ export const ListComposedFieldResult = new ListComposedFieldResult$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class GetProjectComposedFieldRequest$Type extends MessageType { + constructor() { + super("vizapi.GetProjectComposedFieldRequest", [ + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 2, name: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "IDs of the Composed Field", required: ["Header", "ComposedFieldID"] } } }); + } + create(value?: PartialMessage): GetProjectComposedFieldRequest { + const message = globalThis.Object.create((this.messagePrototype!)); + message.ComposedFieldID = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetProjectComposedFieldRequest): GetProjectComposedFieldRequest { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.RequestProjectHeader Header */ 1: + message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); + break; + case /* string ComposedFieldID */ 2: + message.ComposedFieldID = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: GetProjectComposedFieldRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.RequestProjectHeader Header = 1; */ + if (message.Header) + RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + /* string ComposedFieldID = 2; */ + if (message.ComposedFieldID !== "") + writer.tag(2, WireType.LengthDelimited).string(message.ComposedFieldID); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.GetProjectComposedFieldRequest + */ +export const GetProjectComposedFieldRequest = new GetProjectComposedFieldRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class GetProjectComposedFieldResult$Type extends MessageType { + constructor() { + super("vizapi.GetProjectComposedFieldResult", [ + { no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => ComposedField } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "All the Content about the composed field" } } }); + } + create(value?: PartialMessage): GetProjectComposedFieldResult { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetProjectComposedFieldResult): GetProjectComposedFieldResult { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* vizapi.ComposedField Result */ 1: + message.Result = ComposedField.internalBinaryRead(reader, reader.uint32(), options, message.Result); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: GetProjectComposedFieldResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* vizapi.ComposedField Result = 1; */ + if (message.Result) + ComposedField.internalBinaryWrite(message.Result, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.GetProjectComposedFieldResult + */ +export const GetProjectComposedFieldResult = new GetProjectComposedFieldResult$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class CreateProjectComposedFieldRequest$Type extends MessageType { + constructor() { + super("vizapi.CreateProjectComposedFieldRequest", [ + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "ScreenID", kind: "scalar", localName: "ScreenID", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Screen" }, "validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "TabID", kind: "scalar", localName: "TabID", jsonName: "TabID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Tab" }, "validate.rules": { string: { minLen: "1" } } } }, + { no: 5, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content in the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Content that needs to be stored ", required: ["Header", "Name", "ScreenID", "TabID", "Payload"] } } }); + } + create(value?: PartialMessage): CreateProjectComposedFieldRequest { + const message = globalThis.Object.create((this.messagePrototype!)); + message.Name = ""; + message.ScreenID = ""; + message.TabID = ""; + message.Payload = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateProjectComposedFieldRequest): CreateProjectComposedFieldRequest { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.RequestProjectHeader Header */ 1: + message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); + break; + case /* string Name */ 2: + message.Name = reader.string(); + break; + case /* string ScreenID */ 3: + message.ScreenID = reader.string(); + break; + case /* string TabID */ 4: + message.TabID = reader.string(); + break; + case /* string Payload */ 5: + message.Payload = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: CreateProjectComposedFieldRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.RequestProjectHeader Header = 1; */ + if (message.Header) + RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + /* string Name = 2; */ + if (message.Name !== "") + writer.tag(2, WireType.LengthDelimited).string(message.Name); + /* string ScreenID = 3; */ + if (message.ScreenID !== "") + writer.tag(3, WireType.LengthDelimited).string(message.ScreenID); + /* string TabID = 4; */ + if (message.TabID !== "") + writer.tag(4, WireType.LengthDelimited).string(message.TabID); + /* string Payload = 5; */ + if (message.Payload !== "") + writer.tag(5, WireType.LengthDelimited).string(message.Payload); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.CreateProjectComposedFieldRequest + */ +export const CreateProjectComposedFieldRequest = new CreateProjectComposedFieldRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class CreateProjectComposedFieldResult$Type extends MessageType { + constructor() { + super("vizapi.CreateProjectComposedFieldResult", [ + { no: 1, name: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "ID of the created Composed Field" } } }); + } + create(value?: PartialMessage): CreateProjectComposedFieldResult { + const message = globalThis.Object.create((this.messagePrototype!)); + message.ComposedFieldID = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateProjectComposedFieldResult): CreateProjectComposedFieldResult { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string ComposedFieldID */ 1: + message.ComposedFieldID = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: CreateProjectComposedFieldResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string ComposedFieldID = 1; */ + if (message.ComposedFieldID !== "") + writer.tag(1, WireType.LengthDelimited).string(message.ComposedFieldID); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.CreateProjectComposedFieldResult + */ +export const CreateProjectComposedFieldResult = new CreateProjectComposedFieldResult$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class UpdateProjectComposedFieldRequest$Type extends MessageType { + constructor() { + super("vizapi.UpdateProjectComposedFieldRequest", [ + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 2, name: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "ScreenID", kind: "scalar", localName: "ScreenID", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Screen" }, "validate.rules": { string: { minLen: "1" } } } }, + { no: 5, name: "TabID", kind: "scalar", localName: "TabID", jsonName: "TabID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Tab" }, "validate.rules": { string: { minLen: "1" } } } }, + { no: 6, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content in the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Content that needs to be updated", required: ["Header", "ComposedFieldID", "Name", "ScreenID", "TabID", "Payload"] } } }); + } + create(value?: PartialMessage): UpdateProjectComposedFieldRequest { + const message = globalThis.Object.create((this.messagePrototype!)); + message.ComposedFieldID = ""; + message.Name = ""; + message.ScreenID = ""; + message.TabID = ""; + message.Payload = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateProjectComposedFieldRequest): UpdateProjectComposedFieldRequest { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.RequestProjectHeader Header */ 1: + message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); + break; + case /* string ComposedFieldID */ 2: + message.ComposedFieldID = reader.string(); + break; + case /* string Name */ 3: + message.Name = reader.string(); + break; + case /* string ScreenID */ 4: + message.ScreenID = reader.string(); + break; + case /* string TabID */ 5: + message.TabID = reader.string(); + break; + case /* string Payload */ 6: + message.Payload = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: UpdateProjectComposedFieldRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.RequestProjectHeader Header = 1; */ + if (message.Header) + RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + /* string ComposedFieldID = 2; */ + if (message.ComposedFieldID !== "") + writer.tag(2, WireType.LengthDelimited).string(message.ComposedFieldID); + /* string Name = 3; */ + if (message.Name !== "") + writer.tag(3, WireType.LengthDelimited).string(message.Name); + /* string ScreenID = 4; */ + if (message.ScreenID !== "") + writer.tag(4, WireType.LengthDelimited).string(message.ScreenID); + /* string TabID = 5; */ + if (message.TabID !== "") + writer.tag(5, WireType.LengthDelimited).string(message.TabID); + /* string Payload = 6; */ + if (message.Payload !== "") + writer.tag(6, WireType.LengthDelimited).string(message.Payload); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.UpdateProjectComposedFieldRequest + */ +export const UpdateProjectComposedFieldRequest = new UpdateProjectComposedFieldRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class UpdateProjectComposedFieldResult$Type extends MessageType { + constructor() { + super("vizapi.UpdateProjectComposedFieldResult", [ + { no: 1, name: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Updated dashboard ID" } } }); + } + create(value?: PartialMessage): UpdateProjectComposedFieldResult { + const message = globalThis.Object.create((this.messagePrototype!)); + message.ComposedFieldID = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateProjectComposedFieldResult): UpdateProjectComposedFieldResult { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string ComposedFieldID */ 1: + message.ComposedFieldID = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: UpdateProjectComposedFieldResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string ComposedFieldID = 1; */ + if (message.ComposedFieldID !== "") + writer.tag(1, WireType.LengthDelimited).string(message.ComposedFieldID); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.UpdateProjectComposedFieldResult + */ +export const UpdateProjectComposedFieldResult = new UpdateProjectComposedFieldResult$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class DeleteProjectComposedFieldRequest$Type extends MessageType { + constructor() { + super("vizapi.DeleteProjectComposedFieldRequest", [ + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 2, name: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "IDs of the Composed Field to be deleted", required: ["Header", "ComposedFieldID"] } } }); + } + create(value?: PartialMessage): DeleteProjectComposedFieldRequest { + const message = globalThis.Object.create((this.messagePrototype!)); + message.ComposedFieldID = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteProjectComposedFieldRequest): DeleteProjectComposedFieldRequest { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.RequestProjectHeader Header */ 1: + message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); + break; + case /* string ComposedFieldID */ 2: + message.ComposedFieldID = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: DeleteProjectComposedFieldRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.RequestProjectHeader Header = 1; */ + if (message.Header) + RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + /* string ComposedFieldID = 2; */ + if (message.ComposedFieldID !== "") + writer.tag(2, WireType.LengthDelimited).string(message.ComposedFieldID); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.DeleteProjectComposedFieldRequest + */ +export const DeleteProjectComposedFieldRequest = new DeleteProjectComposedFieldRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class DeleteProjectComposedFieldResult$Type extends MessageType { + constructor() { + super("vizapi.DeleteProjectComposedFieldResult", []); + } + create(value?: PartialMessage): DeleteProjectComposedFieldResult { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteProjectComposedFieldResult): DeleteProjectComposedFieldResult { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: DeleteProjectComposedFieldResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.DeleteProjectComposedFieldResult + */ +export const DeleteProjectComposedFieldResult = new DeleteProjectComposedFieldResult$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class ListProjectComposedFieldRequest$Type extends MessageType { + constructor() { + super("vizapi.ListProjectComposedFieldRequest", [ + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 2, name: "ScreenID", kind: "scalar", localName: "ScreenID", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Screen" } } }, + { no: 3, name: "TabID", kind: "scalar", localName: "TabID", jsonName: "TabID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Tab" } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); + } + create(value?: PartialMessage): ListProjectComposedFieldRequest { + const message = globalThis.Object.create((this.messagePrototype!)); + message.ScreenID = ""; + message.TabID = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListProjectComposedFieldRequest): ListProjectComposedFieldRequest { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.RequestProjectHeader Header */ 1: + message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); + break; + case /* string ScreenID */ 2: + message.ScreenID = reader.string(); + break; + case /* string TabID */ 3: + message.TabID = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: ListProjectComposedFieldRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.RequestProjectHeader Header = 1; */ + if (message.Header) + RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + /* string ScreenID = 2; */ + if (message.ScreenID !== "") + writer.tag(2, WireType.LengthDelimited).string(message.ScreenID); + /* string TabID = 3; */ + if (message.TabID !== "") + writer.tag(3, WireType.LengthDelimited).string(message.TabID); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.ListProjectComposedFieldRequest + */ +export const ListProjectComposedFieldRequest = new ListProjectComposedFieldRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class ListProjectComposedFieldResult$Type extends MessageType { + constructor() { + super("vizapi.ListProjectComposedFieldResult", [ + { no: 1, name: "Results", kind: "message", localName: "Results", jsonName: "Results", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ComposedField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "All Content in a Composed Field" } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "List of Composed Fields" } } }); + } + create(value?: PartialMessage): ListProjectComposedFieldResult { + const message = globalThis.Object.create((this.messagePrototype!)); + message.Results = []; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListProjectComposedFieldResult): ListProjectComposedFieldResult { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated vizapi.ComposedField Results */ 1: + message.Results.push(ComposedField.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: ListProjectComposedFieldResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* repeated vizapi.ComposedField Results = 1; */ + for (let i = 0; i < message.Results.length; i++) + ComposedField.internalBinaryWrite(message.Results[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.ListProjectComposedFieldResult + */ +export const ListProjectComposedFieldResult = new ListProjectComposedFieldResult$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class GetSiteComposedFieldRequest$Type extends MessageType { + constructor() { + super("vizapi.GetSiteComposedFieldRequest", [ + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 2, name: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "IDs of the Composed Field", required: ["Header", "ComposedFieldID"] } } }); + } + create(value?: PartialMessage): GetSiteComposedFieldRequest { + const message = globalThis.Object.create((this.messagePrototype!)); + message.ComposedFieldID = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSiteComposedFieldRequest): GetSiteComposedFieldRequest { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.RequestSiteHeader Header */ 1: + message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); + break; + case /* string ComposedFieldID */ 2: + message.ComposedFieldID = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: GetSiteComposedFieldRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.RequestSiteHeader Header = 1; */ + if (message.Header) + RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + /* string ComposedFieldID = 2; */ + if (message.ComposedFieldID !== "") + writer.tag(2, WireType.LengthDelimited).string(message.ComposedFieldID); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.GetSiteComposedFieldRequest + */ +export const GetSiteComposedFieldRequest = new GetSiteComposedFieldRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class GetSiteComposedFieldResult$Type extends MessageType { + constructor() { + super("vizapi.GetSiteComposedFieldResult", [ + { no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => ComposedField } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "All the Content about the composed field" } } }); + } + create(value?: PartialMessage): GetSiteComposedFieldResult { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSiteComposedFieldResult): GetSiteComposedFieldResult { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* vizapi.ComposedField Result */ 1: + message.Result = ComposedField.internalBinaryRead(reader, reader.uint32(), options, message.Result); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: GetSiteComposedFieldResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* vizapi.ComposedField Result = 1; */ + if (message.Result) + ComposedField.internalBinaryWrite(message.Result, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.GetSiteComposedFieldResult + */ +export const GetSiteComposedFieldResult = new GetSiteComposedFieldResult$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class CreateSiteComposedFieldRequest$Type extends MessageType { + constructor() { + super("vizapi.CreateSiteComposedFieldRequest", [ + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "ScreenID", kind: "scalar", localName: "ScreenID", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Screen" }, "validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "TabID", kind: "scalar", localName: "TabID", jsonName: "TabID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Tab" }, "validate.rules": { string: { minLen: "1" } } } }, + { no: 5, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content in the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Content that needs to be stored ", required: ["Header", "Name", "ScreenID", "TabID", "Payload"] } } }); + } + create(value?: PartialMessage): CreateSiteComposedFieldRequest { + const message = globalThis.Object.create((this.messagePrototype!)); + message.Name = ""; + message.ScreenID = ""; + message.TabID = ""; + message.Payload = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateSiteComposedFieldRequest): CreateSiteComposedFieldRequest { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.RequestSiteHeader Header */ 1: + message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); + break; + case /* string Name */ 2: + message.Name = reader.string(); + break; + case /* string ScreenID */ 3: + message.ScreenID = reader.string(); + break; + case /* string TabID */ 4: + message.TabID = reader.string(); + break; + case /* string Payload */ 5: + message.Payload = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: CreateSiteComposedFieldRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.RequestSiteHeader Header = 1; */ + if (message.Header) + RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + /* string Name = 2; */ + if (message.Name !== "") + writer.tag(2, WireType.LengthDelimited).string(message.Name); + /* string ScreenID = 3; */ + if (message.ScreenID !== "") + writer.tag(3, WireType.LengthDelimited).string(message.ScreenID); + /* string TabID = 4; */ + if (message.TabID !== "") + writer.tag(4, WireType.LengthDelimited).string(message.TabID); + /* string Payload = 5; */ + if (message.Payload !== "") + writer.tag(5, WireType.LengthDelimited).string(message.Payload); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.CreateSiteComposedFieldRequest + */ +export const CreateSiteComposedFieldRequest = new CreateSiteComposedFieldRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class CreateSiteComposedFieldResult$Type extends MessageType { + constructor() { + super("vizapi.CreateSiteComposedFieldResult", [ + { no: 1, name: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "ID of the created Composed Field" } } }); + } + create(value?: PartialMessage): CreateSiteComposedFieldResult { + const message = globalThis.Object.create((this.messagePrototype!)); + message.ComposedFieldID = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateSiteComposedFieldResult): CreateSiteComposedFieldResult { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string ComposedFieldID */ 1: + message.ComposedFieldID = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: CreateSiteComposedFieldResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string ComposedFieldID = 1; */ + if (message.ComposedFieldID !== "") + writer.tag(1, WireType.LengthDelimited).string(message.ComposedFieldID); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.CreateSiteComposedFieldResult + */ +export const CreateSiteComposedFieldResult = new CreateSiteComposedFieldResult$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class UpdateSiteComposedFieldRequest$Type extends MessageType { + constructor() { + super("vizapi.UpdateSiteComposedFieldRequest", [ + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 2, name: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "ScreenID", kind: "scalar", localName: "ScreenID", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Screen" }, "validate.rules": { string: { minLen: "1" } } } }, + { no: 5, name: "TabID", kind: "scalar", localName: "TabID", jsonName: "TabID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Tab" }, "validate.rules": { string: { minLen: "1" } } } }, + { no: 6, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content in the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Content that needs to be updated", required: ["Header", "ComposedFieldID", "Name", "ScreenID", "TabID", "Payload"] } } }); + } + create(value?: PartialMessage): UpdateSiteComposedFieldRequest { + const message = globalThis.Object.create((this.messagePrototype!)); + message.ComposedFieldID = ""; + message.Name = ""; + message.ScreenID = ""; + message.TabID = ""; + message.Payload = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateSiteComposedFieldRequest): UpdateSiteComposedFieldRequest { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.RequestSiteHeader Header */ 1: + message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); + break; + case /* string ComposedFieldID */ 2: + message.ComposedFieldID = reader.string(); + break; + case /* string Name */ 3: + message.Name = reader.string(); + break; + case /* string ScreenID */ 4: + message.ScreenID = reader.string(); + break; + case /* string TabID */ 5: + message.TabID = reader.string(); + break; + case /* string Payload */ 6: + message.Payload = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: UpdateSiteComposedFieldRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.RequestSiteHeader Header = 1; */ + if (message.Header) + RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + /* string ComposedFieldID = 2; */ + if (message.ComposedFieldID !== "") + writer.tag(2, WireType.LengthDelimited).string(message.ComposedFieldID); + /* string Name = 3; */ + if (message.Name !== "") + writer.tag(3, WireType.LengthDelimited).string(message.Name); + /* string ScreenID = 4; */ + if (message.ScreenID !== "") + writer.tag(4, WireType.LengthDelimited).string(message.ScreenID); + /* string TabID = 5; */ + if (message.TabID !== "") + writer.tag(5, WireType.LengthDelimited).string(message.TabID); + /* string Payload = 6; */ + if (message.Payload !== "") + writer.tag(6, WireType.LengthDelimited).string(message.Payload); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.UpdateSiteComposedFieldRequest + */ +export const UpdateSiteComposedFieldRequest = new UpdateSiteComposedFieldRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class UpdateSiteComposedFieldResult$Type extends MessageType { + constructor() { + super("vizapi.UpdateSiteComposedFieldResult", [ + { no: 1, name: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Updated dashboard ID" } } }); + } + create(value?: PartialMessage): UpdateSiteComposedFieldResult { + const message = globalThis.Object.create((this.messagePrototype!)); + message.ComposedFieldID = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateSiteComposedFieldResult): UpdateSiteComposedFieldResult { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string ComposedFieldID */ 1: + message.ComposedFieldID = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: UpdateSiteComposedFieldResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string ComposedFieldID = 1; */ + if (message.ComposedFieldID !== "") + writer.tag(1, WireType.LengthDelimited).string(message.ComposedFieldID); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.UpdateSiteComposedFieldResult + */ +export const UpdateSiteComposedFieldResult = new UpdateSiteComposedFieldResult$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class DeleteSiteComposedFieldRequest$Type extends MessageType { + constructor() { + super("vizapi.DeleteSiteComposedFieldRequest", [ + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 2, name: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "IDs of the Composed Field to be deleted", required: ["Header", "ComposedFieldID"] } } }); + } + create(value?: PartialMessage): DeleteSiteComposedFieldRequest { + const message = globalThis.Object.create((this.messagePrototype!)); + message.ComposedFieldID = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteSiteComposedFieldRequest): DeleteSiteComposedFieldRequest { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.RequestSiteHeader Header */ 1: + message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); + break; + case /* string ComposedFieldID */ 2: + message.ComposedFieldID = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: DeleteSiteComposedFieldRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.RequestSiteHeader Header = 1; */ + if (message.Header) + RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + /* string ComposedFieldID = 2; */ + if (message.ComposedFieldID !== "") + writer.tag(2, WireType.LengthDelimited).string(message.ComposedFieldID); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.DeleteSiteComposedFieldRequest + */ +export const DeleteSiteComposedFieldRequest = new DeleteSiteComposedFieldRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class DeleteSiteComposedFieldResult$Type extends MessageType { + constructor() { + super("vizapi.DeleteSiteComposedFieldResult", []); + } + create(value?: PartialMessage): DeleteSiteComposedFieldResult { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteSiteComposedFieldResult): DeleteSiteComposedFieldResult { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: DeleteSiteComposedFieldResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.DeleteSiteComposedFieldResult + */ +export const DeleteSiteComposedFieldResult = new DeleteSiteComposedFieldResult$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class ListSiteComposedFieldRequest$Type extends MessageType { + constructor() { + super("vizapi.ListSiteComposedFieldRequest", [ + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 2, name: "ScreenID", kind: "scalar", localName: "ScreenID", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Screen" } } }, + { no: 3, name: "TabID", kind: "scalar", localName: "TabID", jsonName: "TabID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Tab" } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); + } + create(value?: PartialMessage): ListSiteComposedFieldRequest { + const message = globalThis.Object.create((this.messagePrototype!)); + message.ScreenID = ""; + message.TabID = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListSiteComposedFieldRequest): ListSiteComposedFieldRequest { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.RequestSiteHeader Header */ 1: + message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); + break; + case /* string ScreenID */ 2: + message.ScreenID = reader.string(); + break; + case /* string TabID */ 3: + message.TabID = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: ListSiteComposedFieldRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.RequestSiteHeader Header = 1; */ + if (message.Header) + RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + /* string ScreenID = 2; */ + if (message.ScreenID !== "") + writer.tag(2, WireType.LengthDelimited).string(message.ScreenID); + /* string TabID = 3; */ + if (message.TabID !== "") + writer.tag(3, WireType.LengthDelimited).string(message.TabID); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.ListSiteComposedFieldRequest + */ +export const ListSiteComposedFieldRequest = new ListSiteComposedFieldRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class ListSiteComposedFieldResult$Type extends MessageType { + constructor() { + super("vizapi.ListSiteComposedFieldResult", [ + { no: 1, name: "Results", kind: "message", localName: "Results", jsonName: "Results", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ComposedField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "All Content in a Composed Field" } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "List of Composed Fields" } } }); + } + create(value?: PartialMessage): ListSiteComposedFieldResult { + const message = globalThis.Object.create((this.messagePrototype!)); + message.Results = []; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListSiteComposedFieldResult): ListSiteComposedFieldResult { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated vizapi.ComposedField Results */ 1: + message.Results.push(ComposedField.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: ListSiteComposedFieldResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* repeated vizapi.ComposedField Results = 1; */ + for (let i = 0; i < message.Results.length; i++) + ComposedField.internalBinaryWrite(message.Results[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.ListSiteComposedFieldResult + */ +export const ListSiteComposedFieldResult = new ListSiteComposedFieldResult$Type(); /** * @generated ServiceType for protobuf service vizapi.ComposedFieldService */ @@ -949,5 +2440,15 @@ export const ComposedFieldService = new ServiceType("vizapi.ComposedFieldService { name: "Create", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Composed Field"], summary: "Create a composed field", description: "TODO" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: CreateComposedFieldRequest, O: CreateComposedFieldResult }, { name: "Update", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Composed Field"], summary: "Update a composed field", description: "TODO" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: UpdateComposedFieldRequest, O: UpdateComposedFieldResult }, { name: "Delete", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Composed Field"], summary: "Delete a composed field", description: "TODO" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: DeleteComposedFieldRequest, O: DeleteComposedFieldResult }, - { name: "List", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Composed Field"], summary: "List composed fields", description: "List all composed fields present under the same Project and with the same Screen and Tab IDs" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ListComposedFieldRequest, O: ListComposedFieldResult } + { name: "List", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Composed Field"], summary: "List composed fields", description: "List all composed fields present under the same Project and with the same Screen and Tab IDs" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ListComposedFieldRequest, O: ListComposedFieldResult }, + { name: "GetProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Composed Field"], summary: "Get a composed field" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: GetProjectComposedFieldRequest, O: GetProjectComposedFieldResult }, + { name: "CreateProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Composed Field"], summary: "Create a composed field", description: "TODO" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: CreateProjectComposedFieldRequest, O: CreateProjectComposedFieldResult }, + { name: "UpdateProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Composed Field"], summary: "Update a composed field", description: "TODO" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: UpdateProjectComposedFieldRequest, O: UpdateProjectComposedFieldResult }, + { name: "DeleteProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Composed Field"], summary: "Delete a composed field", description: "TODO" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: DeleteProjectComposedFieldRequest, O: DeleteProjectComposedFieldResult }, + { name: "ListProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Composed Field"], summary: "List composed fields", description: "List all composed fields present under the same Project and with the same Screen and Tab IDs" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ListProjectComposedFieldRequest, O: ListProjectComposedFieldResult }, + { name: "GetSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Composed Field"], summary: "Get a composed field" }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: GetSiteComposedFieldRequest, O: GetSiteComposedFieldResult }, + { name: "CreateSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Composed Field"], summary: "Create a composed field", description: "TODO" }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: CreateSiteComposedFieldRequest, O: CreateSiteComposedFieldResult }, + { name: "UpdateSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Composed Field"], summary: "Update a composed field", description: "TODO" }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: UpdateSiteComposedFieldRequest, O: UpdateSiteComposedFieldResult }, + { name: "DeleteSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Composed Field"], summary: "Delete a composed field", description: "TODO" }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: DeleteSiteComposedFieldRequest, O: DeleteSiteComposedFieldResult }, + { name: "ListSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Composed Field"], summary: "List composed fields", description: "List all composed fields present under the same Site and with the same Screen and Tab IDs" }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ListSiteComposedFieldRequest, O: ListSiteComposedFieldResult } ], { "api.k8sService": "views-server" }); diff --git a/viz-dashboard.client.ts b/viz-dashboard.client.ts index 42b6adb..ee8f2f7 100644 --- a/viz-dashboard.client.ts +++ b/viz-dashboard.client.ts @@ -1,9 +1,35 @@ -// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name +// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name // @generated from protobuf file "viz-dashboard.proto" (package "vizapi", syntax proto3) // tslint:disable import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; import type { ServiceInfo } from "@protobuf-ts/runtime-rpc"; import { DashboardService } from "./viz-dashboard"; +import type { CopySiteDashboardResult } from "./viz-dashboard"; +import type { CopySiteDashboardRequest } from "./viz-dashboard"; +import type { GetSiteDashboardResult } from "./viz-dashboard"; +import type { GetSiteDashboardRequest } from "./viz-dashboard"; +import type { UpdateSiteDashboardResult } from "./viz-dashboard"; +import type { UpdateSiteDashboardRequest } from "./viz-dashboard"; +import type { DeleteDashboardsForSiteResult } from "./viz-dashboard"; +import type { DeleteDashboardsForSiteRequest } from "./viz-dashboard"; +import type { DeleteSiteDashboardResult } from "./viz-dashboard"; +import type { DeleteSiteDashboardRequest } from "./viz-dashboard"; +import type { ListSiteDashboardResult } from "./viz-dashboard"; +import type { ListSiteDashboardRequest } from "./viz-dashboard"; +import type { CreateSiteDashboardResult } from "./viz-dashboard"; +import type { CreateSiteDashboardRequest } from "./viz-dashboard"; +import type { CopyProjectDashboardResult } from "./viz-dashboard"; +import type { CopyProjectDashboardRequest } from "./viz-dashboard"; +import type { GetProjectDashboardResult } from "./viz-dashboard"; +import type { GetProjectDashboardRequest } from "./viz-dashboard"; +import type { UpdateProjectDashboardResult } from "./viz-dashboard"; +import type { UpdateProjectDashboardRequest } from "./viz-dashboard"; +import type { DeleteProjectDashboardResult } from "./viz-dashboard"; +import type { DeleteProjectDashboardRequest } from "./viz-dashboard"; +import type { ListProjectDashboardResult } from "./viz-dashboard"; +import type { ListProjectDashboardRequest } from "./viz-dashboard"; +import type { CreateProjectDashboardResult } from "./viz-dashboard"; +import type { CreateProjectDashboardRequest } from "./viz-dashboard"; import type { CopyDashboardResult } from "./viz-dashboard"; import type { CopyDashboardRequest } from "./viz-dashboard"; import type { GetDashboardResult } from "./viz-dashboard"; @@ -28,37 +54,89 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc"; */ export interface IDashboardServiceClient { /** - * @generated from protobuf rpc: Create(vizapi.CreateDashboardRequest) returns (vizapi.CreateDashboardResult); + * @generated from protobuf rpc: Create */ create(input: CreateDashboardRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: List(vizapi.ListDashboardRequest) returns (vizapi.ListDashboardResult); + * @generated from protobuf rpc: List */ list(input: ListDashboardRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: Delete(vizapi.DeleteDashboardRequest) returns (vizapi.DeleteDashboardResult); + * @generated from protobuf rpc: Delete */ delete(input: DeleteDashboardRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: DeleteDashboardsForOrganisation(vizapi.DeleteDashboardsForOrganisationRequest) returns (vizapi.DeleteDashboardsForOrganisationResult); + * @generated from protobuf rpc: DeleteDashboardsForOrganisation */ deleteDashboardsForOrganisation(input: DeleteDashboardsForOrganisationRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: DeleteDashboardsForProject(vizapi.DeleteDashboardsForProjectRequest) returns (vizapi.DeleteDashboardsForProjectResult); + * @generated from protobuf rpc: DeleteDashboardsForProject */ deleteDashboardsForProject(input: DeleteDashboardsForProjectRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: Update(vizapi.UpdateDashboardRequest) returns (vizapi.UpdateDashboardResult); + * @generated from protobuf rpc: Update */ update(input: UpdateDashboardRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: Get(vizapi.GetDashboardRequest) returns (vizapi.GetDashboardResult); + * @generated from protobuf rpc: Get */ get(input: GetDashboardRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: Copy(vizapi.CopyDashboardRequest) returns (vizapi.CopyDashboardResult); + * @generated from protobuf rpc: Copy */ copy(input: CopyDashboardRequest, options?: RpcOptions): UnaryCall; + /** + * @generated from protobuf rpc: CreateProject + */ + createProject(input: CreateProjectDashboardRequest, options?: RpcOptions): UnaryCall; + /** + * @generated from protobuf rpc: ListProject + */ + listProject(input: ListProjectDashboardRequest, options?: RpcOptions): UnaryCall; + /** + * @generated from protobuf rpc: DeleteProject + */ + deleteProject(input: DeleteProjectDashboardRequest, options?: RpcOptions): UnaryCall; + /** + * @generated from protobuf rpc: UpdateProject + */ + updateProject(input: UpdateProjectDashboardRequest, options?: RpcOptions): UnaryCall; + /** + * @generated from protobuf rpc: GetProject + */ + getProject(input: GetProjectDashboardRequest, options?: RpcOptions): UnaryCall; + /** + * @generated from protobuf rpc: CopyProject + */ + copyProject(input: CopyProjectDashboardRequest, options?: RpcOptions): UnaryCall; + /** + * @generated from protobuf rpc: CreateSite + */ + createSite(input: CreateSiteDashboardRequest, options?: RpcOptions): UnaryCall; + /** + * @generated from protobuf rpc: ListSite + */ + listSite(input: ListSiteDashboardRequest, options?: RpcOptions): UnaryCall; + /** + * @generated from protobuf rpc: DeleteSite + */ + deleteSite(input: DeleteSiteDashboardRequest, options?: RpcOptions): UnaryCall; + /** + * @generated from protobuf rpc: DeleteDashboardsForSite + */ + deleteDashboardsForSite(input: DeleteDashboardsForSiteRequest, options?: RpcOptions): UnaryCall; + /** + * @generated from protobuf rpc: UpdateSite + */ + updateSite(input: UpdateSiteDashboardRequest, options?: RpcOptions): UnaryCall; + /** + * @generated from protobuf rpc: GetSite + */ + getSite(input: GetSiteDashboardRequest, options?: RpcOptions): UnaryCall; + /** + * @generated from protobuf rpc: CopySite + */ + copySite(input: CopySiteDashboardRequest, options?: RpcOptions): UnaryCall; } /** * @generated from protobuf service vizapi.DashboardService @@ -70,59 +148,150 @@ export class DashboardServiceClient implements IDashboardServiceClient, ServiceI constructor(private readonly _transport: RpcTransport) { } /** - * @generated from protobuf rpc: Create(vizapi.CreateDashboardRequest) returns (vizapi.CreateDashboardResult); + * @generated from protobuf rpc: Create */ create(input: CreateDashboardRequest, options?: RpcOptions): UnaryCall { const method = this.methods[0], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: List(vizapi.ListDashboardRequest) returns (vizapi.ListDashboardResult); + * @generated from protobuf rpc: List */ list(input: ListDashboardRequest, options?: RpcOptions): UnaryCall { const method = this.methods[1], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: Delete(vizapi.DeleteDashboardRequest) returns (vizapi.DeleteDashboardResult); + * @generated from protobuf rpc: Delete */ delete(input: DeleteDashboardRequest, options?: RpcOptions): UnaryCall { const method = this.methods[2], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: DeleteDashboardsForOrganisation(vizapi.DeleteDashboardsForOrganisationRequest) returns (vizapi.DeleteDashboardsForOrganisationResult); + * @generated from protobuf rpc: DeleteDashboardsForOrganisation */ deleteDashboardsForOrganisation(input: DeleteDashboardsForOrganisationRequest, options?: RpcOptions): UnaryCall { const method = this.methods[3], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: DeleteDashboardsForProject(vizapi.DeleteDashboardsForProjectRequest) returns (vizapi.DeleteDashboardsForProjectResult); + * @generated from protobuf rpc: DeleteDashboardsForProject */ deleteDashboardsForProject(input: DeleteDashboardsForProjectRequest, options?: RpcOptions): UnaryCall { const method = this.methods[4], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: Update(vizapi.UpdateDashboardRequest) returns (vizapi.UpdateDashboardResult); + * @generated from protobuf rpc: Update */ update(input: UpdateDashboardRequest, options?: RpcOptions): UnaryCall { const method = this.methods[5], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: Get(vizapi.GetDashboardRequest) returns (vizapi.GetDashboardResult); + * @generated from protobuf rpc: Get */ get(input: GetDashboardRequest, options?: RpcOptions): UnaryCall { const method = this.methods[6], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: Copy(vizapi.CopyDashboardRequest) returns (vizapi.CopyDashboardResult); + * @generated from protobuf rpc: Copy */ copy(input: CopyDashboardRequest, options?: RpcOptions): UnaryCall { const method = this.methods[7], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } + /** + * @generated from protobuf rpc: CreateProject + */ + createProject(input: CreateProjectDashboardRequest, options?: RpcOptions): UnaryCall { + const method = this.methods[8], opt = this._transport.mergeOptions(options); + return stackIntercept("unary", this._transport, method, opt, input); + } + /** + * @generated from protobuf rpc: ListProject + */ + listProject(input: ListProjectDashboardRequest, options?: RpcOptions): UnaryCall { + const method = this.methods[9], opt = this._transport.mergeOptions(options); + return stackIntercept("unary", this._transport, method, opt, input); + } + /** + * @generated from protobuf rpc: DeleteProject + */ + deleteProject(input: DeleteProjectDashboardRequest, options?: RpcOptions): UnaryCall { + const method = this.methods[10], opt = this._transport.mergeOptions(options); + return stackIntercept("unary", this._transport, method, opt, input); + } + /** + * @generated from protobuf rpc: UpdateProject + */ + updateProject(input: UpdateProjectDashboardRequest, options?: RpcOptions): UnaryCall { + const method = this.methods[11], opt = this._transport.mergeOptions(options); + return stackIntercept("unary", this._transport, method, opt, input); + } + /** + * @generated from protobuf rpc: GetProject + */ + getProject(input: GetProjectDashboardRequest, options?: RpcOptions): UnaryCall { + const method = this.methods[12], opt = this._transport.mergeOptions(options); + return stackIntercept("unary", this._transport, method, opt, input); + } + /** + * @generated from protobuf rpc: CopyProject + */ + copyProject(input: CopyProjectDashboardRequest, options?: RpcOptions): UnaryCall { + const method = this.methods[13], opt = this._transport.mergeOptions(options); + return stackIntercept("unary", this._transport, method, opt, input); + } + /** + * @generated from protobuf rpc: CreateSite + */ + createSite(input: CreateSiteDashboardRequest, options?: RpcOptions): UnaryCall { + const method = this.methods[14], opt = this._transport.mergeOptions(options); + return stackIntercept("unary", this._transport, method, opt, input); + } + /** + * @generated from protobuf rpc: ListSite + */ + listSite(input: ListSiteDashboardRequest, options?: RpcOptions): UnaryCall { + const method = this.methods[15], opt = this._transport.mergeOptions(options); + return stackIntercept("unary", this._transport, method, opt, input); + } + /** + * @generated from protobuf rpc: DeleteSite + */ + deleteSite(input: DeleteSiteDashboardRequest, options?: RpcOptions): UnaryCall { + const method = this.methods[16], opt = this._transport.mergeOptions(options); + return stackIntercept("unary", this._transport, method, opt, input); + } + /** + * @generated from protobuf rpc: DeleteDashboardsForSite + */ + deleteDashboardsForSite(input: DeleteDashboardsForSiteRequest, options?: RpcOptions): UnaryCall { + const method = this.methods[17], opt = this._transport.mergeOptions(options); + return stackIntercept("unary", this._transport, method, opt, input); + } + /** + * @generated from protobuf rpc: UpdateSite + */ + updateSite(input: UpdateSiteDashboardRequest, options?: RpcOptions): UnaryCall { + const method = this.methods[18], opt = this._transport.mergeOptions(options); + return stackIntercept("unary", this._transport, method, opt, input); + } + /** + * @generated from protobuf rpc: GetSite + */ + getSite(input: GetSiteDashboardRequest, options?: RpcOptions): UnaryCall { + const method = this.methods[19], opt = this._transport.mergeOptions(options); + return stackIntercept("unary", this._transport, method, opt, input); + } + /** + * @generated from protobuf rpc: CopySite + */ + copySite(input: CopySiteDashboardRequest, options?: RpcOptions): UnaryCall { + const method = this.methods[20], opt = this._transport.mergeOptions(options); + return stackIntercept("unary", this._transport, method, opt, input); + } } diff --git a/viz-dashboard.ts b/viz-dashboard.ts index c921b50..3f93513 100644 --- a/viz-dashboard.ts +++ b/viz-dashboard.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name +// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name // @generated from protobuf file "viz-dashboard.proto" (package "vizapi", syntax proto3) // tslint:disable import { ServiceType } from "@protobuf-ts/runtime-rpc"; @@ -11,6 +11,7 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime"; import type { PartialMessage } from "@protobuf-ts/runtime"; import { reflectionMergePartial } from "@protobuf-ts/runtime"; import { MessageType } from "@protobuf-ts/runtime"; +import { RequestSiteHeader } from "./core/shared"; import { Int32Object } from "./core/shared"; import { BoolObject } from "./core/shared"; import { StringObject } from "./core/shared"; @@ -22,53 +23,53 @@ export interface Dashboard { /** * Identifier of the Dashboard * - * @generated from protobuf field: string DashboardID = 1 [json_name = "DashboardID"]; + * @generated from protobuf field: string DashboardID = 1 */ DashboardID: string; /** * Name of the Dashboard * - * @generated from protobuf field: string Name = 2 [json_name = "Name"]; + * @generated from protobuf field: string Name = 2 */ Name: string; /** * All the widgets in Dashboard * - * @generated from protobuf field: string Content = 3 [json_name = "Content"]; + * @generated from protobuf field: string Content = 3 */ Content: string; /** * Identifier of the user who created * - * @generated from protobuf field: string CreateUserID = 4 [json_name = "CreateUserID"]; + * @generated from protobuf field: string CreateUserID = 4 */ CreateUserID: string; /** * Identifier of the user who did the last update * - * @generated from protobuf field: string UpdateUserID = 5 [json_name = "UpdateUserID"]; + * @generated from protobuf field: string UpdateUserID = 5 */ UpdateUserID: string; /** * Date of creation in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z] * - * @generated from protobuf field: string CreateDate = 6 [json_name = "CreateDate"]; + * @generated from protobuf field: string CreateDate = 6 */ CreateDate: string; /** * Date of last update in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z] * - * @generated from protobuf field: string UpdateDate = 7 [json_name = "UpdateDate"]; + * @generated from protobuf field: string UpdateDate = 7 */ UpdateDate: string; /** * Visibility of the Dashboard * - * @generated from protobuf field: bool IsPrivate = 8 [json_name = "IsPrivate"]; + * @generated from protobuf field: bool IsPrivate = 8 */ IsPrivate: boolean; /** - * @generated from protobuf field: int32 AutoRefresh = 12 [json_name = "AutoRefresh"]; + * @generated from protobuf field: int32 AutoRefresh = 12 */ AutoRefresh: number; } @@ -77,7 +78,7 @@ export interface Dashboard { */ export interface ListDashboardRequest { /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"]; + * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; } @@ -90,7 +91,7 @@ export interface ListDashboardResult { /** * All information in a Dashboard * - * @generated from protobuf field: repeated vizapi.Dashboard Results = 1 [json_name = "Results"]; + * @generated from protobuf field: repeated vizapi.Dashboard Results = 1 */ Results: Dashboard[]; } @@ -101,7 +102,7 @@ export interface ListDashboardResult { */ export interface CreateDashboardRequest { /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"]; + * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; // empty string for name, PO: name could be empty @@ -109,23 +110,23 @@ export interface CreateDashboardRequest { /** * Name of the Dashboard * - * @generated from protobuf field: string Name = 2 [json_name = "Name"]; + * @generated from protobuf field: string Name = 2 */ Name: string; /** * All widgets in Dashboard * - * @generated from protobuf field: string content = 3; + * @generated from protobuf field: string content = 3 */ content: string; /** * Visibility of the Dashboard * - * @generated from protobuf field: bool IsPrivate = 4 [json_name = "IsPrivate"]; + * @generated from protobuf field: bool IsPrivate = 4 */ IsPrivate: boolean; /** - * @generated from protobuf field: int32 AutoRefresh = 8 [json_name = "AutoRefresh"]; + * @generated from protobuf field: int32 AutoRefresh = 8 */ AutoRefresh: number; } @@ -136,7 +137,7 @@ export interface CreateDashboardRequest { */ export interface CreateDashboardResult { /** - * @generated from protobuf field: vizapi.Dashboard Result = 1 [json_name = "Result"]; + * @generated from protobuf field: vizapi.Dashboard Result = 1 */ Result?: Dashboard; } @@ -147,13 +148,13 @@ export interface CreateDashboardResult { */ export interface DeleteDashboardRequest { /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"]; + * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * Identifier of the Dashboard * - * @generated from protobuf field: string DashboardID = 2 [json_name = "DashboardID"]; + * @generated from protobuf field: string DashboardID = 2 */ DashboardID: string; } @@ -171,7 +172,7 @@ export interface DeleteDashboardsForOrganisationRequest { /** * Identifier of the Organization * - * @generated from protobuf field: string OrganisationID = 2 [json_name = "OrganisationID"]; + * @generated from protobuf field: string OrganisationID = 2 */ OrganisationID: string; } @@ -189,7 +190,7 @@ export interface DeleteDashboardsForProjectRequest { /** * Identifier of the Project * - * @generated from protobuf field: string ProjectID = 1 [json_name = "ProjectID"]; + * @generated from protobuf field: string ProjectID = 1 */ ProjectID: string; } @@ -198,6 +199,24 @@ export interface DeleteDashboardsForProjectRequest { */ export interface DeleteDashboardsForProjectResult { } +/** + * Project identifier to delete the dashboards from + * + * @generated from protobuf message vizapi.DeleteDashboardsForSiteRequest + */ +export interface DeleteDashboardsForSiteRequest { + /** + * Identifier of the Project + * + * @generated from protobuf field: string SiteID = 1 + */ + SiteID: string; +} +/** + * @generated from protobuf message vizapi.DeleteDashboardsForSiteResult + */ +export interface DeleteDashboardsForSiteResult { +} /** * Information that needs to be updated * @@ -205,35 +224,35 @@ export interface DeleteDashboardsForProjectResult { */ export interface UpdateDashboardRequest { /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"]; + * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * Identifier of the Dashboard * - * @generated from protobuf field: string DashboardID = 2 [json_name = "DashboardID"]; + * @generated from protobuf field: string DashboardID = 2 */ DashboardID: string; /** * Name of the Dashboard * - * @generated from protobuf field: api.StringObject Name = 3 [json_name = "Name"]; + * @generated from protobuf field: api.StringObject Name = 3 */ Name?: StringObject; /** * All the widgets in Dashboard * - * @generated from protobuf field: api.StringObject Content = 4 [json_name = "Content"]; + * @generated from protobuf field: api.StringObject Content = 4 */ Content?: StringObject; /** * Visibility of the Dashboard * - * @generated from protobuf field: api.BoolObject IsPrivate = 5 [json_name = "IsPrivate"]; + * @generated from protobuf field: api.BoolObject IsPrivate = 5 */ IsPrivate?: BoolObject; /** - * @generated from protobuf field: api.Int32Object AutoRefresh = 9 [json_name = "AutoRefresh"]; + * @generated from protobuf field: api.Int32Object AutoRefresh = 9 */ AutoRefresh?: Int32Object; } @@ -244,7 +263,7 @@ export interface UpdateDashboardRequest { */ export interface UpdateDashboardResult { /** - * @generated from protobuf field: vizapi.Dashboard Result = 1 [json_name = "Result"]; + * @generated from protobuf field: vizapi.Dashboard Result = 1 */ Result?: Dashboard; } @@ -255,13 +274,13 @@ export interface UpdateDashboardResult { */ export interface GetDashboardRequest { /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"]; + * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * Identifier of the Dashboard * - * @generated from protobuf field: string DashboardID = 2 [json_name = "DashboardID"]; + * @generated from protobuf field: string DashboardID = 2 */ DashboardID: string; } @@ -272,7 +291,7 @@ export interface GetDashboardRequest { */ export interface GetDashboardResult { /** - * @generated from protobuf field: vizapi.Dashboard result = 1; + * @generated from protobuf field: vizapi.Dashboard result = 1 */ result?: Dashboard; } @@ -281,19 +300,19 @@ export interface GetDashboardResult { */ export interface CopyDashboardRequest { /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"]; + * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * Identifier of the Dashboard * - * @generated from protobuf field: string DashboardID = 2 [json_name = "DashboardID"]; + * @generated from protobuf field: string DashboardID = 2 */ DashboardID: string; /** * Name of the new Dashboard * - * @generated from protobuf field: string Name = 3 [json_name = "Name"]; + * @generated from protobuf field: string Name = 3 */ Name: string; } @@ -304,7 +323,407 @@ export interface CopyDashboardRequest { */ export interface CopyDashboardResult { /** - * @generated from protobuf field: vizapi.Dashboard Result = 1 [json_name = "Result"]; + * @generated from protobuf field: vizapi.Dashboard Result = 1 + */ + Result?: Dashboard; +} +/** + * @generated from protobuf message vizapi.ListProjectDashboardRequest + */ +export interface ListProjectDashboardRequest { + /** + * @generated from protobuf field: api.RequestProjectHeader Header = 1 + */ + Header?: RequestProjectHeader; +} +/** + * List of Dashboards + * + * @generated from protobuf message vizapi.ListProjectDashboardResult + */ +export interface ListProjectDashboardResult { + /** + * All information in a Dashboard + * + * @generated from protobuf field: repeated vizapi.Dashboard Results = 1 + */ + Results: Dashboard[]; +} +/** + * Information that needs to be stored + * + * @generated from protobuf message vizapi.CreateProjectDashboardRequest + */ +export interface CreateProjectDashboardRequest { + /** + * @generated from protobuf field: api.RequestProjectHeader Header = 1 + */ + Header?: RequestProjectHeader; + // empty string for name, PO: name could be empty + + /** + * Name of the Dashboard + * + * @generated from protobuf field: string Name = 2 + */ + Name: string; + /** + * All widgets in Dashboard + * + * @generated from protobuf field: string content = 3 + */ + content: string; + /** + * Visibility of the Dashboard + * + * @generated from protobuf field: bool IsPrivate = 4 + */ + IsPrivate: boolean; + /** + * @generated from protobuf field: int32 AutoRefresh = 8 + */ + AutoRefresh: number; +} +/** + * Created Dashboard + * + * @generated from protobuf message vizapi.CreateProjectDashboardResult + */ +export interface CreateProjectDashboardResult { + /** + * @generated from protobuf field: vizapi.Dashboard Result = 1 + */ + Result?: Dashboard; +} +/** + * IDs of the Dashboard to be deleted + * + * @generated from protobuf message vizapi.DeleteProjectDashboardRequest + */ +export interface DeleteProjectDashboardRequest { + /** + * @generated from protobuf field: api.RequestProjectHeader Header = 1 + */ + Header?: RequestProjectHeader; + /** + * Identifier of the Dashboard + * + * @generated from protobuf field: string DashboardID = 2 + */ + DashboardID: string; +} +/** + * @generated from protobuf message vizapi.DeleteProjectDashboardResult + */ +export interface DeleteProjectDashboardResult { +} +/** + * Information that needs to be updated + * + * @generated from protobuf message vizapi.UpdateProjectDashboardRequest + */ +export interface UpdateProjectDashboardRequest { + /** + * @generated from protobuf field: api.RequestProjectHeader Header = 1 + */ + Header?: RequestProjectHeader; + /** + * Identifier of the Dashboard + * + * @generated from protobuf field: string DashboardID = 2 + */ + DashboardID: string; + /** + * Name of the Dashboard + * + * @generated from protobuf field: api.StringObject Name = 3 + */ + Name?: StringObject; + /** + * All the widgets in Dashboard + * + * @generated from protobuf field: api.StringObject Content = 4 + */ + Content?: StringObject; + /** + * Visibility of the Dashboard + * + * @generated from protobuf field: api.BoolObject IsPrivate = 5 + */ + IsPrivate?: BoolObject; + /** + * @generated from protobuf field: api.Int32Object AutoRefresh = 9 + */ + AutoRefresh?: Int32Object; +} +/** + * Updated Dashboard information + * + * @generated from protobuf message vizapi.UpdateProjectDashboardResult + */ +export interface UpdateProjectDashboardResult { + /** + * @generated from protobuf field: vizapi.Dashboard Result = 1 + */ + Result?: Dashboard; +} +/** + * IDs of the Dashboard + * + * @generated from protobuf message vizapi.GetProjectDashboardRequest + */ +export interface GetProjectDashboardRequest { + /** + * @generated from protobuf field: api.RequestProjectHeader Header = 1 + */ + Header?: RequestProjectHeader; + /** + * Identifier of the Dashboard + * + * @generated from protobuf field: string DashboardID = 2 + */ + DashboardID: string; +} +/** + * All information about the Dashboard + * + * @generated from protobuf message vizapi.GetProjectDashboardResult + */ +export interface GetProjectDashboardResult { + /** + * @generated from protobuf field: vizapi.Dashboard result = 1 + */ + result?: Dashboard; +} +/** + * @generated from protobuf message vizapi.CopyProjectDashboardRequest + */ +export interface CopyProjectDashboardRequest { + /** + * @generated from protobuf field: api.RequestProjectHeader Header = 1 + */ + Header?: RequestProjectHeader; + /** + * Identifier of the Dashboard + * + * @generated from protobuf field: string DashboardID = 2 + */ + DashboardID: string; + /** + * Name of the new Dashboard + * + * @generated from protobuf field: string Name = 3 + */ + Name: string; +} +/** + * New copied dashboard + * + * @generated from protobuf message vizapi.CopyProjectDashboardResult + */ +export interface CopyProjectDashboardResult { + /** + * @generated from protobuf field: vizapi.Dashboard Result = 1 + */ + Result?: Dashboard; +} +/** + * @generated from protobuf message vizapi.ListSiteDashboardRequest + */ +export interface ListSiteDashboardRequest { + /** + * @generated from protobuf field: api.RequestSiteHeader Header = 1 + */ + Header?: RequestSiteHeader; +} +/** + * List of Dashboards + * + * @generated from protobuf message vizapi.ListSiteDashboardResult + */ +export interface ListSiteDashboardResult { + /** + * All information in a Dashboard + * + * @generated from protobuf field: repeated vizapi.Dashboard Results = 1 + */ + Results: Dashboard[]; +} +/** + * Information that needs to be stored + * + * @generated from protobuf message vizapi.CreateSiteDashboardRequest + */ +export interface CreateSiteDashboardRequest { + /** + * @generated from protobuf field: api.RequestSiteHeader Header = 1 + */ + Header?: RequestSiteHeader; + // empty string for name, PO: name could be empty + + /** + * Name of the Dashboard + * + * @generated from protobuf field: string Name = 2 + */ + Name: string; + /** + * All widgets in Dashboard + * + * @generated from protobuf field: string content = 3 + */ + content: string; + /** + * Visibility of the Dashboard + * + * @generated from protobuf field: bool IsPrivate = 4 + */ + IsPrivate: boolean; + /** + * @generated from protobuf field: int32 AutoRefresh = 8 + */ + AutoRefresh: number; +} +/** + * Created Dashboard + * + * @generated from protobuf message vizapi.CreateSiteDashboardResult + */ +export interface CreateSiteDashboardResult { + /** + * @generated from protobuf field: vizapi.Dashboard Result = 1 + */ + Result?: Dashboard; +} +/** + * IDs of the Dashboard to be deleted + * + * @generated from protobuf message vizapi.DeleteSiteDashboardRequest + */ +export interface DeleteSiteDashboardRequest { + /** + * @generated from protobuf field: api.RequestSiteHeader Header = 1 + */ + Header?: RequestSiteHeader; + /** + * Identifier of the Dashboard + * + * @generated from protobuf field: string DashboardID = 2 + */ + DashboardID: string; +} +/** + * @generated from protobuf message vizapi.DeleteSiteDashboardResult + */ +export interface DeleteSiteDashboardResult { +} +/** + * Information that needs to be updated + * + * @generated from protobuf message vizapi.UpdateSiteDashboardRequest + */ +export interface UpdateSiteDashboardRequest { + /** + * @generated from protobuf field: api.RequestSiteHeader Header = 1 + */ + Header?: RequestSiteHeader; + /** + * Identifier of the Dashboard + * + * @generated from protobuf field: string DashboardID = 2 + */ + DashboardID: string; + /** + * Name of the Dashboard + * + * @generated from protobuf field: api.StringObject Name = 3 + */ + Name?: StringObject; + /** + * All the widgets in Dashboard + * + * @generated from protobuf field: api.StringObject Content = 4 + */ + Content?: StringObject; + /** + * Visibility of the Dashboard + * + * @generated from protobuf field: api.BoolObject IsPrivate = 5 + */ + IsPrivate?: BoolObject; + /** + * @generated from protobuf field: api.Int32Object AutoRefresh = 9 + */ + AutoRefresh?: Int32Object; +} +/** + * Updated Dashboard information + * + * @generated from protobuf message vizapi.UpdateSiteDashboardResult + */ +export interface UpdateSiteDashboardResult { + /** + * @generated from protobuf field: vizapi.Dashboard Result = 1 + */ + Result?: Dashboard; +} +/** + * IDs of the Dashboard + * + * @generated from protobuf message vizapi.GetSiteDashboardRequest + */ +export interface GetSiteDashboardRequest { + /** + * @generated from protobuf field: api.RequestSiteHeader Header = 1 + */ + Header?: RequestSiteHeader; + /** + * Identifier of the Dashboard + * + * @generated from protobuf field: string DashboardID = 2 + */ + DashboardID: string; +} +/** + * All information about the Dashboard + * + * @generated from protobuf message vizapi.GetSiteDashboardResult + */ +export interface GetSiteDashboardResult { + /** + * @generated from protobuf field: vizapi.Dashboard result = 1 + */ + result?: Dashboard; +} +/** + * @generated from protobuf message vizapi.CopySiteDashboardRequest + */ +export interface CopySiteDashboardRequest { + /** + * @generated from protobuf field: api.RequestSiteHeader Header = 1 + */ + Header?: RequestSiteHeader; + /** + * Identifier of the Dashboard + * + * @generated from protobuf field: string DashboardID = 2 + */ + DashboardID: string; + /** + * Name of the new Dashboard + * + * @generated from protobuf field: string Name = 3 + */ + Name: string; +} +/** + * New copied dashboard + * + * @generated from protobuf message vizapi.CopySiteDashboardResult + */ +export interface CopySiteDashboardResult { + /** + * @generated from protobuf field: vizapi.Dashboard Result = 1 */ Result?: Dashboard; } @@ -343,31 +762,31 @@ class Dashboard$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string DashboardID = 1 [json_name = "DashboardID"];*/ 1: + case /* string DashboardID */ 1: message.DashboardID = reader.string(); break; - case /* string Name = 2 [json_name = "Name"];*/ 2: + case /* string Name */ 2: message.Name = reader.string(); break; - case /* string Content = 3 [json_name = "Content"];*/ 3: + case /* string Content */ 3: message.Content = reader.string(); break; - case /* string CreateUserID = 4 [json_name = "CreateUserID"];*/ 4: + case /* string CreateUserID */ 4: message.CreateUserID = reader.string(); break; - case /* string UpdateUserID = 5 [json_name = "UpdateUserID"];*/ 5: + case /* string UpdateUserID */ 5: message.UpdateUserID = reader.string(); break; - case /* string CreateDate = 6 [json_name = "CreateDate"];*/ 6: + case /* string CreateDate */ 6: message.CreateDate = reader.string(); break; - case /* string UpdateDate = 7 [json_name = "UpdateDate"];*/ 7: + case /* string UpdateDate */ 7: message.UpdateDate = reader.string(); break; - case /* bool IsPrivate = 8 [json_name = "IsPrivate"];*/ 8: + case /* bool IsPrivate */ 8: message.IsPrivate = reader.bool(); break; - case /* int32 AutoRefresh = 12 [json_name = "AutoRefresh"];*/ 12: + case /* int32 AutoRefresh */ 12: message.AutoRefresh = reader.int32(); break; default: @@ -382,31 +801,31 @@ class Dashboard$Type extends MessageType { return message; } internalBinaryWrite(message: Dashboard, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string DashboardID = 1 [json_name = "DashboardID"]; */ + /* string DashboardID = 1; */ if (message.DashboardID !== "") writer.tag(1, WireType.LengthDelimited).string(message.DashboardID); - /* string Name = 2 [json_name = "Name"]; */ + /* string Name = 2; */ if (message.Name !== "") writer.tag(2, WireType.LengthDelimited).string(message.Name); - /* string Content = 3 [json_name = "Content"]; */ + /* string Content = 3; */ if (message.Content !== "") writer.tag(3, WireType.LengthDelimited).string(message.Content); - /* string CreateUserID = 4 [json_name = "CreateUserID"]; */ + /* string CreateUserID = 4; */ if (message.CreateUserID !== "") writer.tag(4, WireType.LengthDelimited).string(message.CreateUserID); - /* string UpdateUserID = 5 [json_name = "UpdateUserID"]; */ + /* string UpdateUserID = 5; */ if (message.UpdateUserID !== "") writer.tag(5, WireType.LengthDelimited).string(message.UpdateUserID); - /* string CreateDate = 6 [json_name = "CreateDate"]; */ + /* string CreateDate = 6; */ if (message.CreateDate !== "") writer.tag(6, WireType.LengthDelimited).string(message.CreateDate); - /* string UpdateDate = 7 [json_name = "UpdateDate"]; */ + /* string UpdateDate = 7; */ if (message.UpdateDate !== "") writer.tag(7, WireType.LengthDelimited).string(message.UpdateDate); - /* bool IsPrivate = 8 [json_name = "IsPrivate"]; */ + /* bool IsPrivate = 8; */ if (message.IsPrivate !== false) writer.tag(8, WireType.Varint).bool(message.IsPrivate); - /* int32 AutoRefresh = 12 [json_name = "AutoRefresh"]; */ + /* int32 AutoRefresh = 12; */ if (message.AutoRefresh !== 0) writer.tag(12, WireType.Varint).int32(message.AutoRefresh); let u = options.writeUnknownFields; @@ -437,7 +856,7 @@ class ListDashboardRequest$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* api.RequestProjectHeader Header = 1 [json_name = "Header"];*/ 1: + case /* api.RequestProjectHeader Header */ 1: message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; default: @@ -452,7 +871,7 @@ class ListDashboardRequest$Type extends MessageType { return message; } internalBinaryWrite(message: ListDashboardRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* api.RequestProjectHeader Header = 1 [json_name = "Header"]; */ + /* api.RequestProjectHeader Header = 1; */ if (message.Header) RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; @@ -484,7 +903,7 @@ class ListDashboardResult$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* repeated vizapi.Dashboard Results = 1 [json_name = "Results"];*/ 1: + case /* repeated vizapi.Dashboard Results */ 1: message.Results.push(Dashboard.internalBinaryRead(reader, reader.uint32(), options)); break; default: @@ -499,7 +918,7 @@ class ListDashboardResult$Type extends MessageType { return message; } internalBinaryWrite(message: ListDashboardResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* repeated vizapi.Dashboard Results = 1 [json_name = "Results"]; */ + /* repeated vizapi.Dashboard Results = 1; */ for (let i = 0; i < message.Results.length; i++) Dashboard.internalBinaryWrite(message.Results[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; @@ -538,19 +957,19 @@ class CreateDashboardRequest$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* api.RequestProjectHeader Header = 1 [json_name = "Header"];*/ 1: + case /* api.RequestProjectHeader Header */ 1: message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; - case /* string Name = 2 [json_name = "Name"];*/ 2: + case /* string Name */ 2: message.Name = reader.string(); break; case /* string content */ 3: message.content = reader.string(); break; - case /* bool IsPrivate = 4 [json_name = "IsPrivate"];*/ 4: + case /* bool IsPrivate */ 4: message.IsPrivate = reader.bool(); break; - case /* int32 AutoRefresh = 8 [json_name = "AutoRefresh"];*/ 8: + case /* int32 AutoRefresh */ 8: message.AutoRefresh = reader.int32(); break; default: @@ -565,19 +984,19 @@ class CreateDashboardRequest$Type extends MessageType { return message; } internalBinaryWrite(message: CreateDashboardRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* api.RequestProjectHeader Header = 1 [json_name = "Header"]; */ + /* api.RequestProjectHeader Header = 1; */ if (message.Header) RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); - /* string Name = 2 [json_name = "Name"]; */ + /* string Name = 2; */ if (message.Name !== "") writer.tag(2, WireType.LengthDelimited).string(message.Name); /* string content = 3; */ if (message.content !== "") writer.tag(3, WireType.LengthDelimited).string(message.content); - /* bool IsPrivate = 4 [json_name = "IsPrivate"]; */ + /* bool IsPrivate = 4; */ if (message.IsPrivate !== false) writer.tag(4, WireType.Varint).bool(message.IsPrivate); - /* int32 AutoRefresh = 8 [json_name = "AutoRefresh"]; */ + /* int32 AutoRefresh = 8; */ if (message.AutoRefresh !== 0) writer.tag(8, WireType.Varint).int32(message.AutoRefresh); let u = options.writeUnknownFields; @@ -608,7 +1027,7 @@ class CreateDashboardResult$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* vizapi.Dashboard Result = 1 [json_name = "Result"];*/ 1: + case /* vizapi.Dashboard Result */ 1: message.Result = Dashboard.internalBinaryRead(reader, reader.uint32(), options, message.Result); break; default: @@ -623,7 +1042,7 @@ class CreateDashboardResult$Type extends MessageType { return message; } internalBinaryWrite(message: CreateDashboardResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* vizapi.Dashboard Result = 1 [json_name = "Result"]; */ + /* vizapi.Dashboard Result = 1; */ if (message.Result) Dashboard.internalBinaryWrite(message.Result, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; @@ -656,10 +1075,10 @@ class DeleteDashboardRequest$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* api.RequestProjectHeader Header = 1 [json_name = "Header"];*/ 1: + case /* api.RequestProjectHeader Header */ 1: message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; - case /* string DashboardID = 2 [json_name = "DashboardID"];*/ 2: + case /* string DashboardID */ 2: message.DashboardID = reader.string(); break; default: @@ -674,10 +1093,10 @@ class DeleteDashboardRequest$Type extends MessageType { return message; } internalBinaryWrite(message: DeleteDashboardRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* api.RequestProjectHeader Header = 1 [json_name = "Header"]; */ + /* api.RequestProjectHeader Header = 1; */ if (message.Header) RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); - /* string DashboardID = 2 [json_name = "DashboardID"]; */ + /* string DashboardID = 2; */ if (message.DashboardID !== "") writer.tag(2, WireType.LengthDelimited).string(message.DashboardID); let u = options.writeUnknownFields; @@ -747,7 +1166,7 @@ class DeleteDashboardsForOrganisationRequest$Type extends MessageType): DeleteDashboardsForProjectRequest { const message = globalThis.Object.create((this.messagePrototype!)); @@ -832,7 +1251,7 @@ class DeleteDashboardsForProjectRequest$Type extends MessageType { + constructor() { + super("vizapi.DeleteDashboardsForSiteRequest", [ + { no: 1, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Site" }, "validate.rules": { string: { minLen: "1" } } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Site identifier to delete the dashboards from", required: ["SiteID"] } } }); + } + create(value?: PartialMessage): DeleteDashboardsForSiteRequest { + const message = globalThis.Object.create((this.messagePrototype!)); + message.SiteID = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteDashboardsForSiteRequest): DeleteDashboardsForSiteRequest { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string SiteID */ 1: + message.SiteID = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: DeleteDashboardsForSiteRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string SiteID = 1; */ + if (message.SiteID !== "") + writer.tag(1, WireType.LengthDelimited).string(message.SiteID); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.DeleteDashboardsForSiteRequest + */ +export const DeleteDashboardsForSiteRequest = new DeleteDashboardsForSiteRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class DeleteDashboardsForSiteResult$Type extends MessageType { + constructor() { + super("vizapi.DeleteDashboardsForSiteResult", []); + } + create(value?: PartialMessage): DeleteDashboardsForSiteResult { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteDashboardsForSiteResult): DeleteDashboardsForSiteResult { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: DeleteDashboardsForSiteResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.DeleteDashboardsForSiteResult + */ +export const DeleteDashboardsForSiteResult = new DeleteDashboardsForSiteResult$Type(); +// @generated message type with reflection information, may provide speed optimized methods class UpdateDashboardRequest$Type extends MessageType { constructor() { super("vizapi.UpdateDashboardRequest", [ @@ -922,22 +1426,22 @@ class UpdateDashboardRequest$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* api.RequestProjectHeader Header = 1 [json_name = "Header"];*/ 1: + case /* api.RequestProjectHeader Header */ 1: message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; - case /* string DashboardID = 2 [json_name = "DashboardID"];*/ 2: + case /* string DashboardID */ 2: message.DashboardID = reader.string(); break; - case /* api.StringObject Name = 3 [json_name = "Name"];*/ 3: + case /* api.StringObject Name */ 3: message.Name = StringObject.internalBinaryRead(reader, reader.uint32(), options, message.Name); break; - case /* api.StringObject Content = 4 [json_name = "Content"];*/ 4: + case /* api.StringObject Content */ 4: message.Content = StringObject.internalBinaryRead(reader, reader.uint32(), options, message.Content); break; - case /* api.BoolObject IsPrivate = 5 [json_name = "IsPrivate"];*/ 5: + case /* api.BoolObject IsPrivate */ 5: message.IsPrivate = BoolObject.internalBinaryRead(reader, reader.uint32(), options, message.IsPrivate); break; - case /* api.Int32Object AutoRefresh = 9 [json_name = "AutoRefresh"];*/ 9: + case /* api.Int32Object AutoRefresh */ 9: message.AutoRefresh = Int32Object.internalBinaryRead(reader, reader.uint32(), options, message.AutoRefresh); break; default: @@ -952,22 +1456,22 @@ class UpdateDashboardRequest$Type extends MessageType { return message; } internalBinaryWrite(message: UpdateDashboardRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* api.RequestProjectHeader Header = 1 [json_name = "Header"]; */ + /* api.RequestProjectHeader Header = 1; */ if (message.Header) RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); - /* string DashboardID = 2 [json_name = "DashboardID"]; */ + /* string DashboardID = 2; */ if (message.DashboardID !== "") writer.tag(2, WireType.LengthDelimited).string(message.DashboardID); - /* api.StringObject Name = 3 [json_name = "Name"]; */ + /* api.StringObject Name = 3; */ if (message.Name) StringObject.internalBinaryWrite(message.Name, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); - /* api.StringObject Content = 4 [json_name = "Content"]; */ + /* api.StringObject Content = 4; */ if (message.Content) StringObject.internalBinaryWrite(message.Content, writer.tag(4, WireType.LengthDelimited).fork(), options).join(); - /* api.BoolObject IsPrivate = 5 [json_name = "IsPrivate"]; */ + /* api.BoolObject IsPrivate = 5; */ if (message.IsPrivate) BoolObject.internalBinaryWrite(message.IsPrivate, writer.tag(5, WireType.LengthDelimited).fork(), options).join(); - /* api.Int32Object AutoRefresh = 9 [json_name = "AutoRefresh"]; */ + /* api.Int32Object AutoRefresh = 9; */ if (message.AutoRefresh) Int32Object.internalBinaryWrite(message.AutoRefresh, writer.tag(9, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; @@ -998,7 +1502,7 @@ class UpdateDashboardResult$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* vizapi.Dashboard Result = 1 [json_name = "Result"];*/ 1: + case /* vizapi.Dashboard Result */ 1: message.Result = Dashboard.internalBinaryRead(reader, reader.uint32(), options, message.Result); break; default: @@ -1013,7 +1517,7 @@ class UpdateDashboardResult$Type extends MessageType { return message; } internalBinaryWrite(message: UpdateDashboardResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* vizapi.Dashboard Result = 1 [json_name = "Result"]; */ + /* vizapi.Dashboard Result = 1; */ if (message.Result) Dashboard.internalBinaryWrite(message.Result, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; @@ -1046,10 +1550,10 @@ class GetDashboardRequest$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* api.RequestProjectHeader Header = 1 [json_name = "Header"];*/ 1: + case /* api.RequestProjectHeader Header */ 1: message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; - case /* string DashboardID = 2 [json_name = "DashboardID"];*/ 2: + case /* string DashboardID */ 2: message.DashboardID = reader.string(); break; default: @@ -1064,10 +1568,10 @@ class GetDashboardRequest$Type extends MessageType { return message; } internalBinaryWrite(message: GetDashboardRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* api.RequestProjectHeader Header = 1 [json_name = "Header"]; */ + /* api.RequestProjectHeader Header = 1; */ if (message.Header) RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); - /* string DashboardID = 2 [json_name = "DashboardID"]; */ + /* string DashboardID = 2; */ if (message.DashboardID !== "") writer.tag(2, WireType.LengthDelimited).string(message.DashboardID); let u = options.writeUnknownFields; @@ -1148,13 +1652,13 @@ class CopyDashboardRequest$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* api.RequestProjectHeader Header = 1 [json_name = "Header"];*/ 1: + case /* api.RequestProjectHeader Header */ 1: message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; - case /* string DashboardID = 2 [json_name = "DashboardID"];*/ 2: + case /* string DashboardID */ 2: message.DashboardID = reader.string(); break; - case /* string Name = 3 [json_name = "Name"];*/ 3: + case /* string Name */ 3: message.Name = reader.string(); break; default: @@ -1169,13 +1673,13 @@ class CopyDashboardRequest$Type extends MessageType { return message; } internalBinaryWrite(message: CopyDashboardRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* api.RequestProjectHeader Header = 1 [json_name = "Header"]; */ + /* api.RequestProjectHeader Header = 1; */ if (message.Header) RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); - /* string DashboardID = 2 [json_name = "DashboardID"]; */ + /* string DashboardID = 2; */ if (message.DashboardID !== "") writer.tag(2, WireType.LengthDelimited).string(message.DashboardID); - /* string Name = 3 [json_name = "Name"]; */ + /* string Name = 3; */ if (message.Name !== "") writer.tag(3, WireType.LengthDelimited).string(message.Name); let u = options.writeUnknownFields; @@ -1206,7 +1710,7 @@ class CopyDashboardResult$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* vizapi.Dashboard Result = 1 [json_name = "Result"];*/ 1: + case /* vizapi.Dashboard Result */ 1: message.Result = Dashboard.internalBinaryRead(reader, reader.uint32(), options, message.Result); break; default: @@ -1221,7 +1725,7 @@ class CopyDashboardResult$Type extends MessageType { return message; } internalBinaryWrite(message: CopyDashboardResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* vizapi.Dashboard Result = 1 [json_name = "Result"]; */ + /* vizapi.Dashboard Result = 1; */ if (message.Result) Dashboard.internalBinaryWrite(message.Result, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; @@ -1234,6 +1738,1296 @@ class CopyDashboardResult$Type extends MessageType { * @generated MessageType for protobuf message vizapi.CopyDashboardResult */ export const CopyDashboardResult = new CopyDashboardResult$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class ListProjectDashboardRequest$Type extends MessageType { + constructor() { + super("vizapi.ListProjectDashboardRequest", [ + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); + } + create(value?: PartialMessage): ListProjectDashboardRequest { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListProjectDashboardRequest): ListProjectDashboardRequest { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.RequestProjectHeader Header */ 1: + message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: ListProjectDashboardRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.RequestProjectHeader Header = 1; */ + if (message.Header) + RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.ListProjectDashboardRequest + */ +export const ListProjectDashboardRequest = new ListProjectDashboardRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class ListProjectDashboardResult$Type extends MessageType { + constructor() { + super("vizapi.ListProjectDashboardResult", [ + { no: 1, name: "Results", kind: "message", localName: "Results", jsonName: "Results", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Dashboard, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "All information in a Dashboard" } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "List of Dashboards" } } }); + } + create(value?: PartialMessage): ListProjectDashboardResult { + const message = globalThis.Object.create((this.messagePrototype!)); + message.Results = []; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListProjectDashboardResult): ListProjectDashboardResult { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated vizapi.Dashboard Results */ 1: + message.Results.push(Dashboard.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: ListProjectDashboardResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* repeated vizapi.Dashboard Results = 1; */ + for (let i = 0; i < message.Results.length; i++) + Dashboard.internalBinaryWrite(message.Results[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.ListProjectDashboardResult + */ +export const ListProjectDashboardResult = new ListProjectDashboardResult$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class CreateProjectDashboardRequest$Type extends MessageType { + constructor() { + super("vizapi.CreateProjectDashboardRequest", [ + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the Dashboard" }, "validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "content", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "All widgets in Dashboard" } } }, + { no: 4, name: "IsPrivate", kind: "scalar", localName: "IsPrivate", jsonName: "IsPrivate", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Visibility of the Dashboard" } } }, + { no: 8, name: "AutoRefresh", kind: "scalar", localName: "AutoRefresh", jsonName: "AutoRefresh", T: 5 /*ScalarType.INT32*/ } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Information that needs to be stored", required: ["Header", "Name"] } } }); + } + create(value?: PartialMessage): CreateProjectDashboardRequest { + const message = globalThis.Object.create((this.messagePrototype!)); + message.Name = ""; + message.content = ""; + message.IsPrivate = false; + message.AutoRefresh = 0; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateProjectDashboardRequest): CreateProjectDashboardRequest { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.RequestProjectHeader Header */ 1: + message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); + break; + case /* string Name */ 2: + message.Name = reader.string(); + break; + case /* string content */ 3: + message.content = reader.string(); + break; + case /* bool IsPrivate */ 4: + message.IsPrivate = reader.bool(); + break; + case /* int32 AutoRefresh */ 8: + message.AutoRefresh = reader.int32(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: CreateProjectDashboardRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.RequestProjectHeader Header = 1; */ + if (message.Header) + RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + /* string Name = 2; */ + if (message.Name !== "") + writer.tag(2, WireType.LengthDelimited).string(message.Name); + /* string content = 3; */ + if (message.content !== "") + writer.tag(3, WireType.LengthDelimited).string(message.content); + /* bool IsPrivate = 4; */ + if (message.IsPrivate !== false) + writer.tag(4, WireType.Varint).bool(message.IsPrivate); + /* int32 AutoRefresh = 8; */ + if (message.AutoRefresh !== 0) + writer.tag(8, WireType.Varint).int32(message.AutoRefresh); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.CreateProjectDashboardRequest + */ +export const CreateProjectDashboardRequest = new CreateProjectDashboardRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class CreateProjectDashboardResult$Type extends MessageType { + constructor() { + super("vizapi.CreateProjectDashboardResult", [ + { no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => Dashboard } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Created Dashboard" } } }); + } + create(value?: PartialMessage): CreateProjectDashboardResult { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateProjectDashboardResult): CreateProjectDashboardResult { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* vizapi.Dashboard Result */ 1: + message.Result = Dashboard.internalBinaryRead(reader, reader.uint32(), options, message.Result); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: CreateProjectDashboardResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* vizapi.Dashboard Result = 1; */ + if (message.Result) + Dashboard.internalBinaryWrite(message.Result, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.CreateProjectDashboardResult + */ +export const CreateProjectDashboardResult = new CreateProjectDashboardResult$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class DeleteProjectDashboardRequest$Type extends MessageType { + constructor() { + super("vizapi.DeleteProjectDashboardRequest", [ + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 2, name: "DashboardID", kind: "scalar", localName: "DashboardID", jsonName: "DashboardID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Dashboard" }, "validate.rules": { string: { minLen: "1" } } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "IDs of the Dashboard to be deleted", required: ["Header", "DashboardID"] } } }); + } + create(value?: PartialMessage): DeleteProjectDashboardRequest { + const message = globalThis.Object.create((this.messagePrototype!)); + message.DashboardID = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteProjectDashboardRequest): DeleteProjectDashboardRequest { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.RequestProjectHeader Header */ 1: + message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); + break; + case /* string DashboardID */ 2: + message.DashboardID = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: DeleteProjectDashboardRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.RequestProjectHeader Header = 1; */ + if (message.Header) + RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + /* string DashboardID = 2; */ + if (message.DashboardID !== "") + writer.tag(2, WireType.LengthDelimited).string(message.DashboardID); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.DeleteProjectDashboardRequest + */ +export const DeleteProjectDashboardRequest = new DeleteProjectDashboardRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class DeleteProjectDashboardResult$Type extends MessageType { + constructor() { + super("vizapi.DeleteProjectDashboardResult", []); + } + create(value?: PartialMessage): DeleteProjectDashboardResult { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteProjectDashboardResult): DeleteProjectDashboardResult { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: DeleteProjectDashboardResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.DeleteProjectDashboardResult + */ +export const DeleteProjectDashboardResult = new DeleteProjectDashboardResult$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class UpdateProjectDashboardRequest$Type extends MessageType { + constructor() { + super("vizapi.UpdateProjectDashboardRequest", [ + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 2, name: "DashboardID", kind: "scalar", localName: "DashboardID", jsonName: "DashboardID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Dashboard" }, "validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "Name", kind: "message", localName: "Name", jsonName: "Name", T: () => StringObject, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the Dashboard" } } }, + { no: 4, name: "Content", kind: "message", localName: "Content", jsonName: "Content", T: () => StringObject, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "All the widgets in Dashboard" } } }, + { no: 5, name: "IsPrivate", kind: "message", localName: "IsPrivate", jsonName: "IsPrivate", T: () => BoolObject, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Visibility of the Dashboard" } } }, + { no: 9, name: "AutoRefresh", kind: "message", localName: "AutoRefresh", jsonName: "AutoRefresh", T: () => Int32Object } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Information that needs to be updated", required: ["Header", "DashboardID"] } } }); + } + create(value?: PartialMessage): UpdateProjectDashboardRequest { + const message = globalThis.Object.create((this.messagePrototype!)); + message.DashboardID = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateProjectDashboardRequest): UpdateProjectDashboardRequest { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.RequestProjectHeader Header */ 1: + message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); + break; + case /* string DashboardID */ 2: + message.DashboardID = reader.string(); + break; + case /* api.StringObject Name */ 3: + message.Name = StringObject.internalBinaryRead(reader, reader.uint32(), options, message.Name); + break; + case /* api.StringObject Content */ 4: + message.Content = StringObject.internalBinaryRead(reader, reader.uint32(), options, message.Content); + break; + case /* api.BoolObject IsPrivate */ 5: + message.IsPrivate = BoolObject.internalBinaryRead(reader, reader.uint32(), options, message.IsPrivate); + break; + case /* api.Int32Object AutoRefresh */ 9: + message.AutoRefresh = Int32Object.internalBinaryRead(reader, reader.uint32(), options, message.AutoRefresh); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: UpdateProjectDashboardRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.RequestProjectHeader Header = 1; */ + if (message.Header) + RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + /* string DashboardID = 2; */ + if (message.DashboardID !== "") + writer.tag(2, WireType.LengthDelimited).string(message.DashboardID); + /* api.StringObject Name = 3; */ + if (message.Name) + StringObject.internalBinaryWrite(message.Name, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); + /* api.StringObject Content = 4; */ + if (message.Content) + StringObject.internalBinaryWrite(message.Content, writer.tag(4, WireType.LengthDelimited).fork(), options).join(); + /* api.BoolObject IsPrivate = 5; */ + if (message.IsPrivate) + BoolObject.internalBinaryWrite(message.IsPrivate, writer.tag(5, WireType.LengthDelimited).fork(), options).join(); + /* api.Int32Object AutoRefresh = 9; */ + if (message.AutoRefresh) + Int32Object.internalBinaryWrite(message.AutoRefresh, writer.tag(9, WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.UpdateProjectDashboardRequest + */ +export const UpdateProjectDashboardRequest = new UpdateProjectDashboardRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class UpdateProjectDashboardResult$Type extends MessageType { + constructor() { + super("vizapi.UpdateProjectDashboardResult", [ + { no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => Dashboard } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Updated Dashboard information" } } }); + } + create(value?: PartialMessage): UpdateProjectDashboardResult { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateProjectDashboardResult): UpdateProjectDashboardResult { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* vizapi.Dashboard Result */ 1: + message.Result = Dashboard.internalBinaryRead(reader, reader.uint32(), options, message.Result); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: UpdateProjectDashboardResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* vizapi.Dashboard Result = 1; */ + if (message.Result) + Dashboard.internalBinaryWrite(message.Result, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.UpdateProjectDashboardResult + */ +export const UpdateProjectDashboardResult = new UpdateProjectDashboardResult$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class GetProjectDashboardRequest$Type extends MessageType { + constructor() { + super("vizapi.GetProjectDashboardRequest", [ + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 2, name: "DashboardID", kind: "scalar", localName: "DashboardID", jsonName: "DashboardID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Dashboard" }, "validate.rules": { string: { minLen: "1" } } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "IDs of the Dashboard", required: ["Header", "DashboardID"] } } }); + } + create(value?: PartialMessage): GetProjectDashboardRequest { + const message = globalThis.Object.create((this.messagePrototype!)); + message.DashboardID = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetProjectDashboardRequest): GetProjectDashboardRequest { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.RequestProjectHeader Header */ 1: + message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); + break; + case /* string DashboardID */ 2: + message.DashboardID = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: GetProjectDashboardRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.RequestProjectHeader Header = 1; */ + if (message.Header) + RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + /* string DashboardID = 2; */ + if (message.DashboardID !== "") + writer.tag(2, WireType.LengthDelimited).string(message.DashboardID); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.GetProjectDashboardRequest + */ +export const GetProjectDashboardRequest = new GetProjectDashboardRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class GetProjectDashboardResult$Type extends MessageType { + constructor() { + super("vizapi.GetProjectDashboardResult", [ + { no: 1, name: "result", kind: "message", T: () => Dashboard } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "All information about the Dashboard" } } }); + } + create(value?: PartialMessage): GetProjectDashboardResult { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetProjectDashboardResult): GetProjectDashboardResult { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* vizapi.Dashboard result */ 1: + message.result = Dashboard.internalBinaryRead(reader, reader.uint32(), options, message.result); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: GetProjectDashboardResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* vizapi.Dashboard result = 1; */ + if (message.result) + Dashboard.internalBinaryWrite(message.result, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.GetProjectDashboardResult + */ +export const GetProjectDashboardResult = new GetProjectDashboardResult$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class CopyProjectDashboardRequest$Type extends MessageType { + constructor() { + super("vizapi.CopyProjectDashboardRequest", [ + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 2, name: "DashboardID", kind: "scalar", localName: "DashboardID", jsonName: "DashboardID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Dashboard" }, "validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the new Dashboard" }, "validate.rules": { string: { minLen: "1" } } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "DashboardID", "Name"] } } }); + } + create(value?: PartialMessage): CopyProjectDashboardRequest { + const message = globalThis.Object.create((this.messagePrototype!)); + message.DashboardID = ""; + message.Name = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CopyProjectDashboardRequest): CopyProjectDashboardRequest { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.RequestProjectHeader Header */ 1: + message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); + break; + case /* string DashboardID */ 2: + message.DashboardID = reader.string(); + break; + case /* string Name */ 3: + message.Name = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: CopyProjectDashboardRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.RequestProjectHeader Header = 1; */ + if (message.Header) + RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + /* string DashboardID = 2; */ + if (message.DashboardID !== "") + writer.tag(2, WireType.LengthDelimited).string(message.DashboardID); + /* string Name = 3; */ + if (message.Name !== "") + writer.tag(3, WireType.LengthDelimited).string(message.Name); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.CopyProjectDashboardRequest + */ +export const CopyProjectDashboardRequest = new CopyProjectDashboardRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class CopyProjectDashboardResult$Type extends MessageType { + constructor() { + super("vizapi.CopyProjectDashboardResult", [ + { no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => Dashboard } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "New copied dashboard" } } }); + } + create(value?: PartialMessage): CopyProjectDashboardResult { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CopyProjectDashboardResult): CopyProjectDashboardResult { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* vizapi.Dashboard Result */ 1: + message.Result = Dashboard.internalBinaryRead(reader, reader.uint32(), options, message.Result); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: CopyProjectDashboardResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* vizapi.Dashboard Result = 1; */ + if (message.Result) + Dashboard.internalBinaryWrite(message.Result, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.CopyProjectDashboardResult + */ +export const CopyProjectDashboardResult = new CopyProjectDashboardResult$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class ListSiteDashboardRequest$Type extends MessageType { + constructor() { + super("vizapi.ListSiteDashboardRequest", [ + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); + } + create(value?: PartialMessage): ListSiteDashboardRequest { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListSiteDashboardRequest): ListSiteDashboardRequest { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.RequestSiteHeader Header */ 1: + message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: ListSiteDashboardRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.RequestSiteHeader Header = 1; */ + if (message.Header) + RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.ListSiteDashboardRequest + */ +export const ListSiteDashboardRequest = new ListSiteDashboardRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class ListSiteDashboardResult$Type extends MessageType { + constructor() { + super("vizapi.ListSiteDashboardResult", [ + { no: 1, name: "Results", kind: "message", localName: "Results", jsonName: "Results", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Dashboard, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "All information in a Dashboard" } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "List of Dashboards" } } }); + } + create(value?: PartialMessage): ListSiteDashboardResult { + const message = globalThis.Object.create((this.messagePrototype!)); + message.Results = []; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListSiteDashboardResult): ListSiteDashboardResult { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated vizapi.Dashboard Results */ 1: + message.Results.push(Dashboard.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: ListSiteDashboardResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* repeated vizapi.Dashboard Results = 1; */ + for (let i = 0; i < message.Results.length; i++) + Dashboard.internalBinaryWrite(message.Results[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.ListSiteDashboardResult + */ +export const ListSiteDashboardResult = new ListSiteDashboardResult$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class CreateSiteDashboardRequest$Type extends MessageType { + constructor() { + super("vizapi.CreateSiteDashboardRequest", [ + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the Dashboard" }, "validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "content", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "All widgets in Dashboard" } } }, + { no: 4, name: "IsPrivate", kind: "scalar", localName: "IsPrivate", jsonName: "IsPrivate", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Visibility of the Dashboard" } } }, + { no: 8, name: "AutoRefresh", kind: "scalar", localName: "AutoRefresh", jsonName: "AutoRefresh", T: 5 /*ScalarType.INT32*/ } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Information that needs to be stored", required: ["Header", "Name"] } } }); + } + create(value?: PartialMessage): CreateSiteDashboardRequest { + const message = globalThis.Object.create((this.messagePrototype!)); + message.Name = ""; + message.content = ""; + message.IsPrivate = false; + message.AutoRefresh = 0; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateSiteDashboardRequest): CreateSiteDashboardRequest { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.RequestSiteHeader Header */ 1: + message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); + break; + case /* string Name */ 2: + message.Name = reader.string(); + break; + case /* string content */ 3: + message.content = reader.string(); + break; + case /* bool IsPrivate */ 4: + message.IsPrivate = reader.bool(); + break; + case /* int32 AutoRefresh */ 8: + message.AutoRefresh = reader.int32(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: CreateSiteDashboardRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.RequestSiteHeader Header = 1; */ + if (message.Header) + RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + /* string Name = 2; */ + if (message.Name !== "") + writer.tag(2, WireType.LengthDelimited).string(message.Name); + /* string content = 3; */ + if (message.content !== "") + writer.tag(3, WireType.LengthDelimited).string(message.content); + /* bool IsPrivate = 4; */ + if (message.IsPrivate !== false) + writer.tag(4, WireType.Varint).bool(message.IsPrivate); + /* int32 AutoRefresh = 8; */ + if (message.AutoRefresh !== 0) + writer.tag(8, WireType.Varint).int32(message.AutoRefresh); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.CreateSiteDashboardRequest + */ +export const CreateSiteDashboardRequest = new CreateSiteDashboardRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class CreateSiteDashboardResult$Type extends MessageType { + constructor() { + super("vizapi.CreateSiteDashboardResult", [ + { no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => Dashboard } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Created Dashboard" } } }); + } + create(value?: PartialMessage): CreateSiteDashboardResult { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateSiteDashboardResult): CreateSiteDashboardResult { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* vizapi.Dashboard Result */ 1: + message.Result = Dashboard.internalBinaryRead(reader, reader.uint32(), options, message.Result); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: CreateSiteDashboardResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* vizapi.Dashboard Result = 1; */ + if (message.Result) + Dashboard.internalBinaryWrite(message.Result, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.CreateSiteDashboardResult + */ +export const CreateSiteDashboardResult = new CreateSiteDashboardResult$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class DeleteSiteDashboardRequest$Type extends MessageType { + constructor() { + super("vizapi.DeleteSiteDashboardRequest", [ + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 2, name: "DashboardID", kind: "scalar", localName: "DashboardID", jsonName: "DashboardID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Dashboard" }, "validate.rules": { string: { minLen: "1" } } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "IDs of the Dashboard to be deleted", required: ["Header", "DashboardID"] } } }); + } + create(value?: PartialMessage): DeleteSiteDashboardRequest { + const message = globalThis.Object.create((this.messagePrototype!)); + message.DashboardID = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteSiteDashboardRequest): DeleteSiteDashboardRequest { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.RequestSiteHeader Header */ 1: + message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); + break; + case /* string DashboardID */ 2: + message.DashboardID = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: DeleteSiteDashboardRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.RequestSiteHeader Header = 1; */ + if (message.Header) + RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + /* string DashboardID = 2; */ + if (message.DashboardID !== "") + writer.tag(2, WireType.LengthDelimited).string(message.DashboardID); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.DeleteSiteDashboardRequest + */ +export const DeleteSiteDashboardRequest = new DeleteSiteDashboardRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class DeleteSiteDashboardResult$Type extends MessageType { + constructor() { + super("vizapi.DeleteSiteDashboardResult", []); + } + create(value?: PartialMessage): DeleteSiteDashboardResult { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteSiteDashboardResult): DeleteSiteDashboardResult { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: DeleteSiteDashboardResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.DeleteSiteDashboardResult + */ +export const DeleteSiteDashboardResult = new DeleteSiteDashboardResult$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class UpdateSiteDashboardRequest$Type extends MessageType { + constructor() { + super("vizapi.UpdateSiteDashboardRequest", [ + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 2, name: "DashboardID", kind: "scalar", localName: "DashboardID", jsonName: "DashboardID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Dashboard" }, "validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "Name", kind: "message", localName: "Name", jsonName: "Name", T: () => StringObject, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the Dashboard" } } }, + { no: 4, name: "Content", kind: "message", localName: "Content", jsonName: "Content", T: () => StringObject, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "All the widgets in Dashboard" } } }, + { no: 5, name: "IsPrivate", kind: "message", localName: "IsPrivate", jsonName: "IsPrivate", T: () => BoolObject, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Visibility of the Dashboard" } } }, + { no: 9, name: "AutoRefresh", kind: "message", localName: "AutoRefresh", jsonName: "AutoRefresh", T: () => Int32Object } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Information that needs to be updated", required: ["Header", "DashboardID"] } } }); + } + create(value?: PartialMessage): UpdateSiteDashboardRequest { + const message = globalThis.Object.create((this.messagePrototype!)); + message.DashboardID = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateSiteDashboardRequest): UpdateSiteDashboardRequest { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.RequestSiteHeader Header */ 1: + message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); + break; + case /* string DashboardID */ 2: + message.DashboardID = reader.string(); + break; + case /* api.StringObject Name */ 3: + message.Name = StringObject.internalBinaryRead(reader, reader.uint32(), options, message.Name); + break; + case /* api.StringObject Content */ 4: + message.Content = StringObject.internalBinaryRead(reader, reader.uint32(), options, message.Content); + break; + case /* api.BoolObject IsPrivate */ 5: + message.IsPrivate = BoolObject.internalBinaryRead(reader, reader.uint32(), options, message.IsPrivate); + break; + case /* api.Int32Object AutoRefresh */ 9: + message.AutoRefresh = Int32Object.internalBinaryRead(reader, reader.uint32(), options, message.AutoRefresh); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: UpdateSiteDashboardRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.RequestSiteHeader Header = 1; */ + if (message.Header) + RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + /* string DashboardID = 2; */ + if (message.DashboardID !== "") + writer.tag(2, WireType.LengthDelimited).string(message.DashboardID); + /* api.StringObject Name = 3; */ + if (message.Name) + StringObject.internalBinaryWrite(message.Name, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); + /* api.StringObject Content = 4; */ + if (message.Content) + StringObject.internalBinaryWrite(message.Content, writer.tag(4, WireType.LengthDelimited).fork(), options).join(); + /* api.BoolObject IsPrivate = 5; */ + if (message.IsPrivate) + BoolObject.internalBinaryWrite(message.IsPrivate, writer.tag(5, WireType.LengthDelimited).fork(), options).join(); + /* api.Int32Object AutoRefresh = 9; */ + if (message.AutoRefresh) + Int32Object.internalBinaryWrite(message.AutoRefresh, writer.tag(9, WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.UpdateSiteDashboardRequest + */ +export const UpdateSiteDashboardRequest = new UpdateSiteDashboardRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class UpdateSiteDashboardResult$Type extends MessageType { + constructor() { + super("vizapi.UpdateSiteDashboardResult", [ + { no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => Dashboard } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Updated Dashboard information" } } }); + } + create(value?: PartialMessage): UpdateSiteDashboardResult { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateSiteDashboardResult): UpdateSiteDashboardResult { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* vizapi.Dashboard Result */ 1: + message.Result = Dashboard.internalBinaryRead(reader, reader.uint32(), options, message.Result); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: UpdateSiteDashboardResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* vizapi.Dashboard Result = 1; */ + if (message.Result) + Dashboard.internalBinaryWrite(message.Result, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.UpdateSiteDashboardResult + */ +export const UpdateSiteDashboardResult = new UpdateSiteDashboardResult$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class GetSiteDashboardRequest$Type extends MessageType { + constructor() { + super("vizapi.GetSiteDashboardRequest", [ + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 2, name: "DashboardID", kind: "scalar", localName: "DashboardID", jsonName: "DashboardID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Dashboard" }, "validate.rules": { string: { minLen: "1" } } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "IDs of the Dashboard", required: ["Header", "DashboardID"] } } }); + } + create(value?: PartialMessage): GetSiteDashboardRequest { + const message = globalThis.Object.create((this.messagePrototype!)); + message.DashboardID = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSiteDashboardRequest): GetSiteDashboardRequest { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.RequestSiteHeader Header */ 1: + message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); + break; + case /* string DashboardID */ 2: + message.DashboardID = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: GetSiteDashboardRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.RequestSiteHeader Header = 1; */ + if (message.Header) + RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + /* string DashboardID = 2; */ + if (message.DashboardID !== "") + writer.tag(2, WireType.LengthDelimited).string(message.DashboardID); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.GetSiteDashboardRequest + */ +export const GetSiteDashboardRequest = new GetSiteDashboardRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class GetSiteDashboardResult$Type extends MessageType { + constructor() { + super("vizapi.GetSiteDashboardResult", [ + { no: 1, name: "result", kind: "message", T: () => Dashboard } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "All information about the Dashboard" } } }); + } + create(value?: PartialMessage): GetSiteDashboardResult { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSiteDashboardResult): GetSiteDashboardResult { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* vizapi.Dashboard result */ 1: + message.result = Dashboard.internalBinaryRead(reader, reader.uint32(), options, message.result); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: GetSiteDashboardResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* vizapi.Dashboard result = 1; */ + if (message.result) + Dashboard.internalBinaryWrite(message.result, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.GetSiteDashboardResult + */ +export const GetSiteDashboardResult = new GetSiteDashboardResult$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class CopySiteDashboardRequest$Type extends MessageType { + constructor() { + super("vizapi.CopySiteDashboardRequest", [ + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 2, name: "DashboardID", kind: "scalar", localName: "DashboardID", jsonName: "DashboardID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Dashboard" }, "validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the new Dashboard" }, "validate.rules": { string: { minLen: "1" } } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "DashboardID", "Name"] } } }); + } + create(value?: PartialMessage): CopySiteDashboardRequest { + const message = globalThis.Object.create((this.messagePrototype!)); + message.DashboardID = ""; + message.Name = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CopySiteDashboardRequest): CopySiteDashboardRequest { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.RequestSiteHeader Header */ 1: + message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); + break; + case /* string DashboardID */ 2: + message.DashboardID = reader.string(); + break; + case /* string Name */ 3: + message.Name = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: CopySiteDashboardRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.RequestSiteHeader Header = 1; */ + if (message.Header) + RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + /* string DashboardID = 2; */ + if (message.DashboardID !== "") + writer.tag(2, WireType.LengthDelimited).string(message.DashboardID); + /* string Name = 3; */ + if (message.Name !== "") + writer.tag(3, WireType.LengthDelimited).string(message.Name); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.CopySiteDashboardRequest + */ +export const CopySiteDashboardRequest = new CopySiteDashboardRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class CopySiteDashboardResult$Type extends MessageType { + constructor() { + super("vizapi.CopySiteDashboardResult", [ + { no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => Dashboard } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "New copied dashboard" } } }); + } + create(value?: PartialMessage): CopySiteDashboardResult { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CopySiteDashboardResult): CopySiteDashboardResult { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* vizapi.Dashboard Result */ 1: + message.Result = Dashboard.internalBinaryRead(reader, reader.uint32(), options, message.Result); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: CopySiteDashboardResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* vizapi.Dashboard Result = 1; */ + if (message.Result) + Dashboard.internalBinaryWrite(message.Result, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message vizapi.CopySiteDashboardResult + */ +export const CopySiteDashboardResult = new CopySiteDashboardResult$Type(); /** * @generated ServiceType for protobuf service vizapi.DashboardService */ @@ -1245,5 +3039,18 @@ export const DashboardService = new ServiceType("vizapi.DashboardService", [ { name: "DeleteDashboardsForProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Dashboard"], summary: "Delete all dashboards of a project" }, "api.rscType": "Platform", "api.roles": "Platform.Project-Dashboards", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: DeleteDashboardsForProjectRequest, O: DeleteDashboardsForProjectResult }, { name: "Update", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Dashboard"], summary: "Update a dashboard" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "dashboard", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: UpdateDashboardRequest, O: UpdateDashboardResult }, { name: "Get", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Dashboard"], summary: "Get a dashboard" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "dashboard", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: GetDashboardRequest, O: GetDashboardResult }, - { name: "Copy", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Dashboard"], summary: "Copy a dashboard", description: "Copy a Dashboard with its IDs and the Name of the new Dashboard" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "dashboard", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: CopyDashboardRequest, O: CopyDashboardResult } + { name: "Copy", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Dashboard"], summary: "Copy a dashboard", description: "Copy a Dashboard with its IDs and the Name of the new Dashboard" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "dashboard", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: CopyDashboardRequest, O: CopyDashboardResult }, + { name: "CreateProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Dashboard"], summary: "Create a dashboard" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "dashboard", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: CreateProjectDashboardRequest, O: CreateProjectDashboardResult }, + { name: "ListProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Dashboard"], summary: "List dashboards", description: "List all the Dashboards" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "dashboard", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ListProjectDashboardRequest, O: ListProjectDashboardResult }, + { name: "DeleteProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Dashboard"], summary: "Delete a dashboard" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "dashboard", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: DeleteProjectDashboardRequest, O: DeleteProjectDashboardResult }, + { name: "UpdateProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Dashboard"], summary: "Update a dashboard" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "dashboard", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: UpdateProjectDashboardRequest, O: UpdateProjectDashboardResult }, + { name: "GetProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Dashboard"], summary: "Get a dashboard" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "dashboard", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: GetProjectDashboardRequest, O: GetProjectDashboardResult }, + { name: "CopyProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Dashboard"], summary: "Copy a dashboard", description: "Copy a Dashboard with its IDs and the Name of the new Dashboard" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "dashboard", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: CopyProjectDashboardRequest, O: CopyProjectDashboardResult }, + { name: "CreateSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Dashboard"], summary: "Create a dashboard" }, "api.rscType": "Site", "api.roles": "", "api.moduleID": "dashboard", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: CreateSiteDashboardRequest, O: CreateSiteDashboardResult }, + { name: "ListSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Dashboard"], summary: "List dashboards", description: "List all the Dashboards" }, "api.rscType": "Site", "api.roles": "", "api.moduleID": "dashboard", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ListSiteDashboardRequest, O: ListSiteDashboardResult }, + { name: "DeleteSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Dashboard"], summary: "Delete a dashboard" }, "api.rscType": "Site", "api.roles": "", "api.moduleID": "dashboard", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: DeleteSiteDashboardRequest, O: DeleteSiteDashboardResult }, + { name: "DeleteDashboardsForSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Dashboard"], summary: "Delete all dashboards of a project" }, "api.rscType": "Platform", "api.roles": "Platform.Site-Dashboards", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: DeleteDashboardsForSiteRequest, O: DeleteDashboardsForSiteResult }, + { name: "UpdateSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Dashboard"], summary: "Update a dashboard" }, "api.rscType": "Site", "api.roles": "", "api.moduleID": "dashboard", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: UpdateSiteDashboardRequest, O: UpdateSiteDashboardResult }, + { name: "GetSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Dashboard"], summary: "Get a dashboard" }, "api.rscType": "Site", "api.roles": "", "api.moduleID": "dashboard", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: GetSiteDashboardRequest, O: GetSiteDashboardResult }, + { name: "CopySite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Dashboard"], summary: "Copy a dashboard", description: "Copy a Dashboard with its IDs and the Name of the new Dashboard" }, "api.rscType": "Site", "api.roles": "", "api.moduleID": "dashboard", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: CopySiteDashboardRequest, O: CopySiteDashboardResult } ], { "api.k8sService": "dashboard" }); diff --git a/viz-default-view.client.ts b/viz-default-view.client.ts index 2dab461..b2f5799 100644 --- a/viz-default-view.client.ts +++ b/viz-default-view.client.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name +// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name // @generated from protobuf file "viz-default-view.proto" (package "vizapi", syntax proto3) // tslint:disable import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; @@ -16,11 +16,11 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc"; */ export interface IDefaultViewServiceClient { /** - * @generated from protobuf rpc: CreatePlatform(vizapi.CreatePlatformDefaultViewRequest) returns (vizapi.CreatePlatformDefaultViewResult); + * @generated from protobuf rpc: CreatePlatform */ createPlatform(input: CreatePlatformDefaultViewRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: UpdatePlatform(vizapi.UpdatePlatformDefaultViewRequest) returns (vizapi.UpdatePlatformDefaultViewResult); + * @generated from protobuf rpc: UpdatePlatform */ updatePlatform(input: UpdatePlatformDefaultViewRequest, options?: RpcOptions): UnaryCall; } @@ -34,14 +34,14 @@ export class DefaultViewServiceClient implements IDefaultViewServiceClient, Serv constructor(private readonly _transport: RpcTransport) { } /** - * @generated from protobuf rpc: CreatePlatform(vizapi.CreatePlatformDefaultViewRequest) returns (vizapi.CreatePlatformDefaultViewResult); + * @generated from protobuf rpc: CreatePlatform */ createPlatform(input: CreatePlatformDefaultViewRequest, options?: RpcOptions): UnaryCall { const method = this.methods[0], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: UpdatePlatform(vizapi.UpdatePlatformDefaultViewRequest) returns (vizapi.UpdatePlatformDefaultViewResult); + * @generated from protobuf rpc: UpdatePlatform */ updatePlatform(input: UpdatePlatformDefaultViewRequest, options?: RpcOptions): UnaryCall { const method = this.methods[1], opt = this._transport.mergeOptions(options); diff --git a/viz-default-view.ts b/viz-default-view.ts index 76e0c87..b91ba3d 100644 --- a/viz-default-view.ts +++ b/viz-default-view.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name +// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name // @generated from protobuf file "viz-default-view.proto" (package "vizapi", syntax proto3) // tslint:disable import { ServiceType } from "@protobuf-ts/runtime-rpc"; @@ -18,19 +18,19 @@ export interface UpdatePlatformDefaultViewRequest { /** * Identifier of the View * - * @generated from protobuf field: string ViewID = 1 [json_name = "ViewID"]; + * @generated from protobuf field: string ViewID = 1 */ ViewID: string; /** * Content of the View * - * @generated from protobuf field: string Payload = 4 [json_name = "Payload"]; + * @generated from protobuf field: string Payload = 4 */ Payload: string; /** * Visibility of the View * - * @generated from protobuf field: bool IsPrivate = 5 [json_name = "IsPrivate"]; + * @generated from protobuf field: bool IsPrivate = 5 */ IsPrivate: boolean; } @@ -41,19 +41,19 @@ export interface CreatePlatformDefaultViewRequest { /** * Identifier of the Screen * - * @generated from protobuf field: string ScreenID = 1 [json_name = "ScreenID"]; + * @generated from protobuf field: string ScreenID = 1 */ ScreenID: string; /** * Content of the View * - * @generated from protobuf field: string Payload = 4 [json_name = "Payload"]; + * @generated from protobuf field: string Payload = 4 */ Payload: string; /** * Visibility of the View * - * @generated from protobuf field: bool IsPrivate = 5 [json_name = "IsPrivate"]; + * @generated from protobuf field: bool IsPrivate = 5 */ IsPrivate: boolean; } @@ -66,7 +66,7 @@ export interface CreatePlatformDefaultViewResult { /** * Identifier of the View * - * @generated from protobuf field: string ViewID = 1 [json_name = "ViewID"]; + * @generated from protobuf field: string ViewID = 1 */ ViewID: string; } @@ -77,7 +77,7 @@ export interface UpdatePlatformDefaultViewResult { /** * Identifier of the View * - * @generated from protobuf field: string ViewID = 1 [json_name = "ViewID"]; + * @generated from protobuf field: string ViewID = 1 */ ViewID: string; } @@ -104,13 +104,13 @@ class UpdatePlatformDefaultViewRequest$Type extends MessageType; /** - * @generated from protobuf rpc: Create(vizapi.CreateMotdRequest) returns (vizapi.CreateMotdResult); + * @generated from protobuf rpc: Create */ create(input: CreateMotdRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: Update(vizapi.UpdateMotdRequest) returns (vizapi.UpdateMotdResult); + * @generated from protobuf rpc: Update */ update(input: UpdateMotdRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: Delete(vizapi.DeleteMotdRequest) returns (vizapi.DeleteMotdResult); + * @generated from protobuf rpc: Delete */ delete(input: DeleteMotdRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: List(vizapi.ListMotdsRequest) returns (vizapi.ListMotdsResult); + * @generated from protobuf rpc: List */ list(input: ListMotdsRequest, options?: RpcOptions): UnaryCall; } @@ -52,35 +52,35 @@ export class MotdServiceClient implements IMotdServiceClient, ServiceInfo { constructor(private readonly _transport: RpcTransport) { } /** - * @generated from protobuf rpc: Get(vizapi.GetMotdRequest) returns (vizapi.GetMotdResult); + * @generated from protobuf rpc: Get */ get(input: GetMotdRequest, options?: RpcOptions): UnaryCall { const method = this.methods[0], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: Create(vizapi.CreateMotdRequest) returns (vizapi.CreateMotdResult); + * @generated from protobuf rpc: Create */ create(input: CreateMotdRequest, options?: RpcOptions): UnaryCall { const method = this.methods[1], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: Update(vizapi.UpdateMotdRequest) returns (vizapi.UpdateMotdResult); + * @generated from protobuf rpc: Update */ update(input: UpdateMotdRequest, options?: RpcOptions): UnaryCall { const method = this.methods[2], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: Delete(vizapi.DeleteMotdRequest) returns (vizapi.DeleteMotdResult); + * @generated from protobuf rpc: Delete */ delete(input: DeleteMotdRequest, options?: RpcOptions): UnaryCall { const method = this.methods[3], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: List(vizapi.ListMotdsRequest) returns (vizapi.ListMotdsResult); + * @generated from protobuf rpc: List */ list(input: ListMotdsRequest, options?: RpcOptions): UnaryCall { const method = this.methods[4], opt = this._transport.mergeOptions(options); diff --git a/viz-motd.ts b/viz-motd.ts index b2c24d0..662eeab 100644 --- a/viz-motd.ts +++ b/viz-motd.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name +// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name // @generated from protobuf file "viz-motd.proto" (package "vizapi", syntax proto3) // tslint:disable import { ServiceType } from "@protobuf-ts/runtime-rpc"; @@ -16,19 +16,19 @@ import { MessageType } from "@protobuf-ts/runtime"; */ export interface Motd { /** - * @generated from protobuf field: string MotdID = 1 [json_name = "MotdID"]; + * @generated from protobuf field: string MotdID = 1 */ MotdID: string; /** - * @generated from protobuf field: string StartDate = 2 [json_name = "StartDate"]; + * @generated from protobuf field: string StartDate = 2 */ StartDate: string; /** - * @generated from protobuf field: string EndDate = 3 [json_name = "EndDate"]; + * @generated from protobuf field: string EndDate = 3 */ EndDate: string; /** - * @generated from protobuf field: repeated vizapi.MotdMessage Message = 4 [json_name = "Message"]; + * @generated from protobuf field: repeated vizapi.MotdMessage Message = 4 */ Message: MotdMessage[]; } @@ -39,13 +39,13 @@ export interface MotdMessage { /** * ISO 639-1 code message language * - * @generated from protobuf field: string Lang = 1 [json_name = "Lang"]; + * @generated from protobuf field: string Lang = 1 */ Lang: string; /** * The message content * - * @generated from protobuf field: string Message = 2 [json_name = "Message"]; + * @generated from protobuf field: string Message = 2 */ Message: string; } @@ -56,13 +56,13 @@ export interface MotdMessageRes { /** * Language used for the message * - * @generated from protobuf field: string Lang = 1 [json_name = "Lang"]; + * @generated from protobuf field: string Lang = 1 */ Lang: string; /** * The message content * - * @generated from protobuf field: string Message = 2 [json_name = "Message"]; + * @generated from protobuf field: string Message = 2 */ Message: string; } @@ -75,17 +75,17 @@ export interface CreateMotdRequest { /** * UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z]) * - * @generated from protobuf field: string StartDate = 1 [json_name = "StartDate"]; + * @generated from protobuf field: string StartDate = 1 */ StartDate: string; /** * UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z]) * - * @generated from protobuf field: string EndDate = 2 [json_name = "EndDate"]; + * @generated from protobuf field: string EndDate = 2 */ EndDate: string; /** - * @generated from protobuf field: repeated vizapi.MotdMessage Message = 3 [json_name = "Message"]; + * @generated from protobuf field: repeated vizapi.MotdMessage Message = 3 */ Message: MotdMessage[]; } @@ -96,23 +96,23 @@ export interface CreateMotdRequest { */ export interface CreateMotdResult { /** - * @generated from protobuf field: string ID = 1 [json_name = "ID"]; + * @generated from protobuf field: string ID = 1 */ ID: string; /** * UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z]) * - * @generated from protobuf field: string StartDate = 2 [json_name = "StartDate"]; + * @generated from protobuf field: string StartDate = 2 */ StartDate: string; /** * UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z]) * - * @generated from protobuf field: string EndDate = 3 [json_name = "EndDate"]; + * @generated from protobuf field: string EndDate = 3 */ EndDate: string; /** - * @generated from protobuf field: repeated vizapi.MotdMessageRes Message = 4 [json_name = "Message"]; + * @generated from protobuf field: repeated vizapi.MotdMessageRes Message = 4 */ Message: MotdMessageRes[]; } @@ -123,23 +123,23 @@ export interface CreateMotdResult { */ export interface UpdateMotdRequest { /** - * @generated from protobuf field: string ID = 1 [json_name = "ID"]; + * @generated from protobuf field: string ID = 1 */ ID: string; /** * UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z]) * - * @generated from protobuf field: string StartDate = 2 [json_name = "StartDate"]; + * @generated from protobuf field: string StartDate = 2 */ StartDate: string; /** * UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z]) * - * @generated from protobuf field: string EndDate = 3 [json_name = "EndDate"]; + * @generated from protobuf field: string EndDate = 3 */ EndDate: string; /** - * @generated from protobuf field: repeated vizapi.MotdMessage Message = 4 [json_name = "Message"]; + * @generated from protobuf field: repeated vizapi.MotdMessage Message = 4 */ Message: MotdMessage[]; } @@ -148,23 +148,23 @@ export interface UpdateMotdRequest { */ export interface UpdateMotdResult { /** - * @generated from protobuf field: string ID = 1 [json_name = "ID"]; + * @generated from protobuf field: string ID = 1 */ ID: string; /** * UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z]) * - * @generated from protobuf field: string StartDate = 2 [json_name = "StartDate"]; + * @generated from protobuf field: string StartDate = 2 */ StartDate: string; /** * UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z]) * - * @generated from protobuf field: string EndDate = 3 [json_name = "EndDate"]; + * @generated from protobuf field: string EndDate = 3 */ EndDate: string; /** - * @generated from protobuf field: repeated vizapi.MotdMessage Message = 4 [json_name = "Message"]; + * @generated from protobuf field: repeated vizapi.MotdMessage Message = 4 */ Message: MotdMessage[]; } @@ -180,23 +180,23 @@ export interface GetMotdRequest { */ export interface GetMotdResult { /** - * @generated from protobuf field: string ID = 1 [json_name = "ID"]; + * @generated from protobuf field: string ID = 1 */ ID: string; /** * UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z]) * - * @generated from protobuf field: string StartDate = 2 [json_name = "StartDate"]; + * @generated from protobuf field: string StartDate = 2 */ StartDate: string; /** * UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z]) * - * @generated from protobuf field: string EndDate = 3 [json_name = "EndDate"]; + * @generated from protobuf field: string EndDate = 3 */ EndDate: string; /** - * @generated from protobuf field: repeated vizapi.MotdMessageRes Message = 4 [json_name = "Message"]; + * @generated from protobuf field: repeated vizapi.MotdMessageRes Message = 4 */ Message: MotdMessageRes[]; } @@ -205,7 +205,7 @@ export interface GetMotdResult { */ export interface DeleteMotdRequest { /** - * @generated from protobuf field: string ID = 1 [json_name = "ID"]; + * @generated from protobuf field: string ID = 1 */ ID: string; } @@ -226,7 +226,7 @@ export interface ListMotdsRequest { */ export interface ListMotdsResult { /** - * @generated from protobuf field: repeated vizapi.GetMotdResult Motds = 1 [json_name = "Motds"]; + * @generated from protobuf field: repeated vizapi.GetMotdResult Motds = 1 */ Motds: GetMotdResult[]; } @@ -255,16 +255,16 @@ class Motd$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string MotdID = 1 [json_name = "MotdID"];*/ 1: + case /* string MotdID */ 1: message.MotdID = reader.string(); break; - case /* string StartDate = 2 [json_name = "StartDate"];*/ 2: + case /* string StartDate */ 2: message.StartDate = reader.string(); break; - case /* string EndDate = 3 [json_name = "EndDate"];*/ 3: + case /* string EndDate */ 3: message.EndDate = reader.string(); break; - case /* repeated vizapi.MotdMessage Message = 4 [json_name = "Message"];*/ 4: + case /* repeated vizapi.MotdMessage Message */ 4: message.Message.push(MotdMessage.internalBinaryRead(reader, reader.uint32(), options)); break; default: @@ -279,16 +279,16 @@ class Motd$Type extends MessageType { return message; } internalBinaryWrite(message: Motd, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string MotdID = 1 [json_name = "MotdID"]; */ + /* string MotdID = 1; */ if (message.MotdID !== "") writer.tag(1, WireType.LengthDelimited).string(message.MotdID); - /* string StartDate = 2 [json_name = "StartDate"]; */ + /* string StartDate = 2; */ if (message.StartDate !== "") writer.tag(2, WireType.LengthDelimited).string(message.StartDate); - /* string EndDate = 3 [json_name = "EndDate"]; */ + /* string EndDate = 3; */ if (message.EndDate !== "") writer.tag(3, WireType.LengthDelimited).string(message.EndDate); - /* repeated vizapi.MotdMessage Message = 4 [json_name = "Message"]; */ + /* repeated vizapi.MotdMessage Message = 4; */ for (let i = 0; i < message.Message.length; i++) MotdMessage.internalBinaryWrite(message.Message[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; @@ -322,10 +322,10 @@ class MotdMessage$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string Lang = 1 [json_name = "Lang"];*/ 1: + case /* string Lang */ 1: message.Lang = reader.string(); break; - case /* string Message = 2 [json_name = "Message"];*/ 2: + case /* string Message */ 2: message.Message = reader.string(); break; default: @@ -340,10 +340,10 @@ class MotdMessage$Type extends MessageType { return message; } internalBinaryWrite(message: MotdMessage, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string Lang = 1 [json_name = "Lang"]; */ + /* string Lang = 1; */ if (message.Lang !== "") writer.tag(1, WireType.LengthDelimited).string(message.Lang); - /* string Message = 2 [json_name = "Message"]; */ + /* string Message = 2; */ if (message.Message !== "") writer.tag(2, WireType.LengthDelimited).string(message.Message); let u = options.writeUnknownFields; @@ -377,10 +377,10 @@ class MotdMessageRes$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string Lang = 1 [json_name = "Lang"];*/ 1: + case /* string Lang */ 1: message.Lang = reader.string(); break; - case /* string Message = 2 [json_name = "Message"];*/ 2: + case /* string Message */ 2: message.Message = reader.string(); break; default: @@ -395,10 +395,10 @@ class MotdMessageRes$Type extends MessageType { return message; } internalBinaryWrite(message: MotdMessageRes, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string Lang = 1 [json_name = "Lang"]; */ + /* string Lang = 1; */ if (message.Lang !== "") writer.tag(1, WireType.LengthDelimited).string(message.Lang); - /* string Message = 2 [json_name = "Message"]; */ + /* string Message = 2; */ if (message.Message !== "") writer.tag(2, WireType.LengthDelimited).string(message.Message); let u = options.writeUnknownFields; @@ -434,13 +434,13 @@ class CreateMotdRequest$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string StartDate = 1 [json_name = "StartDate"];*/ 1: + case /* string StartDate */ 1: message.StartDate = reader.string(); break; - case /* string EndDate = 2 [json_name = "EndDate"];*/ 2: + case /* string EndDate */ 2: message.EndDate = reader.string(); break; - case /* repeated vizapi.MotdMessage Message = 3 [json_name = "Message"];*/ 3: + case /* repeated vizapi.MotdMessage Message */ 3: message.Message.push(MotdMessage.internalBinaryRead(reader, reader.uint32(), options)); break; default: @@ -455,13 +455,13 @@ class CreateMotdRequest$Type extends MessageType { return message; } internalBinaryWrite(message: CreateMotdRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string StartDate = 1 [json_name = "StartDate"]; */ + /* string StartDate = 1; */ if (message.StartDate !== "") writer.tag(1, WireType.LengthDelimited).string(message.StartDate); - /* string EndDate = 2 [json_name = "EndDate"]; */ + /* string EndDate = 2; */ if (message.EndDate !== "") writer.tag(2, WireType.LengthDelimited).string(message.EndDate); - /* repeated vizapi.MotdMessage Message = 3 [json_name = "Message"]; */ + /* repeated vizapi.MotdMessage Message = 3; */ for (let i = 0; i < message.Message.length; i++) MotdMessage.internalBinaryWrite(message.Message[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; @@ -499,16 +499,16 @@ class CreateMotdResult$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string ID = 1 [json_name = "ID"];*/ 1: + case /* string ID */ 1: message.ID = reader.string(); break; - case /* string StartDate = 2 [json_name = "StartDate"];*/ 2: + case /* string StartDate */ 2: message.StartDate = reader.string(); break; - case /* string EndDate = 3 [json_name = "EndDate"];*/ 3: + case /* string EndDate */ 3: message.EndDate = reader.string(); break; - case /* repeated vizapi.MotdMessageRes Message = 4 [json_name = "Message"];*/ 4: + case /* repeated vizapi.MotdMessageRes Message */ 4: message.Message.push(MotdMessageRes.internalBinaryRead(reader, reader.uint32(), options)); break; default: @@ -523,16 +523,16 @@ class CreateMotdResult$Type extends MessageType { return message; } internalBinaryWrite(message: CreateMotdResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string ID = 1 [json_name = "ID"]; */ + /* string ID = 1; */ if (message.ID !== "") writer.tag(1, WireType.LengthDelimited).string(message.ID); - /* string StartDate = 2 [json_name = "StartDate"]; */ + /* string StartDate = 2; */ if (message.StartDate !== "") writer.tag(2, WireType.LengthDelimited).string(message.StartDate); - /* string EndDate = 3 [json_name = "EndDate"]; */ + /* string EndDate = 3; */ if (message.EndDate !== "") writer.tag(3, WireType.LengthDelimited).string(message.EndDate); - /* repeated vizapi.MotdMessageRes Message = 4 [json_name = "Message"]; */ + /* repeated vizapi.MotdMessageRes Message = 4; */ for (let i = 0; i < message.Message.length; i++) MotdMessageRes.internalBinaryWrite(message.Message[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; @@ -570,16 +570,16 @@ class UpdateMotdRequest$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string ID = 1 [json_name = "ID"];*/ 1: + case /* string ID */ 1: message.ID = reader.string(); break; - case /* string StartDate = 2 [json_name = "StartDate"];*/ 2: + case /* string StartDate */ 2: message.StartDate = reader.string(); break; - case /* string EndDate = 3 [json_name = "EndDate"];*/ 3: + case /* string EndDate */ 3: message.EndDate = reader.string(); break; - case /* repeated vizapi.MotdMessage Message = 4 [json_name = "Message"];*/ 4: + case /* repeated vizapi.MotdMessage Message */ 4: message.Message.push(MotdMessage.internalBinaryRead(reader, reader.uint32(), options)); break; default: @@ -594,16 +594,16 @@ class UpdateMotdRequest$Type extends MessageType { return message; } internalBinaryWrite(message: UpdateMotdRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string ID = 1 [json_name = "ID"]; */ + /* string ID = 1; */ if (message.ID !== "") writer.tag(1, WireType.LengthDelimited).string(message.ID); - /* string StartDate = 2 [json_name = "StartDate"]; */ + /* string StartDate = 2; */ if (message.StartDate !== "") writer.tag(2, WireType.LengthDelimited).string(message.StartDate); - /* string EndDate = 3 [json_name = "EndDate"]; */ + /* string EndDate = 3; */ if (message.EndDate !== "") writer.tag(3, WireType.LengthDelimited).string(message.EndDate); - /* repeated vizapi.MotdMessage Message = 4 [json_name = "Message"]; */ + /* repeated vizapi.MotdMessage Message = 4; */ for (let i = 0; i < message.Message.length; i++) MotdMessage.internalBinaryWrite(message.Message[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; @@ -641,16 +641,16 @@ class UpdateMotdResult$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string ID = 1 [json_name = "ID"];*/ 1: + case /* string ID */ 1: message.ID = reader.string(); break; - case /* string StartDate = 2 [json_name = "StartDate"];*/ 2: + case /* string StartDate */ 2: message.StartDate = reader.string(); break; - case /* string EndDate = 3 [json_name = "EndDate"];*/ 3: + case /* string EndDate */ 3: message.EndDate = reader.string(); break; - case /* repeated vizapi.MotdMessage Message = 4 [json_name = "Message"];*/ 4: + case /* repeated vizapi.MotdMessage Message */ 4: message.Message.push(MotdMessage.internalBinaryRead(reader, reader.uint32(), options)); break; default: @@ -665,16 +665,16 @@ class UpdateMotdResult$Type extends MessageType { return message; } internalBinaryWrite(message: UpdateMotdResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string ID = 1 [json_name = "ID"]; */ + /* string ID = 1; */ if (message.ID !== "") writer.tag(1, WireType.LengthDelimited).string(message.ID); - /* string StartDate = 2 [json_name = "StartDate"]; */ + /* string StartDate = 2; */ if (message.StartDate !== "") writer.tag(2, WireType.LengthDelimited).string(message.StartDate); - /* string EndDate = 3 [json_name = "EndDate"]; */ + /* string EndDate = 3; */ if (message.EndDate !== "") writer.tag(3, WireType.LengthDelimited).string(message.EndDate); - /* repeated vizapi.MotdMessage Message = 4 [json_name = "Message"]; */ + /* repeated vizapi.MotdMessage Message = 4; */ for (let i = 0; i < message.Message.length; i++) MotdMessage.internalBinaryWrite(message.Message[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; @@ -750,16 +750,16 @@ class GetMotdResult$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string ID = 1 [json_name = "ID"];*/ 1: + case /* string ID */ 1: message.ID = reader.string(); break; - case /* string StartDate = 2 [json_name = "StartDate"];*/ 2: + case /* string StartDate */ 2: message.StartDate = reader.string(); break; - case /* string EndDate = 3 [json_name = "EndDate"];*/ 3: + case /* string EndDate */ 3: message.EndDate = reader.string(); break; - case /* repeated vizapi.MotdMessageRes Message = 4 [json_name = "Message"];*/ 4: + case /* repeated vizapi.MotdMessageRes Message */ 4: message.Message.push(MotdMessageRes.internalBinaryRead(reader, reader.uint32(), options)); break; default: @@ -774,16 +774,16 @@ class GetMotdResult$Type extends MessageType { return message; } internalBinaryWrite(message: GetMotdResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string ID = 1 [json_name = "ID"]; */ + /* string ID = 1; */ if (message.ID !== "") writer.tag(1, WireType.LengthDelimited).string(message.ID); - /* string StartDate = 2 [json_name = "StartDate"]; */ + /* string StartDate = 2; */ if (message.StartDate !== "") writer.tag(2, WireType.LengthDelimited).string(message.StartDate); - /* string EndDate = 3 [json_name = "EndDate"]; */ + /* string EndDate = 3; */ if (message.EndDate !== "") writer.tag(3, WireType.LengthDelimited).string(message.EndDate); - /* repeated vizapi.MotdMessageRes Message = 4 [json_name = "Message"]; */ + /* repeated vizapi.MotdMessageRes Message = 4; */ for (let i = 0; i < message.Message.length; i++) MotdMessageRes.internalBinaryWrite(message.Message[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; @@ -815,7 +815,7 @@ class DeleteMotdRequest$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string ID = 1 [json_name = "ID"];*/ 1: + case /* string ID */ 1: message.ID = reader.string(); break; default: @@ -830,7 +830,7 @@ class DeleteMotdRequest$Type extends MessageType { return message; } internalBinaryWrite(message: DeleteMotdRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string ID = 1 [json_name = "ID"]; */ + /* string ID = 1; */ if (message.ID !== "") writer.tag(1, WireType.LengthDelimited).string(message.ID); let u = options.writeUnknownFields; @@ -938,7 +938,7 @@ class ListMotdsResult$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* repeated vizapi.GetMotdResult Motds = 1 [json_name = "Motds"];*/ 1: + case /* repeated vizapi.GetMotdResult Motds */ 1: message.Motds.push(GetMotdResult.internalBinaryRead(reader, reader.uint32(), options)); break; default: @@ -953,7 +953,7 @@ class ListMotdsResult$Type extends MessageType { return message; } internalBinaryWrite(message: ListMotdsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* repeated vizapi.GetMotdResult Motds = 1 [json_name = "Motds"]; */ + /* repeated vizapi.GetMotdResult Motds = 1; */ for (let i = 0; i < message.Motds.length; i++) GetMotdResult.internalBinaryWrite(message.Motds[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; diff --git a/viz-organisation-settings.client.ts b/viz-organisation-settings.client.ts index 1af5ce5..a31d304 100644 --- a/viz-organisation-settings.client.ts +++ b/viz-organisation-settings.client.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name +// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name // @generated from protobuf file "viz-organisation-settings.proto" (package "vizapi", syntax proto3) // tslint:disable import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; @@ -22,23 +22,23 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc"; */ export interface IOrganisationSettingsServiceClient { /** - * @generated from protobuf rpc: Get(vizapi.GetOrganisationSettingRequest) returns (vizapi.GetOrganisationSettingResult); + * @generated from protobuf rpc: Get */ get(input: GetOrganisationSettingRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: Put(vizapi.PutOrganisationSettingRequest) returns (vizapi.PutOrganisationSettingResult); + * @generated from protobuf rpc: Put */ put(input: PutOrganisationSettingRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: Delete(vizapi.DeleteOrganisationSettingRequest) returns (vizapi.DeleteOrganisationSettingResult); + * @generated from protobuf rpc: Delete */ delete(input: DeleteOrganisationSettingRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: List(vizapi.ListOrganisationSettingsRequest) returns (vizapi.ListOrganisationSettingsResult); + * @generated from protobuf rpc: List */ list(input: ListOrganisationSettingsRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: DeleteSettingsForOrganisation(vizapi.DeleteSettingsForOrganisationRequest) returns (vizapi.DeleteSettingsForOrganisationResult); + * @generated from protobuf rpc: DeleteSettingsForOrganisation */ deleteSettingsForOrganisation(input: DeleteSettingsForOrganisationRequest, options?: RpcOptions): UnaryCall; } @@ -52,35 +52,35 @@ export class OrganisationSettingsServiceClient implements IOrganisationSettingsS constructor(private readonly _transport: RpcTransport) { } /** - * @generated from protobuf rpc: Get(vizapi.GetOrganisationSettingRequest) returns (vizapi.GetOrganisationSettingResult); + * @generated from protobuf rpc: Get */ get(input: GetOrganisationSettingRequest, options?: RpcOptions): UnaryCall { const method = this.methods[0], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: Put(vizapi.PutOrganisationSettingRequest) returns (vizapi.PutOrganisationSettingResult); + * @generated from protobuf rpc: Put */ put(input: PutOrganisationSettingRequest, options?: RpcOptions): UnaryCall { const method = this.methods[1], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: Delete(vizapi.DeleteOrganisationSettingRequest) returns (vizapi.DeleteOrganisationSettingResult); + * @generated from protobuf rpc: Delete */ delete(input: DeleteOrganisationSettingRequest, options?: RpcOptions): UnaryCall { const method = this.methods[2], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: List(vizapi.ListOrganisationSettingsRequest) returns (vizapi.ListOrganisationSettingsResult); + * @generated from protobuf rpc: List */ list(input: ListOrganisationSettingsRequest, options?: RpcOptions): UnaryCall { const method = this.methods[3], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: DeleteSettingsForOrganisation(vizapi.DeleteSettingsForOrganisationRequest) returns (vizapi.DeleteSettingsForOrganisationResult); + * @generated from protobuf rpc: DeleteSettingsForOrganisation */ deleteSettingsForOrganisation(input: DeleteSettingsForOrganisationRequest, options?: RpcOptions): UnaryCall { const method = this.methods[4], opt = this._transport.mergeOptions(options); diff --git a/viz-organisation-settings.ts b/viz-organisation-settings.ts index 7b5592b..614ce9b 100644 --- a/viz-organisation-settings.ts +++ b/viz-organisation-settings.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name +// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name // @generated from protobuf file "viz-organisation-settings.proto" (package "vizapi", syntax proto3) // tslint:disable import { ServiceType } from "@protobuf-ts/runtime-rpc"; @@ -17,19 +17,19 @@ import { RequestOrganisationHeader } from "./core/shared"; */ export interface OrganisationSetting { /** - * @generated from protobuf field: string OrganisationID = 1 [json_name = "OrganisationID"]; + * @generated from protobuf field: string OrganisationID = 1 */ OrganisationID: string; /** - * @generated from protobuf field: string Key = 2 [json_name = "Key"]; + * @generated from protobuf field: string Key = 2 */ Key: string; /** - * @generated from protobuf field: string Value = 3 [json_name = "Value"]; + * @generated from protobuf field: string Value = 3 */ Value: string; /** - * @generated from protobuf field: vizapi.SettingVisibility Visibility = 4 [json_name = "Visibility"]; + * @generated from protobuf field: vizapi.SettingVisibility Visibility = 4 */ Visibility: SettingVisibility; } @@ -40,19 +40,19 @@ export interface OrganisationSetting { */ export interface PutOrganisationSettingRequest { /** - * @generated from protobuf field: api.RequestOrganisationHeader Header = 1 [json_name = "Header"]; + * @generated from protobuf field: api.RequestOrganisationHeader Header = 1 */ Header?: RequestOrganisationHeader; /** - * @generated from protobuf field: string Key = 2 [json_name = "Key"]; + * @generated from protobuf field: string Key = 2 */ Key: string; /** - * @generated from protobuf field: string Value = 3 [json_name = "Value"]; + * @generated from protobuf field: string Value = 3 */ Value: string; /** - * @generated from protobuf field: vizapi.SettingVisibility Visibility = 4 [json_name = "Visibility"]; + * @generated from protobuf field: vizapi.SettingVisibility Visibility = 4 */ Visibility: SettingVisibility; } @@ -63,15 +63,15 @@ export interface PutOrganisationSettingRequest { */ export interface PutOrganisationSettingResult { /** - * @generated from protobuf field: string Key = 1 [json_name = "Key"]; + * @generated from protobuf field: string Key = 1 */ Key: string; /** - * @generated from protobuf field: string Value = 2 [json_name = "Value"]; + * @generated from protobuf field: string Value = 2 */ Value: string; /** - * @generated from protobuf field: vizapi.SettingVisibility Visibility = 3 [json_name = "Visibility"]; + * @generated from protobuf field: vizapi.SettingVisibility Visibility = 3 */ Visibility: SettingVisibility; } @@ -82,11 +82,11 @@ export interface PutOrganisationSettingResult { */ export interface GetOrganisationSettingRequest { /** - * @generated from protobuf field: api.RequestOrganisationHeader Header = 1 [json_name = "Header"]; + * @generated from protobuf field: api.RequestOrganisationHeader Header = 1 */ Header?: RequestOrganisationHeader; /** - * @generated from protobuf field: string Key = 2 [json_name = "Key"]; + * @generated from protobuf field: string Key = 2 */ Key: string; } @@ -97,15 +97,15 @@ export interface GetOrganisationSettingRequest { */ export interface GetOrganisationSettingResult { /** - * @generated from protobuf field: string Key = 1 [json_name = "Key"]; + * @generated from protobuf field: string Key = 1 */ Key: string; /** - * @generated from protobuf field: string Value = 2 [json_name = "Value"]; + * @generated from protobuf field: string Value = 2 */ Value: string; /** - * @generated from protobuf field: vizapi.SettingVisibility Visibility = 3 [json_name = "Visibility"]; + * @generated from protobuf field: vizapi.SettingVisibility Visibility = 3 */ Visibility: SettingVisibility; } @@ -116,11 +116,11 @@ export interface GetOrganisationSettingResult { */ export interface DeleteOrganisationSettingRequest { /** - * @generated from protobuf field: api.RequestOrganisationHeader Header = 1 [json_name = "Header"]; + * @generated from protobuf field: api.RequestOrganisationHeader Header = 1 */ Header?: RequestOrganisationHeader; /** - * @generated from protobuf field: string Key = 2 [json_name = "Key"]; + * @generated from protobuf field: string Key = 2 */ Key: string; } @@ -134,7 +134,7 @@ export interface DeleteOrganisationSettingResult { */ export interface ListOrganisationSettingsRequest { /** - * @generated from protobuf field: api.RequestOrganisationHeader Header = 1 [json_name = "Header"]; + * @generated from protobuf field: api.RequestOrganisationHeader Header = 1 */ Header?: RequestOrganisationHeader; } @@ -145,7 +145,7 @@ export interface ListOrganisationSettingsRequest { */ export interface ListOrganisationSettingsResult { /** - * @generated from protobuf field: repeated vizapi.GetOrganisationSettingResult OrganisationSettings = 1 [json_name = "OrganisationSettings"]; + * @generated from protobuf field: repeated vizapi.GetOrganisationSettingResult OrganisationSettings = 1 */ OrganisationSettings: GetOrganisationSettingResult[]; } @@ -154,7 +154,7 @@ export interface ListOrganisationSettingsResult { */ export interface DeleteSettingsForOrganisationRequest { /** - * @generated from protobuf field: string OrganisationID = 1 [json_name = "OrganisationID"]; + * @generated from protobuf field: string OrganisationID = 1 */ OrganisationID: string; } @@ -205,16 +205,16 @@ class OrganisationSetting$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string OrganisationID = 1 [json_name = "OrganisationID"];*/ 1: + case /* string OrganisationID */ 1: message.OrganisationID = reader.string(); break; - case /* string Key = 2 [json_name = "Key"];*/ 2: + case /* string Key */ 2: message.Key = reader.string(); break; - case /* string Value = 3 [json_name = "Value"];*/ 3: + case /* string Value */ 3: message.Value = reader.string(); break; - case /* vizapi.SettingVisibility Visibility = 4 [json_name = "Visibility"];*/ 4: + case /* vizapi.SettingVisibility Visibility */ 4: message.Visibility = reader.int32(); break; default: @@ -229,16 +229,16 @@ class OrganisationSetting$Type extends MessageType { return message; } internalBinaryWrite(message: OrganisationSetting, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string OrganisationID = 1 [json_name = "OrganisationID"]; */ + /* string OrganisationID = 1; */ if (message.OrganisationID !== "") writer.tag(1, WireType.LengthDelimited).string(message.OrganisationID); - /* string Key = 2 [json_name = "Key"]; */ + /* string Key = 2; */ if (message.Key !== "") writer.tag(2, WireType.LengthDelimited).string(message.Key); - /* string Value = 3 [json_name = "Value"]; */ + /* string Value = 3; */ if (message.Value !== "") writer.tag(3, WireType.LengthDelimited).string(message.Value); - /* vizapi.SettingVisibility Visibility = 4 [json_name = "Visibility"]; */ + /* vizapi.SettingVisibility Visibility = 4; */ if (message.Visibility !== 0) writer.tag(4, WireType.Varint).int32(message.Visibility); let u = options.writeUnknownFields; @@ -275,16 +275,16 @@ class PutOrganisationSettingRequest$Type extends MessageType; /** - * @generated from protobuf rpc: Put(vizapi.PutProjectSettingRequest) returns (vizapi.PutProjectSettingResult); + * @generated from protobuf rpc: Put */ put(input: PutProjectSettingRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: Delete(vizapi.DeleteProjectSettingRequest) returns (vizapi.DeleteProjectSettingResult); + * @generated from protobuf rpc: Delete */ delete(input: DeleteProjectSettingRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: List(vizapi.ListProjectSettingsRequest) returns (vizapi.ListProjectSettingsResult); + * @generated from protobuf rpc: List */ list(input: ListProjectSettingsRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: ListOrganisationSettings(vizapi.ListProjectOrganisationSettingsRequest) returns (vizapi.ListProjectOrganisationSettingsResult); + * @generated from protobuf rpc: ListOrganisationSettings */ listOrganisationSettings(input: ListProjectOrganisationSettingsRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: DeleteSettingsForProject(vizapi.DeleteSettingsForProjectRequest) returns (vizapi.DeleteSettingsForProjectResult); + * @generated from protobuf rpc: DeleteSettingsForProject */ deleteSettingsForProject(input: DeleteSettingsForProjectRequest, options?: RpcOptions): UnaryCall; } @@ -58,42 +58,42 @@ export class ProjectSettingsServiceClient implements IProjectSettingsServiceClie constructor(private readonly _transport: RpcTransport) { } /** - * @generated from protobuf rpc: Get(vizapi.GetProjectSettingRequest) returns (vizapi.GetProjectSettingResult); + * @generated from protobuf rpc: Get */ get(input: GetProjectSettingRequest, options?: RpcOptions): UnaryCall { const method = this.methods[0], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: Put(vizapi.PutProjectSettingRequest) returns (vizapi.PutProjectSettingResult); + * @generated from protobuf rpc: Put */ put(input: PutProjectSettingRequest, options?: RpcOptions): UnaryCall { const method = this.methods[1], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: Delete(vizapi.DeleteProjectSettingRequest) returns (vizapi.DeleteProjectSettingResult); + * @generated from protobuf rpc: Delete */ delete(input: DeleteProjectSettingRequest, options?: RpcOptions): UnaryCall { const method = this.methods[2], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: List(vizapi.ListProjectSettingsRequest) returns (vizapi.ListProjectSettingsResult); + * @generated from protobuf rpc: List */ list(input: ListProjectSettingsRequest, options?: RpcOptions): UnaryCall { const method = this.methods[3], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: ListOrganisationSettings(vizapi.ListProjectOrganisationSettingsRequest) returns (vizapi.ListProjectOrganisationSettingsResult); + * @generated from protobuf rpc: ListOrganisationSettings */ listOrganisationSettings(input: ListProjectOrganisationSettingsRequest, options?: RpcOptions): UnaryCall { const method = this.methods[4], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: DeleteSettingsForProject(vizapi.DeleteSettingsForProjectRequest) returns (vizapi.DeleteSettingsForProjectResult); + * @generated from protobuf rpc: DeleteSettingsForProject */ deleteSettingsForProject(input: DeleteSettingsForProjectRequest, options?: RpcOptions): UnaryCall { const method = this.methods[5], opt = this._transport.mergeOptions(options); diff --git a/viz-project-settings.ts b/viz-project-settings.ts index f89da01..67e4e43 100644 --- a/viz-project-settings.ts +++ b/viz-project-settings.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name +// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name // @generated from protobuf file "viz-project-settings.proto" (package "vizapi", syntax proto3) // tslint:disable import { ServiceType } from "@protobuf-ts/runtime-rpc"; @@ -18,15 +18,15 @@ import { RequestProjectHeader } from "./core/shared"; */ export interface ProjectSetting { /** - * @generated from protobuf field: string ProjectID = 1 [json_name = "ProjectID"]; + * @generated from protobuf field: string ProjectID = 1 */ ProjectID: string; /** - * @generated from protobuf field: string Key = 2 [json_name = "Key"]; + * @generated from protobuf field: string Key = 2 */ Key: string; /** - * @generated from protobuf field: string Value = 3 [json_name = "Value"]; + * @generated from protobuf field: string Value = 3 */ Value: string; } @@ -37,15 +37,15 @@ export interface ProjectSetting { */ export interface PutProjectSettingRequest { /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"]; + * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** - * @generated from protobuf field: string Key = 2 [json_name = "Key"]; + * @generated from protobuf field: string Key = 2 */ Key: string; /** - * @generated from protobuf field: string Value = 3 [json_name = "Value"]; + * @generated from protobuf field: string Value = 3 */ Value: string; } @@ -56,11 +56,11 @@ export interface PutProjectSettingRequest { */ export interface PutProjectSettingResult { /** - * @generated from protobuf field: string Key = 1 [json_name = "Key"]; + * @generated from protobuf field: string Key = 1 */ Key: string; /** - * @generated from protobuf field: string Value = 2 [json_name = "Value"]; + * @generated from protobuf field: string Value = 2 */ Value: string; } @@ -71,11 +71,11 @@ export interface PutProjectSettingResult { */ export interface GetProjectSettingRequest { /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"]; + * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** - * @generated from protobuf field: string Key = 2 [json_name = "Key"]; + * @generated from protobuf field: string Key = 2 */ Key: string; } @@ -86,11 +86,11 @@ export interface GetProjectSettingRequest { */ export interface GetProjectSettingResult { /** - * @generated from protobuf field: string Key = 1 [json_name = "Key"]; + * @generated from protobuf field: string Key = 1 */ Key: string; /** - * @generated from protobuf field: string Value = 2 [json_name = "Value"]; + * @generated from protobuf field: string Value = 2 */ Value: string; } @@ -101,11 +101,11 @@ export interface GetProjectSettingResult { */ export interface DeleteProjectSettingRequest { /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"]; + * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** - * @generated from protobuf field: string Key = 2 [json_name = "Key"]; + * @generated from protobuf field: string Key = 2 */ Key: string; } @@ -119,7 +119,7 @@ export interface DeleteProjectSettingResult { */ export interface ListProjectSettingsRequest { /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"]; + * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; } @@ -130,7 +130,7 @@ export interface ListProjectSettingsRequest { */ export interface ListProjectSettingsResult { /** - * @generated from protobuf field: repeated vizapi.GetProjectSettingResult ProjectSettings = 1 [json_name = "ProjectSettings"]; + * @generated from protobuf field: repeated vizapi.GetProjectSettingResult ProjectSettings = 1 */ ProjectSettings: GetProjectSettingResult[]; } @@ -139,7 +139,7 @@ export interface ListProjectSettingsResult { */ export interface ListProjectOrganisationSettingsRequest { /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"]; + * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; } @@ -150,7 +150,7 @@ export interface ListProjectOrganisationSettingsRequest { */ export interface ListProjectOrganisationSettingsResult { /** - * @generated from protobuf field: repeated vizapi.GetOrganisationSettingResult OrganisationSettings = 1 [json_name = "OrganisationSettings"]; + * @generated from protobuf field: repeated vizapi.GetOrganisationSettingResult OrganisationSettings = 1 */ OrganisationSettings: GetOrganisationSettingResult[]; } @@ -159,7 +159,7 @@ export interface ListProjectOrganisationSettingsResult { */ export interface DeleteSettingsForProjectRequest { /** - * @generated from protobuf field: string ProjectID = 1 [json_name = "ProjectID"]; + * @generated from protobuf field: string ProjectID = 1 */ ProjectID: string; } @@ -191,13 +191,13 @@ class ProjectSetting$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string ProjectID = 1 [json_name = "ProjectID"];*/ 1: + case /* string ProjectID */ 1: message.ProjectID = reader.string(); break; - case /* string Key = 2 [json_name = "Key"];*/ 2: + case /* string Key */ 2: message.Key = reader.string(); break; - case /* string Value = 3 [json_name = "Value"];*/ 3: + case /* string Value */ 3: message.Value = reader.string(); break; default: @@ -212,13 +212,13 @@ class ProjectSetting$Type extends MessageType { return message; } internalBinaryWrite(message: ProjectSetting, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string ProjectID = 1 [json_name = "ProjectID"]; */ + /* string ProjectID = 1; */ if (message.ProjectID !== "") writer.tag(1, WireType.LengthDelimited).string(message.ProjectID); - /* string Key = 2 [json_name = "Key"]; */ + /* string Key = 2; */ if (message.Key !== "") writer.tag(2, WireType.LengthDelimited).string(message.Key); - /* string Value = 3 [json_name = "Value"]; */ + /* string Value = 3; */ if (message.Value !== "") writer.tag(3, WireType.LengthDelimited).string(message.Value); let u = options.writeUnknownFields; @@ -253,13 +253,13 @@ class PutProjectSettingRequest$Type extends MessageType while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string Key = 1 [json_name = "Key"];*/ 1: + case /* string Key */ 1: message.Key = reader.string(); break; - case /* string Value = 2 [json_name = "Value"];*/ 2: + case /* string Value */ 2: message.Value = reader.string(); break; default: @@ -332,10 +332,10 @@ class PutProjectSettingResult$Type extends MessageType return message; } internalBinaryWrite(message: PutProjectSettingResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string Key = 1 [json_name = "Key"]; */ + /* string Key = 1; */ if (message.Key !== "") writer.tag(1, WireType.LengthDelimited).string(message.Key); - /* string Value = 2 [json_name = "Value"]; */ + /* string Value = 2; */ if (message.Value !== "") writer.tag(2, WireType.LengthDelimited).string(message.Value); let u = options.writeUnknownFields; @@ -368,10 +368,10 @@ class GetProjectSettingRequest$Type extends MessageType while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string Key = 1 [json_name = "Key"];*/ 1: + case /* string Key */ 1: message.Key = reader.string(); break; - case /* string Value = 2 [json_name = "Value"];*/ 2: + case /* string Value */ 2: message.Value = reader.string(); break; default: @@ -441,10 +441,10 @@ class GetProjectSettingResult$Type extends MessageType return message; } internalBinaryWrite(message: GetProjectSettingResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string Key = 1 [json_name = "Key"]; */ + /* string Key = 1; */ if (message.Key !== "") writer.tag(1, WireType.LengthDelimited).string(message.Key); - /* string Value = 2 [json_name = "Value"]; */ + /* string Value = 2; */ if (message.Value !== "") writer.tag(2, WireType.LengthDelimited).string(message.Value); let u = options.writeUnknownFields; @@ -477,10 +477,10 @@ class DeleteProjectSettingRequest$Type extends MessageType; } @@ -28,7 +28,7 @@ export class TabServiceClient implements ITabServiceClient, ServiceInfo { constructor(private readonly _transport: RpcTransport) { } /** - * @generated from protobuf rpc: List(vizapi.ListTabRequest) returns (vizapi.ListTabResult); + * @generated from protobuf rpc: List */ list(input: ListTabRequest, options?: RpcOptions): UnaryCall { const method = this.methods[0], opt = this._transport.mergeOptions(options); diff --git a/viz-tab.ts b/viz-tab.ts index dcc15ed..6254c52 100644 --- a/viz-tab.ts +++ b/viz-tab.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name +// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name // @generated from protobuf file "viz-tab.proto" (package "vizapi", syntax proto3) // tslint:disable import { ServiceType } from "@protobuf-ts/runtime-rpc"; @@ -18,7 +18,7 @@ export interface ListTabRequest { /** * Identifier of the Tab * - * @generated from protobuf field: string TabID = 1 [json_name = "TabID"]; + * @generated from protobuf field: string TabID = 1 */ TabID: string; } @@ -29,7 +29,7 @@ export interface ListTabResult { /** * List of tabs * - * @generated from protobuf field: string Result = 1 [json_name = "Result"]; + * @generated from protobuf field: string Result = 1 */ Result: string; } @@ -52,7 +52,7 @@ class ListTabRequest$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string TabID = 1 [json_name = "TabID"];*/ 1: + case /* string TabID */ 1: message.TabID = reader.string(); break; default: @@ -67,7 +67,7 @@ class ListTabRequest$Type extends MessageType { return message; } internalBinaryWrite(message: ListTabRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string TabID = 1 [json_name = "TabID"]; */ + /* string TabID = 1; */ if (message.TabID !== "") writer.tag(1, WireType.LengthDelimited).string(message.TabID); let u = options.writeUnknownFields; @@ -99,7 +99,7 @@ class ListTabResult$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string Result = 1 [json_name = "Result"];*/ 1: + case /* string Result */ 1: message.Result = reader.string(); break; default: @@ -114,7 +114,7 @@ class ListTabResult$Type extends MessageType { return message; } internalBinaryWrite(message: ListTabResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string Result = 1 [json_name = "Result"]; */ + /* string Result = 1; */ if (message.Result !== "") writer.tag(1, WireType.LengthDelimited).string(message.Result); let u = options.writeUnknownFields; diff --git a/viz-translations.client.ts b/viz-translations.client.ts index f18ee2a..2ed9397 100644 --- a/viz-translations.client.ts +++ b/viz-translations.client.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name +// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name // @generated from protobuf file "viz-translations.proto" (package "vizapi", syntax proto3) // tslint:disable import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; @@ -28,27 +28,27 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc"; */ export interface ITranslationsServiceClient { /** - * @generated from protobuf rpc: Get(vizapi.GetTranslationsRequest) returns (vizapi.GetTranslationsResult); + * @generated from protobuf rpc: Get */ get(input: GetTranslationsRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: Put(vizapi.PutTranslationsRequest) returns (vizapi.PutTranslationsResult); + * @generated from protobuf rpc: Put */ put(input: PutTranslationsRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: Delete(vizapi.DeleteTranslationsRequest) returns (vizapi.DeleteTranslationsResult); + * @generated from protobuf rpc: Delete */ delete(input: DeleteTranslationsRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: List(vizapi.ListTranslationsRequest) returns (vizapi.ListTranslationsResult); + * @generated from protobuf rpc: List */ list(input: ListTranslationsRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: DeleteAll(vizapi.DeleteAllTranslationsRequest) returns (vizapi.DeleteAllTranslationsResult); + * @generated from protobuf rpc: DeleteAll */ deleteAll(input: DeleteAllTranslationsRequest, options?: RpcOptions): UnaryCall; /** - * @generated from protobuf rpc: GetLanguages(vizapi.GetLanguagesRequest) returns (vizapi.GetLanguagesResult); + * @generated from protobuf rpc: GetLanguages */ getLanguages(input: GetLanguagesRequest, options?: RpcOptions): UnaryCall; } @@ -66,42 +66,42 @@ export class TranslationsServiceClient implements ITranslationsServiceClient, Se constructor(private readonly _transport: RpcTransport) { } /** - * @generated from protobuf rpc: Get(vizapi.GetTranslationsRequest) returns (vizapi.GetTranslationsResult); + * @generated from protobuf rpc: Get */ get(input: GetTranslationsRequest, options?: RpcOptions): UnaryCall { const method = this.methods[0], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: Put(vizapi.PutTranslationsRequest) returns (vizapi.PutTranslationsResult); + * @generated from protobuf rpc: Put */ put(input: PutTranslationsRequest, options?: RpcOptions): UnaryCall { const method = this.methods[1], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: Delete(vizapi.DeleteTranslationsRequest) returns (vizapi.DeleteTranslationsResult); + * @generated from protobuf rpc: Delete */ delete(input: DeleteTranslationsRequest, options?: RpcOptions): UnaryCall { const method = this.methods[2], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: List(vizapi.ListTranslationsRequest) returns (vizapi.ListTranslationsResult); + * @generated from protobuf rpc: List */ list(input: ListTranslationsRequest, options?: RpcOptions): UnaryCall { const method = this.methods[3], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: DeleteAll(vizapi.DeleteAllTranslationsRequest) returns (vizapi.DeleteAllTranslationsResult); + * @generated from protobuf rpc: DeleteAll */ deleteAll(input: DeleteAllTranslationsRequest, options?: RpcOptions): UnaryCall { const method = this.methods[4], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** - * @generated from protobuf rpc: GetLanguages(vizapi.GetLanguagesRequest) returns (vizapi.GetLanguagesResult); + * @generated from protobuf rpc: GetLanguages */ getLanguages(input: GetLanguagesRequest, options?: RpcOptions): UnaryCall { const method = this.methods[5], opt = this._transport.mergeOptions(options); diff --git a/viz-translations.ts b/viz-translations.ts index eebf7c6..d941354 100644 --- a/viz-translations.ts +++ b/viz-translations.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name +// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name // @generated from protobuf file "viz-translations.proto" (package "vizapi", syntax proto3) // tslint:disable import { ServiceType } from "@protobuf-ts/runtime-rpc"; @@ -21,19 +21,19 @@ import { RequestProjectHeader } from "./core/shared"; */ export interface Label { /** - * @generated from protobuf field: string ID = 1 [json_name = "ID"]; + * @generated from protobuf field: string ID = 1 */ ID: string; // ID of the label (unique, ProjectID + Context + Label) /** - * @generated from protobuf field: string ProjectID = 2 [json_name = "ProjectID"]; + * @generated from protobuf field: string ProjectID = 2 */ ProjectID: string; // ID of the project /** - * @generated from protobuf field: string Context = 3 [json_name = "Context"]; + * @generated from protobuf field: string Context = 3 */ Context: string; // Context of the label (ex: "Order", "Product", "Customer", "User", "...") /** - * @generated from protobuf field: string Label = 4 [json_name = "Label"]; + * @generated from protobuf field: string Label = 4 */ Label: string; // Label (ex: "Status", "Color", "Size") } @@ -42,7 +42,7 @@ export interface Label { */ export interface LanguageCode { /** - * @generated from protobuf field: string Code = 1 [json_name = "Code"]; + * @generated from protobuf field: string Code = 1 */ Code: string; // ISO 639-1 code } @@ -51,15 +51,15 @@ export interface LanguageCode { */ export interface Translation { /** - * @generated from protobuf field: string LabelID = 1 [json_name = "LabelID"]; + * @generated from protobuf field: string LabelID = 1 */ LabelID: string; // ID of the label (unique, ProjectID + Context + Label) /** - * @generated from protobuf field: string LanguageCode = 2 [json_name = "LanguageCode"]; + * @generated from protobuf field: string LanguageCode = 2 */ LanguageCode: string; // ICU - ISO 639-1 code /** - * @generated from protobuf field: string Translation = 3 [json_name = "Translation"]; + * @generated from protobuf field: string Translation = 3 */ Translation: string; // Translation of the label in the given language code } @@ -72,15 +72,15 @@ export interface Translation { */ export interface GetTranslationsRequest { /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"]; + * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** - * @generated from protobuf field: string Context = 2 [json_name = "Context"]; + * @generated from protobuf field: string Context = 2 */ Context: string; /** - * @generated from protobuf field: string Label = 3 [json_name = "Label"]; + * @generated from protobuf field: string Label = 3 */ Label: string; } @@ -89,7 +89,7 @@ export interface GetTranslationsRequest { */ export interface GetTranslationsResult { /** - * @generated from protobuf field: repeated vizapi.Translation Translations = 1 [json_name = "Translations"]; + * @generated from protobuf field: repeated vizapi.Translation Translations = 1 */ Translations: Translation[]; } @@ -100,11 +100,11 @@ export interface GetTranslationsResult { */ export interface PutTranslationMessage { /** - * @generated from protobuf field: string LanguageCode = 1 [json_name = "LanguageCode"]; + * @generated from protobuf field: string LanguageCode = 1 */ LanguageCode: string; /** - * @generated from protobuf field: string Translation = 2 [json_name = "Translation"]; + * @generated from protobuf field: string Translation = 2 */ Translation: string; } @@ -113,19 +113,19 @@ export interface PutTranslationMessage { */ export interface PutTranslationsRequest { /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"]; + * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** - * @generated from protobuf field: string Context = 2 [json_name = "Context"]; + * @generated from protobuf field: string Context = 2 */ Context: string; /** - * @generated from protobuf field: string Label = 3 [json_name = "Label"]; + * @generated from protobuf field: string Label = 3 */ Label: string; /** - * @generated from protobuf field: repeated vizapi.PutTranslationMessage Translations = 4 [json_name = "Translations"]; + * @generated from protobuf field: repeated vizapi.PutTranslationMessage Translations = 4 */ Translations: PutTranslationMessage[]; } @@ -134,7 +134,7 @@ export interface PutTranslationsRequest { */ export interface PutTranslationsResult { /** - * @generated from protobuf field: repeated vizapi.Translation Translations = 1 [json_name = "Translations"]; + * @generated from protobuf field: repeated vizapi.Translation Translations = 1 */ Translations: Translation[]; } @@ -143,15 +143,15 @@ export interface PutTranslationsResult { */ export interface DeleteTranslationsRequest { /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"]; + * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** - * @generated from protobuf field: string Context = 2 [json_name = "Context"]; + * @generated from protobuf field: string Context = 2 */ Context: string; /** - * @generated from protobuf field: string Label = 3 [json_name = "Label"]; + * @generated from protobuf field: string Label = 3 */ Label: string; } @@ -165,11 +165,11 @@ export interface DeleteTranslationsResult { */ export interface ListTranslationsRequest { /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"]; + * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** - * @generated from protobuf field: string LanguageCode = 2 [json_name = "LanguageCode"]; + * @generated from protobuf field: string LanguageCode = 2 */ LanguageCode: string; } @@ -180,11 +180,11 @@ export interface ListTranslationsRequest { */ export interface TranslationContextResult { /** - * @generated from protobuf field: string Name = 1 [json_name = "Name"]; + * @generated from protobuf field: string Name = 1 */ Name: string; /** - * @generated from protobuf field: repeated vizapi.TranslationLabelResult Labels = 2 [json_name = "Labels"]; + * @generated from protobuf field: repeated vizapi.TranslationLabelResult Labels = 2 */ Labels: TranslationLabelResult[]; } @@ -193,11 +193,11 @@ export interface TranslationContextResult { */ export interface TranslationLabelResult { /** - * @generated from protobuf field: string Name = 1 [json_name = "Name"]; + * @generated from protobuf field: string Name = 1 */ Name: string; /** - * @generated from protobuf field: string Translation = 2 [json_name = "Translation"]; + * @generated from protobuf field: string Translation = 2 */ Translation: string; } @@ -206,7 +206,7 @@ export interface TranslationLabelResult { */ export interface ListTranslationsResult { /** - * @generated from protobuf field: repeated vizapi.TranslationContextResult Contexts = 1 [json_name = "Contexts"]; + * @generated from protobuf field: repeated vizapi.TranslationContextResult Contexts = 1 */ Contexts: TranslationContextResult[]; } @@ -215,7 +215,7 @@ export interface ListTranslationsResult { */ export interface DeleteAllTranslationsRequest { /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"]; + * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; } @@ -234,7 +234,7 @@ export interface GetLanguagesRequest { */ export interface GetLanguagesResult { /** - * @generated from protobuf field: repeated vizapi.LanguageCode Languages = 1 [json_name = "Languages"]; + * @generated from protobuf field: repeated vizapi.LanguageCode Languages = 1 */ Languages: LanguageCode[]; } @@ -263,16 +263,16 @@ class Label$Type extends MessageType