You've already forked npm-viz-sdk
1686 lines
86 KiB
TypeScript
1686 lines
86 KiB
TypeScript
// @generated by protobuf-ts 2.9.6
|
|
// @generated from protobuf file "viz-view.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 { BlockFilter } from "./core/shared";
|
|
import { RequestProjectHeader } from "./core/shared";
|
|
/**
|
|
* @generated from protobuf message vizapi.View
|
|
*/
|
|
export interface View {
|
|
/**
|
|
* Identifier of the View
|
|
*
|
|
* @generated from protobuf field: string ViewID = 1 [json_name = "ViewID"];
|
|
*/
|
|
viewID: string;
|
|
/**
|
|
* Identifier of the Project
|
|
*
|
|
* @generated from protobuf field: string ProjectID = 2 [json_name = "ProjectID"];
|
|
*/
|
|
projectID: string;
|
|
/**
|
|
* Identifier of the screen
|
|
*
|
|
* @generated from protobuf field: string ScreenID = 3 [json_name = "ScreenID"];
|
|
*/
|
|
screenID: string;
|
|
/**
|
|
* Identifier of the user who created
|
|
*
|
|
* @generated from protobuf field: string CreateUserID = 4 [json_name = "CreateUserID"];
|
|
*/
|
|
createUserID: string;
|
|
/**
|
|
* Identifier of the user who did last update
|
|
*
|
|
* @generated from protobuf field: string UpdateUserID = 5 [json_name = "UpdateUserID"];
|
|
*/
|
|
updateUserID: string;
|
|
/**
|
|
* Date of creation in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z]
|
|
*
|
|
* @generated from protobuf field: string CreateDateTime = 6 [json_name = "CreateDateTime"];
|
|
*/
|
|
createDateTime: string;
|
|
/**
|
|
* Date of last update in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z]
|
|
*
|
|
* @generated from protobuf field: string UpdateDateTime = 7 [json_name = "UpdateDateTime"];
|
|
*/
|
|
updateDateTime: string;
|
|
/**
|
|
* Content of the View
|
|
*
|
|
* @generated from protobuf field: string Payload = 10 [json_name = "Payload"];
|
|
*/
|
|
payload: string;
|
|
/**
|
|
* Visibility of the View
|
|
*
|
|
* @generated from protobuf field: bool IsPrivate = 12 [json_name = "IsPrivate"];
|
|
*/
|
|
isPrivate: boolean;
|
|
/**
|
|
* Name of the View
|
|
*
|
|
* @generated from protobuf field: string Name = 13 [json_name = "Name"];
|
|
*/
|
|
name: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message vizapi.ComposedUserView
|
|
*/
|
|
export interface ComposedUserView {
|
|
/**
|
|
* Identifier of the View
|
|
*
|
|
* @generated from protobuf field: string ViewID = 1 [json_name = "ViewID"];
|
|
*/
|
|
viewID: string;
|
|
/**
|
|
* Name of the View
|
|
*
|
|
* @generated from protobuf field: string Name = 2 [json_name = "Name"];
|
|
*/
|
|
name: string;
|
|
/**
|
|
* Identifier of the User
|
|
*
|
|
* @generated from protobuf field: string UserID = 3 [json_name = "UserID"];
|
|
*/
|
|
userID: string;
|
|
/**
|
|
* Identifier of the Project
|
|
*
|
|
* @generated from protobuf field: string ProjectID = 4 [json_name = "ProjectID"];
|
|
*/
|
|
projectID: string;
|
|
/**
|
|
* Identifier of the Screen
|
|
*
|
|
* @generated from protobuf field: string ScreenID = 5 [json_name = "ScreenID"];
|
|
*/
|
|
screenID: string;
|
|
/**
|
|
* Content of the View
|
|
*
|
|
* @generated from protobuf field: string Payload = 6 [json_name = "Payload"];
|
|
*/
|
|
payload: string;
|
|
/**
|
|
* Visibility of the View
|
|
*
|
|
* @generated from protobuf field: bool IsPrivate = 9 [json_name = "IsPrivate"];
|
|
*/
|
|
isPrivate: boolean;
|
|
}
|
|
/**
|
|
* IDs of the View
|
|
*
|
|
* @generated from protobuf message vizapi.GetViewRequest
|
|
*/
|
|
export interface GetViewRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
|
|
*/
|
|
header?: RequestProjectHeader;
|
|
/**
|
|
* Identifier of the View
|
|
*
|
|
* @generated from protobuf field: string ViewID = 2 [json_name = "ViewID"];
|
|
*/
|
|
viewID: string;
|
|
}
|
|
/**
|
|
* All information about the View
|
|
*
|
|
* @generated from protobuf message vizapi.GetViewResult
|
|
*/
|
|
export interface GetViewResult {
|
|
/**
|
|
* @generated from protobuf field: vizapi.ComposedUserView Result = 1 [json_name = "Result"];
|
|
*/
|
|
result?: ComposedUserView;
|
|
}
|
|
/**
|
|
* Information that needs to be stored
|
|
*
|
|
* @generated from protobuf message vizapi.CreateViewRequest
|
|
*/
|
|
export interface CreateViewRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
|
|
*/
|
|
header?: RequestProjectHeader;
|
|
/**
|
|
* Name of the View
|
|
*
|
|
* @generated from protobuf field: string Name = 2 [json_name = "Name"];
|
|
*/
|
|
name: string;
|
|
/**
|
|
* Identifier of the Screen
|
|
*
|
|
* @generated from protobuf field: string ScreenID = 3 [json_name = "ScreenID"];
|
|
*/
|
|
screenID: string;
|
|
/**
|
|
* Content of the View
|
|
*
|
|
* @generated from protobuf field: string Payload = 5 [json_name = "Payload"];
|
|
*/
|
|
payload: string;
|
|
/**
|
|
* Visibility of the View
|
|
*
|
|
* @generated from protobuf field: bool IsPrivate = 7 [json_name = "IsPrivate"];
|
|
*/
|
|
isPrivate: boolean;
|
|
}
|
|
/**
|
|
* ID of the created View
|
|
*
|
|
* @generated from protobuf message vizapi.CreateViewResult
|
|
*/
|
|
export interface CreateViewResult {
|
|
/**
|
|
* Identifier of the View
|
|
*
|
|
* @generated from protobuf field: string ViewID = 1 [json_name = "ViewID"];
|
|
*/
|
|
viewID: string;
|
|
}
|
|
/**
|
|
* Information that needs to be updated
|
|
*
|
|
* @generated from protobuf message vizapi.UpdateViewRequest
|
|
*/
|
|
export interface UpdateViewRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
|
|
*/
|
|
header?: RequestProjectHeader;
|
|
/**
|
|
* Identifier of the View
|
|
*
|
|
* @generated from protobuf field: string ViewID = 2 [json_name = "ViewID"];
|
|
*/
|
|
viewID: string;
|
|
/**
|
|
* Name of the View
|
|
*
|
|
* @generated from protobuf field: string Name = 3 [json_name = "Name"];
|
|
*/
|
|
name: string;
|
|
/**
|
|
* Identifier of the Screen
|
|
*
|
|
* @generated from protobuf field: string ScreenID = 4 [json_name = "ScreenID"];
|
|
*/
|
|
screenID: string;
|
|
/**
|
|
* Content of the View
|
|
*
|
|
* @generated from protobuf field: string Payload = 6 [json_name = "Payload"];
|
|
*/
|
|
payload: string;
|
|
/**
|
|
* Visibility of the View
|
|
*
|
|
* @generated from protobuf field: bool IsPrivate = 8 [json_name = "IsPrivate"];
|
|
*/
|
|
isPrivate: boolean;
|
|
}
|
|
/**
|
|
* Updated View ID
|
|
*
|
|
* @generated from protobuf message vizapi.UpdateViewResult
|
|
*/
|
|
export interface UpdateViewResult {
|
|
/**
|
|
* Identifier of the View
|
|
*
|
|
* @generated from protobuf field: string ViewID = 1 [json_name = "ViewID"];
|
|
*/
|
|
viewID: string;
|
|
}
|
|
/**
|
|
* IDs of the View to be deleted
|
|
*
|
|
* @generated from protobuf message vizapi.DeleteViewRequest
|
|
*/
|
|
export interface DeleteViewRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
|
|
*/
|
|
header?: RequestProjectHeader;
|
|
/**
|
|
* Identifier of the View
|
|
*
|
|
* @generated from protobuf field: string ViewID = 2 [json_name = "ViewID"];
|
|
*/
|
|
viewID: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message vizapi.DeleteViewResult
|
|
*/
|
|
export interface DeleteViewResult {
|
|
}
|
|
/**
|
|
* @generated from protobuf message vizapi.ListViewRequest
|
|
*/
|
|
export interface ListViewRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
|
|
*/
|
|
header?: RequestProjectHeader;
|
|
/**
|
|
* Identifier of the Screen
|
|
*
|
|
* @generated from protobuf field: string ScreenID = 2 [json_name = "ScreenID"];
|
|
*/
|
|
screenID: string;
|
|
}
|
|
/**
|
|
* List of Views
|
|
*
|
|
* @generated from protobuf message vizapi.ListViewResult
|
|
*/
|
|
export interface ListViewResult {
|
|
/**
|
|
* All information in a View
|
|
*
|
|
* @generated from protobuf field: repeated vizapi.ComposedUserView Results = 1 [json_name = "Results"];
|
|
*/
|
|
results: ComposedUserView[];
|
|
}
|
|
/**
|
|
* @generated from protobuf message vizapi.DeleteViewsForProjectRequest
|
|
*/
|
|
export interface DeleteViewsForProjectRequest {
|
|
/**
|
|
* Identifier of the Project
|
|
*
|
|
* @generated from protobuf field: string ProjectID = 1 [json_name = "ProjectID"];
|
|
*/
|
|
projectID: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message vizapi.DeleteViewsForProjectResult
|
|
*/
|
|
export interface DeleteViewsForProjectResult {
|
|
}
|
|
/**
|
|
* @generated from protobuf message vizapi.TranslationMap
|
|
*/
|
|
export interface TranslationMap {
|
|
/**
|
|
* @generated from protobuf field: map<string, string> data = 1;
|
|
*/
|
|
data: {
|
|
[key: string]: string;
|
|
};
|
|
}
|
|
/**
|
|
* @generated from protobuf message vizapi.ExtractColumnFormat
|
|
*/
|
|
export interface ExtractColumnFormat {
|
|
/**
|
|
* @generated from protobuf field: vizapi.ExtractColumnFormat.type Type = 1 [json_name = "Type"];
|
|
*/
|
|
type: ExtractColumnFormat_type;
|
|
/**
|
|
* @generated from protobuf field: string Format = 2 [json_name = "Format"];
|
|
*/
|
|
format: string;
|
|
/**
|
|
* @generated from protobuf field: vizapi.DisplayDate DisplayDate = 3 [json_name = "DisplayDate"];
|
|
*/
|
|
displayDate: DisplayDate;
|
|
}
|
|
/**
|
|
* @generated from protobuf enum vizapi.ExtractColumnFormat.type
|
|
*/
|
|
export enum ExtractColumnFormat_type {
|
|
/**
|
|
* @generated from protobuf enum value: UNKNOWN = 0;
|
|
*/
|
|
UNKNOWN = 0,
|
|
/**
|
|
* @generated from protobuf enum value: DATE = 1;
|
|
*/
|
|
DATE = 1,
|
|
/**
|
|
* @generated from protobuf enum value: SUFFIX = 2;
|
|
*/
|
|
SUFFIX = 2,
|
|
/**
|
|
* @generated from protobuf enum value: NUMBER = 3;
|
|
*/
|
|
NUMBER = 3
|
|
}
|
|
/**
|
|
* @generated from protobuf message vizapi.ExtractRequest
|
|
*/
|
|
export interface ExtractRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
|
|
*/
|
|
header?: RequestProjectHeader;
|
|
/**
|
|
* @generated from protobuf field: string ViewID = 2 [json_name = "ViewID"];
|
|
*/
|
|
viewID: string;
|
|
/**
|
|
* BlockFilter structure for Find query
|
|
*
|
|
* @generated from protobuf field: repeated api.BlockFilter BlockFilters = 3 [json_name = "BlockFilters"];
|
|
*/
|
|
blockFilters: BlockFilter[];
|
|
/**
|
|
* Range filter structure for Find query
|
|
*
|
|
* @generated from protobuf field: string ListSeparator = 4 [json_name = "ListSeparator"];
|
|
*/
|
|
listSeparator: string;
|
|
/**
|
|
* @generated from protobuf field: string DecimalSeparator = 5 [json_name = "DecimalSeparator"];
|
|
*/
|
|
decimalSeparator: string;
|
|
/**
|
|
* @generated from protobuf field: map<string, vizapi.TranslationMap> ColumnTranslationMaps = 8 [json_name = "ColumnTranslationMaps"];
|
|
*/
|
|
columnTranslationMaps: {
|
|
[key: string]: TranslationMap;
|
|
};
|
|
/**
|
|
* @generated from protobuf field: map<int32, vizapi.ExtractColumnFormat> ColumnFormats = 9 [json_name = "ColumnFormats"];
|
|
*/
|
|
columnFormats: {
|
|
[key: number]: ExtractColumnFormat;
|
|
};
|
|
/**
|
|
* @generated from protobuf field: string TargetTimeZone = 10 [json_name = "TargetTimeZone"];
|
|
*/
|
|
targetTimeZone: string;
|
|
/**
|
|
* @generated from protobuf field: string DateFormat = 11 [json_name = "DateFormat"];
|
|
*/
|
|
dateFormat: string;
|
|
/**
|
|
* @generated from protobuf field: string NumberFormat = 12 [json_name = "NumberFormat"];
|
|
*/
|
|
numberFormat: string;
|
|
/**
|
|
* @generated from protobuf field: vizapi.TimeFormat TimeFormat = 13 [json_name = "TimeFormat"];
|
|
*/
|
|
timeFormat: TimeFormat;
|
|
}
|
|
/**
|
|
* @generated from protobuf message vizapi.ExtractResult
|
|
*/
|
|
export interface ExtractResult {
|
|
/**
|
|
* @generated from protobuf field: string WorkflowID = 1 [json_name = "WorkflowID"];
|
|
*/
|
|
workflowID: string;
|
|
/**
|
|
* @generated from protobuf field: string RunID = 2 [json_name = "RunID"];
|
|
*/
|
|
runID: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf enum vizapi.TimeFormat
|
|
*/
|
|
export enum TimeFormat {
|
|
/**
|
|
* @generated from protobuf enum value: H12 = 0;
|
|
*/
|
|
H12 = 0,
|
|
/**
|
|
* @generated from protobuf enum value: H23 = 1;
|
|
*/
|
|
H23 = 1,
|
|
/**
|
|
* @generated from protobuf enum value: H24 = 2;
|
|
*/
|
|
H24 = 2
|
|
}
|
|
/**
|
|
* @generated from protobuf enum vizapi.DisplayDate
|
|
*/
|
|
export enum DisplayDate {
|
|
/**
|
|
* @generated from protobuf enum value: DATE = 0;
|
|
*/
|
|
DATE = 0,
|
|
/**
|
|
* @generated from protobuf enum value: DATE_TIME = 1;
|
|
*/
|
|
DATE_TIME = 1,
|
|
/**
|
|
* @generated from protobuf enum value: TIME = 2;
|
|
*/
|
|
TIME = 2
|
|
}
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class View$Type extends MessageType<View> {
|
|
constructor() {
|
|
super("vizapi.View", [
|
|
{ no: 1, name: "ViewID", kind: "scalar", jsonName: "ViewID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the View" } } },
|
|
{ no: 2, name: "ProjectID", kind: "scalar", 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" } } } },
|
|
{ no: 3, name: "ScreenID", kind: "scalar", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the screen" } } },
|
|
{ no: 4, name: "CreateUserID", kind: "scalar", 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", jsonName: "UpdateUserID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the user who did last update" } } },
|
|
{ no: 6, name: "CreateDateTime", kind: "scalar", jsonName: "CreateDateTime", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Date of creation in <a href='https://en.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format with time zone (accepted tzd formats: [+01:00, -01:00, Z]" } } },
|
|
{ no: 7, name: "UpdateDateTime", kind: "scalar", jsonName: "UpdateDateTime", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Date of last update in <a href='https://en.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format with time zone (accepted tzd formats: [+01:00, -01:00, Z]" } } },
|
|
{ no: 10, name: "Payload", kind: "scalar", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content of the View" } } },
|
|
{ no: 12, name: "IsPrivate", kind: "scalar", jsonName: "IsPrivate", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Visibility of the View" } } },
|
|
{ no: 13, name: "Name", kind: "scalar", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the View" } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID"] } } });
|
|
}
|
|
create(value?: PartialMessage<View>): View {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.viewID = "";
|
|
message.projectID = "";
|
|
message.screenID = "";
|
|
message.createUserID = "";
|
|
message.updateUserID = "";
|
|
message.createDateTime = "";
|
|
message.updateDateTime = "";
|
|
message.payload = "";
|
|
message.isPrivate = false;
|
|
message.name = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<View>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: View): View {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string ViewID = 1 [json_name = "ViewID"];*/ 1:
|
|
message.viewID = reader.string();
|
|
break;
|
|
case /* string ProjectID = 2 [json_name = "ProjectID"];*/ 2:
|
|
message.projectID = reader.string();
|
|
break;
|
|
case /* string ScreenID = 3 [json_name = "ScreenID"];*/ 3:
|
|
message.screenID = reader.string();
|
|
break;
|
|
case /* string CreateUserID = 4 [json_name = "CreateUserID"];*/ 4:
|
|
message.createUserID = reader.string();
|
|
break;
|
|
case /* string UpdateUserID = 5 [json_name = "UpdateUserID"];*/ 5:
|
|
message.updateUserID = reader.string();
|
|
break;
|
|
case /* string CreateDateTime = 6 [json_name = "CreateDateTime"];*/ 6:
|
|
message.createDateTime = reader.string();
|
|
break;
|
|
case /* string UpdateDateTime = 7 [json_name = "UpdateDateTime"];*/ 7:
|
|
message.updateDateTime = reader.string();
|
|
break;
|
|
case /* string Payload = 10 [json_name = "Payload"];*/ 10:
|
|
message.payload = reader.string();
|
|
break;
|
|
case /* bool IsPrivate = 12 [json_name = "IsPrivate"];*/ 12:
|
|
message.isPrivate = reader.bool();
|
|
break;
|
|
case /* string Name = 13 [json_name = "Name"];*/ 13:
|
|
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: View, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string ViewID = 1 [json_name = "ViewID"]; */
|
|
if (message.viewID !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.viewID);
|
|
/* string ProjectID = 2 [json_name = "ProjectID"]; */
|
|
if (message.projectID !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.projectID);
|
|
/* string ScreenID = 3 [json_name = "ScreenID"]; */
|
|
if (message.screenID !== "")
|
|
writer.tag(3, WireType.LengthDelimited).string(message.screenID);
|
|
/* string CreateUserID = 4 [json_name = "CreateUserID"]; */
|
|
if (message.createUserID !== "")
|
|
writer.tag(4, WireType.LengthDelimited).string(message.createUserID);
|
|
/* string UpdateUserID = 5 [json_name = "UpdateUserID"]; */
|
|
if (message.updateUserID !== "")
|
|
writer.tag(5, WireType.LengthDelimited).string(message.updateUserID);
|
|
/* string CreateDateTime = 6 [json_name = "CreateDateTime"]; */
|
|
if (message.createDateTime !== "")
|
|
writer.tag(6, WireType.LengthDelimited).string(message.createDateTime);
|
|
/* string UpdateDateTime = 7 [json_name = "UpdateDateTime"]; */
|
|
if (message.updateDateTime !== "")
|
|
writer.tag(7, WireType.LengthDelimited).string(message.updateDateTime);
|
|
/* string Payload = 10 [json_name = "Payload"]; */
|
|
if (message.payload !== "")
|
|
writer.tag(10, WireType.LengthDelimited).string(message.payload);
|
|
/* bool IsPrivate = 12 [json_name = "IsPrivate"]; */
|
|
if (message.isPrivate !== false)
|
|
writer.tag(12, WireType.Varint).bool(message.isPrivate);
|
|
/* string Name = 13 [json_name = "Name"]; */
|
|
if (message.name !== "")
|
|
writer.tag(13, 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.View
|
|
*/
|
|
export const View = new View$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ComposedUserView$Type extends MessageType<ComposedUserView> {
|
|
constructor() {
|
|
super("vizapi.ComposedUserView", [
|
|
{ no: 1, name: "ViewID", kind: "scalar", jsonName: "ViewID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the View" } } },
|
|
{ no: 2, name: "Name", kind: "scalar", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the View" } } },
|
|
{ no: 3, name: "UserID", kind: "scalar", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the User" } } },
|
|
{ no: 4, name: "ProjectID", kind: "scalar", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Project" } } },
|
|
{ no: 5, name: "ScreenID", kind: "scalar", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Screen" } } },
|
|
{ no: 6, name: "Payload", kind: "scalar", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content of the View" } } },
|
|
{ no: 9, name: "IsPrivate", kind: "scalar", jsonName: "IsPrivate", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Visibility of the View" } } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<ComposedUserView>): ComposedUserView {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.viewID = "";
|
|
message.name = "";
|
|
message.userID = "";
|
|
message.projectID = "";
|
|
message.screenID = "";
|
|
message.payload = "";
|
|
message.isPrivate = false;
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ComposedUserView>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ComposedUserView): ComposedUserView {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string ViewID = 1 [json_name = "ViewID"];*/ 1:
|
|
message.viewID = reader.string();
|
|
break;
|
|
case /* string Name = 2 [json_name = "Name"];*/ 2:
|
|
message.name = reader.string();
|
|
break;
|
|
case /* string UserID = 3 [json_name = "UserID"];*/ 3:
|
|
message.userID = reader.string();
|
|
break;
|
|
case /* string ProjectID = 4 [json_name = "ProjectID"];*/ 4:
|
|
message.projectID = reader.string();
|
|
break;
|
|
case /* string ScreenID = 5 [json_name = "ScreenID"];*/ 5:
|
|
message.screenID = reader.string();
|
|
break;
|
|
case /* string Payload = 6 [json_name = "Payload"];*/ 6:
|
|
message.payload = reader.string();
|
|
break;
|
|
case /* bool IsPrivate = 9 [json_name = "IsPrivate"];*/ 9:
|
|
message.isPrivate = reader.bool();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: ComposedUserView, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string ViewID = 1 [json_name = "ViewID"]; */
|
|
if (message.viewID !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.viewID);
|
|
/* string Name = 2 [json_name = "Name"]; */
|
|
if (message.name !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
/* string UserID = 3 [json_name = "UserID"]; */
|
|
if (message.userID !== "")
|
|
writer.tag(3, WireType.LengthDelimited).string(message.userID);
|
|
/* string ProjectID = 4 [json_name = "ProjectID"]; */
|
|
if (message.projectID !== "")
|
|
writer.tag(4, WireType.LengthDelimited).string(message.projectID);
|
|
/* string ScreenID = 5 [json_name = "ScreenID"]; */
|
|
if (message.screenID !== "")
|
|
writer.tag(5, WireType.LengthDelimited).string(message.screenID);
|
|
/* string Payload = 6 [json_name = "Payload"]; */
|
|
if (message.payload !== "")
|
|
writer.tag(6, WireType.LengthDelimited).string(message.payload);
|
|
/* bool IsPrivate = 9 [json_name = "IsPrivate"]; */
|
|
if (message.isPrivate !== false)
|
|
writer.tag(9, WireType.Varint).bool(message.isPrivate);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message vizapi.ComposedUserView
|
|
*/
|
|
export const ComposedUserView = new ComposedUserView$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GetViewRequest$Type extends MessageType<GetViewRequest> {
|
|
constructor() {
|
|
super("vizapi.GetViewRequest", [
|
|
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "ViewID", kind: "scalar", jsonName: "ViewID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the View" }, "validate.rules": { string: { minLen: "1" } } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "IDs of the View", required: ["Header", "ViewID"] } } });
|
|
}
|
|
create(value?: PartialMessage<GetViewRequest>): GetViewRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.viewID = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GetViewRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetViewRequest): GetViewRequest {
|
|
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 [json_name = "Header"];*/ 1:
|
|
message.header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.header);
|
|
break;
|
|
case /* string ViewID = 2 [json_name = "ViewID"];*/ 2:
|
|
message.viewID = 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: GetViewRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.RequestProjectHeader Header = 1 [json_name = "Header"]; */
|
|
if (message.header)
|
|
RequestProjectHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* string ViewID = 2 [json_name = "ViewID"]; */
|
|
if (message.viewID !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.viewID);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message vizapi.GetViewRequest
|
|
*/
|
|
export const GetViewRequest = new GetViewRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GetViewResult$Type extends MessageType<GetViewResult> {
|
|
constructor() {
|
|
super("vizapi.GetViewResult", [
|
|
{ no: 1, name: "Result", kind: "message", jsonName: "Result", T: () => ComposedUserView }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "All information about the View" } } });
|
|
}
|
|
create(value?: PartialMessage<GetViewResult>): GetViewResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GetViewResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetViewResult): GetViewResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* vizapi.ComposedUserView Result = 1 [json_name = "Result"];*/ 1:
|
|
message.result = ComposedUserView.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: GetViewResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* vizapi.ComposedUserView Result = 1 [json_name = "Result"]; */
|
|
if (message.result)
|
|
ComposedUserView.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.GetViewResult
|
|
*/
|
|
export const GetViewResult = new GetViewResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class CreateViewRequest$Type extends MessageType<CreateViewRequest> {
|
|
constructor() {
|
|
super("vizapi.CreateViewRequest", [
|
|
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "Name", kind: "scalar", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the View" }, "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 3, name: "ScreenID", kind: "scalar", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Screen" }, "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 5, name: "Payload", kind: "scalar", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content of the View" } } },
|
|
{ no: 7, name: "IsPrivate", kind: "scalar", jsonName: "IsPrivate", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Visibility of the View" } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Information that needs to be stored", required: ["Header", "Name", "ScreenID"] } } });
|
|
}
|
|
create(value?: PartialMessage<CreateViewRequest>): CreateViewRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.name = "";
|
|
message.screenID = "";
|
|
message.payload = "";
|
|
message.isPrivate = false;
|
|
if (value !== undefined)
|
|
reflectionMergePartial<CreateViewRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateViewRequest): CreateViewRequest {
|
|
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 [json_name = "Header"];*/ 1:
|
|
message.header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.header);
|
|
break;
|
|
case /* string Name = 2 [json_name = "Name"];*/ 2:
|
|
message.name = reader.string();
|
|
break;
|
|
case /* string ScreenID = 3 [json_name = "ScreenID"];*/ 3:
|
|
message.screenID = reader.string();
|
|
break;
|
|
case /* string Payload = 5 [json_name = "Payload"];*/ 5:
|
|
message.payload = reader.string();
|
|
break;
|
|
case /* bool IsPrivate = 7 [json_name = "IsPrivate"];*/ 7:
|
|
message.isPrivate = reader.bool();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: CreateViewRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.RequestProjectHeader Header = 1 [json_name = "Header"]; */
|
|
if (message.header)
|
|
RequestProjectHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* string Name = 2 [json_name = "Name"]; */
|
|
if (message.name !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
/* string ScreenID = 3 [json_name = "ScreenID"]; */
|
|
if (message.screenID !== "")
|
|
writer.tag(3, WireType.LengthDelimited).string(message.screenID);
|
|
/* string Payload = 5 [json_name = "Payload"]; */
|
|
if (message.payload !== "")
|
|
writer.tag(5, WireType.LengthDelimited).string(message.payload);
|
|
/* bool IsPrivate = 7 [json_name = "IsPrivate"]; */
|
|
if (message.isPrivate !== false)
|
|
writer.tag(7, WireType.Varint).bool(message.isPrivate);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message vizapi.CreateViewRequest
|
|
*/
|
|
export const CreateViewRequest = new CreateViewRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class CreateViewResult$Type extends MessageType<CreateViewResult> {
|
|
constructor() {
|
|
super("vizapi.CreateViewResult", [
|
|
{ no: 1, name: "ViewID", kind: "scalar", jsonName: "ViewID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the View" } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "ID of the created View" } } });
|
|
}
|
|
create(value?: PartialMessage<CreateViewResult>): CreateViewResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.viewID = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<CreateViewResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateViewResult): CreateViewResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string ViewID = 1 [json_name = "ViewID"];*/ 1:
|
|
message.viewID = 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: CreateViewResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string ViewID = 1 [json_name = "ViewID"]; */
|
|
if (message.viewID !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.viewID);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message vizapi.CreateViewResult
|
|
*/
|
|
export const CreateViewResult = new CreateViewResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class UpdateViewRequest$Type extends MessageType<UpdateViewRequest> {
|
|
constructor() {
|
|
super("vizapi.UpdateViewRequest", [
|
|
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "ViewID", kind: "scalar", jsonName: "ViewID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the View" }, "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 3, name: "Name", kind: "scalar", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the View" }, "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 4, name: "ScreenID", kind: "scalar", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Screen" }, "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 6, name: "Payload", kind: "scalar", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content of the View" }, "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 8, name: "IsPrivate", kind: "scalar", jsonName: "IsPrivate", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Visibility of the View" } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Information that needs to be updated", required: ["Header", "ViewID", "Name", "ScreenID", "Payload"] } } });
|
|
}
|
|
create(value?: PartialMessage<UpdateViewRequest>): UpdateViewRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.viewID = "";
|
|
message.name = "";
|
|
message.screenID = "";
|
|
message.payload = "";
|
|
message.isPrivate = false;
|
|
if (value !== undefined)
|
|
reflectionMergePartial<UpdateViewRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateViewRequest): UpdateViewRequest {
|
|
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 [json_name = "Header"];*/ 1:
|
|
message.header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.header);
|
|
break;
|
|
case /* string ViewID = 2 [json_name = "ViewID"];*/ 2:
|
|
message.viewID = reader.string();
|
|
break;
|
|
case /* string Name = 3 [json_name = "Name"];*/ 3:
|
|
message.name = reader.string();
|
|
break;
|
|
case /* string ScreenID = 4 [json_name = "ScreenID"];*/ 4:
|
|
message.screenID = reader.string();
|
|
break;
|
|
case /* string Payload = 6 [json_name = "Payload"];*/ 6:
|
|
message.payload = reader.string();
|
|
break;
|
|
case /* bool IsPrivate = 8 [json_name = "IsPrivate"];*/ 8:
|
|
message.isPrivate = reader.bool();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: UpdateViewRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.RequestProjectHeader Header = 1 [json_name = "Header"]; */
|
|
if (message.header)
|
|
RequestProjectHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* string ViewID = 2 [json_name = "ViewID"]; */
|
|
if (message.viewID !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.viewID);
|
|
/* string Name = 3 [json_name = "Name"]; */
|
|
if (message.name !== "")
|
|
writer.tag(3, WireType.LengthDelimited).string(message.name);
|
|
/* string ScreenID = 4 [json_name = "ScreenID"]; */
|
|
if (message.screenID !== "")
|
|
writer.tag(4, WireType.LengthDelimited).string(message.screenID);
|
|
/* string Payload = 6 [json_name = "Payload"]; */
|
|
if (message.payload !== "")
|
|
writer.tag(6, WireType.LengthDelimited).string(message.payload);
|
|
/* bool IsPrivate = 8 [json_name = "IsPrivate"]; */
|
|
if (message.isPrivate !== false)
|
|
writer.tag(8, WireType.Varint).bool(message.isPrivate);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message vizapi.UpdateViewRequest
|
|
*/
|
|
export const UpdateViewRequest = new UpdateViewRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class UpdateViewResult$Type extends MessageType<UpdateViewResult> {
|
|
constructor() {
|
|
super("vizapi.UpdateViewResult", [
|
|
{ no: 1, name: "ViewID", kind: "scalar", jsonName: "ViewID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the View" } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Updated View ID" } } });
|
|
}
|
|
create(value?: PartialMessage<UpdateViewResult>): UpdateViewResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.viewID = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<UpdateViewResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateViewResult): UpdateViewResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string ViewID = 1 [json_name = "ViewID"];*/ 1:
|
|
message.viewID = 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: UpdateViewResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string ViewID = 1 [json_name = "ViewID"]; */
|
|
if (message.viewID !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.viewID);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message vizapi.UpdateViewResult
|
|
*/
|
|
export const UpdateViewResult = new UpdateViewResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeleteViewRequest$Type extends MessageType<DeleteViewRequest> {
|
|
constructor() {
|
|
super("vizapi.DeleteViewRequest", [
|
|
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "ViewID", kind: "scalar", jsonName: "ViewID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the View" }, "validate.rules": { string: { minLen: "1" } } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "IDs of the View to be deleted", required: ["Header", "ViewID"] } } });
|
|
}
|
|
create(value?: PartialMessage<DeleteViewRequest>): DeleteViewRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.viewID = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeleteViewRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteViewRequest): DeleteViewRequest {
|
|
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 [json_name = "Header"];*/ 1:
|
|
message.header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.header);
|
|
break;
|
|
case /* string ViewID = 2 [json_name = "ViewID"];*/ 2:
|
|
message.viewID = 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: DeleteViewRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.RequestProjectHeader Header = 1 [json_name = "Header"]; */
|
|
if (message.header)
|
|
RequestProjectHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* string ViewID = 2 [json_name = "ViewID"]; */
|
|
if (message.viewID !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.viewID);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message vizapi.DeleteViewRequest
|
|
*/
|
|
export const DeleteViewRequest = new DeleteViewRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeleteViewResult$Type extends MessageType<DeleteViewResult> {
|
|
constructor() {
|
|
super("vizapi.DeleteViewResult", []);
|
|
}
|
|
create(value?: PartialMessage<DeleteViewResult>): DeleteViewResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeleteViewResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteViewResult): DeleteViewResult {
|
|
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: DeleteViewResult, 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.DeleteViewResult
|
|
*/
|
|
export const DeleteViewResult = new DeleteViewResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ListViewRequest$Type extends MessageType<ListViewRequest> {
|
|
constructor() {
|
|
super("vizapi.ListViewRequest", [
|
|
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "ScreenID", kind: "scalar", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Screen" } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
|
|
}
|
|
create(value?: PartialMessage<ListViewRequest>): ListViewRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.screenID = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ListViewRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListViewRequest): ListViewRequest {
|
|
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 [json_name = "Header"];*/ 1:
|
|
message.header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.header);
|
|
break;
|
|
case /* string ScreenID = 2 [json_name = "ScreenID"];*/ 2:
|
|
message.screenID = 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: ListViewRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.RequestProjectHeader Header = 1 [json_name = "Header"]; */
|
|
if (message.header)
|
|
RequestProjectHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* string ScreenID = 2 [json_name = "ScreenID"]; */
|
|
if (message.screenID !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.screenID);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message vizapi.ListViewRequest
|
|
*/
|
|
export const ListViewRequest = new ListViewRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ListViewResult$Type extends MessageType<ListViewResult> {
|
|
constructor() {
|
|
super("vizapi.ListViewResult", [
|
|
{ no: 1, name: "Results", kind: "message", jsonName: "Results", repeat: 1 /*RepeatType.PACKED*/, T: () => ComposedUserView, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "All information in a View" } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "List of Views" } } });
|
|
}
|
|
create(value?: PartialMessage<ListViewResult>): ListViewResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.results = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ListViewResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListViewResult): ListViewResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* repeated vizapi.ComposedUserView Results = 1 [json_name = "Results"];*/ 1:
|
|
message.results.push(ComposedUserView.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: ListViewResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* repeated vizapi.ComposedUserView Results = 1 [json_name = "Results"]; */
|
|
for (let i = 0; i < message.results.length; i++)
|
|
ComposedUserView.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.ListViewResult
|
|
*/
|
|
export const ListViewResult = new ListViewResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeleteViewsForProjectRequest$Type extends MessageType<DeleteViewsForProjectRequest> {
|
|
constructor() {
|
|
super("vizapi.DeleteViewsForProjectRequest", [
|
|
{ no: 1, name: "ProjectID", kind: "scalar", 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: { required: ["ProjectID"] } } });
|
|
}
|
|
create(value?: PartialMessage<DeleteViewsForProjectRequest>): DeleteViewsForProjectRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.projectID = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeleteViewsForProjectRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteViewsForProjectRequest): DeleteViewsForProjectRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string ProjectID = 1 [json_name = "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: DeleteViewsForProjectRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string ProjectID = 1 [json_name = "ProjectID"]; */
|
|
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.DeleteViewsForProjectRequest
|
|
*/
|
|
export const DeleteViewsForProjectRequest = new DeleteViewsForProjectRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeleteViewsForProjectResult$Type extends MessageType<DeleteViewsForProjectResult> {
|
|
constructor() {
|
|
super("vizapi.DeleteViewsForProjectResult", []);
|
|
}
|
|
create(value?: PartialMessage<DeleteViewsForProjectResult>): DeleteViewsForProjectResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeleteViewsForProjectResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteViewsForProjectResult): DeleteViewsForProjectResult {
|
|
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: DeleteViewsForProjectResult, 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.DeleteViewsForProjectResult
|
|
*/
|
|
export const DeleteViewsForProjectResult = new DeleteViewsForProjectResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class TranslationMap$Type extends MessageType<TranslationMap> {
|
|
constructor() {
|
|
super("vizapi.TranslationMap", [
|
|
{ no: 1, name: "data", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<TranslationMap>): TranslationMap {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.data = {};
|
|
if (value !== undefined)
|
|
reflectionMergePartial<TranslationMap>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TranslationMap): TranslationMap {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* map<string, string> data */ 1:
|
|
this.binaryReadMap1(message.data, reader, options);
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
private binaryReadMap1(map: TranslationMap["data"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
|
let len = reader.uint32(), end = reader.pos + len, key: keyof TranslationMap["data"] | undefined, val: TranslationMap["data"][any] | undefined;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case 1:
|
|
key = reader.string();
|
|
break;
|
|
case 2:
|
|
val = reader.string();
|
|
break;
|
|
default: throw new globalThis.Error("unknown map entry field for field vizapi.TranslationMap.data");
|
|
}
|
|
}
|
|
map[key ?? ""] = val ?? "";
|
|
}
|
|
internalBinaryWrite(message: TranslationMap, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* map<string, string> data = 1; */
|
|
for (let k of globalThis.Object.keys(message.data))
|
|
writer.tag(1, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.data[k]).join();
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message vizapi.TranslationMap
|
|
*/
|
|
export const TranslationMap = new TranslationMap$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ExtractColumnFormat$Type extends MessageType<ExtractColumnFormat> {
|
|
constructor() {
|
|
super("vizapi.ExtractColumnFormat", [
|
|
{ no: 1, name: "Type", kind: "enum", jsonName: "Type", T: () => ["vizapi.ExtractColumnFormat.type", ExtractColumnFormat_type] },
|
|
{ no: 2, name: "Format", kind: "scalar", jsonName: "Format", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 3, name: "DisplayDate", kind: "enum", jsonName: "DisplayDate", T: () => ["vizapi.DisplayDate", DisplayDate] }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<ExtractColumnFormat>): ExtractColumnFormat {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.type = 0;
|
|
message.format = "";
|
|
message.displayDate = 0;
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ExtractColumnFormat>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExtractColumnFormat): ExtractColumnFormat {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* vizapi.ExtractColumnFormat.type Type = 1 [json_name = "Type"];*/ 1:
|
|
message.type = reader.int32();
|
|
break;
|
|
case /* string Format = 2 [json_name = "Format"];*/ 2:
|
|
message.format = reader.string();
|
|
break;
|
|
case /* vizapi.DisplayDate DisplayDate = 3 [json_name = "DisplayDate"];*/ 3:
|
|
message.displayDate = reader.int32();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: ExtractColumnFormat, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* vizapi.ExtractColumnFormat.type Type = 1 [json_name = "Type"]; */
|
|
if (message.type !== 0)
|
|
writer.tag(1, WireType.Varint).int32(message.type);
|
|
/* string Format = 2 [json_name = "Format"]; */
|
|
if (message.format !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.format);
|
|
/* vizapi.DisplayDate DisplayDate = 3 [json_name = "DisplayDate"]; */
|
|
if (message.displayDate !== 0)
|
|
writer.tag(3, WireType.Varint).int32(message.displayDate);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message vizapi.ExtractColumnFormat
|
|
*/
|
|
export const ExtractColumnFormat = new ExtractColumnFormat$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ExtractRequest$Type extends MessageType<ExtractRequest> {
|
|
constructor() {
|
|
super("vizapi.ExtractRequest", [
|
|
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "ViewID", kind: "scalar", jsonName: "ViewID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 3, name: "BlockFilters", kind: "message", jsonName: "BlockFilters", repeat: 1 /*RepeatType.PACKED*/, T: () => BlockFilter, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "BlockFilter structure for Find query" } } },
|
|
{ no: 4, name: "ListSeparator", kind: "scalar", jsonName: "ListSeparator", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Separator for list to use in the csv" }, "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 5, name: "DecimalSeparator", kind: "scalar", jsonName: "DecimalSeparator", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Separator for decimal to use in the csv" }, "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 8, name: "ColumnTranslationMaps", kind: "map", jsonName: "ColumnTranslationMaps", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => TranslationMap } },
|
|
{ no: 9, name: "ColumnFormats", kind: "map", jsonName: "ColumnFormats", K: 5 /*ScalarType.INT32*/, V: { kind: "message", T: () => ExtractColumnFormat } },
|
|
{ no: 10, name: "TargetTimeZone", kind: "scalar", jsonName: "TargetTimeZone", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Target user time zone <a href='https://en.wikipedia.org/wiki/List_of_tz_database_time_zones'>format</a>", example: "\"Europe/Paris\"" }, "validate.rules": { string: { minLen: "1", tzData: true } } } },
|
|
{ no: 11, name: "DateFormat", kind: "scalar", jsonName: "DateFormat", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Language code to format dates <a href='https://en.wikipedia.org/wiki/ISO_639'>format</a>", example: "\"en-US\"" } } },
|
|
{ no: 12, name: "NumberFormat", kind: "scalar", jsonName: "NumberFormat", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Language code to format numbers <a href='https://en.wikipedia.org/wiki/ISO_639'>format</a>", example: "\"en-US\"" } } },
|
|
{ no: 13, name: "TimeFormat", kind: "enum", jsonName: "TimeFormat", T: () => ["vizapi.TimeFormat", TimeFormat], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Hour clock time format" } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ViewID", "ListSeparator", "DecimalSeparator"] } } });
|
|
}
|
|
create(value?: PartialMessage<ExtractRequest>): ExtractRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.viewID = "";
|
|
message.blockFilters = [];
|
|
message.listSeparator = "";
|
|
message.decimalSeparator = "";
|
|
message.columnTranslationMaps = {};
|
|
message.columnFormats = {};
|
|
message.targetTimeZone = "";
|
|
message.dateFormat = "";
|
|
message.numberFormat = "";
|
|
message.timeFormat = 0;
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ExtractRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExtractRequest): ExtractRequest {
|
|
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 [json_name = "Header"];*/ 1:
|
|
message.header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.header);
|
|
break;
|
|
case /* string ViewID = 2 [json_name = "ViewID"];*/ 2:
|
|
message.viewID = reader.string();
|
|
break;
|
|
case /* repeated api.BlockFilter BlockFilters = 3 [json_name = "BlockFilters"];*/ 3:
|
|
message.blockFilters.push(BlockFilter.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
case /* string ListSeparator = 4 [json_name = "ListSeparator"];*/ 4:
|
|
message.listSeparator = reader.string();
|
|
break;
|
|
case /* string DecimalSeparator = 5 [json_name = "DecimalSeparator"];*/ 5:
|
|
message.decimalSeparator = reader.string();
|
|
break;
|
|
case /* map<string, vizapi.TranslationMap> ColumnTranslationMaps = 8 [json_name = "ColumnTranslationMaps"];*/ 8:
|
|
this.binaryReadMap8(message.columnTranslationMaps, reader, options);
|
|
break;
|
|
case /* map<int32, vizapi.ExtractColumnFormat> ColumnFormats = 9 [json_name = "ColumnFormats"];*/ 9:
|
|
this.binaryReadMap9(message.columnFormats, reader, options);
|
|
break;
|
|
case /* string TargetTimeZone = 10 [json_name = "TargetTimeZone"];*/ 10:
|
|
message.targetTimeZone = reader.string();
|
|
break;
|
|
case /* string DateFormat = 11 [json_name = "DateFormat"];*/ 11:
|
|
message.dateFormat = reader.string();
|
|
break;
|
|
case /* string NumberFormat = 12 [json_name = "NumberFormat"];*/ 12:
|
|
message.numberFormat = reader.string();
|
|
break;
|
|
case /* vizapi.TimeFormat TimeFormat = 13 [json_name = "TimeFormat"];*/ 13:
|
|
message.timeFormat = reader.int32();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
private binaryReadMap8(map: ExtractRequest["columnTranslationMaps"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
|
let len = reader.uint32(), end = reader.pos + len, key: keyof ExtractRequest["columnTranslationMaps"] | undefined, val: ExtractRequest["columnTranslationMaps"][any] | undefined;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case 1:
|
|
key = reader.string();
|
|
break;
|
|
case 2:
|
|
val = TranslationMap.internalBinaryRead(reader, reader.uint32(), options);
|
|
break;
|
|
default: throw new globalThis.Error("unknown map entry field for field vizapi.ExtractRequest.ColumnTranslationMaps");
|
|
}
|
|
}
|
|
map[key ?? ""] = val ?? TranslationMap.create();
|
|
}
|
|
private binaryReadMap9(map: ExtractRequest["columnFormats"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
|
let len = reader.uint32(), end = reader.pos + len, key: keyof ExtractRequest["columnFormats"] | undefined, val: ExtractRequest["columnFormats"][any] | undefined;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case 1:
|
|
key = reader.int32();
|
|
break;
|
|
case 2:
|
|
val = ExtractColumnFormat.internalBinaryRead(reader, reader.uint32(), options);
|
|
break;
|
|
default: throw new globalThis.Error("unknown map entry field for field vizapi.ExtractRequest.ColumnFormats");
|
|
}
|
|
}
|
|
map[key ?? 0] = val ?? ExtractColumnFormat.create();
|
|
}
|
|
internalBinaryWrite(message: ExtractRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.RequestProjectHeader Header = 1 [json_name = "Header"]; */
|
|
if (message.header)
|
|
RequestProjectHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* string ViewID = 2 [json_name = "ViewID"]; */
|
|
if (message.viewID !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.viewID);
|
|
/* repeated api.BlockFilter BlockFilters = 3 [json_name = "BlockFilters"]; */
|
|
for (let i = 0; i < message.blockFilters.length; i++)
|
|
BlockFilter.internalBinaryWrite(message.blockFilters[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
/* string ListSeparator = 4 [json_name = "ListSeparator"]; */
|
|
if (message.listSeparator !== "")
|
|
writer.tag(4, WireType.LengthDelimited).string(message.listSeparator);
|
|
/* string DecimalSeparator = 5 [json_name = "DecimalSeparator"]; */
|
|
if (message.decimalSeparator !== "")
|
|
writer.tag(5, WireType.LengthDelimited).string(message.decimalSeparator);
|
|
/* map<string, vizapi.TranslationMap> ColumnTranslationMaps = 8 [json_name = "ColumnTranslationMaps"]; */
|
|
for (let k of globalThis.Object.keys(message.columnTranslationMaps)) {
|
|
writer.tag(8, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
|
writer.tag(2, WireType.LengthDelimited).fork();
|
|
TranslationMap.internalBinaryWrite(message.columnTranslationMaps[k], writer, options);
|
|
writer.join().join();
|
|
}
|
|
/* map<int32, vizapi.ExtractColumnFormat> ColumnFormats = 9 [json_name = "ColumnFormats"]; */
|
|
for (let k of globalThis.Object.keys(message.columnFormats)) {
|
|
writer.tag(9, WireType.LengthDelimited).fork().tag(1, WireType.Varint).int32(parseInt(k));
|
|
writer.tag(2, WireType.LengthDelimited).fork();
|
|
ExtractColumnFormat.internalBinaryWrite(message.columnFormats[k as any], writer, options);
|
|
writer.join().join();
|
|
}
|
|
/* string TargetTimeZone = 10 [json_name = "TargetTimeZone"]; */
|
|
if (message.targetTimeZone !== "")
|
|
writer.tag(10, WireType.LengthDelimited).string(message.targetTimeZone);
|
|
/* string DateFormat = 11 [json_name = "DateFormat"]; */
|
|
if (message.dateFormat !== "")
|
|
writer.tag(11, WireType.LengthDelimited).string(message.dateFormat);
|
|
/* string NumberFormat = 12 [json_name = "NumberFormat"]; */
|
|
if (message.numberFormat !== "")
|
|
writer.tag(12, WireType.LengthDelimited).string(message.numberFormat);
|
|
/* vizapi.TimeFormat TimeFormat = 13 [json_name = "TimeFormat"]; */
|
|
if (message.timeFormat !== 0)
|
|
writer.tag(13, WireType.Varint).int32(message.timeFormat);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message vizapi.ExtractRequest
|
|
*/
|
|
export const ExtractRequest = new ExtractRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ExtractResult$Type extends MessageType<ExtractResult> {
|
|
constructor() {
|
|
super("vizapi.ExtractResult", [
|
|
{ no: 1, name: "WorkflowID", kind: "scalar", jsonName: "WorkflowID", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 2, name: "RunID", kind: "scalar", jsonName: "RunID", T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<ExtractResult>): ExtractResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.workflowID = "";
|
|
message.runID = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ExtractResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExtractResult): ExtractResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string WorkflowID = 1 [json_name = "WorkflowID"];*/ 1:
|
|
message.workflowID = reader.string();
|
|
break;
|
|
case /* string RunID = 2 [json_name = "RunID"];*/ 2:
|
|
message.runID = 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: ExtractResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string WorkflowID = 1 [json_name = "WorkflowID"]; */
|
|
if (message.workflowID !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.workflowID);
|
|
/* string RunID = 2 [json_name = "RunID"]; */
|
|
if (message.runID !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.runID);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message vizapi.ExtractResult
|
|
*/
|
|
export const ExtractResult = new ExtractResult$Type();
|
|
/**
|
|
* @generated ServiceType for protobuf service vizapi.ViewService
|
|
*/
|
|
export const ViewService = new ServiceType("vizapi.ViewService", [
|
|
{ name: "Get", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["View"], summary: "Get a view" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: GetViewRequest, O: GetViewResult },
|
|
{ name: "Create", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["View"], summary: "Create a view" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: CreateViewRequest, O: CreateViewResult },
|
|
{ name: "Update", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["View"], summary: "Update a view" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: UpdateViewRequest, O: UpdateViewResult },
|
|
{ name: "Delete", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["View"], summary: "Delete a view" }, "api.rscType": "Project", "api.roles": "Platform.Project-Views", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: DeleteViewRequest, O: DeleteViewResult },
|
|
{ name: "List", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["View"], summary: "List views", description: "List all Views present under the same Project and with the same Screen ID" }, "api.rscType": "Project", "api.roles": "Platform.Project-Views", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ListViewRequest, O: ListViewResult },
|
|
{ name: "DeleteViewsForProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["View"], summary: "Delete all views for a project" }, "api.rscType": "Platform", "api.roles": "Platform.Project-Views", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: DeleteViewsForProjectRequest, O: DeleteViewsForProjectResult },
|
|
{ name: "Extract", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["View"], summary: "Extract view", description: "Start view extraction in csv format" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ExtractRequest, O: ExtractResult }
|
|
], { "api.k8sService": "views-server" });
|