Files
npm-viz-sdk/viz-dashboard_pb.ts
2025-03-17 13:03:44 +00:00

815 lines
29 KiB
TypeScript

// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
// @generated from file viz-dashboard.proto (package vizapi, syntax proto3)
/* eslint-disable */
// @ts-nocheck
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
import { Message, proto3 } from "@bufbuild/protobuf";
import { BoolObject, Int32Object, RequestProjectHeader, StringObject } from "./core/shared_pb.js";
/**
* @generated from message vizapi.Dashboard
*/
export class Dashboard extends Message<Dashboard> {
/**
* Identifier of the Dashboard
*
* @generated from field: string DashboardID = 1;
*/
DashboardID = "";
/**
* Name of the Dashboard
*
* @generated from field: string Name = 2;
*/
Name = "";
/**
* All the widgets in Dashboard
*
* @generated from field: string Content = 3;
*/
Content = "";
/**
* Identifier of the user who created
*
* @generated from field: string CreateUserID = 4;
*/
CreateUserID = "";
/**
* Identifier of the user who did the last update
*
* @generated from field: string UpdateUserID = 5;
*/
UpdateUserID = "";
/**
* Date of creation in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z]
*
* @generated from field: string CreateDate = 6;
*/
CreateDate = "";
/**
* Date of last update in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z]
*
* @generated from field: string UpdateDate = 7;
*/
UpdateDate = "";
/**
* Visibility of the Dashboard
*
* @generated from field: bool IsPrivate = 8;
*/
IsPrivate = false;
/**
* @generated from field: int32 AutoRefresh = 12;
*/
AutoRefresh = 0;
constructor(data?: PartialMessage<Dashboard>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.Dashboard";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "DashboardID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "Name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "Content", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 4, name: "CreateUserID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 5, name: "UpdateUserID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 6, name: "CreateDate", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 7, name: "UpdateDate", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 8, name: "IsPrivate", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
{ no: 12, name: "AutoRefresh", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Dashboard {
return new Dashboard().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Dashboard {
return new Dashboard().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Dashboard {
return new Dashboard().fromJsonString(jsonString, options);
}
static equals(a: Dashboard | PlainMessage<Dashboard> | undefined, b: Dashboard | PlainMessage<Dashboard> | undefined): boolean {
return proto3.util.equals(Dashboard, a, b);
}
}
/**
* @generated from message vizapi.ListDashboardRequest
*/
export class ListDashboardRequest extends Message<ListDashboardRequest> {
/**
* @generated from field: api.RequestProjectHeader Header = 1;
*/
Header?: RequestProjectHeader;
constructor(data?: PartialMessage<ListDashboardRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.ListDashboardRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Header", kind: "message", T: RequestProjectHeader },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListDashboardRequest {
return new ListDashboardRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListDashboardRequest {
return new ListDashboardRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListDashboardRequest {
return new ListDashboardRequest().fromJsonString(jsonString, options);
}
static equals(a: ListDashboardRequest | PlainMessage<ListDashboardRequest> | undefined, b: ListDashboardRequest | PlainMessage<ListDashboardRequest> | undefined): boolean {
return proto3.util.equals(ListDashboardRequest, a, b);
}
}
/**
* List of Dashboards
*
* @generated from message vizapi.ListDashboardResult
*/
export class ListDashboardResult extends Message<ListDashboardResult> {
/**
* All information in a Dashboard
*
* @generated from field: repeated vizapi.Dashboard Results = 1;
*/
Results: Dashboard[] = [];
constructor(data?: PartialMessage<ListDashboardResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.ListDashboardResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Results", kind: "message", T: Dashboard, repeated: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListDashboardResult {
return new ListDashboardResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListDashboardResult {
return new ListDashboardResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListDashboardResult {
return new ListDashboardResult().fromJsonString(jsonString, options);
}
static equals(a: ListDashboardResult | PlainMessage<ListDashboardResult> | undefined, b: ListDashboardResult | PlainMessage<ListDashboardResult> | undefined): boolean {
return proto3.util.equals(ListDashboardResult, a, b);
}
}
/**
* Information that needs to be stored
*
* @generated from message vizapi.CreateDashboardRequest
*/
export class CreateDashboardRequest extends Message<CreateDashboardRequest> {
/**
* @generated from field: api.RequestProjectHeader Header = 1;
*/
Header?: RequestProjectHeader;
/**
* Name of the Dashboard
*
* @generated from field: string Name = 2;
*/
Name = "";
/**
* All widgets in Dashboard
*
* @generated from field: string content = 3;
*/
content = "";
/**
* Visibility of the Dashboard
*
* @generated from field: bool IsPrivate = 4;
*/
IsPrivate = false;
/**
* @generated from field: int32 AutoRefresh = 8;
*/
AutoRefresh = 0;
constructor(data?: PartialMessage<CreateDashboardRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.CreateDashboardRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Header", kind: "message", T: RequestProjectHeader },
{ no: 2, name: "Name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "content", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 4, name: "IsPrivate", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
{ no: 8, name: "AutoRefresh", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateDashboardRequest {
return new CreateDashboardRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateDashboardRequest {
return new CreateDashboardRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateDashboardRequest {
return new CreateDashboardRequest().fromJsonString(jsonString, options);
}
static equals(a: CreateDashboardRequest | PlainMessage<CreateDashboardRequest> | undefined, b: CreateDashboardRequest | PlainMessage<CreateDashboardRequest> | undefined): boolean {
return proto3.util.equals(CreateDashboardRequest, a, b);
}
}
/**
* Created Dashboard
*
* @generated from message vizapi.CreateDashboardResult
*/
export class CreateDashboardResult extends Message<CreateDashboardResult> {
/**
* @generated from field: vizapi.Dashboard Result = 1;
*/
Result?: Dashboard;
constructor(data?: PartialMessage<CreateDashboardResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.CreateDashboardResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Result", kind: "message", T: Dashboard },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateDashboardResult {
return new CreateDashboardResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateDashboardResult {
return new CreateDashboardResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateDashboardResult {
return new CreateDashboardResult().fromJsonString(jsonString, options);
}
static equals(a: CreateDashboardResult | PlainMessage<CreateDashboardResult> | undefined, b: CreateDashboardResult | PlainMessage<CreateDashboardResult> | undefined): boolean {
return proto3.util.equals(CreateDashboardResult, a, b);
}
}
/**
* IDs of the Dashboard to be deleted
*
* @generated from message vizapi.DeleteDashboardRequest
*/
export class DeleteDashboardRequest extends Message<DeleteDashboardRequest> {
/**
* @generated from field: api.RequestProjectHeader Header = 1;
*/
Header?: RequestProjectHeader;
/**
* Identifier of the Dashboard
*
* @generated from field: string DashboardID = 2;
*/
DashboardID = "";
constructor(data?: PartialMessage<DeleteDashboardRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.DeleteDashboardRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Header", kind: "message", T: RequestProjectHeader },
{ no: 2, name: "DashboardID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteDashboardRequest {
return new DeleteDashboardRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteDashboardRequest {
return new DeleteDashboardRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteDashboardRequest {
return new DeleteDashboardRequest().fromJsonString(jsonString, options);
}
static equals(a: DeleteDashboardRequest | PlainMessage<DeleteDashboardRequest> | undefined, b: DeleteDashboardRequest | PlainMessage<DeleteDashboardRequest> | undefined): boolean {
return proto3.util.equals(DeleteDashboardRequest, a, b);
}
}
/**
* @generated from message vizapi.DeleteDashboardResult
*/
export class DeleteDashboardResult extends Message<DeleteDashboardResult> {
constructor(data?: PartialMessage<DeleteDashboardResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.DeleteDashboardResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteDashboardResult {
return new DeleteDashboardResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteDashboardResult {
return new DeleteDashboardResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteDashboardResult {
return new DeleteDashboardResult().fromJsonString(jsonString, options);
}
static equals(a: DeleteDashboardResult | PlainMessage<DeleteDashboardResult> | undefined, b: DeleteDashboardResult | PlainMessage<DeleteDashboardResult> | undefined): boolean {
return proto3.util.equals(DeleteDashboardResult, a, b);
}
}
/**
* Organization identifier to delete the dashboards from
*
* @generated from message vizapi.DeleteDashboardsForOrganisationRequest
*/
export class DeleteDashboardsForOrganisationRequest extends Message<DeleteDashboardsForOrganisationRequest> {
/**
* Identifier of the Organization
*
* @generated from field: string OrganisationID = 2;
*/
OrganisationID = "";
constructor(data?: PartialMessage<DeleteDashboardsForOrganisationRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.DeleteDashboardsForOrganisationRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 2, name: "OrganisationID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteDashboardsForOrganisationRequest {
return new DeleteDashboardsForOrganisationRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteDashboardsForOrganisationRequest {
return new DeleteDashboardsForOrganisationRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteDashboardsForOrganisationRequest {
return new DeleteDashboardsForOrganisationRequest().fromJsonString(jsonString, options);
}
static equals(a: DeleteDashboardsForOrganisationRequest | PlainMessage<DeleteDashboardsForOrganisationRequest> | undefined, b: DeleteDashboardsForOrganisationRequest | PlainMessage<DeleteDashboardsForOrganisationRequest> | undefined): boolean {
return proto3.util.equals(DeleteDashboardsForOrganisationRequest, a, b);
}
}
/**
* @generated from message vizapi.DeleteDashboardsForOrganisationResult
*/
export class DeleteDashboardsForOrganisationResult extends Message<DeleteDashboardsForOrganisationResult> {
constructor(data?: PartialMessage<DeleteDashboardsForOrganisationResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.DeleteDashboardsForOrganisationResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteDashboardsForOrganisationResult {
return new DeleteDashboardsForOrganisationResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteDashboardsForOrganisationResult {
return new DeleteDashboardsForOrganisationResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteDashboardsForOrganisationResult {
return new DeleteDashboardsForOrganisationResult().fromJsonString(jsonString, options);
}
static equals(a: DeleteDashboardsForOrganisationResult | PlainMessage<DeleteDashboardsForOrganisationResult> | undefined, b: DeleteDashboardsForOrganisationResult | PlainMessage<DeleteDashboardsForOrganisationResult> | undefined): boolean {
return proto3.util.equals(DeleteDashboardsForOrganisationResult, a, b);
}
}
/**
* Project identifier to delete the dashboards from
*
* @generated from message vizapi.DeleteDashboardsForProjectRequest
*/
export class DeleteDashboardsForProjectRequest extends Message<DeleteDashboardsForProjectRequest> {
/**
* Identifier of the Project
*
* @generated from field: string ProjectID = 1;
*/
ProjectID = "";
constructor(data?: PartialMessage<DeleteDashboardsForProjectRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.DeleteDashboardsForProjectRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "ProjectID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteDashboardsForProjectRequest {
return new DeleteDashboardsForProjectRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteDashboardsForProjectRequest {
return new DeleteDashboardsForProjectRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteDashboardsForProjectRequest {
return new DeleteDashboardsForProjectRequest().fromJsonString(jsonString, options);
}
static equals(a: DeleteDashboardsForProjectRequest | PlainMessage<DeleteDashboardsForProjectRequest> | undefined, b: DeleteDashboardsForProjectRequest | PlainMessage<DeleteDashboardsForProjectRequest> | undefined): boolean {
return proto3.util.equals(DeleteDashboardsForProjectRequest, a, b);
}
}
/**
* @generated from message vizapi.DeleteDashboardsForProjectResult
*/
export class DeleteDashboardsForProjectResult extends Message<DeleteDashboardsForProjectResult> {
constructor(data?: PartialMessage<DeleteDashboardsForProjectResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.DeleteDashboardsForProjectResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteDashboardsForProjectResult {
return new DeleteDashboardsForProjectResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteDashboardsForProjectResult {
return new DeleteDashboardsForProjectResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteDashboardsForProjectResult {
return new DeleteDashboardsForProjectResult().fromJsonString(jsonString, options);
}
static equals(a: DeleteDashboardsForProjectResult | PlainMessage<DeleteDashboardsForProjectResult> | undefined, b: DeleteDashboardsForProjectResult | PlainMessage<DeleteDashboardsForProjectResult> | undefined): boolean {
return proto3.util.equals(DeleteDashboardsForProjectResult, a, b);
}
}
/**
* Information that needs to be updated
*
* @generated from message vizapi.UpdateDashboardRequest
*/
export class UpdateDashboardRequest extends Message<UpdateDashboardRequest> {
/**
* @generated from field: api.RequestProjectHeader Header = 1;
*/
Header?: RequestProjectHeader;
/**
* Identifier of the Dashboard
*
* @generated from field: string DashboardID = 2;
*/
DashboardID = "";
/**
* Name of the Dashboard
*
* @generated from field: api.StringObject Name = 3;
*/
Name?: StringObject;
/**
* All the widgets in Dashboard
*
* @generated from field: api.StringObject Content = 4;
*/
Content?: StringObject;
/**
* Visibility of the Dashboard
*
* @generated from field: api.BoolObject IsPrivate = 5;
*/
IsPrivate?: BoolObject;
/**
* @generated from field: api.Int32Object AutoRefresh = 9;
*/
AutoRefresh?: Int32Object;
constructor(data?: PartialMessage<UpdateDashboardRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.UpdateDashboardRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Header", kind: "message", T: RequestProjectHeader },
{ no: 2, name: "DashboardID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "Name", kind: "message", T: StringObject },
{ no: 4, name: "Content", kind: "message", T: StringObject },
{ no: 5, name: "IsPrivate", kind: "message", T: BoolObject },
{ no: 9, name: "AutoRefresh", kind: "message", T: Int32Object },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateDashboardRequest {
return new UpdateDashboardRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateDashboardRequest {
return new UpdateDashboardRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateDashboardRequest {
return new UpdateDashboardRequest().fromJsonString(jsonString, options);
}
static equals(a: UpdateDashboardRequest | PlainMessage<UpdateDashboardRequest> | undefined, b: UpdateDashboardRequest | PlainMessage<UpdateDashboardRequest> | undefined): boolean {
return proto3.util.equals(UpdateDashboardRequest, a, b);
}
}
/**
* Updated Dashboard information
*
* @generated from message vizapi.UpdateDashboardResult
*/
export class UpdateDashboardResult extends Message<UpdateDashboardResult> {
/**
* @generated from field: vizapi.Dashboard Result = 1;
*/
Result?: Dashboard;
constructor(data?: PartialMessage<UpdateDashboardResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.UpdateDashboardResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Result", kind: "message", T: Dashboard },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateDashboardResult {
return new UpdateDashboardResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateDashboardResult {
return new UpdateDashboardResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateDashboardResult {
return new UpdateDashboardResult().fromJsonString(jsonString, options);
}
static equals(a: UpdateDashboardResult | PlainMessage<UpdateDashboardResult> | undefined, b: UpdateDashboardResult | PlainMessage<UpdateDashboardResult> | undefined): boolean {
return proto3.util.equals(UpdateDashboardResult, a, b);
}
}
/**
* IDs of the Dashboard
*
* @generated from message vizapi.GetDashboardRequest
*/
export class GetDashboardRequest extends Message<GetDashboardRequest> {
/**
* @generated from field: api.RequestProjectHeader Header = 1;
*/
Header?: RequestProjectHeader;
/**
* Identifier of the Dashboard
*
* @generated from field: string DashboardID = 2;
*/
DashboardID = "";
constructor(data?: PartialMessage<GetDashboardRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.GetDashboardRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Header", kind: "message", T: RequestProjectHeader },
{ no: 2, name: "DashboardID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetDashboardRequest {
return new GetDashboardRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetDashboardRequest {
return new GetDashboardRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetDashboardRequest {
return new GetDashboardRequest().fromJsonString(jsonString, options);
}
static equals(a: GetDashboardRequest | PlainMessage<GetDashboardRequest> | undefined, b: GetDashboardRequest | PlainMessage<GetDashboardRequest> | undefined): boolean {
return proto3.util.equals(GetDashboardRequest, a, b);
}
}
/**
* All information about the Dashboard
*
* @generated from message vizapi.GetDashboardResult
*/
export class GetDashboardResult extends Message<GetDashboardResult> {
/**
* @generated from field: vizapi.Dashboard result = 1;
*/
result?: Dashboard;
constructor(data?: PartialMessage<GetDashboardResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.GetDashboardResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "result", kind: "message", T: Dashboard },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetDashboardResult {
return new GetDashboardResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetDashboardResult {
return new GetDashboardResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetDashboardResult {
return new GetDashboardResult().fromJsonString(jsonString, options);
}
static equals(a: GetDashboardResult | PlainMessage<GetDashboardResult> | undefined, b: GetDashboardResult | PlainMessage<GetDashboardResult> | undefined): boolean {
return proto3.util.equals(GetDashboardResult, a, b);
}
}
/**
* @generated from message vizapi.CopyDashboardRequest
*/
export class CopyDashboardRequest extends Message<CopyDashboardRequest> {
/**
* @generated from field: api.RequestProjectHeader Header = 1;
*/
Header?: RequestProjectHeader;
/**
* Identifier of the Dashboard
*
* @generated from field: string DashboardID = 2;
*/
DashboardID = "";
/**
* Name of the new Dashboard
*
* string OrganisationID = 4 [(validate.rules).string.min_len = 1];
*
* @generated from field: string Name = 3;
*/
Name = "";
constructor(data?: PartialMessage<CopyDashboardRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.CopyDashboardRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Header", kind: "message", T: RequestProjectHeader },
{ no: 2, name: "DashboardID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "Name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CopyDashboardRequest {
return new CopyDashboardRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CopyDashboardRequest {
return new CopyDashboardRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CopyDashboardRequest {
return new CopyDashboardRequest().fromJsonString(jsonString, options);
}
static equals(a: CopyDashboardRequest | PlainMessage<CopyDashboardRequest> | undefined, b: CopyDashboardRequest | PlainMessage<CopyDashboardRequest> | undefined): boolean {
return proto3.util.equals(CopyDashboardRequest, a, b);
}
}
/**
* New copied dashboard
*
* @generated from message vizapi.CopyDashboardResult
*/
export class CopyDashboardResult extends Message<CopyDashboardResult> {
/**
* @generated from field: vizapi.Dashboard Result = 1;
*/
Result?: Dashboard;
constructor(data?: PartialMessage<CopyDashboardResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.CopyDashboardResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Result", kind: "message", T: Dashboard },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CopyDashboardResult {
return new CopyDashboardResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CopyDashboardResult {
return new CopyDashboardResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CopyDashboardResult {
return new CopyDashboardResult().fromJsonString(jsonString, options);
}
static equals(a: CopyDashboardResult | PlainMessage<CopyDashboardResult> | undefined, b: CopyDashboardResult | PlainMessage<CopyDashboardResult> | undefined): boolean {
return proto3.util.equals(CopyDashboardResult, a, b);
}
}