You've already forked npm-core-sdk
Latest generation
This commit is contained in:
218
options.ts
218
options.ts
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "options.proto" (package "api", syntax proto3)
|
||||
// tslint:disable
|
||||
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
||||
@@ -19,7 +19,7 @@ export interface KPIGroups {
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.KPIGroup Groups = 1 [json_name = "Groups"];
|
||||
*/
|
||||
groups: KPIGroup[];
|
||||
Groups: KPIGroup[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.KPIGroup
|
||||
@@ -28,35 +28,35 @@ export interface KPIGroup {
|
||||
/**
|
||||
* @generated from protobuf field: string Name = 1 [json_name = "Name"];
|
||||
*/
|
||||
name: string; // Name of the KPI group
|
||||
Name: string; // Name of the KPI group
|
||||
/**
|
||||
* @generated from protobuf field: api.KPIGroupType Type = 2 [json_name = "Type"];
|
||||
*/
|
||||
type: KPIGroupType; // Type of the KPI group
|
||||
Type: KPIGroupType; // Type of the KPI group
|
||||
/**
|
||||
* @generated from protobuf field: bool Queryable = 3 [json_name = "Queryable"];
|
||||
*/
|
||||
queryable: boolean; // Some tables are not directly queryable
|
||||
Queryable: boolean; // Some tables are not directly queryable
|
||||
/**
|
||||
* @generated from protobuf field: string GroupToQuery = 4 [json_name = "GroupToQuery"];
|
||||
*/
|
||||
groupToQuery: string; // For non-queryable group, on which group table the request will be executed
|
||||
GroupToQuery: string; // For non-queryable group, on which group table the request will be executed
|
||||
/**
|
||||
* @generated from protobuf field: string OrderBy = 5 [json_name = "OrderBy"];
|
||||
*/
|
||||
orderBy: string; // Table OrderBy
|
||||
OrderBy: string; // Table OrderBy
|
||||
/**
|
||||
* @generated from protobuf field: string Engine = 6 [json_name = "Engine"];
|
||||
*/
|
||||
engine: string; // Table engine
|
||||
Engine: string; // Table engine
|
||||
/**
|
||||
* @generated from protobuf field: string HeaderColumns = 7 [json_name = "HeaderColumns"];
|
||||
*/
|
||||
headerColumns: string; // Table header columns
|
||||
HeaderColumns: string; // Table header columns
|
||||
/**
|
||||
* @generated from protobuf field: string PartitionBy = 8 [json_name = "PartitionBy"];
|
||||
*/
|
||||
partitionBy: string; // Table PartitionBy
|
||||
PartitionBy: string; // Table PartitionBy
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.KPIItems
|
||||
@@ -65,7 +65,7 @@ export interface KPIItems {
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.KPIItem Items = 1 [json_name = "Items"];
|
||||
*/
|
||||
items: KPIItem[];
|
||||
Items: KPIItem[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.KPIItem
|
||||
@@ -74,23 +74,23 @@ export interface KPIItem {
|
||||
/**
|
||||
* @generated from protobuf field: string Context = 1 [json_name = "Context"];
|
||||
*/
|
||||
context: string; // Entity on which the KPI is defined
|
||||
Context: string; // Entity on which the KPI is defined
|
||||
/**
|
||||
* @generated from protobuf field: string Group = 2 [json_name = "Group"];
|
||||
*/
|
||||
group: string; // Group on which the KPI is defined
|
||||
Group: string; // Group on which the KPI is defined
|
||||
/**
|
||||
* @generated from protobuf field: bool Queryable = 3 [json_name = "Queryable"];
|
||||
*/
|
||||
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)
|
||||
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 [json_name = "GroupToJoin"];
|
||||
*/
|
||||
groupToJoin: string; // KPI is used to join another KPI group
|
||||
GroupToJoin: string; // KPI is used to join another KPI group
|
||||
/**
|
||||
* @generated from protobuf field: string CustomType = 5 [json_name = "CustomType"];
|
||||
*/
|
||||
customType: string; // Type of the field in the table
|
||||
CustomType: string; // Type of the field in the table
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.FieldTypes
|
||||
@@ -99,7 +99,7 @@ export interface FieldTypes {
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.FieldType Types = 1 [json_name = "Types"];
|
||||
*/
|
||||
types: FieldType[];
|
||||
Types: FieldType[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.FieldType
|
||||
@@ -108,11 +108,11 @@ export interface FieldType {
|
||||
/**
|
||||
* @generated from protobuf field: string Context = 1 [json_name = "Context"];
|
||||
*/
|
||||
context: string; // Entity on which the KPI is defined
|
||||
Context: string; // Entity on which the KPI is defined
|
||||
/**
|
||||
* @generated from protobuf field: string Type = 2 [json_name = "Type"];
|
||||
*/
|
||||
type: string; // Type of the field
|
||||
Type: string; // Type of the field
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf enum api.KPIGroupType
|
||||
@@ -145,12 +145,12 @@ export enum KPIGroupType {
|
||||
class KPIGroups$Type extends MessageType<KPIGroups> {
|
||||
constructor() {
|
||||
super("api.KPIGroups", [
|
||||
{ no: 1, name: "Groups", kind: "message", jsonName: "Groups", repeat: 1 /*RepeatType.PACKED*/, T: () => KPIGroup }
|
||||
{ no: 1, name: "Groups", kind: "message", localName: "Groups", jsonName: "Groups", repeat: 1 /*RepeatType.PACKED*/, T: () => KPIGroup }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<KPIGroups>): KPIGroups {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.groups = [];
|
||||
message.Groups = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<KPIGroups>(this, message, value);
|
||||
return message;
|
||||
@@ -161,7 +161,7 @@ class KPIGroups$Type extends MessageType<KPIGroups> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated api.KPIGroup Groups = 1 [json_name = "Groups"];*/ 1:
|
||||
message.groups.push(KPIGroup.internalBinaryRead(reader, reader.uint32(), options));
|
||||
message.Groups.push(KPIGroup.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -176,8 +176,8 @@ class KPIGroups$Type extends MessageType<KPIGroups> {
|
||||
}
|
||||
internalBinaryWrite(message: KPIGroups, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated api.KPIGroup Groups = 1 [json_name = "Groups"]; */
|
||||
for (let i = 0; i < message.groups.length; i++)
|
||||
KPIGroup.internalBinaryWrite(message.groups[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
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);
|
||||
@@ -192,26 +192,26 @@ export const KPIGroups = new KPIGroups$Type();
|
||||
class KPIGroup$Type extends MessageType<KPIGroup> {
|
||||
constructor() {
|
||||
super("api.KPIGroup", [
|
||||
{ no: 1, name: "Name", kind: "scalar", jsonName: "Name", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "Type", kind: "enum", jsonName: "Type", T: () => ["api.KPIGroupType", KPIGroupType] },
|
||||
{ no: 3, name: "Queryable", kind: "scalar", jsonName: "Queryable", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 4, name: "GroupToQuery", kind: "scalar", jsonName: "GroupToQuery", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 5, name: "OrderBy", kind: "scalar", jsonName: "OrderBy", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 6, name: "Engine", kind: "scalar", jsonName: "Engine", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 7, name: "HeaderColumns", kind: "scalar", jsonName: "HeaderColumns", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 8, name: "PartitionBy", kind: "scalar", jsonName: "PartitionBy", T: 9 /*ScalarType.STRING*/ }
|
||||
{ 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>): 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 = "";
|
||||
message.Name = "";
|
||||
message.Type = 0;
|
||||
message.Queryable = false;
|
||||
message.GroupToQuery = "";
|
||||
message.OrderBy = "";
|
||||
message.Engine = "";
|
||||
message.HeaderColumns = "";
|
||||
message.PartitionBy = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<KPIGroup>(this, message, value);
|
||||
return message;
|
||||
@@ -222,28 +222,28 @@ class KPIGroup$Type extends MessageType<KPIGroup> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Name = 1 [json_name = "Name"];*/ 1:
|
||||
message.name = reader.string();
|
||||
message.Name = reader.string();
|
||||
break;
|
||||
case /* api.KPIGroupType Type = 2 [json_name = "Type"];*/ 2:
|
||||
message.type = reader.int32();
|
||||
message.Type = reader.int32();
|
||||
break;
|
||||
case /* bool Queryable = 3 [json_name = "Queryable"];*/ 3:
|
||||
message.queryable = reader.bool();
|
||||
message.Queryable = reader.bool();
|
||||
break;
|
||||
case /* string GroupToQuery = 4 [json_name = "GroupToQuery"];*/ 4:
|
||||
message.groupToQuery = reader.string();
|
||||
message.GroupToQuery = reader.string();
|
||||
break;
|
||||
case /* string OrderBy = 5 [json_name = "OrderBy"];*/ 5:
|
||||
message.orderBy = reader.string();
|
||||
message.OrderBy = reader.string();
|
||||
break;
|
||||
case /* string Engine = 6 [json_name = "Engine"];*/ 6:
|
||||
message.engine = reader.string();
|
||||
message.Engine = reader.string();
|
||||
break;
|
||||
case /* string HeaderColumns = 7 [json_name = "HeaderColumns"];*/ 7:
|
||||
message.headerColumns = reader.string();
|
||||
message.HeaderColumns = reader.string();
|
||||
break;
|
||||
case /* string PartitionBy = 8 [json_name = "PartitionBy"];*/ 8:
|
||||
message.partitionBy = reader.string();
|
||||
message.PartitionBy = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -258,29 +258,29 @@ class KPIGroup$Type extends MessageType<KPIGroup> {
|
||||
}
|
||||
internalBinaryWrite(message: KPIGroup, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Name = 1 [json_name = "Name"]; */
|
||||
if (message.name !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
||||
if (message.Name !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.Name);
|
||||
/* api.KPIGroupType Type = 2 [json_name = "Type"]; */
|
||||
if (message.type !== 0)
|
||||
writer.tag(2, WireType.Varint).int32(message.type);
|
||||
if (message.Type !== 0)
|
||||
writer.tag(2, WireType.Varint).int32(message.Type);
|
||||
/* bool Queryable = 3 [json_name = "Queryable"]; */
|
||||
if (message.queryable !== false)
|
||||
writer.tag(3, WireType.Varint).bool(message.queryable);
|
||||
if (message.Queryable !== false)
|
||||
writer.tag(3, WireType.Varint).bool(message.Queryable);
|
||||
/* string GroupToQuery = 4 [json_name = "GroupToQuery"]; */
|
||||
if (message.groupToQuery !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.groupToQuery);
|
||||
if (message.GroupToQuery !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.GroupToQuery);
|
||||
/* string OrderBy = 5 [json_name = "OrderBy"]; */
|
||||
if (message.orderBy !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.orderBy);
|
||||
if (message.OrderBy !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.OrderBy);
|
||||
/* string Engine = 6 [json_name = "Engine"]; */
|
||||
if (message.engine !== "")
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.engine);
|
||||
if (message.Engine !== "")
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.Engine);
|
||||
/* string HeaderColumns = 7 [json_name = "HeaderColumns"]; */
|
||||
if (message.headerColumns !== "")
|
||||
writer.tag(7, WireType.LengthDelimited).string(message.headerColumns);
|
||||
if (message.HeaderColumns !== "")
|
||||
writer.tag(7, WireType.LengthDelimited).string(message.HeaderColumns);
|
||||
/* string PartitionBy = 8 [json_name = "PartitionBy"]; */
|
||||
if (message.partitionBy !== "")
|
||||
writer.tag(8, WireType.LengthDelimited).string(message.partitionBy);
|
||||
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);
|
||||
@@ -295,12 +295,12 @@ export const KPIGroup = new KPIGroup$Type();
|
||||
class KPIItems$Type extends MessageType<KPIItems> {
|
||||
constructor() {
|
||||
super("api.KPIItems", [
|
||||
{ no: 1, name: "Items", kind: "message", jsonName: "Items", repeat: 1 /*RepeatType.PACKED*/, T: () => KPIItem }
|
||||
{ no: 1, name: "Items", kind: "message", localName: "Items", jsonName: "Items", repeat: 1 /*RepeatType.PACKED*/, T: () => KPIItem }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<KPIItems>): KPIItems {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.items = [];
|
||||
message.Items = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<KPIItems>(this, message, value);
|
||||
return message;
|
||||
@@ -311,7 +311,7 @@ class KPIItems$Type extends MessageType<KPIItems> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated api.KPIItem Items = 1 [json_name = "Items"];*/ 1:
|
||||
message.items.push(KPIItem.internalBinaryRead(reader, reader.uint32(), options));
|
||||
message.Items.push(KPIItem.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -326,8 +326,8 @@ class KPIItems$Type extends MessageType<KPIItems> {
|
||||
}
|
||||
internalBinaryWrite(message: KPIItems, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated api.KPIItem Items = 1 [json_name = "Items"]; */
|
||||
for (let i = 0; i < message.items.length; i++)
|
||||
KPIItem.internalBinaryWrite(message.items[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
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);
|
||||
@@ -342,20 +342,20 @@ export const KPIItems = new KPIItems$Type();
|
||||
class KPIItem$Type extends MessageType<KPIItem> {
|
||||
constructor() {
|
||||
super("api.KPIItem", [
|
||||
{ no: 1, name: "Context", kind: "scalar", jsonName: "Context", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "Group", kind: "scalar", jsonName: "Group", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "Queryable", kind: "scalar", jsonName: "Queryable", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 4, name: "GroupToJoin", kind: "scalar", jsonName: "GroupToJoin", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 5, name: "CustomType", kind: "scalar", jsonName: "CustomType", T: 9 /*ScalarType.STRING*/ }
|
||||
{ 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>): KPIItem {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.context = "";
|
||||
message.group = "";
|
||||
message.queryable = false;
|
||||
message.groupToJoin = "";
|
||||
message.customType = "";
|
||||
message.Context = "";
|
||||
message.Group = "";
|
||||
message.Queryable = false;
|
||||
message.GroupToJoin = "";
|
||||
message.CustomType = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<KPIItem>(this, message, value);
|
||||
return message;
|
||||
@@ -366,19 +366,19 @@ class KPIItem$Type extends MessageType<KPIItem> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Context = 1 [json_name = "Context"];*/ 1:
|
||||
message.context = reader.string();
|
||||
message.Context = reader.string();
|
||||
break;
|
||||
case /* string Group = 2 [json_name = "Group"];*/ 2:
|
||||
message.group = reader.string();
|
||||
message.Group = reader.string();
|
||||
break;
|
||||
case /* bool Queryable = 3 [json_name = "Queryable"];*/ 3:
|
||||
message.queryable = reader.bool();
|
||||
message.Queryable = reader.bool();
|
||||
break;
|
||||
case /* string GroupToJoin = 4 [json_name = "GroupToJoin"];*/ 4:
|
||||
message.groupToJoin = reader.string();
|
||||
message.GroupToJoin = reader.string();
|
||||
break;
|
||||
case /* string CustomType = 5 [json_name = "CustomType"];*/ 5:
|
||||
message.customType = reader.string();
|
||||
message.CustomType = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -393,20 +393,20 @@ class KPIItem$Type extends MessageType<KPIItem> {
|
||||
}
|
||||
internalBinaryWrite(message: KPIItem, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Context = 1 [json_name = "Context"]; */
|
||||
if (message.context !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.context);
|
||||
if (message.Context !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.Context);
|
||||
/* string Group = 2 [json_name = "Group"]; */
|
||||
if (message.group !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.group);
|
||||
if (message.Group !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Group);
|
||||
/* bool Queryable = 3 [json_name = "Queryable"]; */
|
||||
if (message.queryable !== false)
|
||||
writer.tag(3, WireType.Varint).bool(message.queryable);
|
||||
if (message.Queryable !== false)
|
||||
writer.tag(3, WireType.Varint).bool(message.Queryable);
|
||||
/* string GroupToJoin = 4 [json_name = "GroupToJoin"]; */
|
||||
if (message.groupToJoin !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.groupToJoin);
|
||||
if (message.GroupToJoin !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.GroupToJoin);
|
||||
/* string CustomType = 5 [json_name = "CustomType"]; */
|
||||
if (message.customType !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.customType);
|
||||
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);
|
||||
@@ -421,12 +421,12 @@ export const KPIItem = new KPIItem$Type();
|
||||
class FieldTypes$Type extends MessageType<FieldTypes> {
|
||||
constructor() {
|
||||
super("api.FieldTypes", [
|
||||
{ no: 1, name: "Types", kind: "message", jsonName: "Types", repeat: 1 /*RepeatType.PACKED*/, T: () => FieldType }
|
||||
{ no: 1, name: "Types", kind: "message", localName: "Types", jsonName: "Types", repeat: 1 /*RepeatType.PACKED*/, T: () => FieldType }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<FieldTypes>): FieldTypes {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.types = [];
|
||||
message.Types = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<FieldTypes>(this, message, value);
|
||||
return message;
|
||||
@@ -437,7 +437,7 @@ class FieldTypes$Type extends MessageType<FieldTypes> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated api.FieldType Types = 1 [json_name = "Types"];*/ 1:
|
||||
message.types.push(FieldType.internalBinaryRead(reader, reader.uint32(), options));
|
||||
message.Types.push(FieldType.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -452,8 +452,8 @@ class FieldTypes$Type extends MessageType<FieldTypes> {
|
||||
}
|
||||
internalBinaryWrite(message: FieldTypes, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated api.FieldType Types = 1 [json_name = "Types"]; */
|
||||
for (let i = 0; i < message.types.length; i++)
|
||||
FieldType.internalBinaryWrite(message.types[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
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);
|
||||
@@ -468,14 +468,14 @@ export const FieldTypes = new FieldTypes$Type();
|
||||
class FieldType$Type extends MessageType<FieldType> {
|
||||
constructor() {
|
||||
super("api.FieldType", [
|
||||
{ no: 1, name: "Context", kind: "scalar", jsonName: "Context", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "Type", kind: "scalar", jsonName: "Type", T: 9 /*ScalarType.STRING*/ }
|
||||
{ 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>): FieldType {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.context = "";
|
||||
message.type = "";
|
||||
message.Context = "";
|
||||
message.Type = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<FieldType>(this, message, value);
|
||||
return message;
|
||||
@@ -486,10 +486,10 @@ class FieldType$Type extends MessageType<FieldType> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Context = 1 [json_name = "Context"];*/ 1:
|
||||
message.context = reader.string();
|
||||
message.Context = reader.string();
|
||||
break;
|
||||
case /* string Type = 2 [json_name = "Type"];*/ 2:
|
||||
message.type = reader.string();
|
||||
message.Type = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -504,11 +504,11 @@ class FieldType$Type extends MessageType<FieldType> {
|
||||
}
|
||||
internalBinaryWrite(message: FieldType, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Context = 1 [json_name = "Context"]; */
|
||||
if (message.context !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.context);
|
||||
if (message.Context !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.Context);
|
||||
/* string Type = 2 [json_name = "Type"]; */
|
||||
if (message.type !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.type);
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user