// @generated by protobuf-ts 2.11.1 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"; 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 { Int32Object } from "./core/shared"; import { BoolObject } from "./core/shared"; import { StringObject } from "./core/shared"; import { RequestProjectHeader } from "./core/shared"; /** * @generated from protobuf message vizapi.Dashboard */ export interface Dashboard { /** * Identifier of the Dashboard * * @generated from protobuf field: string DashboardID = 1 */ DashboardID: string; /** * Name of the Dashboard * * @generated from protobuf field: string Name = 2 */ Name: string; /** * All the widgets in Dashboard * * @generated from protobuf field: string Content = 3 */ Content: string; /** * Identifier of the user who created * * @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 */ 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 */ 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 */ UpdateDate: string; /** * Visibility of the Dashboard * * @generated from protobuf field: bool IsPrivate = 8 */ IsPrivate: boolean; /** * @generated from protobuf field: int32 AutoRefresh = 12 */ AutoRefresh: number; } /** * @generated from protobuf message vizapi.ListDashboardRequest */ export interface ListDashboardRequest { /** * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; } /** * List of Dashboards * * @generated from protobuf message vizapi.ListDashboardResult */ export interface ListDashboardResult { /** * 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.CreateDashboardRequest */ export interface CreateDashboardRequest { /** * @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.CreateDashboardResult */ export interface CreateDashboardResult { /** * @generated from protobuf field: vizapi.Dashboard Result = 1 */ Result?: Dashboard; } /** * IDs of the Dashboard to be deleted * * @generated from protobuf message vizapi.DeleteDashboardRequest */ export interface DeleteDashboardRequest { /** * @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.DeleteDashboardResult */ export interface DeleteDashboardResult { } /** * Organization identifier to delete the dashboards from * * @generated from protobuf message vizapi.DeleteDashboardsForOrganisationRequest */ export interface DeleteDashboardsForOrganisationRequest { /** * Identifier of the Organization * * @generated from protobuf field: string OrganisationID = 2 */ OrganisationID: string; } /** * @generated from protobuf message vizapi.DeleteDashboardsForOrganisationResult */ export interface DeleteDashboardsForOrganisationResult { } /** * Project identifier to delete the dashboards from * * @generated from protobuf message vizapi.DeleteDashboardsForProjectRequest */ export interface DeleteDashboardsForProjectRequest { /** * Identifier of the Project * * @generated from protobuf field: string ProjectID = 1 */ ProjectID: string; } /** * @generated from protobuf message vizapi.DeleteDashboardsForProjectResult */ export interface DeleteDashboardsForProjectResult { } /** * Information that needs to be updated * * @generated from protobuf message vizapi.UpdateDashboardRequest */ export interface UpdateDashboardRequest { /** * @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.UpdateDashboardResult */ export interface UpdateDashboardResult { /** * @generated from protobuf field: vizapi.Dashboard Result = 1 */ Result?: Dashboard; } /** * IDs of the Dashboard * * @generated from protobuf message vizapi.GetDashboardRequest */ export interface GetDashboardRequest { /** * @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.GetDashboardResult */ export interface GetDashboardResult { /** * @generated from protobuf field: vizapi.Dashboard result = 1 */ result?: Dashboard; } /** * @generated from protobuf message vizapi.CopyDashboardRequest */ export interface CopyDashboardRequest { /** * @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.CopyDashboardResult */ export interface CopyDashboardResult { /** * @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 message type with reflection information, may provide speed optimized methods class Dashboard$Type extends MessageType { constructor() { super("vizapi.Dashboard", [ { no: 1, 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" } } }, { 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" } } }, { no: 3, name: "Content", kind: "scalar", localName: "Content", jsonName: "Content", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "All the widgets in Dashboard" } } }, { no: 4, name: "CreateUserID", kind: "scalar", localName: "CreateUserID", jsonName: "CreateUserID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the user who created" } } }, { no: 5, name: "UpdateUserID", kind: "scalar", localName: "UpdateUserID", jsonName: "UpdateUserID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the user who did the last update" } } }, { no: 6, name: "CreateDate", kind: "scalar", localName: "CreateDate", jsonName: "CreateDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Date of creation in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z]", example: "\"2023-01-01T00:00:00Z\"" } } }, { no: 7, name: "UpdateDate", kind: "scalar", localName: "UpdateDate", jsonName: "UpdateDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Date of last update in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z]", example: "\"2023-01-01T00:00:01Z\"" } } }, { no: 8, 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: 12, name: "AutoRefresh", kind: "scalar", localName: "AutoRefresh", jsonName: "AutoRefresh", T: 5 /*ScalarType.INT32*/ } ]); } create(value?: PartialMessage): Dashboard { const message = globalThis.Object.create((this.messagePrototype!)); message.DashboardID = ""; message.Name = ""; message.Content = ""; message.CreateUserID = ""; message.UpdateUserID = ""; message.CreateDate = ""; message.UpdateDate = ""; message.IsPrivate = false; message.AutoRefresh = 0; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Dashboard): Dashboard { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* string DashboardID */ 1: message.DashboardID = reader.string(); break; case /* string Name */ 2: message.Name = reader.string(); break; case /* string Content */ 3: message.Content = reader.string(); break; case /* string CreateUserID */ 4: message.CreateUserID = reader.string(); break; case /* string UpdateUserID */ 5: message.UpdateUserID = reader.string(); break; case /* string CreateDate */ 6: message.CreateDate = reader.string(); break; case /* string UpdateDate */ 7: message.UpdateDate = reader.string(); break; case /* bool IsPrivate */ 8: message.IsPrivate = reader.bool(); break; case /* int32 AutoRefresh */ 12: 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: Dashboard, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string DashboardID = 1; */ if (message.DashboardID !== "") writer.tag(1, WireType.LengthDelimited).string(message.DashboardID); /* 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); /* string CreateUserID = 4; */ if (message.CreateUserID !== "") writer.tag(4, WireType.LengthDelimited).string(message.CreateUserID); /* string UpdateUserID = 5; */ if (message.UpdateUserID !== "") writer.tag(5, WireType.LengthDelimited).string(message.UpdateUserID); /* string CreateDate = 6; */ if (message.CreateDate !== "") writer.tag(6, WireType.LengthDelimited).string(message.CreateDate); /* string UpdateDate = 7; */ if (message.UpdateDate !== "") writer.tag(7, WireType.LengthDelimited).string(message.UpdateDate); /* bool IsPrivate = 8; */ if (message.IsPrivate !== false) writer.tag(8, WireType.Varint).bool(message.IsPrivate); /* int32 AutoRefresh = 12; */ if (message.AutoRefresh !== 0) writer.tag(12, 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.Dashboard */ export const Dashboard = new Dashboard$Type(); // @generated message type with reflection information, may provide speed optimized methods class ListDashboardRequest$Type extends MessageType { constructor() { super("vizapi.ListDashboardRequest", [ { 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): ListDashboardRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListDashboardRequest): ListDashboardRequest { 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: ListDashboardRequest, 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.ListDashboardRequest */ export const ListDashboardRequest = new ListDashboardRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class ListDashboardResult$Type extends MessageType { constructor() { super("vizapi.ListDashboardResult", [ { 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): ListDashboardResult { 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?: ListDashboardResult): ListDashboardResult { 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: ListDashboardResult, 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.ListDashboardResult */ export const ListDashboardResult = new ListDashboardResult$Type(); // @generated message type with reflection information, may provide speed optimized methods class CreateDashboardRequest$Type extends MessageType { constructor() { super("vizapi.CreateDashboardRequest", [ { 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): CreateDashboardRequest { 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?: CreateDashboardRequest): CreateDashboardRequest { 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: CreateDashboardRequest, 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.CreateDashboardRequest */ export const CreateDashboardRequest = new CreateDashboardRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class CreateDashboardResult$Type extends MessageType { constructor() { super("vizapi.CreateDashboardResult", [ { 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): CreateDashboardResult { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateDashboardResult): CreateDashboardResult { 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: CreateDashboardResult, 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.CreateDashboardResult */ export const CreateDashboardResult = new CreateDashboardResult$Type(); // @generated message type with reflection information, may provide speed optimized methods class DeleteDashboardRequest$Type extends MessageType { constructor() { super("vizapi.DeleteDashboardRequest", [ { 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): DeleteDashboardRequest { 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?: DeleteDashboardRequest): DeleteDashboardRequest { 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: DeleteDashboardRequest, 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.DeleteDashboardRequest */ export const DeleteDashboardRequest = new DeleteDashboardRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class DeleteDashboardResult$Type extends MessageType { constructor() { super("vizapi.DeleteDashboardResult", []); } create(value?: PartialMessage): DeleteDashboardResult { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteDashboardResult): DeleteDashboardResult { 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: DeleteDashboardResult, 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.DeleteDashboardResult */ export const DeleteDashboardResult = new DeleteDashboardResult$Type(); // @generated message type with reflection information, may provide speed optimized methods class DeleteDashboardsForOrganisationRequest$Type extends MessageType { constructor() { super("vizapi.DeleteDashboardsForOrganisationRequest", [ { no: 2, 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 Organization" }, "validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Organization identifier to delete the dashboards from", required: ["OrganisationID"] } } }); } create(value?: PartialMessage): DeleteDashboardsForOrganisationRequest { const message = globalThis.Object.create((this.messagePrototype!)); message.OrganisationID = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteDashboardsForOrganisationRequest): DeleteDashboardsForOrganisationRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* string OrganisationID */ 2: message.OrganisationID = 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: DeleteDashboardsForOrganisationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string OrganisationID = 2; */ if (message.OrganisationID !== "") writer.tag(2, WireType.LengthDelimited).string(message.OrganisationID); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message vizapi.DeleteDashboardsForOrganisationRequest */ export const DeleteDashboardsForOrganisationRequest = new DeleteDashboardsForOrganisationRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class DeleteDashboardsForOrganisationResult$Type extends MessageType { constructor() { super("vizapi.DeleteDashboardsForOrganisationResult", []); } create(value?: PartialMessage): DeleteDashboardsForOrganisationResult { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteDashboardsForOrganisationResult): DeleteDashboardsForOrganisationResult { 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: DeleteDashboardsForOrganisationResult, 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.DeleteDashboardsForOrganisationResult */ export const DeleteDashboardsForOrganisationResult = new DeleteDashboardsForOrganisationResult$Type(); // @generated message type with reflection information, may provide speed optimized methods class DeleteDashboardsForProjectRequest$Type extends MessageType { constructor() { super("vizapi.DeleteDashboardsForProjectRequest", [ { 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" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Project identifier to delete the dashboards from", required: ["ProjectID"] } } }); } create(value?: PartialMessage): DeleteDashboardsForProjectRequest { const message = globalThis.Object.create((this.messagePrototype!)); message.ProjectID = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteDashboardsForProjectRequest): DeleteDashboardsForProjectRequest { 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; 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: DeleteDashboardsForProjectRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string ProjectID = 1; */ if (message.ProjectID !== "") writer.tag(1, WireType.LengthDelimited).string(message.ProjectID); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message vizapi.DeleteDashboardsForProjectRequest */ export const DeleteDashboardsForProjectRequest = new DeleteDashboardsForProjectRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class DeleteDashboardsForProjectResult$Type extends MessageType { constructor() { super("vizapi.DeleteDashboardsForProjectResult", []); } create(value?: PartialMessage): DeleteDashboardsForProjectResult { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteDashboardsForProjectResult): DeleteDashboardsForProjectResult { 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: DeleteDashboardsForProjectResult, 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.DeleteDashboardsForProjectResult */ export const DeleteDashboardsForProjectResult = new DeleteDashboardsForProjectResult$Type(); // @generated message type with reflection information, may provide speed optimized methods class UpdateDashboardRequest$Type extends MessageType { constructor() { super("vizapi.UpdateDashboardRequest", [ { 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): UpdateDashboardRequest { 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?: UpdateDashboardRequest): UpdateDashboardRequest { 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: UpdateDashboardRequest, 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.UpdateDashboardRequest */ export const UpdateDashboardRequest = new UpdateDashboardRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class UpdateDashboardResult$Type extends MessageType { constructor() { super("vizapi.UpdateDashboardResult", [ { 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): UpdateDashboardResult { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateDashboardResult): UpdateDashboardResult { 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: UpdateDashboardResult, 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.UpdateDashboardResult */ export const UpdateDashboardResult = new UpdateDashboardResult$Type(); // @generated message type with reflection information, may provide speed optimized methods class GetDashboardRequest$Type extends MessageType { constructor() { super("vizapi.GetDashboardRequest", [ { 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): GetDashboardRequest { 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?: GetDashboardRequest): GetDashboardRequest { 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: GetDashboardRequest, 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.GetDashboardRequest */ export const GetDashboardRequest = new GetDashboardRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class GetDashboardResult$Type extends MessageType { constructor() { super("vizapi.GetDashboardResult", [ { 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): GetDashboardResult { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetDashboardResult): GetDashboardResult { 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: GetDashboardResult, 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.GetDashboardResult */ export const GetDashboardResult = new GetDashboardResult$Type(); // @generated message type with reflection information, may provide speed optimized methods class CopyDashboardRequest$Type extends MessageType { constructor() { super("vizapi.CopyDashboardRequest", [ { 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): CopyDashboardRequest { 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?: CopyDashboardRequest): CopyDashboardRequest { 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: CopyDashboardRequest, 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.CopyDashboardRequest */ export const CopyDashboardRequest = new CopyDashboardRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class CopyDashboardResult$Type extends MessageType { constructor() { super("vizapi.CopyDashboardResult", [ { 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): CopyDashboardResult { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CopyDashboardResult): CopyDashboardResult { 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: CopyDashboardResult, 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.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 ServiceType for protobuf service vizapi.DashboardService */ export const DashboardService = new ServiceType("vizapi.DashboardService", [ { name: "Create", 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: CreateDashboardRequest, O: CreateDashboardResult }, { name: "List", 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: ListDashboardRequest, O: ListDashboardResult }, { name: "Delete", 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: DeleteDashboardRequest, O: DeleteDashboardResult }, { name: "DeleteDashboardsForOrganisation", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Dashboard"], summary: "Delete all dashboards of an organization" }, "api.rscType": "Platform", "api.roles": "Platform.Organisation-Dashboards", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: DeleteDashboardsForOrganisationRequest, O: DeleteDashboardsForOrganisationResult }, { 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: "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 } ], { "api.k8sService": "dashboard" });