// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix // @generated from protobuf file "view.proto" (package "api", syntax proto3) // tslint:disable import { ServiceType } from "@protobuf-ts/runtime-rpc"; 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"; import { RequestProjectHeader } from "./shared"; /** * @generated from protobuf message api.FieldView */ export interface FieldView { /** * @generated from protobuf field: string Name = 1 */ Name: string; /** * @generated from protobuf field: bool IsMetadata = 2 */ IsMetadata: boolean; /** * string Type = 3; * * @generated from protobuf field: string Path = 4 */ Path: string; /** * @generated from protobuf field: string DisplayPath = 5 */ DisplayPath: string; /** * @generated from protobuf field: string PathKey = 6 */ PathKey: string; /** * @generated from protobuf field: string KeyValue = 7 */ KeyValue: string; /** * The segmentation keys are used to complete the segmentation criteria of the project stock. They also apply to order lines and stock movements * * @generated from protobuf field: bool IsSegmentationKey = 8 */ IsSegmentationKey: boolean; /** * @generated from protobuf field: string EnumValues = 9 */ EnumValues: string; /** * @generated from protobuf field: repeated string EnumList = 10 */ EnumList: string[]; /** * @generated from protobuf field: string ContentType = 11 */ ContentType: string; /** * @generated from protobuf field: repeated string KpiMetricGroups = 12 */ KpiMetricGroups: string[]; /** * @generated from protobuf field: repeated string KpiDimensionGroups = 13 */ KpiDimensionGroups: string[]; /** * @generated from protobuf field: repeated string KpiDateGroups = 14 */ KpiDateGroups: string[]; /** * @generated from protobuf field: string KpiName = 15 */ KpiName: string; /** * @generated from protobuf field: repeated string QueryableKpiGroups = 16 */ QueryableKpiGroups: string[]; /** * @generated from protobuf field: string Entity = 17 */ Entity: string; /** * @generated from protobuf field: string EntityPath = 18 */ EntityPath: string; /** * @generated from protobuf field: string EntityPathKey = 19 */ EntityPathKey: string; } /** * @generated from protobuf message api.GetViewFieldsRequest */ export interface GetViewFieldsRequest { /** * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * @generated from protobuf field: string Domain = 2 */ Domain: string; /** * Entity where the metadata will be created. It can be \"executionflow\", \"handlingunit\", \"item\", \"order\", \"stock\" * * @generated from protobuf field: string Entity = 3 */ Entity: string; /** * Fields that are not used in this entity * * @generated from protobuf field: repeated string OmmittedList = 4 */ OmmittedList: string[]; /** * @generated from protobuf field: string StartingPath = 5 */ StartingPath: string; /** * @generated from protobuf field: bool OnlySegmentationKeys = 6 */ OnlySegmentationKeys: boolean; /** * @generated from protobuf field: string KpiGroupFilter = 7 */ KpiGroupFilter: string; } /** * @generated from protobuf message api.GetViewFieldsResult */ export interface GetViewFieldsResult { /** * @generated from protobuf field: repeated api.FieldView Fields = 1 */ Fields: FieldView[]; } /** * @generated from protobuf message api.GetSiteViewFieldsRequest */ export interface GetSiteViewFieldsRequest { /** * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * @generated from protobuf field: string Domain = 2 */ Domain: string; /** * Entity where the metadata will be created. It can be \"executionflow\", \"handlingunit\", \"item\", \"order\", \"stock\" * * @generated from protobuf field: string Entity = 3 */ Entity: string; /** * Fields that are not used in this entity * * @generated from protobuf field: repeated string OmmittedList = 4 */ OmmittedList: string[]; /** * @generated from protobuf field: string StartingPath = 5 */ StartingPath: string; /** * @generated from protobuf field: bool OnlySegmentationKeys = 6 */ OnlySegmentationKeys: boolean; /** * @generated from protobuf field: string KpiGroupFilter = 7 */ KpiGroupFilter: string; } /** * @generated from protobuf message api.GetSiteViewFieldsResult */ export interface GetSiteViewFieldsResult { /** * @generated from protobuf field: repeated api.FieldView Fields = 1 */ Fields: FieldView[]; } // @generated message type with reflection information, may provide speed optimized methods class FieldView$Type extends MessageType { constructor() { super("api.FieldView", [ { no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ }, { no: 2, name: "IsMetadata", kind: "scalar", localName: "IsMetadata", jsonName: "IsMetadata", T: 8 /*ScalarType.BOOL*/ }, { no: 4, name: "Path", kind: "scalar", localName: "Path", jsonName: "Path", T: 9 /*ScalarType.STRING*/ }, { no: 5, name: "DisplayPath", kind: "scalar", localName: "DisplayPath", jsonName: "DisplayPath", T: 9 /*ScalarType.STRING*/ }, { no: 6, name: "PathKey", kind: "scalar", localName: "PathKey", jsonName: "PathKey", T: 9 /*ScalarType.STRING*/ }, { no: 7, name: "KeyValue", kind: "scalar", localName: "KeyValue", jsonName: "KeyValue", T: 9 /*ScalarType.STRING*/ }, { no: 8, name: "IsSegmentationKey", kind: "scalar", localName: "IsSegmentationKey", jsonName: "IsSegmentationKey", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The segmentation keys are used to complete the segmentation criteria of the project stock. They also apply to order lines and stock movements" } } }, { no: 9, name: "EnumValues", kind: "scalar", localName: "EnumValues", jsonName: "EnumValues", T: 9 /*ScalarType.STRING*/ }, { no: 10, name: "EnumList", kind: "scalar", localName: "EnumList", jsonName: "EnumList", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 11, name: "ContentType", kind: "scalar", localName: "ContentType", jsonName: "ContentType", T: 9 /*ScalarType.STRING*/ }, { no: 12, name: "KpiMetricGroups", kind: "scalar", localName: "KpiMetricGroups", jsonName: "KpiMetricGroups", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 13, name: "KpiDimensionGroups", kind: "scalar", localName: "KpiDimensionGroups", jsonName: "KpiDimensionGroups", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 14, name: "KpiDateGroups", kind: "scalar", localName: "KpiDateGroups", jsonName: "KpiDateGroups", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 15, name: "KpiName", kind: "scalar", localName: "KpiName", jsonName: "KpiName", T: 9 /*ScalarType.STRING*/ }, { no: 16, name: "QueryableKpiGroups", kind: "scalar", localName: "QueryableKpiGroups", jsonName: "QueryableKpiGroups", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 17, name: "Entity", kind: "scalar", localName: "Entity", jsonName: "Entity", T: 9 /*ScalarType.STRING*/ }, { no: 18, name: "EntityPath", kind: "scalar", localName: "EntityPath", jsonName: "EntityPath", T: 9 /*ScalarType.STRING*/ }, { no: 19, name: "EntityPathKey", kind: "scalar", localName: "EntityPathKey", jsonName: "EntityPathKey", T: 9 /*ScalarType.STRING*/ } ]); } create(value?: PartialMessage): FieldView { const message = globalThis.Object.create((this.messagePrototype!)); message.Name = ""; message.IsMetadata = false; message.Path = ""; message.DisplayPath = ""; message.PathKey = ""; message.KeyValue = ""; message.IsSegmentationKey = false; message.EnumValues = ""; message.EnumList = []; message.ContentType = ""; message.KpiMetricGroups = []; message.KpiDimensionGroups = []; message.KpiDateGroups = []; message.KpiName = ""; message.QueryableKpiGroups = []; message.Entity = ""; message.EntityPath = ""; message.EntityPathKey = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldView): FieldView { 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 /* bool IsMetadata */ 2: message.IsMetadata = reader.bool(); break; case /* string Path */ 4: message.Path = reader.string(); break; case /* string DisplayPath */ 5: message.DisplayPath = reader.string(); break; case /* string PathKey */ 6: message.PathKey = reader.string(); break; case /* string KeyValue */ 7: message.KeyValue = reader.string(); break; case /* bool IsSegmentationKey */ 8: message.IsSegmentationKey = reader.bool(); break; case /* string EnumValues */ 9: message.EnumValues = reader.string(); break; case /* repeated string EnumList */ 10: message.EnumList.push(reader.string()); break; case /* string ContentType */ 11: message.ContentType = reader.string(); break; case /* repeated string KpiMetricGroups */ 12: message.KpiMetricGroups.push(reader.string()); break; case /* repeated string KpiDimensionGroups */ 13: message.KpiDimensionGroups.push(reader.string()); break; case /* repeated string KpiDateGroups */ 14: message.KpiDateGroups.push(reader.string()); break; case /* string KpiName */ 15: message.KpiName = reader.string(); break; case /* repeated string QueryableKpiGroups */ 16: message.QueryableKpiGroups.push(reader.string()); break; case /* string Entity */ 17: message.Entity = reader.string(); break; case /* string EntityPath */ 18: message.EntityPath = reader.string(); break; case /* string EntityPathKey */ 19: message.EntityPathKey = 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: FieldView, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string Name = 1; */ if (message.Name !== "") writer.tag(1, WireType.LengthDelimited).string(message.Name); /* bool IsMetadata = 2; */ if (message.IsMetadata !== false) writer.tag(2, WireType.Varint).bool(message.IsMetadata); /* string Path = 4; */ if (message.Path !== "") writer.tag(4, WireType.LengthDelimited).string(message.Path); /* string DisplayPath = 5; */ if (message.DisplayPath !== "") writer.tag(5, WireType.LengthDelimited).string(message.DisplayPath); /* string PathKey = 6; */ if (message.PathKey !== "") writer.tag(6, WireType.LengthDelimited).string(message.PathKey); /* string KeyValue = 7; */ if (message.KeyValue !== "") writer.tag(7, WireType.LengthDelimited).string(message.KeyValue); /* bool IsSegmentationKey = 8; */ if (message.IsSegmentationKey !== false) writer.tag(8, WireType.Varint).bool(message.IsSegmentationKey); /* string EnumValues = 9; */ if (message.EnumValues !== "") writer.tag(9, WireType.LengthDelimited).string(message.EnumValues); /* repeated string EnumList = 10; */ for (let i = 0; i < message.EnumList.length; i++) writer.tag(10, WireType.LengthDelimited).string(message.EnumList[i]); /* string ContentType = 11; */ if (message.ContentType !== "") writer.tag(11, WireType.LengthDelimited).string(message.ContentType); /* repeated string KpiMetricGroups = 12; */ for (let i = 0; i < message.KpiMetricGroups.length; i++) writer.tag(12, WireType.LengthDelimited).string(message.KpiMetricGroups[i]); /* repeated string KpiDimensionGroups = 13; */ for (let i = 0; i < message.KpiDimensionGroups.length; i++) writer.tag(13, WireType.LengthDelimited).string(message.KpiDimensionGroups[i]); /* repeated string KpiDateGroups = 14; */ for (let i = 0; i < message.KpiDateGroups.length; i++) writer.tag(14, WireType.LengthDelimited).string(message.KpiDateGroups[i]); /* string KpiName = 15; */ if (message.KpiName !== "") writer.tag(15, WireType.LengthDelimited).string(message.KpiName); /* repeated string QueryableKpiGroups = 16; */ for (let i = 0; i < message.QueryableKpiGroups.length; i++) writer.tag(16, WireType.LengthDelimited).string(message.QueryableKpiGroups[i]); /* string Entity = 17; */ if (message.Entity !== "") writer.tag(17, WireType.LengthDelimited).string(message.Entity); /* string EntityPath = 18; */ if (message.EntityPath !== "") writer.tag(18, WireType.LengthDelimited).string(message.EntityPath); /* string EntityPathKey = 19; */ if (message.EntityPathKey !== "") writer.tag(19, WireType.LengthDelimited).string(message.EntityPathKey); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.FieldView */ export const FieldView = new FieldView$Type(); // @generated message type with reflection information, may provide speed optimized methods class GetViewFieldsRequest$Type extends MessageType { constructor() { super("api.GetViewFieldsRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, { no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" }, "validate.rules": { string: { in: ["trade", "collab", "core"] } } } }, { no: 3, name: "Entity", kind: "scalar", localName: "Entity", jsonName: "Entity", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Entity where the metadata will be created. It can be \"executionflow\", \"handlingunit\", \"item\", \"order\", \"stock\"", example: "\"order\"" }, "validate.rules": { string: { minLen: "1" } } } }, { no: 4, name: "OmmittedList", kind: "scalar", localName: "OmmittedList", jsonName: "OmmittedList", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Fields that are not used in this entity" } } }, { no: 5, name: "StartingPath", kind: "scalar", localName: "StartingPath", jsonName: "StartingPath", T: 9 /*ScalarType.STRING*/ }, { no: 6, name: "OnlySegmentationKeys", kind: "scalar", localName: "OnlySegmentationKeys", jsonName: "OnlySegmentationKeys", T: 8 /*ScalarType.BOOL*/ }, { no: 7, name: "KpiGroupFilter", kind: "scalar", localName: "KpiGroupFilter", jsonName: "KpiGroupFilter", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Only fields matching this kpi group name" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Entity"] } } }); } create(value?: PartialMessage): GetViewFieldsRequest { const message = globalThis.Object.create((this.messagePrototype!)); message.Domain = ""; message.Entity = ""; message.OmmittedList = []; message.StartingPath = ""; message.OnlySegmentationKeys = false; message.KpiGroupFilter = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetViewFieldsRequest): GetViewFieldsRequest { 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 Domain */ 2: message.Domain = reader.string(); break; case /* string Entity */ 3: message.Entity = reader.string(); break; case /* repeated string OmmittedList */ 4: message.OmmittedList.push(reader.string()); break; case /* string StartingPath */ 5: message.StartingPath = reader.string(); break; case /* bool OnlySegmentationKeys */ 6: message.OnlySegmentationKeys = reader.bool(); break; case /* string KpiGroupFilter */ 7: message.KpiGroupFilter = 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: GetViewFieldsRequest, 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 Domain = 2; */ if (message.Domain !== "") writer.tag(2, WireType.LengthDelimited).string(message.Domain); /* string Entity = 3; */ if (message.Entity !== "") writer.tag(3, WireType.LengthDelimited).string(message.Entity); /* repeated string OmmittedList = 4; */ for (let i = 0; i < message.OmmittedList.length; i++) writer.tag(4, WireType.LengthDelimited).string(message.OmmittedList[i]); /* string StartingPath = 5; */ if (message.StartingPath !== "") writer.tag(5, WireType.LengthDelimited).string(message.StartingPath); /* bool OnlySegmentationKeys = 6; */ if (message.OnlySegmentationKeys !== false) writer.tag(6, WireType.Varint).bool(message.OnlySegmentationKeys); /* string KpiGroupFilter = 7; */ if (message.KpiGroupFilter !== "") writer.tag(7, WireType.LengthDelimited).string(message.KpiGroupFilter); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.GetViewFieldsRequest */ export const GetViewFieldsRequest = new GetViewFieldsRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class GetViewFieldsResult$Type extends MessageType { constructor() { super("api.GetViewFieldsResult", [ { no: 1, name: "Fields", kind: "message", localName: "Fields", jsonName: "Fields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FieldView } ]); } create(value?: PartialMessage): GetViewFieldsResult { const message = globalThis.Object.create((this.messagePrototype!)); message.Fields = []; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetViewFieldsResult): GetViewFieldsResult { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* repeated api.FieldView Fields */ 1: message.Fields.push(FieldView.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: GetViewFieldsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* repeated api.FieldView Fields = 1; */ for (let i = 0; i < message.Fields.length; i++) FieldView.internalBinaryWrite(message.Fields[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.GetViewFieldsResult */ export const GetViewFieldsResult = new GetViewFieldsResult$Type(); // @generated message type with reflection information, may provide speed optimized methods class GetSiteViewFieldsRequest$Type extends MessageType { constructor() { super("api.GetSiteViewFieldsRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, { no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" }, "validate.rules": { string: { in: ["trade", "collab", "core"] } } } }, { no: 3, name: "Entity", kind: "scalar", localName: "Entity", jsonName: "Entity", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Entity where the metadata will be created. It can be \"executionflow\", \"handlingunit\", \"item\", \"order\", \"stock\"", example: "\"order\"" }, "validate.rules": { string: { minLen: "1" } } } }, { no: 4, name: "OmmittedList", kind: "scalar", localName: "OmmittedList", jsonName: "OmmittedList", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Fields that are not used in this entity" } } }, { no: 5, name: "StartingPath", kind: "scalar", localName: "StartingPath", jsonName: "StartingPath", T: 9 /*ScalarType.STRING*/ }, { no: 6, name: "OnlySegmentationKeys", kind: "scalar", localName: "OnlySegmentationKeys", jsonName: "OnlySegmentationKeys", T: 8 /*ScalarType.BOOL*/ }, { no: 7, name: "KpiGroupFilter", kind: "scalar", localName: "KpiGroupFilter", jsonName: "KpiGroupFilter", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Only fields matching this kpi group name" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Entity"] } } }); } create(value?: PartialMessage): GetSiteViewFieldsRequest { const message = globalThis.Object.create((this.messagePrototype!)); message.Domain = ""; message.Entity = ""; message.OmmittedList = []; message.StartingPath = ""; message.OnlySegmentationKeys = false; message.KpiGroupFilter = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSiteViewFieldsRequest): GetSiteViewFieldsRequest { 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 Domain */ 2: message.Domain = reader.string(); break; case /* string Entity */ 3: message.Entity = reader.string(); break; case /* repeated string OmmittedList */ 4: message.OmmittedList.push(reader.string()); break; case /* string StartingPath */ 5: message.StartingPath = reader.string(); break; case /* bool OnlySegmentationKeys */ 6: message.OnlySegmentationKeys = reader.bool(); break; case /* string KpiGroupFilter */ 7: message.KpiGroupFilter = 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: GetSiteViewFieldsRequest, 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 Domain = 2; */ if (message.Domain !== "") writer.tag(2, WireType.LengthDelimited).string(message.Domain); /* string Entity = 3; */ if (message.Entity !== "") writer.tag(3, WireType.LengthDelimited).string(message.Entity); /* repeated string OmmittedList = 4; */ for (let i = 0; i < message.OmmittedList.length; i++) writer.tag(4, WireType.LengthDelimited).string(message.OmmittedList[i]); /* string StartingPath = 5; */ if (message.StartingPath !== "") writer.tag(5, WireType.LengthDelimited).string(message.StartingPath); /* bool OnlySegmentationKeys = 6; */ if (message.OnlySegmentationKeys !== false) writer.tag(6, WireType.Varint).bool(message.OnlySegmentationKeys); /* string KpiGroupFilter = 7; */ if (message.KpiGroupFilter !== "") writer.tag(7, WireType.LengthDelimited).string(message.KpiGroupFilter); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.GetSiteViewFieldsRequest */ export const GetSiteViewFieldsRequest = new GetSiteViewFieldsRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class GetSiteViewFieldsResult$Type extends MessageType { constructor() { super("api.GetSiteViewFieldsResult", [ { no: 1, name: "Fields", kind: "message", localName: "Fields", jsonName: "Fields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FieldView } ]); } create(value?: PartialMessage): GetSiteViewFieldsResult { const message = globalThis.Object.create((this.messagePrototype!)); message.Fields = []; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSiteViewFieldsResult): GetSiteViewFieldsResult { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* repeated api.FieldView Fields */ 1: message.Fields.push(FieldView.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: GetSiteViewFieldsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* repeated api.FieldView Fields = 1; */ for (let i = 0; i < message.Fields.length; i++) FieldView.internalBinaryWrite(message.Fields[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.GetSiteViewFieldsResult */ export const GetSiteViewFieldsResult = new GetSiteViewFieldsResult$Type(); /** * @generated ServiceType for protobuf service api.ViewService */ export const ViewService = new ServiceType("api.ViewService", [ { name: "GetViewFields", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["View"], description: "Get view fields" }, "api.rscType": "Project", "api.roles": "Platform.Project-View", "google.api.method_visibility": { restriction: "SDK" } }, I: GetViewFieldsRequest, O: GetViewFieldsResult } ], { "api.k8sService": "project-model-server" });