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

992 lines
32 KiB
TypeScript

// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
// @generated from file viz-view.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 { BlockFilter, RequestProjectHeader } from "./core/shared_pb.js";
/**
* @generated from message vizapi.View
*/
export class View extends Message<View> {
/**
* Identifier of the View
*
* @generated from field: string ViewID = 1;
*/
ViewID = "";
/**
* Identifier of the Project
*
* @generated from field: string ProjectID = 2;
*/
ProjectID = "";
/**
* Identifier of the screen
*
* @generated from field: string ScreenID = 3;
*/
ScreenID = "";
/**
* Identifier of the user who created
*
* @generated from field: string CreateUserID = 4;
*/
CreateUserID = "";
/**
* Identifier of the user who did 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 CreateDateTime = 6;
*/
CreateDateTime = "";
/**
* Date of last update in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z]
*
* @generated from field: string UpdateDateTime = 7;
*/
UpdateDateTime = "";
/**
* Content of the View
*
* @generated from field: string Payload = 10;
*/
Payload = "";
/**
* Visibility of the View
*
* @generated from field: bool IsPrivate = 12;
*/
IsPrivate = false;
/**
* Name of the View
*
* @generated from field: string Name = 13;
*/
Name = "";
constructor(data?: PartialMessage<View>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.View";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "ViewID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "ProjectID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "ScreenID", 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: "CreateDateTime", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 7, name: "UpdateDateTime", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 10, name: "Payload", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 12, name: "IsPrivate", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
{ no: 13, name: "Name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): View {
return new View().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): View {
return new View().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): View {
return new View().fromJsonString(jsonString, options);
}
static equals(a: View | PlainMessage<View> | undefined, b: View | PlainMessage<View> | undefined): boolean {
return proto3.util.equals(View, a, b);
}
}
/**
* @generated from message vizapi.ComposedUserView
*/
export class ComposedUserView extends Message<ComposedUserView> {
/**
* Identifier of the View
*
* @generated from field: string ViewID = 1;
*/
ViewID = "";
/**
* Name of the View
*
* @generated from field: string Name = 2;
*/
Name = "";
/**
* Identifier of the User
*
* @generated from field: string UserID = 3;
*/
UserID = "";
/**
* Identifier of the Project
*
* @generated from field: string ProjectID = 4;
*/
ProjectID = "";
/**
* Identifier of the Screen
*
* @generated from field: string ScreenID = 5;
*/
ScreenID = "";
/**
* Content of the View
*
* @generated from field: string Payload = 6;
*/
Payload = "";
/**
* Visibility of the View
*
* @generated from field: bool IsPrivate = 9;
*/
IsPrivate = false;
constructor(data?: PartialMessage<ComposedUserView>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.ComposedUserView";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "ViewID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "Name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "UserID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 4, name: "ProjectID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 5, name: "ScreenID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 6, name: "Payload", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 9, name: "IsPrivate", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ComposedUserView {
return new ComposedUserView().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ComposedUserView {
return new ComposedUserView().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ComposedUserView {
return new ComposedUserView().fromJsonString(jsonString, options);
}
static equals(a: ComposedUserView | PlainMessage<ComposedUserView> | undefined, b: ComposedUserView | PlainMessage<ComposedUserView> | undefined): boolean {
return proto3.util.equals(ComposedUserView, a, b);
}
}
/**
* IDs of the View
*
* @generated from message vizapi.GetViewRequest
*/
export class GetViewRequest extends Message<GetViewRequest> {
/**
* @generated from field: api.RequestProjectHeader Header = 1;
*/
Header?: RequestProjectHeader;
/**
* Identifier of the View
*
* @generated from field: string ViewID = 2;
*/
ViewID = "";
constructor(data?: PartialMessage<GetViewRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.GetViewRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Header", kind: "message", T: RequestProjectHeader },
{ no: 2, name: "ViewID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetViewRequest {
return new GetViewRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetViewRequest {
return new GetViewRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetViewRequest {
return new GetViewRequest().fromJsonString(jsonString, options);
}
static equals(a: GetViewRequest | PlainMessage<GetViewRequest> | undefined, b: GetViewRequest | PlainMessage<GetViewRequest> | undefined): boolean {
return proto3.util.equals(GetViewRequest, a, b);
}
}
/**
* All information about the View
*
* @generated from message vizapi.GetViewResult
*/
export class GetViewResult extends Message<GetViewResult> {
/**
* @generated from field: vizapi.ComposedUserView Result = 1;
*/
Result?: ComposedUserView;
constructor(data?: PartialMessage<GetViewResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.GetViewResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Result", kind: "message", T: ComposedUserView },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetViewResult {
return new GetViewResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetViewResult {
return new GetViewResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetViewResult {
return new GetViewResult().fromJsonString(jsonString, options);
}
static equals(a: GetViewResult | PlainMessage<GetViewResult> | undefined, b: GetViewResult | PlainMessage<GetViewResult> | undefined): boolean {
return proto3.util.equals(GetViewResult, a, b);
}
}
/**
* Information that needs to be stored
*
* @generated from message vizapi.CreateViewRequest
*/
export class CreateViewRequest extends Message<CreateViewRequest> {
/**
* @generated from field: api.RequestProjectHeader Header = 1;
*/
Header?: RequestProjectHeader;
/**
* Name of the View
*
* @generated from field: string Name = 2;
*/
Name = "";
/**
* Identifier of the Screen
*
* @generated from field: string ScreenID = 3;
*/
ScreenID = "";
/**
* Content of the View
*
* @generated from field: string Payload = 5;
*/
Payload = "";
/**
* Visibility of the View
*
* @generated from field: bool IsPrivate = 7;
*/
IsPrivate = false;
constructor(data?: PartialMessage<CreateViewRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.CreateViewRequest";
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: "ScreenID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 5, name: "Payload", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 7, name: "IsPrivate", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateViewRequest {
return new CreateViewRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateViewRequest {
return new CreateViewRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateViewRequest {
return new CreateViewRequest().fromJsonString(jsonString, options);
}
static equals(a: CreateViewRequest | PlainMessage<CreateViewRequest> | undefined, b: CreateViewRequest | PlainMessage<CreateViewRequest> | undefined): boolean {
return proto3.util.equals(CreateViewRequest, a, b);
}
}
/**
* ID of the created View
*
* @generated from message vizapi.CreateViewResult
*/
export class CreateViewResult extends Message<CreateViewResult> {
/**
* Identifier of the View
*
* @generated from field: string ViewID = 1;
*/
ViewID = "";
constructor(data?: PartialMessage<CreateViewResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.CreateViewResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "ViewID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateViewResult {
return new CreateViewResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateViewResult {
return new CreateViewResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateViewResult {
return new CreateViewResult().fromJsonString(jsonString, options);
}
static equals(a: CreateViewResult | PlainMessage<CreateViewResult> | undefined, b: CreateViewResult | PlainMessage<CreateViewResult> | undefined): boolean {
return proto3.util.equals(CreateViewResult, a, b);
}
}
/**
* Information that needs to be updated
*
* @generated from message vizapi.UpdateViewRequest
*/
export class UpdateViewRequest extends Message<UpdateViewRequest> {
/**
* @generated from field: api.RequestProjectHeader Header = 1;
*/
Header?: RequestProjectHeader;
/**
* Identifier of the View
*
* @generated from field: string ViewID = 2;
*/
ViewID = "";
/**
* Name of the View
*
* @generated from field: string Name = 3;
*/
Name = "";
/**
* Identifier of the Screen
*
* @generated from field: string ScreenID = 4;
*/
ScreenID = "";
/**
* Content of the View
*
* @generated from field: string Payload = 6;
*/
Payload = "";
/**
* Visibility of the View
*
* @generated from field: bool IsPrivate = 8;
*/
IsPrivate = false;
constructor(data?: PartialMessage<UpdateViewRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.UpdateViewRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Header", kind: "message", T: RequestProjectHeader },
{ no: 2, name: "ViewID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "Name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 4, name: "ScreenID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 6, name: "Payload", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 8, name: "IsPrivate", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateViewRequest {
return new UpdateViewRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateViewRequest {
return new UpdateViewRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateViewRequest {
return new UpdateViewRequest().fromJsonString(jsonString, options);
}
static equals(a: UpdateViewRequest | PlainMessage<UpdateViewRequest> | undefined, b: UpdateViewRequest | PlainMessage<UpdateViewRequest> | undefined): boolean {
return proto3.util.equals(UpdateViewRequest, a, b);
}
}
/**
* Updated View ID
*
* @generated from message vizapi.UpdateViewResult
*/
export class UpdateViewResult extends Message<UpdateViewResult> {
/**
* Identifier of the View
*
* @generated from field: string ViewID = 1;
*/
ViewID = "";
constructor(data?: PartialMessage<UpdateViewResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.UpdateViewResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "ViewID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateViewResult {
return new UpdateViewResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateViewResult {
return new UpdateViewResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateViewResult {
return new UpdateViewResult().fromJsonString(jsonString, options);
}
static equals(a: UpdateViewResult | PlainMessage<UpdateViewResult> | undefined, b: UpdateViewResult | PlainMessage<UpdateViewResult> | undefined): boolean {
return proto3.util.equals(UpdateViewResult, a, b);
}
}
/**
* IDs of the View to be deleted
*
* @generated from message vizapi.DeleteViewRequest
*/
export class DeleteViewRequest extends Message<DeleteViewRequest> {
/**
* @generated from field: api.RequestProjectHeader Header = 1;
*/
Header?: RequestProjectHeader;
/**
* Identifier of the View
*
* @generated from field: string ViewID = 2;
*/
ViewID = "";
constructor(data?: PartialMessage<DeleteViewRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.DeleteViewRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Header", kind: "message", T: RequestProjectHeader },
{ no: 2, name: "ViewID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteViewRequest {
return new DeleteViewRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteViewRequest {
return new DeleteViewRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteViewRequest {
return new DeleteViewRequest().fromJsonString(jsonString, options);
}
static equals(a: DeleteViewRequest | PlainMessage<DeleteViewRequest> | undefined, b: DeleteViewRequest | PlainMessage<DeleteViewRequest> | undefined): boolean {
return proto3.util.equals(DeleteViewRequest, a, b);
}
}
/**
* @generated from message vizapi.DeleteViewResult
*/
export class DeleteViewResult extends Message<DeleteViewResult> {
constructor(data?: PartialMessage<DeleteViewResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.DeleteViewResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteViewResult {
return new DeleteViewResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteViewResult {
return new DeleteViewResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteViewResult {
return new DeleteViewResult().fromJsonString(jsonString, options);
}
static equals(a: DeleteViewResult | PlainMessage<DeleteViewResult> | undefined, b: DeleteViewResult | PlainMessage<DeleteViewResult> | undefined): boolean {
return proto3.util.equals(DeleteViewResult, a, b);
}
}
/**
* @generated from message vizapi.ListViewRequest
*/
export class ListViewRequest extends Message<ListViewRequest> {
/**
* @generated from field: api.RequestProjectHeader Header = 1;
*/
Header?: RequestProjectHeader;
/**
* Identifier of the Screen
*
* @generated from field: string ScreenID = 2;
*/
ScreenID = "";
constructor(data?: PartialMessage<ListViewRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.ListViewRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Header", kind: "message", T: RequestProjectHeader },
{ no: 2, name: "ScreenID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListViewRequest {
return new ListViewRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListViewRequest {
return new ListViewRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListViewRequest {
return new ListViewRequest().fromJsonString(jsonString, options);
}
static equals(a: ListViewRequest | PlainMessage<ListViewRequest> | undefined, b: ListViewRequest | PlainMessage<ListViewRequest> | undefined): boolean {
return proto3.util.equals(ListViewRequest, a, b);
}
}
/**
* List of Views
*
* @generated from message vizapi.ListViewResult
*/
export class ListViewResult extends Message<ListViewResult> {
/**
* All information in a View
*
* @generated from field: repeated vizapi.ComposedUserView Results = 1;
*/
Results: ComposedUserView[] = [];
constructor(data?: PartialMessage<ListViewResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.ListViewResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Results", kind: "message", T: ComposedUserView, repeated: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListViewResult {
return new ListViewResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListViewResult {
return new ListViewResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListViewResult {
return new ListViewResult().fromJsonString(jsonString, options);
}
static equals(a: ListViewResult | PlainMessage<ListViewResult> | undefined, b: ListViewResult | PlainMessage<ListViewResult> | undefined): boolean {
return proto3.util.equals(ListViewResult, a, b);
}
}
/**
* @generated from message vizapi.DeleteViewsForProjectRequest
*/
export class DeleteViewsForProjectRequest extends Message<DeleteViewsForProjectRequest> {
/**
* Identifier of the Project
*
* @generated from field: string ProjectID = 1;
*/
ProjectID = "";
constructor(data?: PartialMessage<DeleteViewsForProjectRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.DeleteViewsForProjectRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "ProjectID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteViewsForProjectRequest {
return new DeleteViewsForProjectRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteViewsForProjectRequest {
return new DeleteViewsForProjectRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteViewsForProjectRequest {
return new DeleteViewsForProjectRequest().fromJsonString(jsonString, options);
}
static equals(a: DeleteViewsForProjectRequest | PlainMessage<DeleteViewsForProjectRequest> | undefined, b: DeleteViewsForProjectRequest | PlainMessage<DeleteViewsForProjectRequest> | undefined): boolean {
return proto3.util.equals(DeleteViewsForProjectRequest, a, b);
}
}
/**
* @generated from message vizapi.DeleteViewsForProjectResult
*/
export class DeleteViewsForProjectResult extends Message<DeleteViewsForProjectResult> {
constructor(data?: PartialMessage<DeleteViewsForProjectResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.DeleteViewsForProjectResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteViewsForProjectResult {
return new DeleteViewsForProjectResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteViewsForProjectResult {
return new DeleteViewsForProjectResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteViewsForProjectResult {
return new DeleteViewsForProjectResult().fromJsonString(jsonString, options);
}
static equals(a: DeleteViewsForProjectResult | PlainMessage<DeleteViewsForProjectResult> | undefined, b: DeleteViewsForProjectResult | PlainMessage<DeleteViewsForProjectResult> | undefined): boolean {
return proto3.util.equals(DeleteViewsForProjectResult, a, b);
}
}
/**
* @generated from message vizapi.TranslationMap
*/
export class TranslationMap extends Message<TranslationMap> {
/**
* @generated from field: map<string, string> data = 1;
*/
data: { [key: string]: string } = {};
constructor(data?: PartialMessage<TranslationMap>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.TranslationMap";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "data", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TranslationMap {
return new TranslationMap().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TranslationMap {
return new TranslationMap().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TranslationMap {
return new TranslationMap().fromJsonString(jsonString, options);
}
static equals(a: TranslationMap | PlainMessage<TranslationMap> | undefined, b: TranslationMap | PlainMessage<TranslationMap> | undefined): boolean {
return proto3.util.equals(TranslationMap, a, b);
}
}
/**
* @generated from message vizapi.ExtractColumnFormat
*/
export class ExtractColumnFormat extends Message<ExtractColumnFormat> {
/**
* @generated from field: vizapi.ExtractColumnFormat.type Type = 1;
*/
Type = ExtractColumnFormat_type.UNKNOWN;
/**
* @generated from field: string Format = 2;
*/
Format = "";
constructor(data?: PartialMessage<ExtractColumnFormat>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.ExtractColumnFormat";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Type", kind: "enum", T: proto3.getEnumType(ExtractColumnFormat_type) },
{ no: 2, name: "Format", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExtractColumnFormat {
return new ExtractColumnFormat().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExtractColumnFormat {
return new ExtractColumnFormat().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExtractColumnFormat {
return new ExtractColumnFormat().fromJsonString(jsonString, options);
}
static equals(a: ExtractColumnFormat | PlainMessage<ExtractColumnFormat> | undefined, b: ExtractColumnFormat | PlainMessage<ExtractColumnFormat> | undefined): boolean {
return proto3.util.equals(ExtractColumnFormat, a, b);
}
}
/**
* @generated from enum vizapi.ExtractColumnFormat.type
*/
export enum ExtractColumnFormat_type {
/**
* @generated from enum value: UNKNOWN = 0;
*/
UNKNOWN = 0,
/**
* @generated from enum value: DATE = 1;
*/
DATE = 1,
/**
* @generated from enum value: SUFFIX = 2;
*/
SUFFIX = 2,
}
// Retrieve enum metadata with: proto3.getEnumType(ExtractColumnFormat_type)
proto3.util.setEnumType(ExtractColumnFormat_type, "vizapi.ExtractColumnFormat.type", [
{ no: 0, name: "UNKNOWN" },
{ no: 1, name: "DATE" },
{ no: 2, name: "SUFFIX" },
]);
/**
* @generated from message vizapi.ExtractRequest
*/
export class ExtractRequest extends Message<ExtractRequest> {
/**
* @generated from field: api.RequestProjectHeader Header = 1;
*/
Header?: RequestProjectHeader;
/**
* @generated from field: string ViewID = 2;
*/
ViewID = "";
/**
* BlockFilter structure for Find query
*
* @generated from field: repeated api.BlockFilter BlockFilters = 3;
*/
BlockFilters: BlockFilter[] = [];
/**
* Range filter structure for Find query
*
* @generated from field: string ListSeparator = 4;
*/
ListSeparator = "";
/**
* @generated from field: string DecimalSeparator = 5;
*/
DecimalSeparator = "";
/**
* @generated from field: map<string, vizapi.TranslationMap> ColumnTranslationMaps = 8;
*/
ColumnTranslationMaps: { [key: string]: TranslationMap } = {};
/**
* @generated from field: map<int32, vizapi.ExtractColumnFormat> ColumnFormats = 9;
*/
ColumnFormats: { [key: number]: ExtractColumnFormat } = {};
/**
* @generated from field: string TargetTimeZone = 10;
*/
TargetTimeZone = "";
constructor(data?: PartialMessage<ExtractRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.ExtractRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Header", kind: "message", T: RequestProjectHeader },
{ no: 2, name: "ViewID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "BlockFilters", kind: "message", T: BlockFilter, repeated: true },
{ no: 4, name: "ListSeparator", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 5, name: "DecimalSeparator", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 8, name: "ColumnTranslationMaps", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: TranslationMap} },
{ no: 9, name: "ColumnFormats", kind: "map", K: 5 /* ScalarType.INT32 */, V: {kind: "message", T: ExtractColumnFormat} },
{ no: 10, name: "TargetTimeZone", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExtractRequest {
return new ExtractRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExtractRequest {
return new ExtractRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExtractRequest {
return new ExtractRequest().fromJsonString(jsonString, options);
}
static equals(a: ExtractRequest | PlainMessage<ExtractRequest> | undefined, b: ExtractRequest | PlainMessage<ExtractRequest> | undefined): boolean {
return proto3.util.equals(ExtractRequest, a, b);
}
}
/**
* @generated from message vizapi.ExtractResult
*/
export class ExtractResult extends Message<ExtractResult> {
/**
* @generated from field: string WorkflowID = 1;
*/
WorkflowID = "";
/**
* @generated from field: string RunID = 2;
*/
RunID = "";
constructor(data?: PartialMessage<ExtractResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.ExtractResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "WorkflowID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "RunID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExtractResult {
return new ExtractResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExtractResult {
return new ExtractResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExtractResult {
return new ExtractResult().fromJsonString(jsonString, options);
}
static equals(a: ExtractResult | PlainMessage<ExtractResult> | undefined, b: ExtractResult | PlainMessage<ExtractResult> | undefined): boolean {
return proto3.util.equals(ExtractResult, a, b);
}
}