You've already forked npm-viz-sdk
Compare commits
26 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f4d5ffcf79 | ||
|
|
acbd306f09 | ||
|
|
318710916b | ||
|
|
c36481fd5d | ||
|
|
94cd1a7eb7 | ||
|
|
a20bad69f6 | ||
|
|
9a52960d02 | ||
|
|
dff2d83857 | ||
|
|
5e2f47ce62 | ||
|
|
6afb2d4b98 | ||
|
|
3f3b1b5ec7 | ||
|
|
3eae1a3fe4 | ||
|
|
960da1be11 | ||
|
|
1273fa56e0 | ||
|
|
dd49b39806 | ||
|
|
60a9eaf55f | ||
|
|
19bb7c93a4 | ||
|
|
2c92cd3a17 | ||
|
|
3782345e64 | ||
|
|
5ab958af9e | ||
|
|
131feb2020 | ||
|
|
baa774ce5b | ||
|
|
4ee9e8d0d8 | ||
|
|
c6bd899158 | ||
|
|
77333ee976 | ||
|
|
8a33c0083a |
1088
core/currencyCodes.ts
Normal file
1088
core/currencyCodes.ts
Normal file
File diff suppressed because it is too large
Load Diff
521
core/options.ts
Normal file
521
core/options.ts
Normal file
@@ -0,0 +1,521 @@
|
||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "core/options.proto" (package "api", syntax proto3)
|
||||
// tslint:disable
|
||||
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";
|
||||
/**
|
||||
* Note: Struct to define in protoc-m0 in managers/struct_model
|
||||
*
|
||||
* @generated from protobuf message api.KPIGroups
|
||||
*/
|
||||
export interface KPIGroups {
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.KPIGroup Groups = 1
|
||||
*/
|
||||
Groups: KPIGroup[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.KPIGroup
|
||||
*/
|
||||
export interface KPIGroup {
|
||||
/**
|
||||
* @generated from protobuf field: string Name = 1
|
||||
*/
|
||||
Name: string; // Name of the KPI group
|
||||
/**
|
||||
* @generated from protobuf field: api.KPIGroupType Type = 2
|
||||
*/
|
||||
Type: KPIGroupType; // Type of the KPI group
|
||||
/**
|
||||
* @generated from protobuf field: bool Queryable = 3
|
||||
*/
|
||||
Queryable: boolean; // Some tables are not directly queryable
|
||||
/**
|
||||
* @generated from protobuf field: string GroupToQuery = 4
|
||||
*/
|
||||
GroupToQuery: string; // For non-queryable group, on which group table the request will be executed
|
||||
/**
|
||||
* @generated from protobuf field: string OrderBy = 5
|
||||
*/
|
||||
OrderBy: string; // Table OrderBy
|
||||
/**
|
||||
* @generated from protobuf field: string Engine = 6
|
||||
*/
|
||||
Engine: string; // Table engine
|
||||
/**
|
||||
* @generated from protobuf field: string HeaderColumns = 7
|
||||
*/
|
||||
HeaderColumns: string; // Table header columns
|
||||
/**
|
||||
* @generated from protobuf field: string PartitionBy = 8
|
||||
*/
|
||||
PartitionBy: string; // Table PartitionBy
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.KPIItems
|
||||
*/
|
||||
export interface KPIItems {
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.KPIItem Items = 1
|
||||
*/
|
||||
Items: KPIItem[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.KPIItem
|
||||
*/
|
||||
export interface KPIItem {
|
||||
/**
|
||||
* @generated from protobuf field: string Context = 1
|
||||
*/
|
||||
Context: string; // Entity on which the KPI is defined
|
||||
/**
|
||||
* @generated from protobuf field: string Group = 2
|
||||
*/
|
||||
Group: string; // Group on which the KPI is defined
|
||||
/**
|
||||
* @generated from protobuf field: bool Queryable = 3
|
||||
*/
|
||||
Queryable: boolean; // Defined if the KPI is queryable (some kpi are only returns on the result because linked to other, ex on stock_extended : Actor_Name depends on ActorID)
|
||||
/**
|
||||
* @generated from protobuf field: string GroupToJoin = 4
|
||||
*/
|
||||
GroupToJoin: string; // KPI is used to join another KPI group
|
||||
/**
|
||||
* @generated from protobuf field: string CustomType = 5
|
||||
*/
|
||||
CustomType: string; // Type of the field in the table
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.FieldTypes
|
||||
*/
|
||||
export interface FieldTypes {
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.FieldType Types = 1
|
||||
*/
|
||||
Types: FieldType[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.FieldType
|
||||
*/
|
||||
export interface FieldType {
|
||||
/**
|
||||
* @generated from protobuf field: string Context = 1
|
||||
*/
|
||||
Context: string; // Entity on which the KPI is defined
|
||||
/**
|
||||
* @generated from protobuf field: string Type = 2
|
||||
*/
|
||||
Type: string; // Type of the field
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf enum api.KPIGroupType
|
||||
*/
|
||||
export enum KPIGroupType {
|
||||
/**
|
||||
* @generated from protobuf enum value: KPIGROUP_TYPE_UNKNOWN = 0;
|
||||
*/
|
||||
KPIGROUP_TYPE_UNKNOWN = 0,
|
||||
/**
|
||||
* Table fed by a entity stream sink job
|
||||
*
|
||||
* @generated from protobuf enum value: KPIGROUP_TYPE_SINK = 1;
|
||||
*/
|
||||
KPIGROUP_TYPE_SINK = 1,
|
||||
/**
|
||||
* Table fed by a materialized view on the database
|
||||
*
|
||||
* @generated from protobuf enum value: KPIGROUP_TYPE_MATERIALIZED = 2;
|
||||
*/
|
||||
KPIGROUP_TYPE_MATERIALIZED = 2,
|
||||
/**
|
||||
* Virtual table, the request is concretely executed on physical table (GroupToQuery)
|
||||
*
|
||||
* @generated from protobuf enum value: KPIGROUP_TYPE_VIEW = 3;
|
||||
*/
|
||||
KPIGROUP_TYPE_VIEW = 3
|
||||
}
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class KPIGroups$Type extends MessageType<KPIGroups> {
|
||||
constructor() {
|
||||
super("api.KPIGroups", [
|
||||
{ no: 1, name: "Groups", kind: "message", localName: "Groups", jsonName: "Groups", repeat: 2 /*RepeatType.UNPACKED*/, T: () => KPIGroup }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<KPIGroups>): KPIGroups {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.Groups = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<KPIGroups>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: KPIGroups): KPIGroups {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated api.KPIGroup Groups */ 1:
|
||||
message.Groups.push(KPIGroup.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: KPIGroups, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated api.KPIGroup Groups = 1; */
|
||||
for (let i = 0; i < message.Groups.length; i++)
|
||||
KPIGroup.internalBinaryWrite(message.Groups[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.KPIGroups
|
||||
*/
|
||||
export const KPIGroups = new KPIGroups$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class KPIGroup$Type extends MessageType<KPIGroup> {
|
||||
constructor() {
|
||||
super("api.KPIGroup", [
|
||||
{ no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.KPIGroupType", KPIGroupType] },
|
||||
{ no: 3, name: "Queryable", kind: "scalar", localName: "Queryable", jsonName: "Queryable", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 4, name: "GroupToQuery", kind: "scalar", localName: "GroupToQuery", jsonName: "GroupToQuery", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 5, name: "OrderBy", kind: "scalar", localName: "OrderBy", jsonName: "OrderBy", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 6, name: "Engine", kind: "scalar", localName: "Engine", jsonName: "Engine", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 7, name: "HeaderColumns", kind: "scalar", localName: "HeaderColumns", jsonName: "HeaderColumns", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 8, name: "PartitionBy", kind: "scalar", localName: "PartitionBy", jsonName: "PartitionBy", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<KPIGroup>): KPIGroup {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.Name = "";
|
||||
message.Type = 0;
|
||||
message.Queryable = false;
|
||||
message.GroupToQuery = "";
|
||||
message.OrderBy = "";
|
||||
message.Engine = "";
|
||||
message.HeaderColumns = "";
|
||||
message.PartitionBy = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<KPIGroup>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: KPIGroup): KPIGroup {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Name */ 1:
|
||||
message.Name = reader.string();
|
||||
break;
|
||||
case /* api.KPIGroupType Type */ 2:
|
||||
message.Type = reader.int32();
|
||||
break;
|
||||
case /* bool Queryable */ 3:
|
||||
message.Queryable = reader.bool();
|
||||
break;
|
||||
case /* string GroupToQuery */ 4:
|
||||
message.GroupToQuery = reader.string();
|
||||
break;
|
||||
case /* string OrderBy */ 5:
|
||||
message.OrderBy = reader.string();
|
||||
break;
|
||||
case /* string Engine */ 6:
|
||||
message.Engine = reader.string();
|
||||
break;
|
||||
case /* string HeaderColumns */ 7:
|
||||
message.HeaderColumns = reader.string();
|
||||
break;
|
||||
case /* string PartitionBy */ 8:
|
||||
message.PartitionBy = 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: KPIGroup, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Name = 1; */
|
||||
if (message.Name !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.Name);
|
||||
/* api.KPIGroupType Type = 2; */
|
||||
if (message.Type !== 0)
|
||||
writer.tag(2, WireType.Varint).int32(message.Type);
|
||||
/* bool Queryable = 3; */
|
||||
if (message.Queryable !== false)
|
||||
writer.tag(3, WireType.Varint).bool(message.Queryable);
|
||||
/* string GroupToQuery = 4; */
|
||||
if (message.GroupToQuery !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.GroupToQuery);
|
||||
/* string OrderBy = 5; */
|
||||
if (message.OrderBy !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.OrderBy);
|
||||
/* string Engine = 6; */
|
||||
if (message.Engine !== "")
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.Engine);
|
||||
/* string HeaderColumns = 7; */
|
||||
if (message.HeaderColumns !== "")
|
||||
writer.tag(7, WireType.LengthDelimited).string(message.HeaderColumns);
|
||||
/* string PartitionBy = 8; */
|
||||
if (message.PartitionBy !== "")
|
||||
writer.tag(8, WireType.LengthDelimited).string(message.PartitionBy);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.KPIGroup
|
||||
*/
|
||||
export const KPIGroup = new KPIGroup$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class KPIItems$Type extends MessageType<KPIItems> {
|
||||
constructor() {
|
||||
super("api.KPIItems", [
|
||||
{ no: 1, name: "Items", kind: "message", localName: "Items", jsonName: "Items", repeat: 2 /*RepeatType.UNPACKED*/, T: () => KPIItem }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<KPIItems>): KPIItems {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.Items = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<KPIItems>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: KPIItems): KPIItems {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated api.KPIItem Items */ 1:
|
||||
message.Items.push(KPIItem.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: KPIItems, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated api.KPIItem Items = 1; */
|
||||
for (let i = 0; i < message.Items.length; i++)
|
||||
KPIItem.internalBinaryWrite(message.Items[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.KPIItems
|
||||
*/
|
||||
export const KPIItems = new KPIItems$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class KPIItem$Type extends MessageType<KPIItem> {
|
||||
constructor() {
|
||||
super("api.KPIItem", [
|
||||
{ no: 1, name: "Context", kind: "scalar", localName: "Context", jsonName: "Context", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "Group", kind: "scalar", localName: "Group", jsonName: "Group", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "Queryable", kind: "scalar", localName: "Queryable", jsonName: "Queryable", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 4, name: "GroupToJoin", kind: "scalar", localName: "GroupToJoin", jsonName: "GroupToJoin", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 5, name: "CustomType", kind: "scalar", localName: "CustomType", jsonName: "CustomType", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<KPIItem>): KPIItem {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.Context = "";
|
||||
message.Group = "";
|
||||
message.Queryable = false;
|
||||
message.GroupToJoin = "";
|
||||
message.CustomType = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<KPIItem>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: KPIItem): KPIItem {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Context */ 1:
|
||||
message.Context = reader.string();
|
||||
break;
|
||||
case /* string Group */ 2:
|
||||
message.Group = reader.string();
|
||||
break;
|
||||
case /* bool Queryable */ 3:
|
||||
message.Queryable = reader.bool();
|
||||
break;
|
||||
case /* string GroupToJoin */ 4:
|
||||
message.GroupToJoin = reader.string();
|
||||
break;
|
||||
case /* string CustomType */ 5:
|
||||
message.CustomType = 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: KPIItem, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Context = 1; */
|
||||
if (message.Context !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.Context);
|
||||
/* string Group = 2; */
|
||||
if (message.Group !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Group);
|
||||
/* bool Queryable = 3; */
|
||||
if (message.Queryable !== false)
|
||||
writer.tag(3, WireType.Varint).bool(message.Queryable);
|
||||
/* string GroupToJoin = 4; */
|
||||
if (message.GroupToJoin !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.GroupToJoin);
|
||||
/* string CustomType = 5; */
|
||||
if (message.CustomType !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.CustomType);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.KPIItem
|
||||
*/
|
||||
export const KPIItem = new KPIItem$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class FieldTypes$Type extends MessageType<FieldTypes> {
|
||||
constructor() {
|
||||
super("api.FieldTypes", [
|
||||
{ no: 1, name: "Types", kind: "message", localName: "Types", jsonName: "Types", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FieldType }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<FieldTypes>): FieldTypes {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.Types = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<FieldTypes>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldTypes): FieldTypes {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated api.FieldType Types */ 1:
|
||||
message.Types.push(FieldType.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: FieldTypes, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated api.FieldType Types = 1; */
|
||||
for (let i = 0; i < message.Types.length; i++)
|
||||
FieldType.internalBinaryWrite(message.Types[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.FieldTypes
|
||||
*/
|
||||
export const FieldTypes = new FieldTypes$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class FieldType$Type extends MessageType<FieldType> {
|
||||
constructor() {
|
||||
super("api.FieldType", [
|
||||
{ no: 1, name: "Context", kind: "scalar", localName: "Context", jsonName: "Context", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "Type", kind: "scalar", localName: "Type", jsonName: "Type", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<FieldType>): FieldType {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.Context = "";
|
||||
message.Type = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<FieldType>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldType): FieldType {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Context */ 1:
|
||||
message.Context = reader.string();
|
||||
break;
|
||||
case /* string Type */ 2:
|
||||
message.Type = 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: FieldType, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Context = 1; */
|
||||
if (message.Context !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.Context);
|
||||
/* string Type = 2; */
|
||||
if (message.Type !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Type);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.FieldType
|
||||
*/
|
||||
export const FieldType = new FieldType$Type();
|
||||
6262
core/shared.ts
6262
core/shared.ts
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,18 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "core/unitOfMeasures.proto" (package "api", syntax proto3)
|
||||
// tslint:disable
|
||||
//
|
||||
// This files contains enums for a selection of unit of measure
|
||||
// references:
|
||||
// Difference entre US et imperial : https://en.wikipedia.org/wiki/Comparison_of_the_imperial_and_US_customary_measurement_systems
|
||||
// SI : http://www.ilocis.org/fr/documents/ilo105.htm
|
||||
// brochure complete BIPM (SI) https://www.bipm.org/utils/common/pdf/si-brochure/SI-Brochure-9.pdf
|
||||
// The Unified Code for Units of Measure (UCUM) : https://ucum.org/ucum.html
|
||||
// Weight Unit Abbreviations - Metric, Imperial & Troy : https://www.weightconversions.org/abbreviations.htm
|
||||
//
|
||||
// Note: The conversion tables between the different units are implemented in the SinkToClickhouse code. You have to complete this when you add
|
||||
// a new unit of measure
|
||||
|
||||
/**
|
||||
* @generated from protobuf enum api.Length
|
||||
*/
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "counter.proto" (package "vizapi", syntax proto3)
|
||||
// tslint:disable
|
||||
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
||||
@@ -14,7 +14,7 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
||||
*/
|
||||
export interface IProjectCountersServiceClient {
|
||||
/**
|
||||
* @generated from protobuf rpc: Next(vizapi.NextProjectCounterRequest) returns (vizapi.NextCounterResult);
|
||||
* @generated from protobuf rpc: Next
|
||||
*/
|
||||
next(input: NextProjectCounterRequest, options?: RpcOptions): UnaryCall<NextProjectCounterRequest, NextCounterResult>;
|
||||
}
|
||||
@@ -28,7 +28,7 @@ export class ProjectCountersServiceClient implements IProjectCountersServiceClie
|
||||
constructor(private readonly _transport: RpcTransport) {
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Next(vizapi.NextProjectCounterRequest) returns (vizapi.NextCounterResult);
|
||||
* @generated from protobuf rpc: Next
|
||||
*/
|
||||
next(input: NextProjectCounterRequest, options?: RpcOptions): UnaryCall<NextProjectCounterRequest, NextCounterResult> {
|
||||
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
||||
|
||||
56
counter.ts
56
counter.ts
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "counter.proto" (package "vizapi", syntax proto3)
|
||||
// tslint:disable
|
||||
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
||||
@@ -17,34 +17,34 @@ import { RequestProjectHeader } from "./core/shared";
|
||||
*/
|
||||
export interface NextProjectCounterRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
||||
*/
|
||||
header?: RequestProjectHeader;
|
||||
Header?: RequestProjectHeader;
|
||||
/**
|
||||
* @generated from protobuf field: string Key = 2 [json_name = "Key"];
|
||||
* @generated from protobuf field: string Key = 2
|
||||
*/
|
||||
key: string;
|
||||
Key: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.NextCounterResult
|
||||
*/
|
||||
export interface NextCounterResult {
|
||||
/**
|
||||
* @generated from protobuf field: int64 Value = 1 [json_name = "Value"];
|
||||
* @generated from protobuf field: int64 Value = 1
|
||||
*/
|
||||
value: bigint;
|
||||
Value: bigint;
|
||||
}
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class NextProjectCounterRequest$Type extends MessageType<NextProjectCounterRequest> {
|
||||
constructor() {
|
||||
super("vizapi.NextProjectCounterRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "Key", kind: "scalar", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"claims\"" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"claims\"" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Key"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<NextProjectCounterRequest>): NextProjectCounterRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.key = "";
|
||||
message.Key = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<NextProjectCounterRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -54,11 +54,11 @@ class NextProjectCounterRequest$Type extends MessageType<NextProjectCounterReque
|
||||
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);
|
||||
case /* api.RequestProjectHeader Header */ 1:
|
||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string Key = 2 [json_name = "Key"];*/ 2:
|
||||
message.key = reader.string();
|
||||
case /* string Key */ 2:
|
||||
message.Key = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -72,12 +72,12 @@ class NextProjectCounterRequest$Type extends MessageType<NextProjectCounterReque
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: NextProjectCounterRequest, 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 Key = 2 [json_name = "Key"]; */
|
||||
if (message.key !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.key);
|
||||
/* api.RequestProjectHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string Key = 2; */
|
||||
if (message.Key !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Key);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -92,12 +92,12 @@ export const NextProjectCounterRequest = new NextProjectCounterRequest$Type();
|
||||
class NextCounterResult$Type extends MessageType<NextCounterResult> {
|
||||
constructor() {
|
||||
super("vizapi.NextCounterResult", [
|
||||
{ no: 1, name: "Value", kind: "scalar", jsonName: "Value", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
|
||||
{ no: 1, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<NextCounterResult>): NextCounterResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.value = 0n;
|
||||
message.Value = 0n;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<NextCounterResult>(this, message, value);
|
||||
return message;
|
||||
@@ -107,8 +107,8 @@ class NextCounterResult$Type extends MessageType<NextCounterResult> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* int64 Value = 1 [json_name = "Value"];*/ 1:
|
||||
message.value = reader.int64().toBigInt();
|
||||
case /* int64 Value */ 1:
|
||||
message.Value = reader.int64().toBigInt();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -122,9 +122,9 @@ class NextCounterResult$Type extends MessageType<NextCounterResult> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: NextCounterResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* int64 Value = 1 [json_name = "Value"]; */
|
||||
if (message.value !== 0n)
|
||||
writer.tag(1, WireType.Varint).int64(message.value);
|
||||
/* int64 Value = 1; */
|
||||
if (message.Value !== 0n)
|
||||
writer.tag(1, WireType.Varint).int64(message.Value);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -139,5 +139,5 @@ export const NextCounterResult = new NextCounterResult$Type();
|
||||
* @generated ServiceType for protobuf service vizapi.ProjectCountersService
|
||||
*/
|
||||
export const ProjectCountersService = new ServiceType("vizapi.ProjectCountersService", [
|
||||
{ name: "Next", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Project Counters"], summary: "Get the next value for a project key", description: "Get the next value for a project key" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: NextProjectCounterRequest, O: NextCounterResult }
|
||||
{ name: "Next", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Project Counters"], summary: "Get the next value for a project key", description: "Get the next value for a project key" }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: NextProjectCounterRequest, O: NextCounterResult }
|
||||
], { "api.k8sService": "settings-server" });
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "google/api/field_behavior.proto" (package "google.api", syntax proto3)
|
||||
// tslint:disable
|
||||
//
|
||||
// Copyright 2020 Google LLC
|
||||
// Copyright 2025 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
@@ -73,5 +73,40 @@ export enum FieldBehavior {
|
||||
*
|
||||
* @generated from protobuf enum value: IMMUTABLE = 5;
|
||||
*/
|
||||
IMMUTABLE = 5
|
||||
IMMUTABLE = 5,
|
||||
/**
|
||||
* Denotes that a (repeated) field is an unordered list.
|
||||
* This indicates that the service may provide the elements of the list
|
||||
* in any arbitrary order, rather than the order the user originally
|
||||
* provided. Additionally, the list's order may or may not be stable.
|
||||
*
|
||||
* @generated from protobuf enum value: UNORDERED_LIST = 6;
|
||||
*/
|
||||
UNORDERED_LIST = 6,
|
||||
/**
|
||||
* Denotes that this field returns a non-empty default value if not set.
|
||||
* This indicates that if the user provides the empty value in a request,
|
||||
* a non-empty value will be returned. The user will not be aware of what
|
||||
* non-empty value to expect.
|
||||
*
|
||||
* @generated from protobuf enum value: NON_EMPTY_DEFAULT = 7;
|
||||
*/
|
||||
NON_EMPTY_DEFAULT = 7,
|
||||
/**
|
||||
* Denotes that the field in a resource (a message annotated with
|
||||
* google.api.resource) is used in the resource name to uniquely identify the
|
||||
* resource. For AIP-compliant APIs, this should only be applied to the
|
||||
* `name` field on the resource.
|
||||
*
|
||||
* This behavior should not be applied to references to other resources within
|
||||
* the message.
|
||||
*
|
||||
* The identifier field of resources often have different field behavior
|
||||
* depending on the request it is embedded in (e.g. for Create methods name
|
||||
* is optional and unused, while for Update methods it is required). Instead
|
||||
* of method-specific annotations, only `IDENTIFIER` is required.
|
||||
*
|
||||
* @generated from protobuf enum value: IDENTIFIER = 8;
|
||||
*/
|
||||
IDENTIFIER = 8
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "google/api/http.proto" (package "google.api", syntax proto3)
|
||||
// tslint:disable
|
||||
//
|
||||
// Copyright 2020 Google LLC
|
||||
// Copyright 2025 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
@@ -38,7 +38,7 @@ export interface Http {
|
||||
*
|
||||
* **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
*
|
||||
* @generated from protobuf field: repeated google.api.HttpRule rules = 1;
|
||||
* @generated from protobuf field: repeated google.api.HttpRule rules = 1
|
||||
*/
|
||||
rules: HttpRule[];
|
||||
/**
|
||||
@@ -49,12 +49,12 @@ export interface Http {
|
||||
* The default behavior is to not decode RFC 6570 reserved characters in multi
|
||||
* segment matches.
|
||||
*
|
||||
* @generated from protobuf field: bool fully_decode_reserved_expansion = 2;
|
||||
* @generated from protobuf field: bool fully_decode_reserved_expansion = 2
|
||||
*/
|
||||
fullyDecodeReservedExpansion: boolean;
|
||||
fully_decode_reserved_expansion: boolean;
|
||||
}
|
||||
/**
|
||||
* # gRPC Transcoding
|
||||
* gRPC Transcoding
|
||||
*
|
||||
* gRPC Transcoding is a feature for mapping between a gRPC method and one or
|
||||
* more HTTP REST endpoints. It allows developers to build a single API service
|
||||
@@ -95,9 +95,8 @@ export interface Http {
|
||||
*
|
||||
* This enables an HTTP REST to gRPC mapping as below:
|
||||
*
|
||||
* HTTP | gRPC
|
||||
* -----|-----
|
||||
* `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")`
|
||||
* - HTTP: `GET /v1/messages/123456`
|
||||
* - gRPC: `GetMessage(name: "messages/123456")`
|
||||
*
|
||||
* Any fields in the request message which are not bound by the path template
|
||||
* automatically become HTTP query parameters if there is no HTTP request body.
|
||||
@@ -121,11 +120,9 @@ export interface Http {
|
||||
*
|
||||
* This enables a HTTP JSON to RPC mapping as below:
|
||||
*
|
||||
* HTTP | gRPC
|
||||
* -----|-----
|
||||
* `GET /v1/messages/123456?revision=2&sub.subfield=foo` |
|
||||
* `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield:
|
||||
* "foo"))`
|
||||
* - HTTP: `GET /v1/messages/123456?revision=2&sub.subfield=foo`
|
||||
* - gRPC: `GetMessage(message_id: "123456" revision: 2 sub:
|
||||
* SubMessage(subfield: "foo"))`
|
||||
*
|
||||
* Note that fields which are mapped to URL query parameters must have a
|
||||
* primitive type or a repeated primitive type or a non-repeated message type.
|
||||
@@ -155,10 +152,8 @@ export interface Http {
|
||||
* representation of the JSON in the request body is determined by
|
||||
* protos JSON encoding:
|
||||
*
|
||||
* HTTP | gRPC
|
||||
* -----|-----
|
||||
* `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
|
||||
* "123456" message { text: "Hi!" })`
|
||||
* - HTTP: `PATCH /v1/messages/123456 { "text": "Hi!" }`
|
||||
* - gRPC: `UpdateMessage(message_id: "123456" message { text: "Hi!" })`
|
||||
*
|
||||
* The special name `*` can be used in the body mapping to define that
|
||||
* every field not bound by the path template should be mapped to the
|
||||
@@ -181,10 +176,8 @@ export interface Http {
|
||||
*
|
||||
* The following HTTP JSON to RPC mapping is enabled:
|
||||
*
|
||||
* HTTP | gRPC
|
||||
* -----|-----
|
||||
* `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
|
||||
* "123456" text: "Hi!")`
|
||||
* - HTTP: `PATCH /v1/messages/123456 { "text": "Hi!" }`
|
||||
* - gRPC: `UpdateMessage(message_id: "123456" text: "Hi!")`
|
||||
*
|
||||
* Note that when using `*` in the body mapping, it is not possible to
|
||||
* have HTTP parameters, as all fields not bound by the path end in
|
||||
@@ -212,29 +205,32 @@ export interface Http {
|
||||
*
|
||||
* This enables the following two alternative HTTP JSON to RPC mappings:
|
||||
*
|
||||
* HTTP | gRPC
|
||||
* -----|-----
|
||||
* `GET /v1/messages/123456` | `GetMessage(message_id: "123456")`
|
||||
* `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id:
|
||||
* "123456")`
|
||||
* - HTTP: `GET /v1/messages/123456`
|
||||
* - gRPC: `GetMessage(message_id: "123456")`
|
||||
*
|
||||
* ## Rules for HTTP mapping
|
||||
* - HTTP: `GET /v1/users/me/messages/123456`
|
||||
* - gRPC: `GetMessage(user_id: "me" message_id: "123456")`
|
||||
*
|
||||
* Rules for HTTP mapping
|
||||
*
|
||||
* 1. Leaf request fields (recursive expansion nested messages in the request
|
||||
* message) are classified into three categories:
|
||||
* - Fields referred by the path template. They are passed via the URL path.
|
||||
* - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They are passed via the HTTP
|
||||
* - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They
|
||||
* are passed via the HTTP
|
||||
* request body.
|
||||
* - All other fields are passed via the URL query parameters, and the
|
||||
* parameter name is the field path in the request message. A repeated
|
||||
* field can be represented as multiple query parameters under the same
|
||||
* name.
|
||||
* 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL query parameter, all fields
|
||||
* 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL
|
||||
* query parameter, all fields
|
||||
* are passed via URL path and HTTP request body.
|
||||
* 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP request body, all
|
||||
* 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP
|
||||
* request body, all
|
||||
* fields are passed via URL path and URL query parameters.
|
||||
*
|
||||
* ### Path template syntax
|
||||
* Path template syntax
|
||||
*
|
||||
* Template = "/" Segments [ Verb ] ;
|
||||
* Segments = Segment { "/" Segment } ;
|
||||
@@ -273,7 +269,7 @@ export interface Http {
|
||||
* Document](https://developers.google.com/discovery/v1/reference/apis) as
|
||||
* `{+var}`.
|
||||
*
|
||||
* ## Using gRPC API Service Configuration
|
||||
* Using gRPC API Service Configuration
|
||||
*
|
||||
* gRPC API Service Configuration (service config) is a configuration language
|
||||
* for configuring a gRPC service to become a user-facing product. The
|
||||
@@ -288,15 +284,14 @@ export interface Http {
|
||||
* specified in the service config will override any matching transcoding
|
||||
* configuration in the proto.
|
||||
*
|
||||
* Example:
|
||||
* The following example selects a gRPC method and applies an `HttpRule` to it:
|
||||
*
|
||||
* http:
|
||||
* rules:
|
||||
* # Selects a gRPC method and applies HttpRule to it.
|
||||
* - selector: example.v1.Messaging.GetMessage
|
||||
* get: /v1/messages/{message_id}/{sub.subfield}
|
||||
*
|
||||
* ## Special notes
|
||||
* Special notes
|
||||
*
|
||||
* When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the
|
||||
* proto to JSON conversion must follow the [proto3
|
||||
@@ -330,12 +325,17 @@ export interface HttpRule {
|
||||
/**
|
||||
* Selects a method to which this rule applies.
|
||||
*
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
||||
* details.
|
||||
*
|
||||
* @generated from protobuf field: string selector = 1;
|
||||
* @generated from protobuf field: string selector = 1
|
||||
*/
|
||||
selector: string;
|
||||
/**
|
||||
* Determines the URL pattern is matched by this rules. This pattern can be
|
||||
* used with any of the {get|put|post|delete|patch} methods. A custom method
|
||||
* can be defined using the 'custom' field.
|
||||
*
|
||||
* @generated from protobuf oneof: pattern
|
||||
*/
|
||||
pattern: {
|
||||
@@ -344,7 +344,7 @@ export interface HttpRule {
|
||||
* Maps to HTTP GET. Used for listing and getting information about
|
||||
* resources.
|
||||
*
|
||||
* @generated from protobuf field: string get = 2;
|
||||
* @generated from protobuf field: string get = 2
|
||||
*/
|
||||
get: string;
|
||||
} | {
|
||||
@@ -352,7 +352,7 @@ export interface HttpRule {
|
||||
/**
|
||||
* Maps to HTTP PUT. Used for replacing a resource.
|
||||
*
|
||||
* @generated from protobuf field: string put = 3;
|
||||
* @generated from protobuf field: string put = 3
|
||||
*/
|
||||
put: string;
|
||||
} | {
|
||||
@@ -360,7 +360,7 @@ export interface HttpRule {
|
||||
/**
|
||||
* Maps to HTTP POST. Used for creating a resource or performing an action.
|
||||
*
|
||||
* @generated from protobuf field: string post = 4;
|
||||
* @generated from protobuf field: string post = 4
|
||||
*/
|
||||
post: string;
|
||||
} | {
|
||||
@@ -368,7 +368,7 @@ export interface HttpRule {
|
||||
/**
|
||||
* Maps to HTTP DELETE. Used for deleting a resource.
|
||||
*
|
||||
* @generated from protobuf field: string delete = 5;
|
||||
* @generated from protobuf field: string delete = 5
|
||||
*/
|
||||
delete: string;
|
||||
} | {
|
||||
@@ -376,7 +376,7 @@ export interface HttpRule {
|
||||
/**
|
||||
* Maps to HTTP PATCH. Used for updating a resource.
|
||||
*
|
||||
* @generated from protobuf field: string patch = 6;
|
||||
* @generated from protobuf field: string patch = 6
|
||||
*/
|
||||
patch: string;
|
||||
} | {
|
||||
@@ -387,7 +387,7 @@ export interface HttpRule {
|
||||
* HTTP method unspecified for this rule. The wild-card rule is useful
|
||||
* for services that provide content to Web (HTML) clients.
|
||||
*
|
||||
* @generated from protobuf field: google.api.CustomHttpPattern custom = 8;
|
||||
* @generated from protobuf field: google.api.CustomHttpPattern custom = 8
|
||||
*/
|
||||
custom: CustomHttpPattern;
|
||||
} | {
|
||||
@@ -401,7 +401,7 @@ export interface HttpRule {
|
||||
* NOTE: the referred field must be present at the top-level of the request
|
||||
* message type.
|
||||
*
|
||||
* @generated from protobuf field: string body = 7;
|
||||
* @generated from protobuf field: string body = 7
|
||||
*/
|
||||
body: string;
|
||||
/**
|
||||
@@ -412,17 +412,17 @@ export interface HttpRule {
|
||||
* NOTE: The referred field must be present at the top-level of the response
|
||||
* message type.
|
||||
*
|
||||
* @generated from protobuf field: string response_body = 12;
|
||||
* @generated from protobuf field: string response_body = 12
|
||||
*/
|
||||
responseBody: string;
|
||||
response_body: string;
|
||||
/**
|
||||
* Additional HTTP bindings for the selector. Nested bindings must
|
||||
* not contain an `additional_bindings` field themselves (that is,
|
||||
* the nesting may only be one level deep).
|
||||
*
|
||||
* @generated from protobuf field: repeated google.api.HttpRule additional_bindings = 11;
|
||||
* @generated from protobuf field: repeated google.api.HttpRule additional_bindings = 11
|
||||
*/
|
||||
additionalBindings: HttpRule[];
|
||||
additional_bindings: HttpRule[];
|
||||
}
|
||||
/**
|
||||
* A custom pattern is used for defining custom HTTP verb.
|
||||
@@ -433,13 +433,13 @@ export interface CustomHttpPattern {
|
||||
/**
|
||||
* The name of this custom HTTP verb.
|
||||
*
|
||||
* @generated from protobuf field: string kind = 1;
|
||||
* @generated from protobuf field: string kind = 1
|
||||
*/
|
||||
kind: string;
|
||||
/**
|
||||
* The path matched by this custom verb.
|
||||
*
|
||||
* @generated from protobuf field: string path = 2;
|
||||
* @generated from protobuf field: string path = 2
|
||||
*/
|
||||
path: string;
|
||||
}
|
||||
@@ -447,14 +447,14 @@ export interface CustomHttpPattern {
|
||||
class Http$Type extends MessageType<Http> {
|
||||
constructor() {
|
||||
super("google.api.Http", [
|
||||
{ no: 1, name: "rules", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => HttpRule },
|
||||
{ no: 2, name: "fully_decode_reserved_expansion", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
||||
{ no: 1, name: "rules", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => HttpRule },
|
||||
{ no: 2, name: "fully_decode_reserved_expansion", kind: "scalar", localName: "fully_decode_reserved_expansion", T: 8 /*ScalarType.BOOL*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<Http>): Http {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.rules = [];
|
||||
message.fullyDecodeReservedExpansion = false;
|
||||
message.fully_decode_reserved_expansion = false;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<Http>(this, message, value);
|
||||
return message;
|
||||
@@ -468,7 +468,7 @@ class Http$Type extends MessageType<Http> {
|
||||
message.rules.push(HttpRule.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* bool fully_decode_reserved_expansion */ 2:
|
||||
message.fullyDecodeReservedExpansion = reader.bool();
|
||||
message.fully_decode_reserved_expansion = reader.bool();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -486,8 +486,8 @@ class Http$Type extends MessageType<Http> {
|
||||
for (let i = 0; i < message.rules.length; i++)
|
||||
HttpRule.internalBinaryWrite(message.rules[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* bool fully_decode_reserved_expansion = 2; */
|
||||
if (message.fullyDecodeReservedExpansion !== false)
|
||||
writer.tag(2, WireType.Varint).bool(message.fullyDecodeReservedExpansion);
|
||||
if (message.fully_decode_reserved_expansion !== false)
|
||||
writer.tag(2, WireType.Varint).bool(message.fully_decode_reserved_expansion);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -510,8 +510,8 @@ class HttpRule$Type extends MessageType<HttpRule> {
|
||||
{ no: 6, name: "patch", kind: "scalar", oneof: "pattern", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 8, name: "custom", kind: "message", oneof: "pattern", T: () => CustomHttpPattern },
|
||||
{ no: 7, name: "body", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 12, name: "response_body", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 11, name: "additional_bindings", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => HttpRule }
|
||||
{ no: 12, name: "response_body", kind: "scalar", localName: "response_body", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 11, name: "additional_bindings", kind: "message", localName: "additional_bindings", repeat: 2 /*RepeatType.UNPACKED*/, T: () => HttpRule }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<HttpRule>): HttpRule {
|
||||
@@ -519,8 +519,8 @@ class HttpRule$Type extends MessageType<HttpRule> {
|
||||
message.selector = "";
|
||||
message.pattern = { oneofKind: undefined };
|
||||
message.body = "";
|
||||
message.responseBody = "";
|
||||
message.additionalBindings = [];
|
||||
message.response_body = "";
|
||||
message.additional_bindings = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<HttpRule>(this, message, value);
|
||||
return message;
|
||||
@@ -573,10 +573,10 @@ class HttpRule$Type extends MessageType<HttpRule> {
|
||||
message.body = reader.string();
|
||||
break;
|
||||
case /* string response_body */ 12:
|
||||
message.responseBody = reader.string();
|
||||
message.response_body = reader.string();
|
||||
break;
|
||||
case /* repeated google.api.HttpRule additional_bindings */ 11:
|
||||
message.additionalBindings.push(HttpRule.internalBinaryRead(reader, reader.uint32(), options));
|
||||
message.additional_bindings.push(HttpRule.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -608,18 +608,18 @@ class HttpRule$Type extends MessageType<HttpRule> {
|
||||
/* string patch = 6; */
|
||||
if (message.pattern.oneofKind === "patch")
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.pattern.patch);
|
||||
/* google.api.CustomHttpPattern custom = 8; */
|
||||
if (message.pattern.oneofKind === "custom")
|
||||
CustomHttpPattern.internalBinaryWrite(message.pattern.custom, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string body = 7; */
|
||||
if (message.body !== "")
|
||||
writer.tag(7, WireType.LengthDelimited).string(message.body);
|
||||
/* string response_body = 12; */
|
||||
if (message.responseBody !== "")
|
||||
writer.tag(12, WireType.LengthDelimited).string(message.responseBody);
|
||||
/* google.api.CustomHttpPattern custom = 8; */
|
||||
if (message.pattern.oneofKind === "custom")
|
||||
CustomHttpPattern.internalBinaryWrite(message.pattern.custom, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated google.api.HttpRule additional_bindings = 11; */
|
||||
for (let i = 0; i < message.additionalBindings.length; i++)
|
||||
HttpRule.internalBinaryWrite(message.additionalBindings[i], writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
||||
for (let i = 0; i < message.additional_bindings.length; i++)
|
||||
HttpRule.internalBinaryWrite(message.additional_bindings[i], writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string response_body = 12; */
|
||||
if (message.response_body !== "")
|
||||
writer.tag(12, WireType.LengthDelimited).string(message.response_body);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "google/api/httpbody.proto" (package "google.api", syntax proto3)
|
||||
// tslint:disable
|
||||
//
|
||||
// Copyright 2020 Google LLC
|
||||
// Copyright 2025 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
@@ -47,12 +47,15 @@ import { Any } from "../protobuf/any";
|
||||
*
|
||||
* // The raw HTTP body is bound to this field.
|
||||
* google.api.HttpBody http_body = 2;
|
||||
*
|
||||
* }
|
||||
*
|
||||
* service ResourceService {
|
||||
* rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
|
||||
* rpc UpdateResource(google.api.HttpBody) returns
|
||||
* (google.protobuf.Empty);
|
||||
* rpc GetResource(GetResourceRequest)
|
||||
* returns (google.api.HttpBody);
|
||||
* rpc UpdateResource(google.api.HttpBody)
|
||||
* returns (google.protobuf.Empty);
|
||||
*
|
||||
* }
|
||||
*
|
||||
* Example with streaming methods:
|
||||
@@ -62,6 +65,7 @@ import { Any } from "../protobuf/any";
|
||||
* returns (stream google.api.HttpBody);
|
||||
* rpc UpdateCalendar(stream google.api.HttpBody)
|
||||
* returns (stream google.api.HttpBody);
|
||||
*
|
||||
* }
|
||||
*
|
||||
* Use of this type only changes how the request and response bodies are
|
||||
@@ -73,20 +77,20 @@ export interface HttpBody {
|
||||
/**
|
||||
* The HTTP Content-Type header value specifying the content type of the body.
|
||||
*
|
||||
* @generated from protobuf field: string content_type = 1;
|
||||
* @generated from protobuf field: string content_type = 1
|
||||
*/
|
||||
contentType: string;
|
||||
content_type: string;
|
||||
/**
|
||||
* The HTTP request/response body as raw binary.
|
||||
*
|
||||
* @generated from protobuf field: bytes data = 2;
|
||||
* @generated from protobuf field: bytes data = 2
|
||||
*/
|
||||
data: Uint8Array;
|
||||
/**
|
||||
* Application specific response metadata. Must be set in the first response
|
||||
* for streaming APIs.
|
||||
*
|
||||
* @generated from protobuf field: repeated google.protobuf.Any extensions = 3;
|
||||
* @generated from protobuf field: repeated google.protobuf.Any extensions = 3
|
||||
*/
|
||||
extensions: Any[];
|
||||
}
|
||||
@@ -94,14 +98,14 @@ export interface HttpBody {
|
||||
class HttpBody$Type extends MessageType<HttpBody> {
|
||||
constructor() {
|
||||
super("google.api.HttpBody", [
|
||||
{ no: 1, name: "content_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 1, name: "content_type", kind: "scalar", localName: "content_type", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "data", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
||||
{ no: 3, name: "extensions", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Any }
|
||||
{ no: 3, name: "extensions", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Any }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<HttpBody>): HttpBody {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.contentType = "";
|
||||
message.content_type = "";
|
||||
message.data = new Uint8Array(0);
|
||||
message.extensions = [];
|
||||
if (value !== undefined)
|
||||
@@ -114,7 +118,7 @@ class HttpBody$Type extends MessageType<HttpBody> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string content_type */ 1:
|
||||
message.contentType = reader.string();
|
||||
message.content_type = reader.string();
|
||||
break;
|
||||
case /* bytes data */ 2:
|
||||
message.data = reader.bytes();
|
||||
@@ -135,8 +139,8 @@ class HttpBody$Type extends MessageType<HttpBody> {
|
||||
}
|
||||
internalBinaryWrite(message: HttpBody, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string content_type = 1; */
|
||||
if (message.contentType !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.contentType);
|
||||
if (message.content_type !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.content_type);
|
||||
/* bytes data = 2; */
|
||||
if (message.data.length)
|
||||
writer.tag(2, WireType.LengthDelimited).bytes(message.data);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "google/protobuf/any.proto" (package "google.protobuf", syntax proto3)
|
||||
// tslint:disable
|
||||
//
|
||||
@@ -73,6 +73,10 @@ import { MessageType } from "@protobuf-ts/runtime";
|
||||
* if (any.is(Foo.class)) {
|
||||
* foo = any.unpack(Foo.class);
|
||||
* }
|
||||
* // or ...
|
||||
* if (any.isSameTypeAs(Foo.getDefaultInstance())) {
|
||||
* foo = any.unpack(Foo.getDefaultInstance());
|
||||
* }
|
||||
*
|
||||
* Example 3: Pack and unpack a message in Python.
|
||||
*
|
||||
@@ -87,10 +91,13 @@ import { MessageType } from "@protobuf-ts/runtime";
|
||||
* Example 4: Pack and unpack a message in Go
|
||||
*
|
||||
* foo := &pb.Foo{...}
|
||||
* any, err := ptypes.MarshalAny(foo)
|
||||
* any, err := anypb.New(foo)
|
||||
* if err != nil {
|
||||
* ...
|
||||
* }
|
||||
* ...
|
||||
* foo := &pb.Foo{}
|
||||
* if err := ptypes.UnmarshalAny(any, foo); err != nil {
|
||||
* if err := any.UnmarshalTo(foo); err != nil {
|
||||
* ...
|
||||
* }
|
||||
*
|
||||
@@ -100,7 +107,6 @@ import { MessageType } from "@protobuf-ts/runtime";
|
||||
* in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
||||
* name "y.z".
|
||||
*
|
||||
*
|
||||
* JSON
|
||||
* ====
|
||||
* The JSON representation of an `Any` value uses the regular
|
||||
@@ -157,19 +163,20 @@ export interface Any {
|
||||
*
|
||||
* Note: this functionality is not currently available in the official
|
||||
* protobuf release, and it is not used for type URLs beginning with
|
||||
* type.googleapis.com.
|
||||
* type.googleapis.com. As of May 2023, there are no widely used type server
|
||||
* implementations and no plans to implement one.
|
||||
*
|
||||
* Schemes other than `http`, `https` (or the empty scheme) might be
|
||||
* used with implementation specific semantics.
|
||||
*
|
||||
*
|
||||
* @generated from protobuf field: string type_url = 1;
|
||||
* @generated from protobuf field: string type_url = 1
|
||||
*/
|
||||
typeUrl: string;
|
||||
type_url: string;
|
||||
/**
|
||||
* Must be a valid serialized protocol buffer of the above specified type.
|
||||
*
|
||||
* @generated from protobuf field: bytes value = 2;
|
||||
* @generated from protobuf field: bytes value = 2
|
||||
*/
|
||||
value: Uint8Array;
|
||||
}
|
||||
@@ -177,7 +184,7 @@ export interface Any {
|
||||
class Any$Type extends MessageType<Any> {
|
||||
constructor() {
|
||||
super("google.protobuf.Any", [
|
||||
{ no: 1, name: "type_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 1, name: "type_url", kind: "scalar", localName: "type_url", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "value", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
||||
]);
|
||||
}
|
||||
@@ -188,7 +195,7 @@ class Any$Type extends MessageType<Any> {
|
||||
*/
|
||||
pack<T extends object>(message: T, type: IMessageType<T>): Any {
|
||||
return {
|
||||
typeUrl: this.typeNameToUrl(type.typeName), value: type.toBinary(message),
|
||||
type_url: this.typeNameToUrl(type.typeName), value: type.toBinary(message),
|
||||
};
|
||||
}
|
||||
/**
|
||||
@@ -196,17 +203,17 @@ class Any$Type extends MessageType<Any> {
|
||||
*/
|
||||
unpack<T extends object>(any: Any, type: IMessageType<T>, options?: Partial<BinaryReadOptions>): T {
|
||||
if (!this.contains(any, type))
|
||||
throw new Error("Cannot unpack google.protobuf.Any with typeUrl '" + any.typeUrl + "' as " + type.typeName + ".");
|
||||
throw new Error("Cannot unpack google.protobuf.Any with type_url '" + any.type_url + "' as " + type.typeName + ".");
|
||||
return type.fromBinary(any.value, options);
|
||||
}
|
||||
/**
|
||||
* Does the given `Any` contain a packed message of the given type?
|
||||
*/
|
||||
contains(any: Any, type: IMessageType<any> | string): boolean {
|
||||
if (!any.typeUrl.length)
|
||||
if (!any.type_url.length)
|
||||
return false;
|
||||
let wants = typeof type == "string" ? type : type.typeName;
|
||||
let has = this.typeUrlToName(any.typeUrl);
|
||||
let has = this.typeUrlToName(any.type_url);
|
||||
return wants === has;
|
||||
}
|
||||
/**
|
||||
@@ -219,18 +226,18 @@ class Any$Type extends MessageType<Any> {
|
||||
* `google.protobuf.Any` from JSON format.
|
||||
*/
|
||||
internalJsonWrite(any: Any, options: JsonWriteOptions): JsonValue {
|
||||
if (any.typeUrl === "")
|
||||
if (any.type_url === "")
|
||||
return {};
|
||||
let typeName = this.typeUrlToName(any.typeUrl);
|
||||
let typeName = this.typeUrlToName(any.type_url);
|
||||
let opt = jsonWriteOptions(options);
|
||||
let type = opt.typeRegistry?.find(t => t.typeName === typeName);
|
||||
if (!type)
|
||||
throw new globalThis.Error("Unable to convert google.protobuf.Any with typeUrl '" + any.typeUrl + "' to JSON. The specified type " + typeName + " is not available in the type registry.");
|
||||
throw new globalThis.Error("Unable to convert google.protobuf.Any with typeUrl '" + any.type_url + "' to JSON. The specified type " + typeName + " is not available in the type registry.");
|
||||
let value = type.fromBinary(any.value, { readUnknownField: false });
|
||||
let json = type.internalJsonWrite(value, opt);
|
||||
if (typeName.startsWith("google.protobuf.") || !isJsonObject(json))
|
||||
json = { value: json };
|
||||
json["@type"] = any.typeUrl;
|
||||
json["@type"] = any.type_url;
|
||||
return json;
|
||||
}
|
||||
internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Any): Any {
|
||||
@@ -252,7 +259,7 @@ class Any$Type extends MessageType<Any> {
|
||||
}
|
||||
if (target === undefined)
|
||||
target = this.create();
|
||||
target.typeUrl = json["@type"];
|
||||
target.type_url = json["@type"];
|
||||
target.value = type.toBinary(value);
|
||||
return target;
|
||||
}
|
||||
@@ -272,7 +279,7 @@ class Any$Type extends MessageType<Any> {
|
||||
}
|
||||
create(value?: PartialMessage<Any>): Any {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.typeUrl = "";
|
||||
message.type_url = "";
|
||||
message.value = new Uint8Array(0);
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<Any>(this, message, value);
|
||||
@@ -284,7 +291,7 @@ class Any$Type extends MessageType<Any> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string type_url */ 1:
|
||||
message.typeUrl = reader.string();
|
||||
message.type_url = reader.string();
|
||||
break;
|
||||
case /* bytes value */ 2:
|
||||
message.value = reader.bytes();
|
||||
@@ -302,8 +309,8 @@ class Any$Type extends MessageType<Any> {
|
||||
}
|
||||
internalBinaryWrite(message: Any, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string type_url = 1; */
|
||||
if (message.typeUrl !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.typeUrl);
|
||||
if (message.type_url !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.type_url);
|
||||
/* bytes value = 2; */
|
||||
if (message.value.length)
|
||||
writer.tag(2, WireType.LengthDelimited).bytes(message.value);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "google/protobuf/api.proto" (package "google.protobuf", syntax proto3)
|
||||
// tslint:disable
|
||||
//
|
||||
@@ -55,6 +55,11 @@ import { Option } from "./type";
|
||||
* this message itself. See https://cloud.google.com/apis/design/glossary for
|
||||
* detailed terminology.
|
||||
*
|
||||
* New usages of this message as an alternative to ServiceDescriptorProto are
|
||||
* strongly discouraged. This message does not reliability preserve all
|
||||
* information necessary to model the schema and preserve semantics. Instead
|
||||
* make use of FileDescriptorSet which preserves the necessary information.
|
||||
*
|
||||
* @generated from protobuf message google.protobuf.Api
|
||||
*/
|
||||
export interface Api {
|
||||
@@ -62,19 +67,19 @@ export interface Api {
|
||||
* The fully qualified name of this interface, including package name
|
||||
* followed by the interface's simple name.
|
||||
*
|
||||
* @generated from protobuf field: string name = 1;
|
||||
* @generated from protobuf field: string name = 1
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* The methods of this interface, in unspecified order.
|
||||
*
|
||||
* @generated from protobuf field: repeated google.protobuf.Method methods = 2;
|
||||
* @generated from protobuf field: repeated google.protobuf.Method methods = 2
|
||||
*/
|
||||
methods: Method[];
|
||||
/**
|
||||
* Any metadata attached to the interface.
|
||||
*
|
||||
* @generated from protobuf field: repeated google.protobuf.Option options = 3;
|
||||
* @generated from protobuf field: repeated google.protobuf.Option options = 3
|
||||
*/
|
||||
options: Option[];
|
||||
/**
|
||||
@@ -99,78 +104,102 @@ export interface Api {
|
||||
* experimental, non-GA interfaces.
|
||||
*
|
||||
*
|
||||
*
|
||||
* @generated from protobuf field: string version = 4;
|
||||
* @generated from protobuf field: string version = 4
|
||||
*/
|
||||
version: string;
|
||||
/**
|
||||
* Source context for the protocol buffer service represented by this
|
||||
* message.
|
||||
*
|
||||
* @generated from protobuf field: google.protobuf.SourceContext source_context = 5;
|
||||
* @generated from protobuf field: google.protobuf.SourceContext source_context = 5
|
||||
*/
|
||||
sourceContext?: SourceContext;
|
||||
source_context?: SourceContext;
|
||||
/**
|
||||
* Included interfaces. See [Mixin][].
|
||||
*
|
||||
* @generated from protobuf field: repeated google.protobuf.Mixin mixins = 6;
|
||||
* @generated from protobuf field: repeated google.protobuf.Mixin mixins = 6
|
||||
*/
|
||||
mixins: Mixin[];
|
||||
/**
|
||||
* The source syntax of the service.
|
||||
*
|
||||
* @generated from protobuf field: google.protobuf.Syntax syntax = 7;
|
||||
* @generated from protobuf field: google.protobuf.Syntax syntax = 7
|
||||
*/
|
||||
syntax: Syntax;
|
||||
/**
|
||||
* The source edition string, only valid when syntax is SYNTAX_EDITIONS.
|
||||
*
|
||||
* @generated from protobuf field: string edition = 8
|
||||
*/
|
||||
edition: string;
|
||||
}
|
||||
/**
|
||||
* Method represents a method of an API interface.
|
||||
*
|
||||
* New usages of this message as an alternative to MethodDescriptorProto are
|
||||
* strongly discouraged. This message does not reliability preserve all
|
||||
* information necessary to model the schema and preserve semantics. Instead
|
||||
* make use of FileDescriptorSet which preserves the necessary information.
|
||||
*
|
||||
* @generated from protobuf message google.protobuf.Method
|
||||
*/
|
||||
export interface Method {
|
||||
/**
|
||||
* The simple name of this method.
|
||||
*
|
||||
* @generated from protobuf field: string name = 1;
|
||||
* @generated from protobuf field: string name = 1
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* A URL of the input message type.
|
||||
*
|
||||
* @generated from protobuf field: string request_type_url = 2;
|
||||
* @generated from protobuf field: string request_type_url = 2
|
||||
*/
|
||||
requestTypeUrl: string;
|
||||
request_type_url: string;
|
||||
/**
|
||||
* If true, the request is streamed.
|
||||
*
|
||||
* @generated from protobuf field: bool request_streaming = 3;
|
||||
* @generated from protobuf field: bool request_streaming = 3
|
||||
*/
|
||||
requestStreaming: boolean;
|
||||
request_streaming: boolean;
|
||||
/**
|
||||
* The URL of the output message type.
|
||||
*
|
||||
* @generated from protobuf field: string response_type_url = 4;
|
||||
* @generated from protobuf field: string response_type_url = 4
|
||||
*/
|
||||
responseTypeUrl: string;
|
||||
response_type_url: string;
|
||||
/**
|
||||
* If true, the response is streamed.
|
||||
*
|
||||
* @generated from protobuf field: bool response_streaming = 5;
|
||||
* @generated from protobuf field: bool response_streaming = 5
|
||||
*/
|
||||
responseStreaming: boolean;
|
||||
response_streaming: boolean;
|
||||
/**
|
||||
* Any metadata attached to the method.
|
||||
*
|
||||
* @generated from protobuf field: repeated google.protobuf.Option options = 6;
|
||||
* @generated from protobuf field: repeated google.protobuf.Option options = 6
|
||||
*/
|
||||
options: Option[];
|
||||
/**
|
||||
* The source syntax of this method.
|
||||
*
|
||||
* @generated from protobuf field: google.protobuf.Syntax syntax = 7;
|
||||
* This field should be ignored, instead the syntax should be inherited from
|
||||
* Api. This is similar to Field and EnumValue.
|
||||
*
|
||||
* @deprecated
|
||||
* @generated from protobuf field: google.protobuf.Syntax syntax = 7 [deprecated = true]
|
||||
*/
|
||||
syntax: Syntax;
|
||||
/**
|
||||
* The source edition string, only valid when syntax is SYNTAX_EDITIONS.
|
||||
*
|
||||
* This field should be ignored, instead the edition should be inherited from
|
||||
* Api. This is similar to Field and EnumValue.
|
||||
*
|
||||
* @deprecated
|
||||
* @generated from protobuf field: string edition = 8 [deprecated = true]
|
||||
*/
|
||||
edition: string;
|
||||
}
|
||||
/**
|
||||
* Declares an API Interface to be included in this interface. The including
|
||||
@@ -220,7 +249,7 @@ export interface Method {
|
||||
* The mixin construct implies that all methods in `AccessControl` are
|
||||
* also declared with same name and request/response types in
|
||||
* `Storage`. A documentation generator or annotation processor will
|
||||
* see the effective `Storage.GetAcl` method after inherting
|
||||
* see the effective `Storage.GetAcl` method after inheriting
|
||||
* documentation and annotations as follows:
|
||||
*
|
||||
* service Storage {
|
||||
@@ -258,14 +287,14 @@ export interface Mixin {
|
||||
/**
|
||||
* The fully qualified name of the interface which is included.
|
||||
*
|
||||
* @generated from protobuf field: string name = 1;
|
||||
* @generated from protobuf field: string name = 1
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* If non-empty specifies a path under which inherited HTTP paths
|
||||
* are rooted.
|
||||
*
|
||||
* @generated from protobuf field: string root = 2;
|
||||
* @generated from protobuf field: string root = 2
|
||||
*/
|
||||
root: string;
|
||||
}
|
||||
@@ -274,12 +303,13 @@ class Api$Type extends MessageType<Api> {
|
||||
constructor() {
|
||||
super("google.protobuf.Api", [
|
||||
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "methods", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Method },
|
||||
{ no: 3, name: "options", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Option },
|
||||
{ no: 2, name: "methods", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Method },
|
||||
{ no: 3, name: "options", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Option },
|
||||
{ no: 4, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 5, name: "source_context", kind: "message", T: () => SourceContext },
|
||||
{ no: 6, name: "mixins", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Mixin },
|
||||
{ no: 7, name: "syntax", kind: "enum", T: () => ["google.protobuf.Syntax", Syntax, "SYNTAX_"] }
|
||||
{ no: 5, name: "source_context", kind: "message", localName: "source_context", T: () => SourceContext },
|
||||
{ no: 6, name: "mixins", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Mixin },
|
||||
{ no: 7, name: "syntax", kind: "enum", T: () => ["google.protobuf.Syntax", Syntax, "SYNTAX_"] },
|
||||
{ no: 8, name: "edition", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<Api>): Api {
|
||||
@@ -290,6 +320,7 @@ class Api$Type extends MessageType<Api> {
|
||||
message.version = "";
|
||||
message.mixins = [];
|
||||
message.syntax = 0;
|
||||
message.edition = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<Api>(this, message, value);
|
||||
return message;
|
||||
@@ -312,7 +343,7 @@ class Api$Type extends MessageType<Api> {
|
||||
message.version = reader.string();
|
||||
break;
|
||||
case /* google.protobuf.SourceContext source_context */ 5:
|
||||
message.sourceContext = SourceContext.internalBinaryRead(reader, reader.uint32(), options, message.sourceContext);
|
||||
message.source_context = SourceContext.internalBinaryRead(reader, reader.uint32(), options, message.source_context);
|
||||
break;
|
||||
case /* repeated google.protobuf.Mixin mixins */ 6:
|
||||
message.mixins.push(Mixin.internalBinaryRead(reader, reader.uint32(), options));
|
||||
@@ -320,6 +351,9 @@ class Api$Type extends MessageType<Api> {
|
||||
case /* google.protobuf.Syntax syntax */ 7:
|
||||
message.syntax = reader.int32();
|
||||
break;
|
||||
case /* string edition */ 8:
|
||||
message.edition = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -345,14 +379,17 @@ class Api$Type extends MessageType<Api> {
|
||||
if (message.version !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.version);
|
||||
/* google.protobuf.SourceContext source_context = 5; */
|
||||
if (message.sourceContext)
|
||||
SourceContext.internalBinaryWrite(message.sourceContext, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.source_context)
|
||||
SourceContext.internalBinaryWrite(message.source_context, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated google.protobuf.Mixin mixins = 6; */
|
||||
for (let i = 0; i < message.mixins.length; i++)
|
||||
Mixin.internalBinaryWrite(message.mixins[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
||||
/* google.protobuf.Syntax syntax = 7; */
|
||||
if (message.syntax !== 0)
|
||||
writer.tag(7, WireType.Varint).int32(message.syntax);
|
||||
/* string edition = 8; */
|
||||
if (message.edition !== "")
|
||||
writer.tag(8, WireType.LengthDelimited).string(message.edition);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -368,23 +405,25 @@ class Method$Type extends MessageType<Method> {
|
||||
constructor() {
|
||||
super("google.protobuf.Method", [
|
||||
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "request_type_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "request_streaming", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 4, name: "response_type_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 5, name: "response_streaming", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 6, name: "options", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Option },
|
||||
{ no: 7, name: "syntax", kind: "enum", T: () => ["google.protobuf.Syntax", Syntax, "SYNTAX_"] }
|
||||
{ no: 2, name: "request_type_url", kind: "scalar", localName: "request_type_url", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "request_streaming", kind: "scalar", localName: "request_streaming", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 4, name: "response_type_url", kind: "scalar", localName: "response_type_url", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 5, name: "response_streaming", kind: "scalar", localName: "response_streaming", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 6, name: "options", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Option },
|
||||
{ no: 7, name: "syntax", kind: "enum", T: () => ["google.protobuf.Syntax", Syntax, "SYNTAX_"] },
|
||||
{ no: 8, name: "edition", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<Method>): Method {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.name = "";
|
||||
message.requestTypeUrl = "";
|
||||
message.requestStreaming = false;
|
||||
message.responseTypeUrl = "";
|
||||
message.responseStreaming = false;
|
||||
message.request_type_url = "";
|
||||
message.request_streaming = false;
|
||||
message.response_type_url = "";
|
||||
message.response_streaming = false;
|
||||
message.options = [];
|
||||
message.syntax = 0;
|
||||
message.edition = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<Method>(this, message, value);
|
||||
return message;
|
||||
@@ -398,23 +437,26 @@ class Method$Type extends MessageType<Method> {
|
||||
message.name = reader.string();
|
||||
break;
|
||||
case /* string request_type_url */ 2:
|
||||
message.requestTypeUrl = reader.string();
|
||||
message.request_type_url = reader.string();
|
||||
break;
|
||||
case /* bool request_streaming */ 3:
|
||||
message.requestStreaming = reader.bool();
|
||||
message.request_streaming = reader.bool();
|
||||
break;
|
||||
case /* string response_type_url */ 4:
|
||||
message.responseTypeUrl = reader.string();
|
||||
message.response_type_url = reader.string();
|
||||
break;
|
||||
case /* bool response_streaming */ 5:
|
||||
message.responseStreaming = reader.bool();
|
||||
message.response_streaming = reader.bool();
|
||||
break;
|
||||
case /* repeated google.protobuf.Option options */ 6:
|
||||
message.options.push(Option.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* google.protobuf.Syntax syntax */ 7:
|
||||
case /* google.protobuf.Syntax syntax = 7 [deprecated = true] */ 7:
|
||||
message.syntax = reader.int32();
|
||||
break;
|
||||
case /* string edition = 8 [deprecated = true] */ 8:
|
||||
message.edition = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -431,23 +473,26 @@ class Method$Type extends MessageType<Method> {
|
||||
if (message.name !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
||||
/* string request_type_url = 2; */
|
||||
if (message.requestTypeUrl !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.requestTypeUrl);
|
||||
if (message.request_type_url !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.request_type_url);
|
||||
/* bool request_streaming = 3; */
|
||||
if (message.requestStreaming !== false)
|
||||
writer.tag(3, WireType.Varint).bool(message.requestStreaming);
|
||||
if (message.request_streaming !== false)
|
||||
writer.tag(3, WireType.Varint).bool(message.request_streaming);
|
||||
/* string response_type_url = 4; */
|
||||
if (message.responseTypeUrl !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.responseTypeUrl);
|
||||
if (message.response_type_url !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.response_type_url);
|
||||
/* bool response_streaming = 5; */
|
||||
if (message.responseStreaming !== false)
|
||||
writer.tag(5, WireType.Varint).bool(message.responseStreaming);
|
||||
if (message.response_streaming !== false)
|
||||
writer.tag(5, WireType.Varint).bool(message.response_streaming);
|
||||
/* repeated google.protobuf.Option options = 6; */
|
||||
for (let i = 0; i < message.options.length; i++)
|
||||
Option.internalBinaryWrite(message.options[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
||||
/* google.protobuf.Syntax syntax = 7; */
|
||||
/* google.protobuf.Syntax syntax = 7 [deprecated = true]; */
|
||||
if (message.syntax !== 0)
|
||||
writer.tag(7, WireType.Varint).int32(message.syntax);
|
||||
/* string edition = 8 [deprecated = true]; */
|
||||
if (message.edition !== "")
|
||||
writer.tag(8, WireType.LengthDelimited).string(message.edition);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
@@ -1,43 +1,17 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "google/protobuf/compiler/plugin.proto" (package "google.protobuf.compiler", syntax proto2)
|
||||
// tslint:disable
|
||||
//
|
||||
// Protocol Buffers - Google's data interchange format
|
||||
// Copyright 2008 Google Inc. All rights reserved.
|
||||
// https://developers.google.com/protocol-buffers/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
// met:
|
||||
//
|
||||
// * Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above
|
||||
// copyright notice, this list of conditions and the following disclaimer
|
||||
// in the documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
// * Neither the name of Google Inc. nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from
|
||||
// this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file or at
|
||||
// https://developers.google.com/open-source/licenses/bsd
|
||||
//
|
||||
//
|
||||
// Author: kenton@google.com (Kenton Varda)
|
||||
//
|
||||
// WARNING: The plugin interface is currently EXPERIMENTAL and is subject to
|
||||
// change.
|
||||
//
|
||||
// protoc (aka the Protocol Compiler) can be extended via plugins. A plugin is
|
||||
// just a program that reads a CodeGeneratorRequest from stdin and writes a
|
||||
// CodeGeneratorResponse to stdout.
|
||||
@@ -58,6 +32,7 @@ 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 { GeneratedCodeInfo } from "../descriptor";
|
||||
import { FileDescriptorProto } from "../descriptor";
|
||||
/**
|
||||
* The version number of protocol compiler.
|
||||
@@ -66,22 +41,22 @@ import { FileDescriptorProto } from "../descriptor";
|
||||
*/
|
||||
export interface Version {
|
||||
/**
|
||||
* @generated from protobuf field: optional int32 major = 1;
|
||||
* @generated from protobuf field: optional int32 major = 1
|
||||
*/
|
||||
major?: number;
|
||||
/**
|
||||
* @generated from protobuf field: optional int32 minor = 2;
|
||||
* @generated from protobuf field: optional int32 minor = 2
|
||||
*/
|
||||
minor?: number;
|
||||
/**
|
||||
* @generated from protobuf field: optional int32 patch = 3;
|
||||
* @generated from protobuf field: optional int32 patch = 3
|
||||
*/
|
||||
patch?: number;
|
||||
/**
|
||||
* A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
|
||||
* be empty for mainline stable releases.
|
||||
*
|
||||
* @generated from protobuf field: optional string suffix = 4;
|
||||
* @generated from protobuf field: optional string suffix = 4
|
||||
*/
|
||||
suffix?: string;
|
||||
}
|
||||
@@ -96,13 +71,13 @@ export interface CodeGeneratorRequest {
|
||||
* code generator should generate code only for these files. Each file's
|
||||
* descriptor will be included in proto_file, below.
|
||||
*
|
||||
* @generated from protobuf field: repeated string file_to_generate = 1;
|
||||
* @generated from protobuf field: repeated string file_to_generate = 1
|
||||
*/
|
||||
fileToGenerate: string[];
|
||||
file_to_generate: string[];
|
||||
/**
|
||||
* The generator parameter passed on the command-line.
|
||||
*
|
||||
* @generated from protobuf field: optional string parameter = 2;
|
||||
* @generated from protobuf field: optional string parameter = 2
|
||||
*/
|
||||
parameter?: string;
|
||||
/**
|
||||
@@ -110,6 +85,11 @@ export interface CodeGeneratorRequest {
|
||||
* they import. The files will appear in topological order, so each file
|
||||
* appears before any file that imports it.
|
||||
*
|
||||
* Note: the files listed in files_to_generate will include runtime-retention
|
||||
* options only, but all other files will include source-retention options.
|
||||
* The source_file_descriptors field below is available in case you need
|
||||
* source-retention options for files_to_generate.
|
||||
*
|
||||
* protoc guarantees that all proto_files will be written after
|
||||
* the fields above, even though this is not technically guaranteed by the
|
||||
* protobuf wire format. This theoretically could allow a plugin to stream
|
||||
@@ -121,15 +101,23 @@ export interface CodeGeneratorRequest {
|
||||
* Type names of fields and extensions in the FileDescriptorProto are always
|
||||
* fully qualified.
|
||||
*
|
||||
* @generated from protobuf field: repeated google.protobuf.FileDescriptorProto proto_file = 15;
|
||||
* @generated from protobuf field: repeated google.protobuf.FileDescriptorProto proto_file = 15
|
||||
*/
|
||||
protoFile: FileDescriptorProto[];
|
||||
proto_file: FileDescriptorProto[];
|
||||
/**
|
||||
* File descriptors with all options, including source-retention options.
|
||||
* These descriptors are only provided for the files listed in
|
||||
* files_to_generate.
|
||||
*
|
||||
* @generated from protobuf field: repeated google.protobuf.FileDescriptorProto source_file_descriptors = 17
|
||||
*/
|
||||
source_file_descriptors: FileDescriptorProto[];
|
||||
/**
|
||||
* The version number of protocol compiler.
|
||||
*
|
||||
* @generated from protobuf field: optional google.protobuf.compiler.Version compiler_version = 3;
|
||||
* @generated from protobuf field: optional google.protobuf.compiler.Version compiler_version = 3
|
||||
*/
|
||||
compilerVersion?: Version;
|
||||
compiler_version?: Version;
|
||||
}
|
||||
/**
|
||||
* The plugin writes an encoded CodeGeneratorResponse to stdout.
|
||||
@@ -147,11 +135,36 @@ export interface CodeGeneratorResponse {
|
||||
* unparseable -- should be reported by writing a message to stderr and
|
||||
* exiting with a non-zero status code.
|
||||
*
|
||||
* @generated from protobuf field: optional string error = 1;
|
||||
* @generated from protobuf field: optional string error = 1
|
||||
*/
|
||||
error?: string;
|
||||
/**
|
||||
* @generated from protobuf field: repeated google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
|
||||
* A bitmask of supported features that the code generator supports.
|
||||
* This is a bitwise "or" of values from the Feature enum.
|
||||
*
|
||||
* @generated from protobuf field: optional uint64 supported_features = 2
|
||||
*/
|
||||
supported_features?: bigint;
|
||||
/**
|
||||
* The minimum edition this plugin supports. This will be treated as an
|
||||
* Edition enum, but we want to allow unknown values. It should be specified
|
||||
* according the edition enum value, *not* the edition number. Only takes
|
||||
* effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.
|
||||
*
|
||||
* @generated from protobuf field: optional int32 minimum_edition = 3
|
||||
*/
|
||||
minimum_edition?: number;
|
||||
/**
|
||||
* The maximum edition this plugin supports. This will be treated as an
|
||||
* Edition enum, but we want to allow unknown values. It should be specified
|
||||
* according the edition enum value, *not* the edition number. Only takes
|
||||
* effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.
|
||||
*
|
||||
* @generated from protobuf field: optional int32 maximum_edition = 4
|
||||
*/
|
||||
maximum_edition?: number;
|
||||
/**
|
||||
* @generated from protobuf field: repeated google.protobuf.compiler.CodeGeneratorResponse.File file = 15
|
||||
*/
|
||||
file: CodeGeneratorResponse_File[];
|
||||
}
|
||||
@@ -174,7 +187,7 @@ export interface CodeGeneratorResponse_File {
|
||||
* this writing protoc does not optimize for this -- it will read the entire
|
||||
* CodeGeneratorResponse before writing files to disk.
|
||||
*
|
||||
* @generated from protobuf field: optional string name = 1;
|
||||
* @generated from protobuf field: optional string name = 1
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
@@ -216,15 +229,42 @@ export interface CodeGeneratorResponse_File {
|
||||
*
|
||||
* If |insertion_point| is present, |name| must also be present.
|
||||
*
|
||||
* @generated from protobuf field: optional string insertion_point = 2;
|
||||
* @generated from protobuf field: optional string insertion_point = 2
|
||||
*/
|
||||
insertionPoint?: string;
|
||||
insertion_point?: string;
|
||||
/**
|
||||
* The file contents.
|
||||
*
|
||||
* @generated from protobuf field: optional string content = 15;
|
||||
* @generated from protobuf field: optional string content = 15
|
||||
*/
|
||||
content?: string;
|
||||
/**
|
||||
* Information describing the file content being inserted. If an insertion
|
||||
* point is used, this information will be appropriately offset and inserted
|
||||
* into the code generation metadata for the generated files.
|
||||
*
|
||||
* @generated from protobuf field: optional google.protobuf.GeneratedCodeInfo generated_code_info = 16
|
||||
*/
|
||||
generated_code_info?: GeneratedCodeInfo;
|
||||
}
|
||||
/**
|
||||
* Sync with code_generator.h.
|
||||
*
|
||||
* @generated from protobuf enum google.protobuf.compiler.CodeGeneratorResponse.Feature
|
||||
*/
|
||||
export enum CodeGeneratorResponse_Feature {
|
||||
/**
|
||||
* @generated from protobuf enum value: FEATURE_NONE = 0;
|
||||
*/
|
||||
NONE = 0,
|
||||
/**
|
||||
* @generated from protobuf enum value: FEATURE_PROTO3_OPTIONAL = 1;
|
||||
*/
|
||||
PROTO3_OPTIONAL = 1,
|
||||
/**
|
||||
* @generated from protobuf enum value: FEATURE_SUPPORTS_EDITIONS = 2;
|
||||
*/
|
||||
SUPPORTS_EDITIONS = 2
|
||||
}
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class Version$Type extends MessageType<Version> {
|
||||
@@ -297,16 +337,18 @@ export const Version = new Version$Type();
|
||||
class CodeGeneratorRequest$Type extends MessageType<CodeGeneratorRequest> {
|
||||
constructor() {
|
||||
super("google.protobuf.compiler.CodeGeneratorRequest", [
|
||||
{ no: 1, name: "file_to_generate", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 1, name: "file_to_generate", kind: "scalar", localName: "file_to_generate", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "parameter", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 15, name: "proto_file", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FileDescriptorProto },
|
||||
{ no: 3, name: "compiler_version", kind: "message", T: () => Version }
|
||||
{ no: 15, name: "proto_file", kind: "message", localName: "proto_file", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FileDescriptorProto },
|
||||
{ no: 17, name: "source_file_descriptors", kind: "message", localName: "source_file_descriptors", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FileDescriptorProto },
|
||||
{ no: 3, name: "compiler_version", kind: "message", localName: "compiler_version", T: () => Version }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<CodeGeneratorRequest>): CodeGeneratorRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.fileToGenerate = [];
|
||||
message.protoFile = [];
|
||||
message.file_to_generate = [];
|
||||
message.proto_file = [];
|
||||
message.source_file_descriptors = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CodeGeneratorRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -317,16 +359,19 @@ class CodeGeneratorRequest$Type extends MessageType<CodeGeneratorRequest> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated string file_to_generate */ 1:
|
||||
message.fileToGenerate.push(reader.string());
|
||||
message.file_to_generate.push(reader.string());
|
||||
break;
|
||||
case /* optional string parameter */ 2:
|
||||
message.parameter = reader.string();
|
||||
break;
|
||||
case /* repeated google.protobuf.FileDescriptorProto proto_file */ 15:
|
||||
message.protoFile.push(FileDescriptorProto.internalBinaryRead(reader, reader.uint32(), options));
|
||||
message.proto_file.push(FileDescriptorProto.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated google.protobuf.FileDescriptorProto source_file_descriptors */ 17:
|
||||
message.source_file_descriptors.push(FileDescriptorProto.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* optional google.protobuf.compiler.Version compiler_version */ 3:
|
||||
message.compilerVersion = Version.internalBinaryRead(reader, reader.uint32(), options, message.compilerVersion);
|
||||
message.compiler_version = Version.internalBinaryRead(reader, reader.uint32(), options, message.compiler_version);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -341,17 +386,20 @@ class CodeGeneratorRequest$Type extends MessageType<CodeGeneratorRequest> {
|
||||
}
|
||||
internalBinaryWrite(message: CodeGeneratorRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated string file_to_generate = 1; */
|
||||
for (let i = 0; i < message.fileToGenerate.length; i++)
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.fileToGenerate[i]);
|
||||
for (let i = 0; i < message.file_to_generate.length; i++)
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.file_to_generate[i]);
|
||||
/* optional string parameter = 2; */
|
||||
if (message.parameter !== undefined)
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.parameter);
|
||||
/* repeated google.protobuf.FileDescriptorProto proto_file = 15; */
|
||||
for (let i = 0; i < message.protoFile.length; i++)
|
||||
FileDescriptorProto.internalBinaryWrite(message.protoFile[i], writer.tag(15, WireType.LengthDelimited).fork(), options).join();
|
||||
/* optional google.protobuf.compiler.Version compiler_version = 3; */
|
||||
if (message.compilerVersion)
|
||||
Version.internalBinaryWrite(message.compilerVersion, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.compiler_version)
|
||||
Version.internalBinaryWrite(message.compiler_version, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated google.protobuf.FileDescriptorProto proto_file = 15; */
|
||||
for (let i = 0; i < message.proto_file.length; i++)
|
||||
FileDescriptorProto.internalBinaryWrite(message.proto_file[i], writer.tag(15, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated google.protobuf.FileDescriptorProto source_file_descriptors = 17; */
|
||||
for (let i = 0; i < message.source_file_descriptors.length; i++)
|
||||
FileDescriptorProto.internalBinaryWrite(message.source_file_descriptors[i], writer.tag(17, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -367,6 +415,9 @@ class CodeGeneratorResponse$Type extends MessageType<CodeGeneratorResponse> {
|
||||
constructor() {
|
||||
super("google.protobuf.compiler.CodeGeneratorResponse", [
|
||||
{ no: 1, name: "error", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "supported_features", kind: "scalar", localName: "supported_features", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
||||
{ no: 3, name: "minimum_edition", kind: "scalar", localName: "minimum_edition", opt: true, T: 5 /*ScalarType.INT32*/ },
|
||||
{ no: 4, name: "maximum_edition", kind: "scalar", localName: "maximum_edition", opt: true, T: 5 /*ScalarType.INT32*/ },
|
||||
{ no: 15, name: "file", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CodeGeneratorResponse_File }
|
||||
]);
|
||||
}
|
||||
@@ -385,6 +436,15 @@ class CodeGeneratorResponse$Type extends MessageType<CodeGeneratorResponse> {
|
||||
case /* optional string error */ 1:
|
||||
message.error = reader.string();
|
||||
break;
|
||||
case /* optional uint64 supported_features */ 2:
|
||||
message.supported_features = reader.uint64().toBigInt();
|
||||
break;
|
||||
case /* optional int32 minimum_edition */ 3:
|
||||
message.minimum_edition = reader.int32();
|
||||
break;
|
||||
case /* optional int32 maximum_edition */ 4:
|
||||
message.maximum_edition = reader.int32();
|
||||
break;
|
||||
case /* repeated google.protobuf.compiler.CodeGeneratorResponse.File file */ 15:
|
||||
message.file.push(CodeGeneratorResponse_File.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
@@ -403,6 +463,15 @@ class CodeGeneratorResponse$Type extends MessageType<CodeGeneratorResponse> {
|
||||
/* optional string error = 1; */
|
||||
if (message.error !== undefined)
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.error);
|
||||
/* optional uint64 supported_features = 2; */
|
||||
if (message.supported_features !== undefined)
|
||||
writer.tag(2, WireType.Varint).uint64(message.supported_features);
|
||||
/* optional int32 minimum_edition = 3; */
|
||||
if (message.minimum_edition !== undefined)
|
||||
writer.tag(3, WireType.Varint).int32(message.minimum_edition);
|
||||
/* optional int32 maximum_edition = 4; */
|
||||
if (message.maximum_edition !== undefined)
|
||||
writer.tag(4, WireType.Varint).int32(message.maximum_edition);
|
||||
/* repeated google.protobuf.compiler.CodeGeneratorResponse.File file = 15; */
|
||||
for (let i = 0; i < message.file.length; i++)
|
||||
CodeGeneratorResponse_File.internalBinaryWrite(message.file[i], writer.tag(15, WireType.LengthDelimited).fork(), options).join();
|
||||
@@ -421,8 +490,9 @@ class CodeGeneratorResponse_File$Type extends MessageType<CodeGeneratorResponse_
|
||||
constructor() {
|
||||
super("google.protobuf.compiler.CodeGeneratorResponse.File", [
|
||||
{ no: 1, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "insertion_point", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 15, name: "content", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
||||
{ no: 2, name: "insertion_point", kind: "scalar", localName: "insertion_point", opt: true, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 15, name: "content", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 16, name: "generated_code_info", kind: "message", localName: "generated_code_info", T: () => GeneratedCodeInfo }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<CodeGeneratorResponse_File>): CodeGeneratorResponse_File {
|
||||
@@ -440,11 +510,14 @@ class CodeGeneratorResponse_File$Type extends MessageType<CodeGeneratorResponse_
|
||||
message.name = reader.string();
|
||||
break;
|
||||
case /* optional string insertion_point */ 2:
|
||||
message.insertionPoint = reader.string();
|
||||
message.insertion_point = reader.string();
|
||||
break;
|
||||
case /* optional string content */ 15:
|
||||
message.content = reader.string();
|
||||
break;
|
||||
case /* optional google.protobuf.GeneratedCodeInfo generated_code_info */ 16:
|
||||
message.generated_code_info = GeneratedCodeInfo.internalBinaryRead(reader, reader.uint32(), options, message.generated_code_info);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -461,11 +534,14 @@ class CodeGeneratorResponse_File$Type extends MessageType<CodeGeneratorResponse_
|
||||
if (message.name !== undefined)
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
||||
/* optional string insertion_point = 2; */
|
||||
if (message.insertionPoint !== undefined)
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.insertionPoint);
|
||||
if (message.insertion_point !== undefined)
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.insertion_point);
|
||||
/* optional string content = 15; */
|
||||
if (message.content !== undefined)
|
||||
writer.tag(15, WireType.LengthDelimited).string(message.content);
|
||||
/* optional google.protobuf.GeneratedCodeInfo generated_code_info = 16; */
|
||||
if (message.generated_code_info)
|
||||
GeneratedCodeInfo.internalBinaryWrite(message.generated_code_info, writer.tag(16, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "google/protobuf/duration.proto" (package "google.protobuf", syntax proto3)
|
||||
// tslint:disable
|
||||
//
|
||||
@@ -107,7 +107,6 @@ import { MessageType } from "@protobuf-ts/runtime";
|
||||
* microsecond should be expressed in JSON format as "3.000001s".
|
||||
*
|
||||
*
|
||||
*
|
||||
* @generated from protobuf message google.protobuf.Duration
|
||||
*/
|
||||
export interface Duration {
|
||||
@@ -116,7 +115,7 @@ export interface Duration {
|
||||
* to +315,576,000,000 inclusive. Note: these bounds are computed from:
|
||||
* 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
|
||||
*
|
||||
* @generated from protobuf field: int64 seconds = 1;
|
||||
* @generated from protobuf field: int64 seconds = 1
|
||||
*/
|
||||
seconds: bigint;
|
||||
/**
|
||||
@@ -127,7 +126,7 @@ export interface Duration {
|
||||
* of the same sign as the `seconds` field. Must be from -999,999,999
|
||||
* to +999,999,999 inclusive.
|
||||
*
|
||||
* @generated from protobuf field: int32 nanos = 2;
|
||||
* @generated from protobuf field: int32 nanos = 2
|
||||
*/
|
||||
nanos: number;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "google/protobuf/empty.proto" (package "google.protobuf", syntax proto3)
|
||||
// tslint:disable
|
||||
//
|
||||
@@ -49,7 +49,6 @@ import { MessageType } from "@protobuf-ts/runtime";
|
||||
* rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
||||
* }
|
||||
*
|
||||
* The JSON representation for `Empty` is empty JSON object `{}`.
|
||||
*
|
||||
* @generated from protobuf message google.protobuf.Empty
|
||||
*/
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "google/protobuf/field_mask.proto" (package "google.protobuf", syntax proto3)
|
||||
// tslint:disable
|
||||
//
|
||||
@@ -253,7 +253,7 @@ export interface FieldMask {
|
||||
/**
|
||||
* The set of field mask paths.
|
||||
*
|
||||
* @generated from protobuf field: repeated string paths = 1;
|
||||
* @generated from protobuf field: repeated string paths = 1
|
||||
*/
|
||||
paths: string[];
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "google/protobuf/source_context.proto" (package "google.protobuf", syntax proto3)
|
||||
// tslint:disable
|
||||
//
|
||||
@@ -52,20 +52,20 @@ export interface SourceContext {
|
||||
* The path-qualified name of the .proto file that contained the associated
|
||||
* protobuf element. For example: `"google/protobuf/source_context.proto"`.
|
||||
*
|
||||
* @generated from protobuf field: string file_name = 1;
|
||||
* @generated from protobuf field: string file_name = 1
|
||||
*/
|
||||
fileName: string;
|
||||
file_name: string;
|
||||
}
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class SourceContext$Type extends MessageType<SourceContext> {
|
||||
constructor() {
|
||||
super("google.protobuf.SourceContext", [
|
||||
{ no: 1, name: "file_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
||||
{ no: 1, name: "file_name", kind: "scalar", localName: "file_name", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<SourceContext>): SourceContext {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.fileName = "";
|
||||
message.file_name = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<SourceContext>(this, message, value);
|
||||
return message;
|
||||
@@ -76,7 +76,7 @@ class SourceContext$Type extends MessageType<SourceContext> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string file_name */ 1:
|
||||
message.fileName = reader.string();
|
||||
message.file_name = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -91,8 +91,8 @@ class SourceContext$Type extends MessageType<SourceContext> {
|
||||
}
|
||||
internalBinaryWrite(message: SourceContext, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string file_name = 1; */
|
||||
if (message.fileName !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.fileName);
|
||||
if (message.file_name !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.file_name);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "google/protobuf/struct.proto" (package "google.protobuf", syntax proto3)
|
||||
// tslint:disable
|
||||
//
|
||||
@@ -63,7 +63,7 @@ export interface Struct {
|
||||
/**
|
||||
* Unordered map of dynamically typed values.
|
||||
*
|
||||
* @generated from protobuf field: map<string, google.protobuf.Value> fields = 1;
|
||||
* @generated from protobuf field: map<string, google.protobuf.Value> fields = 1
|
||||
*/
|
||||
fields: {
|
||||
[key: string]: Value;
|
||||
@@ -72,8 +72,8 @@ export interface Struct {
|
||||
/**
|
||||
* `Value` represents a dynamically typed value which can be either
|
||||
* null, a number, a string, a boolean, a recursive struct value, or a
|
||||
* list of values. A producer of value is expected to set one of that
|
||||
* variants, absence of any variant indicates an error.
|
||||
* list of values. A producer of value is expected to set one of these
|
||||
* variants. Absence of any variant indicates an error.
|
||||
*
|
||||
* The JSON representation for `Value` is JSON value.
|
||||
*
|
||||
@@ -81,56 +81,58 @@ export interface Struct {
|
||||
*/
|
||||
export interface Value {
|
||||
/**
|
||||
* The kind of value.
|
||||
*
|
||||
* @generated from protobuf oneof: kind
|
||||
*/
|
||||
kind: {
|
||||
oneofKind: "nullValue";
|
||||
oneofKind: "null_value";
|
||||
/**
|
||||
* Represents a null value.
|
||||
*
|
||||
* @generated from protobuf field: google.protobuf.NullValue null_value = 1;
|
||||
* @generated from protobuf field: google.protobuf.NullValue null_value = 1
|
||||
*/
|
||||
nullValue: NullValue;
|
||||
null_value: NullValue;
|
||||
} | {
|
||||
oneofKind: "numberValue";
|
||||
oneofKind: "number_value";
|
||||
/**
|
||||
* Represents a double value.
|
||||
*
|
||||
* @generated from protobuf field: double number_value = 2;
|
||||
* @generated from protobuf field: double number_value = 2
|
||||
*/
|
||||
numberValue: number;
|
||||
number_value: number;
|
||||
} | {
|
||||
oneofKind: "stringValue";
|
||||
oneofKind: "string_value";
|
||||
/**
|
||||
* Represents a string value.
|
||||
*
|
||||
* @generated from protobuf field: string string_value = 3;
|
||||
* @generated from protobuf field: string string_value = 3
|
||||
*/
|
||||
stringValue: string;
|
||||
string_value: string;
|
||||
} | {
|
||||
oneofKind: "boolValue";
|
||||
oneofKind: "bool_value";
|
||||
/**
|
||||
* Represents a boolean value.
|
||||
*
|
||||
* @generated from protobuf field: bool bool_value = 4;
|
||||
* @generated from protobuf field: bool bool_value = 4
|
||||
*/
|
||||
boolValue: boolean;
|
||||
bool_value: boolean;
|
||||
} | {
|
||||
oneofKind: "structValue";
|
||||
oneofKind: "struct_value";
|
||||
/**
|
||||
* Represents a structured value.
|
||||
*
|
||||
* @generated from protobuf field: google.protobuf.Struct struct_value = 5;
|
||||
* @generated from protobuf field: google.protobuf.Struct struct_value = 5
|
||||
*/
|
||||
structValue: Struct;
|
||||
struct_value: Struct;
|
||||
} | {
|
||||
oneofKind: "listValue";
|
||||
oneofKind: "list_value";
|
||||
/**
|
||||
* Represents a repeated `Value`.
|
||||
*
|
||||
* @generated from protobuf field: google.protobuf.ListValue list_value = 6;
|
||||
* @generated from protobuf field: google.protobuf.ListValue list_value = 6
|
||||
*/
|
||||
listValue: ListValue;
|
||||
list_value: ListValue;
|
||||
} | {
|
||||
oneofKind: undefined;
|
||||
};
|
||||
@@ -146,7 +148,7 @@ export interface ListValue {
|
||||
/**
|
||||
* Repeated field of dynamically typed values.
|
||||
*
|
||||
* @generated from protobuf field: repeated google.protobuf.Value values = 1;
|
||||
* @generated from protobuf field: repeated google.protobuf.Value values = 1
|
||||
*/
|
||||
values: Value[];
|
||||
}
|
||||
@@ -154,7 +156,7 @@ export interface ListValue {
|
||||
* `NullValue` is a singleton enumeration to represent the null value for the
|
||||
* `Value` type union.
|
||||
*
|
||||
* The JSON representation for `NullValue` is JSON `null`.
|
||||
* The JSON representation for `NullValue` is JSON `null`.
|
||||
*
|
||||
* @generated from protobuf enum google.protobuf.NullValue
|
||||
*/
|
||||
@@ -233,7 +235,7 @@ class Struct$Type extends MessageType<Struct> {
|
||||
case 2:
|
||||
val = Value.internalBinaryRead(reader, reader.uint32(), options);
|
||||
break;
|
||||
default: throw new globalThis.Error("unknown map entry field for field google.protobuf.Struct.fields");
|
||||
default: throw new globalThis.Error("unknown map entry field for google.protobuf.Struct.fields");
|
||||
}
|
||||
}
|
||||
map[key ?? ""] = val ?? Value.create();
|
||||
@@ -260,12 +262,12 @@ export const Struct = new Struct$Type();
|
||||
class Value$Type extends MessageType<Value> {
|
||||
constructor() {
|
||||
super("google.protobuf.Value", [
|
||||
{ no: 1, name: "null_value", kind: "enum", oneof: "kind", T: () => ["google.protobuf.NullValue", NullValue] },
|
||||
{ no: 2, name: "number_value", kind: "scalar", oneof: "kind", T: 1 /*ScalarType.DOUBLE*/ },
|
||||
{ no: 3, name: "string_value", kind: "scalar", oneof: "kind", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "bool_value", kind: "scalar", oneof: "kind", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 5, name: "struct_value", kind: "message", oneof: "kind", T: () => Struct },
|
||||
{ no: 6, name: "list_value", kind: "message", oneof: "kind", T: () => ListValue }
|
||||
{ no: 1, name: "null_value", kind: "enum", localName: "null_value", oneof: "kind", T: () => ["google.protobuf.NullValue", NullValue] },
|
||||
{ no: 2, name: "number_value", kind: "scalar", localName: "number_value", oneof: "kind", T: 1 /*ScalarType.DOUBLE*/ },
|
||||
{ no: 3, name: "string_value", kind: "scalar", localName: "string_value", oneof: "kind", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "bool_value", kind: "scalar", localName: "bool_value", oneof: "kind", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 5, name: "struct_value", kind: "message", localName: "struct_value", oneof: "kind", T: () => Struct },
|
||||
{ no: 6, name: "list_value", kind: "message", localName: "list_value", oneof: "kind", T: () => ListValue }
|
||||
]);
|
||||
}
|
||||
/**
|
||||
@@ -276,24 +278,24 @@ class Value$Type extends MessageType<Value> {
|
||||
throw new globalThis.Error();
|
||||
switch (message.kind.oneofKind) {
|
||||
case undefined: throw new globalThis.Error();
|
||||
case "boolValue": return message.kind.boolValue;
|
||||
case "nullValue": return null;
|
||||
case "numberValue":
|
||||
let numberValue = message.kind.numberValue;
|
||||
case "bool_value": return message.kind.bool_value;
|
||||
case "null_value": return null;
|
||||
case "number_value":
|
||||
let numberValue = message.kind.number_value;
|
||||
if (typeof numberValue == "number" && !Number.isFinite(numberValue))
|
||||
throw new globalThis.Error();
|
||||
return numberValue;
|
||||
case "stringValue": return message.kind.stringValue;
|
||||
case "listValue":
|
||||
case "string_value": return message.kind.string_value;
|
||||
case "list_value":
|
||||
let listValueField = this.fields.find(f => f.no === 6);
|
||||
if (listValueField?.kind !== "message")
|
||||
throw new globalThis.Error();
|
||||
return listValueField.T().toJson(message.kind.listValue);
|
||||
case "structValue":
|
||||
return listValueField.T().toJson(message.kind.list_value);
|
||||
case "struct_value":
|
||||
let structValueField = this.fields.find(f => f.no === 5);
|
||||
if (structValueField?.kind !== "message")
|
||||
throw new globalThis.Error();
|
||||
return structValueField.T().toJson(message.kind.structValue);
|
||||
return structValueField.T().toJson(message.kind.struct_value);
|
||||
}
|
||||
}
|
||||
/**
|
||||
@@ -304,23 +306,23 @@ class Value$Type extends MessageType<Value> {
|
||||
target = this.create();
|
||||
switch (typeof json) {
|
||||
case "number":
|
||||
target.kind = { oneofKind: "numberValue", numberValue: json };
|
||||
target.kind = { oneofKind: "number_value", number_value: json };
|
||||
break;
|
||||
case "string":
|
||||
target.kind = { oneofKind: "stringValue", stringValue: json };
|
||||
target.kind = { oneofKind: "string_value", string_value: json };
|
||||
break;
|
||||
case "boolean":
|
||||
target.kind = { oneofKind: "boolValue", boolValue: json };
|
||||
target.kind = { oneofKind: "bool_value", bool_value: json };
|
||||
break;
|
||||
case "object":
|
||||
if (json === null) {
|
||||
target.kind = { oneofKind: "nullValue", nullValue: NullValue.NULL_VALUE };
|
||||
target.kind = { oneofKind: "null_value", null_value: NullValue.NULL_VALUE };
|
||||
}
|
||||
else if (globalThis.Array.isArray(json)) {
|
||||
target.kind = { oneofKind: "listValue", listValue: ListValue.fromJson(json) };
|
||||
target.kind = { oneofKind: "list_value", list_value: ListValue.fromJson(json) };
|
||||
}
|
||||
else {
|
||||
target.kind = { oneofKind: "structValue", structValue: Struct.fromJson(json) };
|
||||
target.kind = { oneofKind: "struct_value", struct_value: Struct.fromJson(json) };
|
||||
}
|
||||
break;
|
||||
default: throw new globalThis.Error("Unable to parse " + this.typeName + " from JSON " + typeofJsonValue(json));
|
||||
@@ -341,38 +343,38 @@ class Value$Type extends MessageType<Value> {
|
||||
switch (fieldNo) {
|
||||
case /* google.protobuf.NullValue null_value */ 1:
|
||||
message.kind = {
|
||||
oneofKind: "nullValue",
|
||||
nullValue: reader.int32()
|
||||
oneofKind: "null_value",
|
||||
null_value: reader.int32()
|
||||
};
|
||||
break;
|
||||
case /* double number_value */ 2:
|
||||
message.kind = {
|
||||
oneofKind: "numberValue",
|
||||
numberValue: reader.double()
|
||||
oneofKind: "number_value",
|
||||
number_value: reader.double()
|
||||
};
|
||||
break;
|
||||
case /* string string_value */ 3:
|
||||
message.kind = {
|
||||
oneofKind: "stringValue",
|
||||
stringValue: reader.string()
|
||||
oneofKind: "string_value",
|
||||
string_value: reader.string()
|
||||
};
|
||||
break;
|
||||
case /* bool bool_value */ 4:
|
||||
message.kind = {
|
||||
oneofKind: "boolValue",
|
||||
boolValue: reader.bool()
|
||||
oneofKind: "bool_value",
|
||||
bool_value: reader.bool()
|
||||
};
|
||||
break;
|
||||
case /* google.protobuf.Struct struct_value */ 5:
|
||||
message.kind = {
|
||||
oneofKind: "structValue",
|
||||
structValue: Struct.internalBinaryRead(reader, reader.uint32(), options, (message.kind as any).structValue)
|
||||
oneofKind: "struct_value",
|
||||
struct_value: Struct.internalBinaryRead(reader, reader.uint32(), options, (message.kind as any).struct_value)
|
||||
};
|
||||
break;
|
||||
case /* google.protobuf.ListValue list_value */ 6:
|
||||
message.kind = {
|
||||
oneofKind: "listValue",
|
||||
listValue: ListValue.internalBinaryRead(reader, reader.uint32(), options, (message.kind as any).listValue)
|
||||
oneofKind: "list_value",
|
||||
list_value: ListValue.internalBinaryRead(reader, reader.uint32(), options, (message.kind as any).list_value)
|
||||
};
|
||||
break;
|
||||
default:
|
||||
@@ -388,23 +390,23 @@ class Value$Type extends MessageType<Value> {
|
||||
}
|
||||
internalBinaryWrite(message: Value, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* google.protobuf.NullValue null_value = 1; */
|
||||
if (message.kind.oneofKind === "nullValue")
|
||||
writer.tag(1, WireType.Varint).int32(message.kind.nullValue);
|
||||
if (message.kind.oneofKind === "null_value")
|
||||
writer.tag(1, WireType.Varint).int32(message.kind.null_value);
|
||||
/* double number_value = 2; */
|
||||
if (message.kind.oneofKind === "numberValue")
|
||||
writer.tag(2, WireType.Bit64).double(message.kind.numberValue);
|
||||
if (message.kind.oneofKind === "number_value")
|
||||
writer.tag(2, WireType.Bit64).double(message.kind.number_value);
|
||||
/* string string_value = 3; */
|
||||
if (message.kind.oneofKind === "stringValue")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.kind.stringValue);
|
||||
if (message.kind.oneofKind === "string_value")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.kind.string_value);
|
||||
/* bool bool_value = 4; */
|
||||
if (message.kind.oneofKind === "boolValue")
|
||||
writer.tag(4, WireType.Varint).bool(message.kind.boolValue);
|
||||
if (message.kind.oneofKind === "bool_value")
|
||||
writer.tag(4, WireType.Varint).bool(message.kind.bool_value);
|
||||
/* google.protobuf.Struct struct_value = 5; */
|
||||
if (message.kind.oneofKind === "structValue")
|
||||
Struct.internalBinaryWrite(message.kind.structValue, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.kind.oneofKind === "struct_value")
|
||||
Struct.internalBinaryWrite(message.kind.struct_value, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
||||
/* google.protobuf.ListValue list_value = 6; */
|
||||
if (message.kind.oneofKind === "listValue")
|
||||
ListValue.internalBinaryWrite(message.kind.listValue, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.kind.oneofKind === "list_value")
|
||||
ListValue.internalBinaryWrite(message.kind.list_value, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -419,7 +421,7 @@ export const Value = new Value$Type();
|
||||
class ListValue$Type extends MessageType<ListValue> {
|
||||
constructor() {
|
||||
super("google.protobuf.ListValue", [
|
||||
{ no: 1, name: "values", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Value }
|
||||
{ no: 1, name: "values", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Value }
|
||||
]);
|
||||
}
|
||||
/**
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "google/protobuf/timestamp.proto" (package "google.protobuf", syntax proto3)
|
||||
// tslint:disable
|
||||
//
|
||||
@@ -97,8 +97,15 @@ import { MessageType } from "@protobuf-ts/runtime";
|
||||
* Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
||||
* .setNanos((int) ((millis % 1000) * 1000000)).build();
|
||||
*
|
||||
* Example 5: Compute Timestamp from Java `Instant.now()`.
|
||||
*
|
||||
* Example 5: Compute Timestamp from current time in Python.
|
||||
* Instant now = Instant.now();
|
||||
*
|
||||
* Timestamp timestamp =
|
||||
* Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
||||
* .setNanos(now.getNano()).build();
|
||||
*
|
||||
* Example 6: Compute Timestamp from current time in Python.
|
||||
*
|
||||
* timestamp = Timestamp()
|
||||
* timestamp.GetCurrentTime()
|
||||
@@ -112,8 +119,8 @@ import { MessageType } from "@protobuf-ts/runtime";
|
||||
* {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
|
||||
* seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
|
||||
* are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
|
||||
* is required. A proto3 JSON serializer should always use UTC (as indicated by
|
||||
* "Z") when printing the Timestamp type and a proto3 JSON parser should be
|
||||
* is required. A ProtoJSON serializer should always use UTC (as indicated by
|
||||
* "Z") when printing the Timestamp type and a ProtoJSON parser should be
|
||||
* able to accept both UTC and other timezones (as indicated by an offset).
|
||||
*
|
||||
* For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
|
||||
@@ -127,29 +134,29 @@ import { MessageType } from "@protobuf-ts/runtime";
|
||||
* [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
||||
* the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
||||
* the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
||||
* http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
|
||||
* http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
|
||||
* ) to obtain a formatter capable of generating timestamps in this format.
|
||||
*
|
||||
*
|
||||
*
|
||||
* @generated from protobuf message google.protobuf.Timestamp
|
||||
*/
|
||||
export interface Timestamp {
|
||||
/**
|
||||
* Represents seconds of UTC time since Unix epoch
|
||||
* 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
|
||||
* 9999-12-31T23:59:59Z inclusive.
|
||||
* Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must
|
||||
* be between -62135596800 and 253402300799 inclusive (which corresponds to
|
||||
* 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z).
|
||||
*
|
||||
* @generated from protobuf field: int64 seconds = 1;
|
||||
* @generated from protobuf field: int64 seconds = 1
|
||||
*/
|
||||
seconds: bigint;
|
||||
/**
|
||||
* Non-negative fractions of a second at nanosecond resolution. Negative
|
||||
* second values with fractions must still have non-negative nanos values
|
||||
* that count forward in time. Must be from 0 to 999,999,999
|
||||
* Non-negative fractions of a second at nanosecond resolution. This field is
|
||||
* the nanosecond portion of the duration, not an alternative to seconds.
|
||||
* Negative second values with fractions must still have non-negative nanos
|
||||
* values that count forward in time. Must be between 0 and 999,999,999
|
||||
* inclusive.
|
||||
*
|
||||
* @generated from protobuf field: int32 nanos = 2;
|
||||
* @generated from protobuf field: int32 nanos = 2
|
||||
*/
|
||||
nanos: number;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "google/protobuf/type.proto" (package "google.protobuf", syntax proto3)
|
||||
// tslint:disable
|
||||
//
|
||||
@@ -46,114 +46,130 @@ import { SourceContext } from "./source_context";
|
||||
/**
|
||||
* A protocol buffer message type.
|
||||
*
|
||||
* New usages of this message as an alternative to DescriptorProto are strongly
|
||||
* discouraged. This message does not reliability preserve all information
|
||||
* necessary to model the schema and preserve semantics. Instead make use of
|
||||
* FileDescriptorSet which preserves the necessary information.
|
||||
*
|
||||
* @generated from protobuf message google.protobuf.Type
|
||||
*/
|
||||
export interface Type {
|
||||
/**
|
||||
* The fully qualified message name.
|
||||
*
|
||||
* @generated from protobuf field: string name = 1;
|
||||
* @generated from protobuf field: string name = 1
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* The list of fields.
|
||||
*
|
||||
* @generated from protobuf field: repeated google.protobuf.Field fields = 2;
|
||||
* @generated from protobuf field: repeated google.protobuf.Field fields = 2
|
||||
*/
|
||||
fields: Field[];
|
||||
/**
|
||||
* The list of types appearing in `oneof` definitions in this type.
|
||||
*
|
||||
* @generated from protobuf field: repeated string oneofs = 3;
|
||||
* @generated from protobuf field: repeated string oneofs = 3
|
||||
*/
|
||||
oneofs: string[];
|
||||
/**
|
||||
* The protocol buffer options.
|
||||
*
|
||||
* @generated from protobuf field: repeated google.protobuf.Option options = 4;
|
||||
* @generated from protobuf field: repeated google.protobuf.Option options = 4
|
||||
*/
|
||||
options: Option[];
|
||||
/**
|
||||
* The source context.
|
||||
*
|
||||
* @generated from protobuf field: google.protobuf.SourceContext source_context = 5;
|
||||
* @generated from protobuf field: google.protobuf.SourceContext source_context = 5
|
||||
*/
|
||||
sourceContext?: SourceContext;
|
||||
source_context?: SourceContext;
|
||||
/**
|
||||
* The source syntax.
|
||||
*
|
||||
* @generated from protobuf field: google.protobuf.Syntax syntax = 6;
|
||||
* @generated from protobuf field: google.protobuf.Syntax syntax = 6
|
||||
*/
|
||||
syntax: Syntax;
|
||||
/**
|
||||
* The source edition string, only valid when syntax is SYNTAX_EDITIONS.
|
||||
*
|
||||
* @generated from protobuf field: string edition = 7
|
||||
*/
|
||||
edition: string;
|
||||
}
|
||||
/**
|
||||
* A single field of a message type.
|
||||
*
|
||||
* New usages of this message as an alternative to FieldDescriptorProto are
|
||||
* strongly discouraged. This message does not reliability preserve all
|
||||
* information necessary to model the schema and preserve semantics. Instead
|
||||
* make use of FileDescriptorSet which preserves the necessary information.
|
||||
*
|
||||
* @generated from protobuf message google.protobuf.Field
|
||||
*/
|
||||
export interface Field {
|
||||
/**
|
||||
* The field type.
|
||||
*
|
||||
* @generated from protobuf field: google.protobuf.Field.Kind kind = 1;
|
||||
* @generated from protobuf field: google.protobuf.Field.Kind kind = 1
|
||||
*/
|
||||
kind: Field_Kind;
|
||||
/**
|
||||
* The field cardinality.
|
||||
*
|
||||
* @generated from protobuf field: google.protobuf.Field.Cardinality cardinality = 2;
|
||||
* @generated from protobuf field: google.protobuf.Field.Cardinality cardinality = 2
|
||||
*/
|
||||
cardinality: Field_Cardinality;
|
||||
/**
|
||||
* The field number.
|
||||
*
|
||||
* @generated from protobuf field: int32 number = 3;
|
||||
* @generated from protobuf field: int32 number = 3
|
||||
*/
|
||||
number: number;
|
||||
/**
|
||||
* The field name.
|
||||
*
|
||||
* @generated from protobuf field: string name = 4;
|
||||
* @generated from protobuf field: string name = 4
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* The field type URL, without the scheme, for message or enumeration
|
||||
* types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
|
||||
*
|
||||
* @generated from protobuf field: string type_url = 6;
|
||||
* @generated from protobuf field: string type_url = 6
|
||||
*/
|
||||
typeUrl: string;
|
||||
type_url: string;
|
||||
/**
|
||||
* The index of the field type in `Type.oneofs`, for message or enumeration
|
||||
* types. The first type has index 1; zero means the type is not in the list.
|
||||
*
|
||||
* @generated from protobuf field: int32 oneof_index = 7;
|
||||
* @generated from protobuf field: int32 oneof_index = 7
|
||||
*/
|
||||
oneofIndex: number;
|
||||
oneof_index: number;
|
||||
/**
|
||||
* Whether to use alternative packed wire representation.
|
||||
*
|
||||
* @generated from protobuf field: bool packed = 8;
|
||||
* @generated from protobuf field: bool packed = 8
|
||||
*/
|
||||
packed: boolean;
|
||||
/**
|
||||
* The protocol buffer options.
|
||||
*
|
||||
* @generated from protobuf field: repeated google.protobuf.Option options = 9;
|
||||
* @generated from protobuf field: repeated google.protobuf.Option options = 9
|
||||
*/
|
||||
options: Option[];
|
||||
/**
|
||||
* The field JSON name.
|
||||
*
|
||||
* @generated from protobuf field: string json_name = 10;
|
||||
* @generated from protobuf field: string json_name = 10
|
||||
*/
|
||||
jsonName: string;
|
||||
json_name: string;
|
||||
/**
|
||||
* The string value of the default value of this field. Proto2 syntax only.
|
||||
*
|
||||
* @generated from protobuf field: string default_value = 11;
|
||||
* @generated from protobuf field: string default_value = 11
|
||||
*/
|
||||
defaultValue: string;
|
||||
default_value: string;
|
||||
}
|
||||
/**
|
||||
* Basic field types.
|
||||
@@ -310,62 +326,78 @@ export enum Field_Cardinality {
|
||||
/**
|
||||
* Enum type definition.
|
||||
*
|
||||
* New usages of this message as an alternative to EnumDescriptorProto are
|
||||
* strongly discouraged. This message does not reliability preserve all
|
||||
* information necessary to model the schema and preserve semantics. Instead
|
||||
* make use of FileDescriptorSet which preserves the necessary information.
|
||||
*
|
||||
* @generated from protobuf message google.protobuf.Enum
|
||||
*/
|
||||
export interface Enum {
|
||||
/**
|
||||
* Enum type name.
|
||||
*
|
||||
* @generated from protobuf field: string name = 1;
|
||||
* @generated from protobuf field: string name = 1
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* Enum value definitions.
|
||||
*
|
||||
* @generated from protobuf field: repeated google.protobuf.EnumValue enumvalue = 2;
|
||||
* @generated from protobuf field: repeated google.protobuf.EnumValue enumvalue = 2
|
||||
*/
|
||||
enumvalue: EnumValue[];
|
||||
/**
|
||||
* Protocol buffer options.
|
||||
*
|
||||
* @generated from protobuf field: repeated google.protobuf.Option options = 3;
|
||||
* @generated from protobuf field: repeated google.protobuf.Option options = 3
|
||||
*/
|
||||
options: Option[];
|
||||
/**
|
||||
* The source context.
|
||||
*
|
||||
* @generated from protobuf field: google.protobuf.SourceContext source_context = 4;
|
||||
* @generated from protobuf field: google.protobuf.SourceContext source_context = 4
|
||||
*/
|
||||
sourceContext?: SourceContext;
|
||||
source_context?: SourceContext;
|
||||
/**
|
||||
* The source syntax.
|
||||
*
|
||||
* @generated from protobuf field: google.protobuf.Syntax syntax = 5;
|
||||
* @generated from protobuf field: google.protobuf.Syntax syntax = 5
|
||||
*/
|
||||
syntax: Syntax;
|
||||
/**
|
||||
* The source edition string, only valid when syntax is SYNTAX_EDITIONS.
|
||||
*
|
||||
* @generated from protobuf field: string edition = 6
|
||||
*/
|
||||
edition: string;
|
||||
}
|
||||
/**
|
||||
* Enum value definition.
|
||||
*
|
||||
* New usages of this message as an alternative to EnumValueDescriptorProto are
|
||||
* strongly discouraged. This message does not reliability preserve all
|
||||
* information necessary to model the schema and preserve semantics. Instead
|
||||
* make use of FileDescriptorSet which preserves the necessary information.
|
||||
*
|
||||
* @generated from protobuf message google.protobuf.EnumValue
|
||||
*/
|
||||
export interface EnumValue {
|
||||
/**
|
||||
* Enum value name.
|
||||
*
|
||||
* @generated from protobuf field: string name = 1;
|
||||
* @generated from protobuf field: string name = 1
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* Enum value number.
|
||||
*
|
||||
* @generated from protobuf field: int32 number = 2;
|
||||
* @generated from protobuf field: int32 number = 2
|
||||
*/
|
||||
number: number;
|
||||
/**
|
||||
* Protocol buffer options.
|
||||
*
|
||||
* @generated from protobuf field: repeated google.protobuf.Option options = 3;
|
||||
* @generated from protobuf field: repeated google.protobuf.Option options = 3
|
||||
*/
|
||||
options: Option[];
|
||||
}
|
||||
@@ -373,6 +405,10 @@ export interface EnumValue {
|
||||
* A protocol buffer option, which can be attached to a message, field,
|
||||
* enumeration, etc.
|
||||
*
|
||||
* New usages of this message as an alternative to FileOptions, MessageOptions,
|
||||
* FieldOptions, EnumOptions, EnumValueOptions, ServiceOptions, or MethodOptions
|
||||
* are strongly discouraged.
|
||||
*
|
||||
* @generated from protobuf message google.protobuf.Option
|
||||
*/
|
||||
export interface Option {
|
||||
@@ -382,7 +418,7 @@ export interface Option {
|
||||
* For custom options, it should be the fully-qualified name. For example,
|
||||
* `"google.api.http"`.
|
||||
*
|
||||
* @generated from protobuf field: string name = 1;
|
||||
* @generated from protobuf field: string name = 1
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
@@ -391,7 +427,7 @@ export interface Option {
|
||||
* should be used. If the value is an enum, it should be stored as an int32
|
||||
* value using the google.protobuf.Int32Value type.
|
||||
*
|
||||
* @generated from protobuf field: google.protobuf.Any value = 2;
|
||||
* @generated from protobuf field: google.protobuf.Any value = 2
|
||||
*/
|
||||
value?: Any;
|
||||
}
|
||||
@@ -412,18 +448,25 @@ export enum Syntax {
|
||||
*
|
||||
* @generated from protobuf enum value: SYNTAX_PROTO3 = 1;
|
||||
*/
|
||||
PROTO3 = 1
|
||||
PROTO3 = 1,
|
||||
/**
|
||||
* Syntax `editions`.
|
||||
*
|
||||
* @generated from protobuf enum value: SYNTAX_EDITIONS = 2;
|
||||
*/
|
||||
EDITIONS = 2
|
||||
}
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class Type$Type extends MessageType<Type> {
|
||||
constructor() {
|
||||
super("google.protobuf.Type", [
|
||||
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "fields", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Field },
|
||||
{ no: 2, name: "fields", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Field },
|
||||
{ no: 3, name: "oneofs", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "options", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Option },
|
||||
{ no: 5, name: "source_context", kind: "message", T: () => SourceContext },
|
||||
{ no: 6, name: "syntax", kind: "enum", T: () => ["google.protobuf.Syntax", Syntax, "SYNTAX_"] }
|
||||
{ no: 4, name: "options", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Option },
|
||||
{ no: 5, name: "source_context", kind: "message", localName: "source_context", T: () => SourceContext },
|
||||
{ no: 6, name: "syntax", kind: "enum", T: () => ["google.protobuf.Syntax", Syntax, "SYNTAX_"] },
|
||||
{ no: 7, name: "edition", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<Type>): Type {
|
||||
@@ -433,6 +476,7 @@ class Type$Type extends MessageType<Type> {
|
||||
message.oneofs = [];
|
||||
message.options = [];
|
||||
message.syntax = 0;
|
||||
message.edition = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<Type>(this, message, value);
|
||||
return message;
|
||||
@@ -455,11 +499,14 @@ class Type$Type extends MessageType<Type> {
|
||||
message.options.push(Option.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* google.protobuf.SourceContext source_context */ 5:
|
||||
message.sourceContext = SourceContext.internalBinaryRead(reader, reader.uint32(), options, message.sourceContext);
|
||||
message.source_context = SourceContext.internalBinaryRead(reader, reader.uint32(), options, message.source_context);
|
||||
break;
|
||||
case /* google.protobuf.Syntax syntax */ 6:
|
||||
message.syntax = reader.int32();
|
||||
break;
|
||||
case /* string edition */ 7:
|
||||
message.edition = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -485,11 +532,14 @@ class Type$Type extends MessageType<Type> {
|
||||
for (let i = 0; i < message.options.length; i++)
|
||||
Option.internalBinaryWrite(message.options[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
/* google.protobuf.SourceContext source_context = 5; */
|
||||
if (message.sourceContext)
|
||||
SourceContext.internalBinaryWrite(message.sourceContext, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.source_context)
|
||||
SourceContext.internalBinaryWrite(message.source_context, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
||||
/* google.protobuf.Syntax syntax = 6; */
|
||||
if (message.syntax !== 0)
|
||||
writer.tag(6, WireType.Varint).int32(message.syntax);
|
||||
/* string edition = 7; */
|
||||
if (message.edition !== "")
|
||||
writer.tag(7, WireType.LengthDelimited).string(message.edition);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -508,12 +558,12 @@ class Field$Type extends MessageType<Field> {
|
||||
{ no: 2, name: "cardinality", kind: "enum", T: () => ["google.protobuf.Field.Cardinality", Field_Cardinality, "CARDINALITY_"] },
|
||||
{ no: 3, name: "number", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
||||
{ no: 4, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 6, name: "type_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 7, name: "oneof_index", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
||||
{ no: 6, name: "type_url", kind: "scalar", localName: "type_url", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 7, name: "oneof_index", kind: "scalar", localName: "oneof_index", T: 5 /*ScalarType.INT32*/ },
|
||||
{ no: 8, name: "packed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 9, name: "options", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Option },
|
||||
{ no: 10, name: "json_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 11, name: "default_value", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
||||
{ no: 9, name: "options", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Option },
|
||||
{ no: 10, name: "json_name", kind: "scalar", localName: "json_name", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 11, name: "default_value", kind: "scalar", localName: "default_value", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<Field>): Field {
|
||||
@@ -522,12 +572,12 @@ class Field$Type extends MessageType<Field> {
|
||||
message.cardinality = 0;
|
||||
message.number = 0;
|
||||
message.name = "";
|
||||
message.typeUrl = "";
|
||||
message.oneofIndex = 0;
|
||||
message.type_url = "";
|
||||
message.oneof_index = 0;
|
||||
message.packed = false;
|
||||
message.options = [];
|
||||
message.jsonName = "";
|
||||
message.defaultValue = "";
|
||||
message.json_name = "";
|
||||
message.default_value = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<Field>(this, message, value);
|
||||
return message;
|
||||
@@ -550,10 +600,10 @@ class Field$Type extends MessageType<Field> {
|
||||
message.name = reader.string();
|
||||
break;
|
||||
case /* string type_url */ 6:
|
||||
message.typeUrl = reader.string();
|
||||
message.type_url = reader.string();
|
||||
break;
|
||||
case /* int32 oneof_index */ 7:
|
||||
message.oneofIndex = reader.int32();
|
||||
message.oneof_index = reader.int32();
|
||||
break;
|
||||
case /* bool packed */ 8:
|
||||
message.packed = reader.bool();
|
||||
@@ -562,10 +612,10 @@ class Field$Type extends MessageType<Field> {
|
||||
message.options.push(Option.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* string json_name */ 10:
|
||||
message.jsonName = reader.string();
|
||||
message.json_name = reader.string();
|
||||
break;
|
||||
case /* string default_value */ 11:
|
||||
message.defaultValue = reader.string();
|
||||
message.default_value = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -592,11 +642,11 @@ class Field$Type extends MessageType<Field> {
|
||||
if (message.name !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.name);
|
||||
/* string type_url = 6; */
|
||||
if (message.typeUrl !== "")
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.typeUrl);
|
||||
if (message.type_url !== "")
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.type_url);
|
||||
/* int32 oneof_index = 7; */
|
||||
if (message.oneofIndex !== 0)
|
||||
writer.tag(7, WireType.Varint).int32(message.oneofIndex);
|
||||
if (message.oneof_index !== 0)
|
||||
writer.tag(7, WireType.Varint).int32(message.oneof_index);
|
||||
/* bool packed = 8; */
|
||||
if (message.packed !== false)
|
||||
writer.tag(8, WireType.Varint).bool(message.packed);
|
||||
@@ -604,11 +654,11 @@ class Field$Type extends MessageType<Field> {
|
||||
for (let i = 0; i < message.options.length; i++)
|
||||
Option.internalBinaryWrite(message.options[i], writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string json_name = 10; */
|
||||
if (message.jsonName !== "")
|
||||
writer.tag(10, WireType.LengthDelimited).string(message.jsonName);
|
||||
if (message.json_name !== "")
|
||||
writer.tag(10, WireType.LengthDelimited).string(message.json_name);
|
||||
/* string default_value = 11; */
|
||||
if (message.defaultValue !== "")
|
||||
writer.tag(11, WireType.LengthDelimited).string(message.defaultValue);
|
||||
if (message.default_value !== "")
|
||||
writer.tag(11, WireType.LengthDelimited).string(message.default_value);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -624,10 +674,11 @@ class Enum$Type extends MessageType<Enum> {
|
||||
constructor() {
|
||||
super("google.protobuf.Enum", [
|
||||
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "enumvalue", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => EnumValue },
|
||||
{ no: 3, name: "options", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Option },
|
||||
{ no: 4, name: "source_context", kind: "message", T: () => SourceContext },
|
||||
{ no: 5, name: "syntax", kind: "enum", T: () => ["google.protobuf.Syntax", Syntax, "SYNTAX_"] }
|
||||
{ no: 2, name: "enumvalue", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => EnumValue },
|
||||
{ no: 3, name: "options", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Option },
|
||||
{ no: 4, name: "source_context", kind: "message", localName: "source_context", T: () => SourceContext },
|
||||
{ no: 5, name: "syntax", kind: "enum", T: () => ["google.protobuf.Syntax", Syntax, "SYNTAX_"] },
|
||||
{ no: 6, name: "edition", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<Enum>): Enum {
|
||||
@@ -636,6 +687,7 @@ class Enum$Type extends MessageType<Enum> {
|
||||
message.enumvalue = [];
|
||||
message.options = [];
|
||||
message.syntax = 0;
|
||||
message.edition = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<Enum>(this, message, value);
|
||||
return message;
|
||||
@@ -655,11 +707,14 @@ class Enum$Type extends MessageType<Enum> {
|
||||
message.options.push(Option.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* google.protobuf.SourceContext source_context */ 4:
|
||||
message.sourceContext = SourceContext.internalBinaryRead(reader, reader.uint32(), options, message.sourceContext);
|
||||
message.source_context = SourceContext.internalBinaryRead(reader, reader.uint32(), options, message.source_context);
|
||||
break;
|
||||
case /* google.protobuf.Syntax syntax */ 5:
|
||||
message.syntax = reader.int32();
|
||||
break;
|
||||
case /* string edition */ 6:
|
||||
message.edition = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -682,11 +737,14 @@ class Enum$Type extends MessageType<Enum> {
|
||||
for (let i = 0; i < message.options.length; i++)
|
||||
Option.internalBinaryWrite(message.options[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
/* google.protobuf.SourceContext source_context = 4; */
|
||||
if (message.sourceContext)
|
||||
SourceContext.internalBinaryWrite(message.sourceContext, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.source_context)
|
||||
SourceContext.internalBinaryWrite(message.source_context, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
/* google.protobuf.Syntax syntax = 5; */
|
||||
if (message.syntax !== 0)
|
||||
writer.tag(5, WireType.Varint).int32(message.syntax);
|
||||
/* string edition = 6; */
|
||||
if (message.edition !== "")
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.edition);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -703,7 +761,7 @@ class EnumValue$Type extends MessageType<EnumValue> {
|
||||
super("google.protobuf.EnumValue", [
|
||||
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "number", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
||||
{ no: 3, name: "options", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Option }
|
||||
{ no: 3, name: "options", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Option }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<EnumValue>): EnumValue {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "google/protobuf/wrappers.proto" (package "google.protobuf", syntax proto3)
|
||||
// tslint:disable
|
||||
//
|
||||
@@ -32,11 +32,17 @@
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
//
|
||||
// Wrappers for primitive (non-message) types. These types were needed
|
||||
// for legacy reasons and are not recommended for use in new APIs.
|
||||
//
|
||||
// Wrappers for primitive (non-message) types. These types are useful
|
||||
// for embedding primitives in the `google.protobuf.Any` type and for places
|
||||
// where we need to distinguish between the absence of a primitive
|
||||
// typed field and its default value.
|
||||
// Historically these wrappers were useful to have presence on proto3 primitive
|
||||
// fields, but proto3 syntax has been updated to support the `optional` keyword.
|
||||
// Using that keyword is now the strongly preferred way to add presence to
|
||||
// proto3 primitive fields.
|
||||
//
|
||||
// A secondary usecase was to embed primitives in the `google.protobuf.Any`
|
||||
// type: it is now recommended that you embed your value in your own wrapper
|
||||
// message which can be specifically documented.
|
||||
//
|
||||
// These wrappers have no meaningful use within repeated fields as they lack
|
||||
// the ability to detect presence on individual elements.
|
||||
@@ -62,13 +68,16 @@ import { MessageType } from "@protobuf-ts/runtime";
|
||||
*
|
||||
* The JSON representation for `DoubleValue` is JSON number.
|
||||
*
|
||||
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
||||
* has no plan to be removed.
|
||||
*
|
||||
* @generated from protobuf message google.protobuf.DoubleValue
|
||||
*/
|
||||
export interface DoubleValue {
|
||||
/**
|
||||
* The double value.
|
||||
*
|
||||
* @generated from protobuf field: double value = 1;
|
||||
* @generated from protobuf field: double value = 1
|
||||
*/
|
||||
value: number;
|
||||
}
|
||||
@@ -77,13 +86,16 @@ export interface DoubleValue {
|
||||
*
|
||||
* The JSON representation for `FloatValue` is JSON number.
|
||||
*
|
||||
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
||||
* has no plan to be removed.
|
||||
*
|
||||
* @generated from protobuf message google.protobuf.FloatValue
|
||||
*/
|
||||
export interface FloatValue {
|
||||
/**
|
||||
* The float value.
|
||||
*
|
||||
* @generated from protobuf field: float value = 1;
|
||||
* @generated from protobuf field: float value = 1
|
||||
*/
|
||||
value: number;
|
||||
}
|
||||
@@ -92,13 +104,16 @@ export interface FloatValue {
|
||||
*
|
||||
* The JSON representation for `Int64Value` is JSON string.
|
||||
*
|
||||
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
||||
* has no plan to be removed.
|
||||
*
|
||||
* @generated from protobuf message google.protobuf.Int64Value
|
||||
*/
|
||||
export interface Int64Value {
|
||||
/**
|
||||
* The int64 value.
|
||||
*
|
||||
* @generated from protobuf field: int64 value = 1;
|
||||
* @generated from protobuf field: int64 value = 1
|
||||
*/
|
||||
value: bigint;
|
||||
}
|
||||
@@ -107,13 +122,16 @@ export interface Int64Value {
|
||||
*
|
||||
* The JSON representation for `UInt64Value` is JSON string.
|
||||
*
|
||||
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
||||
* has no plan to be removed.
|
||||
*
|
||||
* @generated from protobuf message google.protobuf.UInt64Value
|
||||
*/
|
||||
export interface UInt64Value {
|
||||
/**
|
||||
* The uint64 value.
|
||||
*
|
||||
* @generated from protobuf field: uint64 value = 1;
|
||||
* @generated from protobuf field: uint64 value = 1
|
||||
*/
|
||||
value: bigint;
|
||||
}
|
||||
@@ -122,13 +140,16 @@ export interface UInt64Value {
|
||||
*
|
||||
* The JSON representation for `Int32Value` is JSON number.
|
||||
*
|
||||
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
||||
* has no plan to be removed.
|
||||
*
|
||||
* @generated from protobuf message google.protobuf.Int32Value
|
||||
*/
|
||||
export interface Int32Value {
|
||||
/**
|
||||
* The int32 value.
|
||||
*
|
||||
* @generated from protobuf field: int32 value = 1;
|
||||
* @generated from protobuf field: int32 value = 1
|
||||
*/
|
||||
value: number;
|
||||
}
|
||||
@@ -137,13 +158,16 @@ export interface Int32Value {
|
||||
*
|
||||
* The JSON representation for `UInt32Value` is JSON number.
|
||||
*
|
||||
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
||||
* has no plan to be removed.
|
||||
*
|
||||
* @generated from protobuf message google.protobuf.UInt32Value
|
||||
*/
|
||||
export interface UInt32Value {
|
||||
/**
|
||||
* The uint32 value.
|
||||
*
|
||||
* @generated from protobuf field: uint32 value = 1;
|
||||
* @generated from protobuf field: uint32 value = 1
|
||||
*/
|
||||
value: number;
|
||||
}
|
||||
@@ -152,13 +176,16 @@ export interface UInt32Value {
|
||||
*
|
||||
* The JSON representation for `BoolValue` is JSON `true` and `false`.
|
||||
*
|
||||
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
||||
* has no plan to be removed.
|
||||
*
|
||||
* @generated from protobuf message google.protobuf.BoolValue
|
||||
*/
|
||||
export interface BoolValue {
|
||||
/**
|
||||
* The bool value.
|
||||
*
|
||||
* @generated from protobuf field: bool value = 1;
|
||||
* @generated from protobuf field: bool value = 1
|
||||
*/
|
||||
value: boolean;
|
||||
}
|
||||
@@ -167,13 +194,16 @@ export interface BoolValue {
|
||||
*
|
||||
* The JSON representation for `StringValue` is JSON string.
|
||||
*
|
||||
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
||||
* has no plan to be removed.
|
||||
*
|
||||
* @generated from protobuf message google.protobuf.StringValue
|
||||
*/
|
||||
export interface StringValue {
|
||||
/**
|
||||
* The string value.
|
||||
*
|
||||
* @generated from protobuf field: string value = 1;
|
||||
* @generated from protobuf field: string value = 1
|
||||
*/
|
||||
value: string;
|
||||
}
|
||||
@@ -182,13 +212,16 @@ export interface StringValue {
|
||||
*
|
||||
* The JSON representation for `BytesValue` is JSON string.
|
||||
*
|
||||
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
||||
* has no plan to be removed.
|
||||
*
|
||||
* @generated from protobuf message google.protobuf.BytesValue
|
||||
*/
|
||||
export interface BytesValue {
|
||||
/**
|
||||
* The bytes value.
|
||||
*
|
||||
* @generated from protobuf field: bytes value = 1;
|
||||
* @generated from protobuf field: bytes value = 1
|
||||
*/
|
||||
value: Uint8Array;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "google/rpc/code.proto" (package "google.rpc", syntax proto3)
|
||||
// tslint:disable
|
||||
//
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "google/rpc/error_details.proto" (package "google.rpc", syntax proto3)
|
||||
// tslint:disable
|
||||
//
|
||||
@@ -47,9 +47,9 @@ export interface RetryInfo {
|
||||
/**
|
||||
* Clients should wait at least this long between retrying the same request.
|
||||
*
|
||||
* @generated from protobuf field: google.protobuf.Duration retry_delay = 1;
|
||||
* @generated from protobuf field: google.protobuf.Duration retry_delay = 1
|
||||
*/
|
||||
retryDelay?: Duration;
|
||||
retry_delay?: Duration;
|
||||
}
|
||||
/**
|
||||
* Describes additional debugging info.
|
||||
@@ -60,13 +60,13 @@ export interface DebugInfo {
|
||||
/**
|
||||
* The stack trace entries indicating where the error occurred.
|
||||
*
|
||||
* @generated from protobuf field: repeated string stack_entries = 1;
|
||||
* @generated from protobuf field: repeated string stack_entries = 1
|
||||
*/
|
||||
stackEntries: string[];
|
||||
stack_entries: string[];
|
||||
/**
|
||||
* Additional debugging information provided by the server.
|
||||
*
|
||||
* @generated from protobuf field: string detail = 2;
|
||||
* @generated from protobuf field: string detail = 2
|
||||
*/
|
||||
detail: string;
|
||||
}
|
||||
@@ -89,7 +89,7 @@ export interface QuotaFailure {
|
||||
/**
|
||||
* Describes all quota violations.
|
||||
*
|
||||
* @generated from protobuf field: repeated google.rpc.QuotaFailure.Violation violations = 1;
|
||||
* @generated from protobuf field: repeated google.rpc.QuotaFailure.Violation violations = 1
|
||||
*/
|
||||
violations: QuotaFailure_Violation[];
|
||||
}
|
||||
@@ -105,7 +105,7 @@ export interface QuotaFailure_Violation {
|
||||
* For example, "clientip:<ip address of client>" or "project:<Google
|
||||
* developer project id>".
|
||||
*
|
||||
* @generated from protobuf field: string subject = 1;
|
||||
* @generated from protobuf field: string subject = 1
|
||||
*/
|
||||
subject: string;
|
||||
/**
|
||||
@@ -117,7 +117,7 @@ export interface QuotaFailure_Violation {
|
||||
* For example: "Service disabled" or "Daily Limit for read operations
|
||||
* exceeded".
|
||||
*
|
||||
* @generated from protobuf field: string description = 2;
|
||||
* @generated from protobuf field: string description = 2
|
||||
*/
|
||||
description: string;
|
||||
}
|
||||
@@ -134,7 +134,7 @@ export interface PreconditionFailure {
|
||||
/**
|
||||
* Describes all precondition violations.
|
||||
*
|
||||
* @generated from protobuf field: repeated google.rpc.PreconditionFailure.Violation violations = 1;
|
||||
* @generated from protobuf field: repeated google.rpc.PreconditionFailure.Violation violations = 1
|
||||
*/
|
||||
violations: PreconditionFailure_Violation[];
|
||||
}
|
||||
@@ -149,7 +149,7 @@ export interface PreconditionFailure_Violation {
|
||||
* enum type to define the supported precondition violation types. For
|
||||
* example, "TOS" for "Terms of Service violation".
|
||||
*
|
||||
* @generated from protobuf field: string type = 1;
|
||||
* @generated from protobuf field: string type = 1
|
||||
*/
|
||||
type: string;
|
||||
/**
|
||||
@@ -157,7 +157,7 @@ export interface PreconditionFailure_Violation {
|
||||
* For example, "google.com/cloud" relative to the "TOS" type would
|
||||
* indicate which terms of service is being referenced.
|
||||
*
|
||||
* @generated from protobuf field: string subject = 2;
|
||||
* @generated from protobuf field: string subject = 2
|
||||
*/
|
||||
subject: string;
|
||||
/**
|
||||
@@ -166,7 +166,7 @@ export interface PreconditionFailure_Violation {
|
||||
*
|
||||
* For example: "Terms of service not accepted".
|
||||
*
|
||||
* @generated from protobuf field: string description = 3;
|
||||
* @generated from protobuf field: string description = 3
|
||||
*/
|
||||
description: string;
|
||||
}
|
||||
@@ -180,9 +180,9 @@ export interface BadRequest {
|
||||
/**
|
||||
* Describes all violations in a client request.
|
||||
*
|
||||
* @generated from protobuf field: repeated google.rpc.BadRequest.FieldViolation field_violations = 1;
|
||||
* @generated from protobuf field: repeated google.rpc.BadRequest.FieldViolation field_violations = 1
|
||||
*/
|
||||
fieldViolations: BadRequest_FieldViolation[];
|
||||
field_violations: BadRequest_FieldViolation[];
|
||||
}
|
||||
/**
|
||||
* A message type used to describe a single bad request field.
|
||||
@@ -195,13 +195,13 @@ export interface BadRequest_FieldViolation {
|
||||
* sequence of dot-separated identifiers that identify a protocol buffer
|
||||
* field. E.g., "field_violations.field" would identify this field.
|
||||
*
|
||||
* @generated from protobuf field: string field = 1;
|
||||
* @generated from protobuf field: string field = 1
|
||||
*/
|
||||
field: string;
|
||||
/**
|
||||
* A description of why the request element is bad.
|
||||
*
|
||||
* @generated from protobuf field: string description = 2;
|
||||
* @generated from protobuf field: string description = 2
|
||||
*/
|
||||
description: string;
|
||||
}
|
||||
@@ -216,16 +216,16 @@ export interface RequestInfo {
|
||||
* An opaque string that should only be interpreted by the service generating
|
||||
* it. For example, it can be used to identify requests in the service's logs.
|
||||
*
|
||||
* @generated from protobuf field: string request_id = 1;
|
||||
* @generated from protobuf field: string request_id = 1
|
||||
*/
|
||||
requestId: string;
|
||||
request_id: string;
|
||||
/**
|
||||
* Any data that was used to serve this request. For example, an encrypted
|
||||
* stack trace that can be sent back to the service provider for debugging.
|
||||
*
|
||||
* @generated from protobuf field: string serving_data = 2;
|
||||
* @generated from protobuf field: string serving_data = 2
|
||||
*/
|
||||
servingData: string;
|
||||
serving_data: string;
|
||||
}
|
||||
/**
|
||||
* Describes the resource that is being accessed.
|
||||
@@ -238,23 +238,23 @@ export interface ResourceInfo {
|
||||
* "cloud storage bucket", "file", "Google calendar"; or the type URL
|
||||
* of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic".
|
||||
*
|
||||
* @generated from protobuf field: string resource_type = 1;
|
||||
* @generated from protobuf field: string resource_type = 1
|
||||
*/
|
||||
resourceType: string;
|
||||
resource_type: string;
|
||||
/**
|
||||
* The name of the resource being accessed. For example, a shared calendar
|
||||
* name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
|
||||
* error is [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
|
||||
*
|
||||
* @generated from protobuf field: string resource_name = 2;
|
||||
* @generated from protobuf field: string resource_name = 2
|
||||
*/
|
||||
resourceName: string;
|
||||
resource_name: string;
|
||||
/**
|
||||
* The owner of the resource (optional).
|
||||
* For example, "user:<owner email>" or "project:<Google developer project
|
||||
* id>".
|
||||
*
|
||||
* @generated from protobuf field: string owner = 3;
|
||||
* @generated from protobuf field: string owner = 3
|
||||
*/
|
||||
owner: string;
|
||||
/**
|
||||
@@ -262,7 +262,7 @@ export interface ResourceInfo {
|
||||
* For example, updating a cloud project may require the `writer` permission
|
||||
* on the developer console project.
|
||||
*
|
||||
* @generated from protobuf field: string description = 4;
|
||||
* @generated from protobuf field: string description = 4
|
||||
*/
|
||||
description: string;
|
||||
}
|
||||
@@ -279,7 +279,7 @@ export interface Help {
|
||||
/**
|
||||
* URL(s) pointing to additional information on handling the current error.
|
||||
*
|
||||
* @generated from protobuf field: repeated google.rpc.Help.Link links = 1;
|
||||
* @generated from protobuf field: repeated google.rpc.Help.Link links = 1
|
||||
*/
|
||||
links: Help_Link[];
|
||||
}
|
||||
@@ -292,13 +292,13 @@ export interface Help_Link {
|
||||
/**
|
||||
* Describes what the link offers.
|
||||
*
|
||||
* @generated from protobuf field: string description = 1;
|
||||
* @generated from protobuf field: string description = 1
|
||||
*/
|
||||
description: string;
|
||||
/**
|
||||
* The URL of the link.
|
||||
*
|
||||
* @generated from protobuf field: string url = 2;
|
||||
* @generated from protobuf field: string url = 2
|
||||
*/
|
||||
url: string;
|
||||
}
|
||||
@@ -314,13 +314,13 @@ export interface LocalizedMessage {
|
||||
* http://www.rfc-editor.org/rfc/bcp/bcp47.txt.
|
||||
* Examples are: "en-US", "fr-CH", "es-MX"
|
||||
*
|
||||
* @generated from protobuf field: string locale = 1;
|
||||
* @generated from protobuf field: string locale = 1
|
||||
*/
|
||||
locale: string;
|
||||
/**
|
||||
* The localized error message in the above locale.
|
||||
*
|
||||
* @generated from protobuf field: string message = 2;
|
||||
* @generated from protobuf field: string message = 2
|
||||
*/
|
||||
message: string;
|
||||
}
|
||||
@@ -328,7 +328,7 @@ export interface LocalizedMessage {
|
||||
class RetryInfo$Type extends MessageType<RetryInfo> {
|
||||
constructor() {
|
||||
super("google.rpc.RetryInfo", [
|
||||
{ no: 1, name: "retry_delay", kind: "message", T: () => Duration }
|
||||
{ no: 1, name: "retry_delay", kind: "message", localName: "retry_delay", T: () => Duration }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<RetryInfo>): RetryInfo {
|
||||
@@ -343,7 +343,7 @@ class RetryInfo$Type extends MessageType<RetryInfo> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* google.protobuf.Duration retry_delay */ 1:
|
||||
message.retryDelay = Duration.internalBinaryRead(reader, reader.uint32(), options, message.retryDelay);
|
||||
message.retry_delay = Duration.internalBinaryRead(reader, reader.uint32(), options, message.retry_delay);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -358,8 +358,8 @@ class RetryInfo$Type extends MessageType<RetryInfo> {
|
||||
}
|
||||
internalBinaryWrite(message: RetryInfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* google.protobuf.Duration retry_delay = 1; */
|
||||
if (message.retryDelay)
|
||||
Duration.internalBinaryWrite(message.retryDelay, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.retry_delay)
|
||||
Duration.internalBinaryWrite(message.retry_delay, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -374,13 +374,13 @@ export const RetryInfo = new RetryInfo$Type();
|
||||
class DebugInfo$Type extends MessageType<DebugInfo> {
|
||||
constructor() {
|
||||
super("google.rpc.DebugInfo", [
|
||||
{ no: 1, name: "stack_entries", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 1, name: "stack_entries", kind: "scalar", localName: "stack_entries", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "detail", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<DebugInfo>): DebugInfo {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.stackEntries = [];
|
||||
message.stack_entries = [];
|
||||
message.detail = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DebugInfo>(this, message, value);
|
||||
@@ -392,7 +392,7 @@ class DebugInfo$Type extends MessageType<DebugInfo> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated string stack_entries */ 1:
|
||||
message.stackEntries.push(reader.string());
|
||||
message.stack_entries.push(reader.string());
|
||||
break;
|
||||
case /* string detail */ 2:
|
||||
message.detail = reader.string();
|
||||
@@ -410,8 +410,8 @@ class DebugInfo$Type extends MessageType<DebugInfo> {
|
||||
}
|
||||
internalBinaryWrite(message: DebugInfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated string stack_entries = 1; */
|
||||
for (let i = 0; i < message.stackEntries.length; i++)
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.stackEntries[i]);
|
||||
for (let i = 0; i < message.stack_entries.length; i++)
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.stack_entries[i]);
|
||||
/* string detail = 2; */
|
||||
if (message.detail !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.detail);
|
||||
@@ -429,7 +429,7 @@ export const DebugInfo = new DebugInfo$Type();
|
||||
class QuotaFailure$Type extends MessageType<QuotaFailure> {
|
||||
constructor() {
|
||||
super("google.rpc.QuotaFailure", [
|
||||
{ no: 1, name: "violations", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => QuotaFailure_Violation }
|
||||
{ no: 1, name: "violations", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuotaFailure_Violation }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<QuotaFailure>): QuotaFailure {
|
||||
@@ -531,7 +531,7 @@ export const QuotaFailure_Violation = new QuotaFailure_Violation$Type();
|
||||
class PreconditionFailure$Type extends MessageType<PreconditionFailure> {
|
||||
constructor() {
|
||||
super("google.rpc.PreconditionFailure", [
|
||||
{ no: 1, name: "violations", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => PreconditionFailure_Violation }
|
||||
{ no: 1, name: "violations", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PreconditionFailure_Violation }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<PreconditionFailure>): PreconditionFailure {
|
||||
@@ -641,12 +641,12 @@ export const PreconditionFailure_Violation = new PreconditionFailure_Violation$T
|
||||
class BadRequest$Type extends MessageType<BadRequest> {
|
||||
constructor() {
|
||||
super("google.rpc.BadRequest", [
|
||||
{ no: 1, name: "field_violations", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => BadRequest_FieldViolation }
|
||||
{ no: 1, name: "field_violations", kind: "message", localName: "field_violations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BadRequest_FieldViolation }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<BadRequest>): BadRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.fieldViolations = [];
|
||||
message.field_violations = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<BadRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -657,7 +657,7 @@ class BadRequest$Type extends MessageType<BadRequest> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated google.rpc.BadRequest.FieldViolation field_violations */ 1:
|
||||
message.fieldViolations.push(BadRequest_FieldViolation.internalBinaryRead(reader, reader.uint32(), options));
|
||||
message.field_violations.push(BadRequest_FieldViolation.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -672,8 +672,8 @@ class BadRequest$Type extends MessageType<BadRequest> {
|
||||
}
|
||||
internalBinaryWrite(message: BadRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated google.rpc.BadRequest.FieldViolation field_violations = 1; */
|
||||
for (let i = 0; i < message.fieldViolations.length; i++)
|
||||
BadRequest_FieldViolation.internalBinaryWrite(message.fieldViolations[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
for (let i = 0; i < message.field_violations.length; i++)
|
||||
BadRequest_FieldViolation.internalBinaryWrite(message.field_violations[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);
|
||||
@@ -743,14 +743,14 @@ export const BadRequest_FieldViolation = new BadRequest_FieldViolation$Type();
|
||||
class RequestInfo$Type extends MessageType<RequestInfo> {
|
||||
constructor() {
|
||||
super("google.rpc.RequestInfo", [
|
||||
{ no: 1, name: "request_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "serving_data", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
||||
{ no: 1, name: "request_id", kind: "scalar", localName: "request_id", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "serving_data", kind: "scalar", localName: "serving_data", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<RequestInfo>): RequestInfo {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.requestId = "";
|
||||
message.servingData = "";
|
||||
message.request_id = "";
|
||||
message.serving_data = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<RequestInfo>(this, message, value);
|
||||
return message;
|
||||
@@ -761,10 +761,10 @@ class RequestInfo$Type extends MessageType<RequestInfo> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string request_id */ 1:
|
||||
message.requestId = reader.string();
|
||||
message.request_id = reader.string();
|
||||
break;
|
||||
case /* string serving_data */ 2:
|
||||
message.servingData = reader.string();
|
||||
message.serving_data = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -779,11 +779,11 @@ class RequestInfo$Type extends MessageType<RequestInfo> {
|
||||
}
|
||||
internalBinaryWrite(message: RequestInfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string request_id = 1; */
|
||||
if (message.requestId !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.requestId);
|
||||
if (message.request_id !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.request_id);
|
||||
/* string serving_data = 2; */
|
||||
if (message.servingData !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.servingData);
|
||||
if (message.serving_data !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.serving_data);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -798,16 +798,16 @@ export const RequestInfo = new RequestInfo$Type();
|
||||
class ResourceInfo$Type extends MessageType<ResourceInfo> {
|
||||
constructor() {
|
||||
super("google.rpc.ResourceInfo", [
|
||||
{ no: 1, name: "resource_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "resource_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 1, name: "resource_type", kind: "scalar", localName: "resource_type", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "resource_name", kind: "scalar", localName: "resource_name", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "owner", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<ResourceInfo>): ResourceInfo {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.resourceType = "";
|
||||
message.resourceName = "";
|
||||
message.resource_type = "";
|
||||
message.resource_name = "";
|
||||
message.owner = "";
|
||||
message.description = "";
|
||||
if (value !== undefined)
|
||||
@@ -820,10 +820,10 @@ class ResourceInfo$Type extends MessageType<ResourceInfo> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string resource_type */ 1:
|
||||
message.resourceType = reader.string();
|
||||
message.resource_type = reader.string();
|
||||
break;
|
||||
case /* string resource_name */ 2:
|
||||
message.resourceName = reader.string();
|
||||
message.resource_name = reader.string();
|
||||
break;
|
||||
case /* string owner */ 3:
|
||||
message.owner = reader.string();
|
||||
@@ -844,11 +844,11 @@ class ResourceInfo$Type extends MessageType<ResourceInfo> {
|
||||
}
|
||||
internalBinaryWrite(message: ResourceInfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string resource_type = 1; */
|
||||
if (message.resourceType !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.resourceType);
|
||||
if (message.resource_type !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.resource_type);
|
||||
/* string resource_name = 2; */
|
||||
if (message.resourceName !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.resourceName);
|
||||
if (message.resource_name !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.resource_name);
|
||||
/* string owner = 3; */
|
||||
if (message.owner !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.owner);
|
||||
@@ -869,7 +869,7 @@ export const ResourceInfo = new ResourceInfo$Type();
|
||||
class Help$Type extends MessageType<Help> {
|
||||
constructor() {
|
||||
super("google.rpc.Help", [
|
||||
{ no: 1, name: "links", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Help_Link }
|
||||
{ no: 1, name: "links", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Help_Link }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<Help>): Help {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "google/rpc/status.proto" (package "google.rpc", syntax proto3)
|
||||
// tslint:disable
|
||||
//
|
||||
@@ -86,7 +86,7 @@ export interface Status {
|
||||
/**
|
||||
* The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
|
||||
*
|
||||
* @generated from protobuf field: int32 code = 1;
|
||||
* @generated from protobuf field: int32 code = 1
|
||||
*/
|
||||
code: number;
|
||||
/**
|
||||
@@ -94,14 +94,14 @@ export interface Status {
|
||||
* user-facing error message should be localized and sent in the
|
||||
* [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
|
||||
*
|
||||
* @generated from protobuf field: string message = 2;
|
||||
* @generated from protobuf field: string message = 2
|
||||
*/
|
||||
message: string;
|
||||
/**
|
||||
* A list of messages that carry the error details. There is a common set of
|
||||
* message types for APIs to use.
|
||||
*
|
||||
* @generated from protobuf field: repeated google.protobuf.Any details = 3;
|
||||
* @generated from protobuf field: repeated google.protobuf.Any details = 3
|
||||
*/
|
||||
details: Any[];
|
||||
}
|
||||
@@ -111,7 +111,7 @@ class Status$Type extends MessageType<Status> {
|
||||
super("google.rpc.Status", [
|
||||
{ no: 1, name: "code", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
||||
{ no: 2, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "details", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Any }
|
||||
{ no: 3, name: "details", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Any }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<Status>): Status {
|
||||
|
||||
2
index.ts
2
index.ts
@@ -19,8 +19,6 @@
|
||||
export * from './viz-project-settings'
|
||||
export * from './viz-tab.client'
|
||||
export * from './viz-tab'
|
||||
export * from './viz-translations.client'
|
||||
export * from './viz-translations'
|
||||
export * from './viz-user-settings.client'
|
||||
export * from './viz-user-settings'
|
||||
export * from './viz-view.client'
|
||||
|
||||
1182
openapiv2.ts
1182
openapiv2.ts
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reflex-platform/npm-viz-sdk",
|
||||
"version": "1.11.0-SNAPSHOT-250407063308",
|
||||
"version": "1.13.2",
|
||||
"description": "npm libs from visibility model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
1269
validate.ts
1269
validate.ts
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "visibility.proto" (package "google.api", syntax proto3)
|
||||
// tslint:disable
|
||||
//
|
||||
@@ -57,7 +57,7 @@ export interface Visibility {
|
||||
*
|
||||
* **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
*
|
||||
* @generated from protobuf field: repeated google.api.VisibilityRule rules = 1;
|
||||
* @generated from protobuf field: repeated google.api.VisibilityRule rules = 1
|
||||
*/
|
||||
rules: VisibilityRule[];
|
||||
}
|
||||
@@ -73,7 +73,7 @@ export interface VisibilityRule {
|
||||
*
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
|
||||
*
|
||||
* @generated from protobuf field: string selector = 1;
|
||||
* @generated from protobuf field: string selector = 1
|
||||
*/
|
||||
selector: string;
|
||||
/**
|
||||
@@ -93,7 +93,7 @@ export interface VisibilityRule {
|
||||
* Removing INTERNAL from this restriction will break clients that rely on
|
||||
* this method and only had access to it through INTERNAL.
|
||||
*
|
||||
* @generated from protobuf field: string restriction = 2;
|
||||
* @generated from protobuf field: string restriction = 2
|
||||
*/
|
||||
restriction: string;
|
||||
}
|
||||
@@ -101,7 +101,7 @@ export interface VisibilityRule {
|
||||
class Visibility$Type extends MessageType<Visibility> {
|
||||
constructor() {
|
||||
super("google.api.Visibility", [
|
||||
{ no: 1, name: "rules", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => VisibilityRule }
|
||||
{ no: 1, name: "rules", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => VisibilityRule }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<Visibility>): Visibility {
|
||||
|
||||
@@ -1,9 +1,19 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "viz-composed-field.proto" (package "vizapi", syntax proto3)
|
||||
// tslint:disable
|
||||
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
||||
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
||||
import { ComposedFieldService } from "./viz-composed-field";
|
||||
import type { ListProjectComposedFieldResult } from "./viz-composed-field";
|
||||
import type { ListProjectComposedFieldRequest } from "./viz-composed-field";
|
||||
import type { DeleteProjectComposedFieldResult } from "./viz-composed-field";
|
||||
import type { DeleteProjectComposedFieldRequest } from "./viz-composed-field";
|
||||
import type { UpdateProjectComposedFieldResult } from "./viz-composed-field";
|
||||
import type { UpdateProjectComposedFieldRequest } from "./viz-composed-field";
|
||||
import type { CreateProjectComposedFieldResult } from "./viz-composed-field";
|
||||
import type { CreateProjectComposedFieldRequest } from "./viz-composed-field";
|
||||
import type { GetProjectComposedFieldResult } from "./viz-composed-field";
|
||||
import type { GetProjectComposedFieldRequest } from "./viz-composed-field";
|
||||
import type { ListComposedFieldResult } from "./viz-composed-field";
|
||||
import type { ListComposedFieldRequest } from "./viz-composed-field";
|
||||
import type { DeleteComposedFieldResult } from "./viz-composed-field";
|
||||
@@ -22,25 +32,45 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
||||
*/
|
||||
export interface IComposedFieldServiceClient {
|
||||
/**
|
||||
* @generated from protobuf rpc: Get(vizapi.GetComposedFieldRequest) returns (vizapi.GetComposedFieldResult);
|
||||
* @generated from protobuf rpc: Get
|
||||
*/
|
||||
get(input: GetComposedFieldRequest, options?: RpcOptions): UnaryCall<GetComposedFieldRequest, GetComposedFieldResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: Create(vizapi.CreateComposedFieldRequest) returns (vizapi.CreateComposedFieldResult);
|
||||
* @generated from protobuf rpc: Create
|
||||
*/
|
||||
create(input: CreateComposedFieldRequest, options?: RpcOptions): UnaryCall<CreateComposedFieldRequest, CreateComposedFieldResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: Update(vizapi.UpdateComposedFieldRequest) returns (vizapi.UpdateComposedFieldResult);
|
||||
* @generated from protobuf rpc: Update
|
||||
*/
|
||||
update(input: UpdateComposedFieldRequest, options?: RpcOptions): UnaryCall<UpdateComposedFieldRequest, UpdateComposedFieldResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: Delete(vizapi.DeleteComposedFieldRequest) returns (vizapi.DeleteComposedFieldResult);
|
||||
* @generated from protobuf rpc: Delete
|
||||
*/
|
||||
delete(input: DeleteComposedFieldRequest, options?: RpcOptions): UnaryCall<DeleteComposedFieldRequest, DeleteComposedFieldResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: List(vizapi.ListComposedFieldRequest) returns (vizapi.ListComposedFieldResult);
|
||||
* @generated from protobuf rpc: List
|
||||
*/
|
||||
list(input: ListComposedFieldRequest, options?: RpcOptions): UnaryCall<ListComposedFieldRequest, ListComposedFieldResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: GetProject
|
||||
*/
|
||||
getProject(input: GetProjectComposedFieldRequest, options?: RpcOptions): UnaryCall<GetProjectComposedFieldRequest, GetProjectComposedFieldResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: CreateProject
|
||||
*/
|
||||
createProject(input: CreateProjectComposedFieldRequest, options?: RpcOptions): UnaryCall<CreateProjectComposedFieldRequest, CreateProjectComposedFieldResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: UpdateProject
|
||||
*/
|
||||
updateProject(input: UpdateProjectComposedFieldRequest, options?: RpcOptions): UnaryCall<UpdateProjectComposedFieldRequest, UpdateProjectComposedFieldResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteProject
|
||||
*/
|
||||
deleteProject(input: DeleteProjectComposedFieldRequest, options?: RpcOptions): UnaryCall<DeleteProjectComposedFieldRequest, DeleteProjectComposedFieldResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: ListProject
|
||||
*/
|
||||
listProject(input: ListProjectComposedFieldRequest, options?: RpcOptions): UnaryCall<ListProjectComposedFieldRequest, ListProjectComposedFieldResult>;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf service vizapi.ComposedFieldService
|
||||
@@ -52,38 +82,73 @@ export class ComposedFieldServiceClient implements IComposedFieldServiceClient,
|
||||
constructor(private readonly _transport: RpcTransport) {
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Get(vizapi.GetComposedFieldRequest) returns (vizapi.GetComposedFieldResult);
|
||||
* @generated from protobuf rpc: Get
|
||||
*/
|
||||
get(input: GetComposedFieldRequest, options?: RpcOptions): UnaryCall<GetComposedFieldRequest, GetComposedFieldResult> {
|
||||
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<GetComposedFieldRequest, GetComposedFieldResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Create(vizapi.CreateComposedFieldRequest) returns (vizapi.CreateComposedFieldResult);
|
||||
* @generated from protobuf rpc: Create
|
||||
*/
|
||||
create(input: CreateComposedFieldRequest, options?: RpcOptions): UnaryCall<CreateComposedFieldRequest, CreateComposedFieldResult> {
|
||||
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<CreateComposedFieldRequest, CreateComposedFieldResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Update(vizapi.UpdateComposedFieldRequest) returns (vizapi.UpdateComposedFieldResult);
|
||||
* @generated from protobuf rpc: Update
|
||||
*/
|
||||
update(input: UpdateComposedFieldRequest, options?: RpcOptions): UnaryCall<UpdateComposedFieldRequest, UpdateComposedFieldResult> {
|
||||
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<UpdateComposedFieldRequest, UpdateComposedFieldResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Delete(vizapi.DeleteComposedFieldRequest) returns (vizapi.DeleteComposedFieldResult);
|
||||
* @generated from protobuf rpc: Delete
|
||||
*/
|
||||
delete(input: DeleteComposedFieldRequest, options?: RpcOptions): UnaryCall<DeleteComposedFieldRequest, DeleteComposedFieldResult> {
|
||||
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<DeleteComposedFieldRequest, DeleteComposedFieldResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: List(vizapi.ListComposedFieldRequest) returns (vizapi.ListComposedFieldResult);
|
||||
* @generated from protobuf rpc: List
|
||||
*/
|
||||
list(input: ListComposedFieldRequest, options?: RpcOptions): UnaryCall<ListComposedFieldRequest, ListComposedFieldResult> {
|
||||
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ListComposedFieldRequest, ListComposedFieldResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: GetProject
|
||||
*/
|
||||
getProject(input: GetProjectComposedFieldRequest, options?: RpcOptions): UnaryCall<GetProjectComposedFieldRequest, GetProjectComposedFieldResult> {
|
||||
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<GetProjectComposedFieldRequest, GetProjectComposedFieldResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CreateProject
|
||||
*/
|
||||
createProject(input: CreateProjectComposedFieldRequest, options?: RpcOptions): UnaryCall<CreateProjectComposedFieldRequest, CreateProjectComposedFieldResult> {
|
||||
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<CreateProjectComposedFieldRequest, CreateProjectComposedFieldResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: UpdateProject
|
||||
*/
|
||||
updateProject(input: UpdateProjectComposedFieldRequest, options?: RpcOptions): UnaryCall<UpdateProjectComposedFieldRequest, UpdateProjectComposedFieldResult> {
|
||||
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<UpdateProjectComposedFieldRequest, UpdateProjectComposedFieldResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteProject
|
||||
*/
|
||||
deleteProject(input: DeleteProjectComposedFieldRequest, options?: RpcOptions): UnaryCall<DeleteProjectComposedFieldRequest, DeleteProjectComposedFieldResult> {
|
||||
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<DeleteProjectComposedFieldRequest, DeleteProjectComposedFieldResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: ListProject
|
||||
*/
|
||||
listProject(input: ListProjectComposedFieldRequest, options?: RpcOptions): UnaryCall<ListProjectComposedFieldRequest, ListProjectComposedFieldResult> {
|
||||
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ListProjectComposedFieldRequest, ListProjectComposedFieldResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,9 +1,23 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "viz-dashboard.proto" (package "vizapi", syntax proto3)
|
||||
// tslint:disable
|
||||
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
||||
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
||||
import { DashboardService } from "./viz-dashboard";
|
||||
import type { CopyProjectDashboardResult } from "./viz-dashboard";
|
||||
import type { CopyProjectDashboardRequest } from "./viz-dashboard";
|
||||
import type { GetProjectDashboardResult } from "./viz-dashboard";
|
||||
import type { GetProjectDashboardRequest } from "./viz-dashboard";
|
||||
import type { UpdateProjectDashboardResult } from "./viz-dashboard";
|
||||
import type { UpdateProjectDashboardRequest } from "./viz-dashboard";
|
||||
import type { DeleteProjectDashboardResult } from "./viz-dashboard";
|
||||
import type { DeleteProjectDashboardRequest } from "./viz-dashboard";
|
||||
import type { ListProjectDashboardResult } from "./viz-dashboard";
|
||||
import type { ListProjectDashboardRequest } from "./viz-dashboard";
|
||||
import type { CreateProjectDashboardResult } from "./viz-dashboard";
|
||||
import type { CreateProjectDashboardRequest } from "./viz-dashboard";
|
||||
import type { SetOwnerDashboardResult } from "./viz-dashboard";
|
||||
import type { SetOwnerDashboardRequest } from "./viz-dashboard";
|
||||
import type { CopyDashboardResult } from "./viz-dashboard";
|
||||
import type { CopyDashboardRequest } from "./viz-dashboard";
|
||||
import type { GetDashboardResult } from "./viz-dashboard";
|
||||
@@ -28,37 +42,65 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
||||
*/
|
||||
export interface IDashboardServiceClient {
|
||||
/**
|
||||
* @generated from protobuf rpc: Create(vizapi.CreateDashboardRequest) returns (vizapi.CreateDashboardResult);
|
||||
* @generated from protobuf rpc: Create
|
||||
*/
|
||||
create(input: CreateDashboardRequest, options?: RpcOptions): UnaryCall<CreateDashboardRequest, CreateDashboardResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: List(vizapi.ListDashboardRequest) returns (vizapi.ListDashboardResult);
|
||||
* @generated from protobuf rpc: List
|
||||
*/
|
||||
list(input: ListDashboardRequest, options?: RpcOptions): UnaryCall<ListDashboardRequest, ListDashboardResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: Delete(vizapi.DeleteDashboardRequest) returns (vizapi.DeleteDashboardResult);
|
||||
* @generated from protobuf rpc: Delete
|
||||
*/
|
||||
delete(input: DeleteDashboardRequest, options?: RpcOptions): UnaryCall<DeleteDashboardRequest, DeleteDashboardResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteDashboardsForOrganisation(vizapi.DeleteDashboardsForOrganisationRequest) returns (vizapi.DeleteDashboardsForOrganisationResult);
|
||||
* @generated from protobuf rpc: DeleteDashboardsForOrganisation
|
||||
*/
|
||||
deleteDashboardsForOrganisation(input: DeleteDashboardsForOrganisationRequest, options?: RpcOptions): UnaryCall<DeleteDashboardsForOrganisationRequest, DeleteDashboardsForOrganisationResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteDashboardsForProject(vizapi.DeleteDashboardsForProjectRequest) returns (vizapi.DeleteDashboardsForProjectResult);
|
||||
* @generated from protobuf rpc: DeleteDashboardsForProject
|
||||
*/
|
||||
deleteDashboardsForProject(input: DeleteDashboardsForProjectRequest, options?: RpcOptions): UnaryCall<DeleteDashboardsForProjectRequest, DeleteDashboardsForProjectResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: Update(vizapi.UpdateDashboardRequest) returns (vizapi.UpdateDashboardResult);
|
||||
* @generated from protobuf rpc: Update
|
||||
*/
|
||||
update(input: UpdateDashboardRequest, options?: RpcOptions): UnaryCall<UpdateDashboardRequest, UpdateDashboardResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: Get(vizapi.GetDashboardRequest) returns (vizapi.GetDashboardResult);
|
||||
* @generated from protobuf rpc: Get
|
||||
*/
|
||||
get(input: GetDashboardRequest, options?: RpcOptions): UnaryCall<GetDashboardRequest, GetDashboardResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: Copy(vizapi.CopyDashboardRequest) returns (vizapi.CopyDashboardResult);
|
||||
* @generated from protobuf rpc: Copy
|
||||
*/
|
||||
copy(input: CopyDashboardRequest, options?: RpcOptions): UnaryCall<CopyDashboardRequest, CopyDashboardResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: SetOwner
|
||||
*/
|
||||
setOwner(input: SetOwnerDashboardRequest, options?: RpcOptions): UnaryCall<SetOwnerDashboardRequest, SetOwnerDashboardResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: CreateProject
|
||||
*/
|
||||
createProject(input: CreateProjectDashboardRequest, options?: RpcOptions): UnaryCall<CreateProjectDashboardRequest, CreateProjectDashboardResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: ListProject
|
||||
*/
|
||||
listProject(input: ListProjectDashboardRequest, options?: RpcOptions): UnaryCall<ListProjectDashboardRequest, ListProjectDashboardResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteProject
|
||||
*/
|
||||
deleteProject(input: DeleteProjectDashboardRequest, options?: RpcOptions): UnaryCall<DeleteProjectDashboardRequest, DeleteProjectDashboardResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: UpdateProject
|
||||
*/
|
||||
updateProject(input: UpdateProjectDashboardRequest, options?: RpcOptions): UnaryCall<UpdateProjectDashboardRequest, UpdateProjectDashboardResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: GetProject
|
||||
*/
|
||||
getProject(input: GetProjectDashboardRequest, options?: RpcOptions): UnaryCall<GetProjectDashboardRequest, GetProjectDashboardResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: CopyProject
|
||||
*/
|
||||
copyProject(input: CopyProjectDashboardRequest, options?: RpcOptions): UnaryCall<CopyProjectDashboardRequest, CopyProjectDashboardResult>;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf service vizapi.DashboardService
|
||||
@@ -70,59 +112,108 @@ export class DashboardServiceClient implements IDashboardServiceClient, ServiceI
|
||||
constructor(private readonly _transport: RpcTransport) {
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Create(vizapi.CreateDashboardRequest) returns (vizapi.CreateDashboardResult);
|
||||
* @generated from protobuf rpc: Create
|
||||
*/
|
||||
create(input: CreateDashboardRequest, options?: RpcOptions): UnaryCall<CreateDashboardRequest, CreateDashboardResult> {
|
||||
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<CreateDashboardRequest, CreateDashboardResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: List(vizapi.ListDashboardRequest) returns (vizapi.ListDashboardResult);
|
||||
* @generated from protobuf rpc: List
|
||||
*/
|
||||
list(input: ListDashboardRequest, options?: RpcOptions): UnaryCall<ListDashboardRequest, ListDashboardResult> {
|
||||
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ListDashboardRequest, ListDashboardResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Delete(vizapi.DeleteDashboardRequest) returns (vizapi.DeleteDashboardResult);
|
||||
* @generated from protobuf rpc: Delete
|
||||
*/
|
||||
delete(input: DeleteDashboardRequest, options?: RpcOptions): UnaryCall<DeleteDashboardRequest, DeleteDashboardResult> {
|
||||
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<DeleteDashboardRequest, DeleteDashboardResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteDashboardsForOrganisation(vizapi.DeleteDashboardsForOrganisationRequest) returns (vizapi.DeleteDashboardsForOrganisationResult);
|
||||
* @generated from protobuf rpc: DeleteDashboardsForOrganisation
|
||||
*/
|
||||
deleteDashboardsForOrganisation(input: DeleteDashboardsForOrganisationRequest, options?: RpcOptions): UnaryCall<DeleteDashboardsForOrganisationRequest, DeleteDashboardsForOrganisationResult> {
|
||||
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<DeleteDashboardsForOrganisationRequest, DeleteDashboardsForOrganisationResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteDashboardsForProject(vizapi.DeleteDashboardsForProjectRequest) returns (vizapi.DeleteDashboardsForProjectResult);
|
||||
* @generated from protobuf rpc: DeleteDashboardsForProject
|
||||
*/
|
||||
deleteDashboardsForProject(input: DeleteDashboardsForProjectRequest, options?: RpcOptions): UnaryCall<DeleteDashboardsForProjectRequest, DeleteDashboardsForProjectResult> {
|
||||
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<DeleteDashboardsForProjectRequest, DeleteDashboardsForProjectResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Update(vizapi.UpdateDashboardRequest) returns (vizapi.UpdateDashboardResult);
|
||||
* @generated from protobuf rpc: Update
|
||||
*/
|
||||
update(input: UpdateDashboardRequest, options?: RpcOptions): UnaryCall<UpdateDashboardRequest, UpdateDashboardResult> {
|
||||
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<UpdateDashboardRequest, UpdateDashboardResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Get(vizapi.GetDashboardRequest) returns (vizapi.GetDashboardResult);
|
||||
* @generated from protobuf rpc: Get
|
||||
*/
|
||||
get(input: GetDashboardRequest, options?: RpcOptions): UnaryCall<GetDashboardRequest, GetDashboardResult> {
|
||||
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<GetDashboardRequest, GetDashboardResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Copy(vizapi.CopyDashboardRequest) returns (vizapi.CopyDashboardResult);
|
||||
* @generated from protobuf rpc: Copy
|
||||
*/
|
||||
copy(input: CopyDashboardRequest, options?: RpcOptions): UnaryCall<CopyDashboardRequest, CopyDashboardResult> {
|
||||
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<CopyDashboardRequest, CopyDashboardResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: SetOwner
|
||||
*/
|
||||
setOwner(input: SetOwnerDashboardRequest, options?: RpcOptions): UnaryCall<SetOwnerDashboardRequest, SetOwnerDashboardResult> {
|
||||
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<SetOwnerDashboardRequest, SetOwnerDashboardResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CreateProject
|
||||
*/
|
||||
createProject(input: CreateProjectDashboardRequest, options?: RpcOptions): UnaryCall<CreateProjectDashboardRequest, CreateProjectDashboardResult> {
|
||||
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<CreateProjectDashboardRequest, CreateProjectDashboardResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: ListProject
|
||||
*/
|
||||
listProject(input: ListProjectDashboardRequest, options?: RpcOptions): UnaryCall<ListProjectDashboardRequest, ListProjectDashboardResult> {
|
||||
const method = this.methods[10], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ListProjectDashboardRequest, ListProjectDashboardResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteProject
|
||||
*/
|
||||
deleteProject(input: DeleteProjectDashboardRequest, options?: RpcOptions): UnaryCall<DeleteProjectDashboardRequest, DeleteProjectDashboardResult> {
|
||||
const method = this.methods[11], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<DeleteProjectDashboardRequest, DeleteProjectDashboardResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: UpdateProject
|
||||
*/
|
||||
updateProject(input: UpdateProjectDashboardRequest, options?: RpcOptions): UnaryCall<UpdateProjectDashboardRequest, UpdateProjectDashboardResult> {
|
||||
const method = this.methods[12], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<UpdateProjectDashboardRequest, UpdateProjectDashboardResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: GetProject
|
||||
*/
|
||||
getProject(input: GetProjectDashboardRequest, options?: RpcOptions): UnaryCall<GetProjectDashboardRequest, GetProjectDashboardResult> {
|
||||
const method = this.methods[13], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<GetProjectDashboardRequest, GetProjectDashboardResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CopyProject
|
||||
*/
|
||||
copyProject(input: CopyProjectDashboardRequest, options?: RpcOptions): UnaryCall<CopyProjectDashboardRequest, CopyProjectDashboardResult> {
|
||||
const method = this.methods[14], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<CopyProjectDashboardRequest, CopyProjectDashboardResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
|
||||
1578
viz-dashboard.ts
1578
viz-dashboard.ts
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "viz-default-view.proto" (package "vizapi", syntax proto3)
|
||||
// tslint:disable
|
||||
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
||||
@@ -16,11 +16,11 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
||||
*/
|
||||
export interface IDefaultViewServiceClient {
|
||||
/**
|
||||
* @generated from protobuf rpc: CreatePlatform(vizapi.CreatePlatformDefaultViewRequest) returns (vizapi.CreatePlatformDefaultViewResult);
|
||||
* @generated from protobuf rpc: CreatePlatform
|
||||
*/
|
||||
createPlatform(input: CreatePlatformDefaultViewRequest, options?: RpcOptions): UnaryCall<CreatePlatformDefaultViewRequest, CreatePlatformDefaultViewResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: UpdatePlatform(vizapi.UpdatePlatformDefaultViewRequest) returns (vizapi.UpdatePlatformDefaultViewResult);
|
||||
* @generated from protobuf rpc: UpdatePlatform
|
||||
*/
|
||||
updatePlatform(input: UpdatePlatformDefaultViewRequest, options?: RpcOptions): UnaryCall<UpdatePlatformDefaultViewRequest, UpdatePlatformDefaultViewResult>;
|
||||
}
|
||||
@@ -34,14 +34,14 @@ export class DefaultViewServiceClient implements IDefaultViewServiceClient, Serv
|
||||
constructor(private readonly _transport: RpcTransport) {
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CreatePlatform(vizapi.CreatePlatformDefaultViewRequest) returns (vizapi.CreatePlatformDefaultViewResult);
|
||||
* @generated from protobuf rpc: CreatePlatform
|
||||
*/
|
||||
createPlatform(input: CreatePlatformDefaultViewRequest, options?: RpcOptions): UnaryCall<CreatePlatformDefaultViewRequest, CreatePlatformDefaultViewResult> {
|
||||
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<CreatePlatformDefaultViewRequest, CreatePlatformDefaultViewResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: UpdatePlatform(vizapi.UpdatePlatformDefaultViewRequest) returns (vizapi.UpdatePlatformDefaultViewResult);
|
||||
* @generated from protobuf rpc: UpdatePlatform
|
||||
*/
|
||||
updatePlatform(input: UpdatePlatformDefaultViewRequest, options?: RpcOptions): UnaryCall<UpdatePlatformDefaultViewRequest, UpdatePlatformDefaultViewResult> {
|
||||
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "viz-default-view.proto" (package "vizapi", syntax proto3)
|
||||
// tslint:disable
|
||||
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
||||
@@ -18,21 +18,21 @@ export interface UpdatePlatformDefaultViewRequest {
|
||||
/**
|
||||
* Identifier of the View
|
||||
*
|
||||
* @generated from protobuf field: string ViewID = 1 [json_name = "ViewID"];
|
||||
* @generated from protobuf field: string ViewID = 1
|
||||
*/
|
||||
viewID: string;
|
||||
ViewID: string;
|
||||
/**
|
||||
* Content of the View
|
||||
*
|
||||
* @generated from protobuf field: string Payload = 4 [json_name = "Payload"];
|
||||
* @generated from protobuf field: string Payload = 4
|
||||
*/
|
||||
payload: string;
|
||||
Payload: string;
|
||||
/**
|
||||
* Visibility of the View
|
||||
*
|
||||
* @generated from protobuf field: bool IsPrivate = 5 [json_name = "IsPrivate"];
|
||||
* @generated from protobuf field: bool IsPrivate = 5
|
||||
*/
|
||||
isPrivate: boolean;
|
||||
IsPrivate: boolean;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.CreatePlatformDefaultViewRequest
|
||||
@@ -41,21 +41,21 @@ export interface CreatePlatformDefaultViewRequest {
|
||||
/**
|
||||
* Identifier of the Screen
|
||||
*
|
||||
* @generated from protobuf field: string ScreenID = 1 [json_name = "ScreenID"];
|
||||
* @generated from protobuf field: string ScreenID = 1
|
||||
*/
|
||||
screenID: string;
|
||||
ScreenID: string;
|
||||
/**
|
||||
* Content of the View
|
||||
*
|
||||
* @generated from protobuf field: string Payload = 4 [json_name = "Payload"];
|
||||
* @generated from protobuf field: string Payload = 4
|
||||
*/
|
||||
payload: string;
|
||||
Payload: string;
|
||||
/**
|
||||
* Visibility of the View
|
||||
*
|
||||
* @generated from protobuf field: bool IsPrivate = 5 [json_name = "IsPrivate"];
|
||||
* @generated from protobuf field: bool IsPrivate = 5
|
||||
*/
|
||||
isPrivate: boolean;
|
||||
IsPrivate: boolean;
|
||||
}
|
||||
/**
|
||||
* ID of the created View
|
||||
@@ -66,9 +66,9 @@ export interface CreatePlatformDefaultViewResult {
|
||||
/**
|
||||
* Identifier of the View
|
||||
*
|
||||
* @generated from protobuf field: string ViewID = 1 [json_name = "ViewID"];
|
||||
* @generated from protobuf field: string ViewID = 1
|
||||
*/
|
||||
viewID: string;
|
||||
ViewID: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.UpdatePlatformDefaultViewResult
|
||||
@@ -77,24 +77,24 @@ export interface UpdatePlatformDefaultViewResult {
|
||||
/**
|
||||
* Identifier of the View
|
||||
*
|
||||
* @generated from protobuf field: string ViewID = 1 [json_name = "ViewID"];
|
||||
* @generated from protobuf field: string ViewID = 1
|
||||
*/
|
||||
viewID: string;
|
||||
ViewID: string;
|
||||
}
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class UpdatePlatformDefaultViewRequest$Type extends MessageType<UpdatePlatformDefaultViewRequest> {
|
||||
constructor() {
|
||||
super("vizapi.UpdatePlatformDefaultViewRequest", [
|
||||
{ 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" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 4, 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: 5, 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: 1, name: "ViewID", kind: "scalar", localName: "ViewID", 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: 4, name: "Payload", kind: "scalar", localName: "Payload", 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: 5, name: "IsPrivate", kind: "scalar", localName: "IsPrivate", jsonName: "IsPrivate", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Visibility of the View" } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ViewID", "Payload"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<UpdatePlatformDefaultViewRequest>): UpdatePlatformDefaultViewRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.viewID = "";
|
||||
message.payload = "";
|
||||
message.isPrivate = false;
|
||||
message.ViewID = "";
|
||||
message.Payload = "";
|
||||
message.IsPrivate = false;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<UpdatePlatformDefaultViewRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -104,14 +104,14 @@ class UpdatePlatformDefaultViewRequest$Type extends MessageType<UpdatePlatformDe
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ViewID = 1 [json_name = "ViewID"];*/ 1:
|
||||
message.viewID = reader.string();
|
||||
case /* string ViewID */ 1:
|
||||
message.ViewID = reader.string();
|
||||
break;
|
||||
case /* string Payload = 4 [json_name = "Payload"];*/ 4:
|
||||
message.payload = reader.string();
|
||||
case /* string Payload */ 4:
|
||||
message.Payload = reader.string();
|
||||
break;
|
||||
case /* bool IsPrivate = 5 [json_name = "IsPrivate"];*/ 5:
|
||||
message.isPrivate = reader.bool();
|
||||
case /* bool IsPrivate */ 5:
|
||||
message.IsPrivate = reader.bool();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -125,15 +125,15 @@ class UpdatePlatformDefaultViewRequest$Type extends MessageType<UpdatePlatformDe
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: UpdatePlatformDefaultViewRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ViewID = 1 [json_name = "ViewID"]; */
|
||||
if (message.viewID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.viewID);
|
||||
/* string Payload = 4 [json_name = "Payload"]; */
|
||||
if (message.payload !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.payload);
|
||||
/* bool IsPrivate = 5 [json_name = "IsPrivate"]; */
|
||||
if (message.isPrivate !== false)
|
||||
writer.tag(5, WireType.Varint).bool(message.isPrivate);
|
||||
/* string ViewID = 1; */
|
||||
if (message.ViewID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ViewID);
|
||||
/* string Payload = 4; */
|
||||
if (message.Payload !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.Payload);
|
||||
/* bool IsPrivate = 5; */
|
||||
if (message.IsPrivate !== false)
|
||||
writer.tag(5, WireType.Varint).bool(message.IsPrivate);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -148,16 +148,16 @@ export const UpdatePlatformDefaultViewRequest = new UpdatePlatformDefaultViewReq
|
||||
class CreatePlatformDefaultViewRequest$Type extends MessageType<CreatePlatformDefaultViewRequest> {
|
||||
constructor() {
|
||||
super("vizapi.CreatePlatformDefaultViewRequest", [
|
||||
{ no: 1, 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: 4, 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: 5, 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: 1, name: "ScreenID", kind: "scalar", localName: "ScreenID", 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: 4, name: "Payload", kind: "scalar", localName: "Payload", 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: 5, name: "IsPrivate", kind: "scalar", localName: "IsPrivate", jsonName: "IsPrivate", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Visibility of the View" } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ScreenID", "Payload"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<CreatePlatformDefaultViewRequest>): CreatePlatformDefaultViewRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.screenID = "";
|
||||
message.payload = "";
|
||||
message.isPrivate = false;
|
||||
message.ScreenID = "";
|
||||
message.Payload = "";
|
||||
message.IsPrivate = false;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CreatePlatformDefaultViewRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -167,14 +167,14 @@ class CreatePlatformDefaultViewRequest$Type extends MessageType<CreatePlatformDe
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ScreenID = 1 [json_name = "ScreenID"];*/ 1:
|
||||
message.screenID = reader.string();
|
||||
case /* string ScreenID */ 1:
|
||||
message.ScreenID = reader.string();
|
||||
break;
|
||||
case /* string Payload = 4 [json_name = "Payload"];*/ 4:
|
||||
message.payload = reader.string();
|
||||
case /* string Payload */ 4:
|
||||
message.Payload = reader.string();
|
||||
break;
|
||||
case /* bool IsPrivate = 5 [json_name = "IsPrivate"];*/ 5:
|
||||
message.isPrivate = reader.bool();
|
||||
case /* bool IsPrivate */ 5:
|
||||
message.IsPrivate = reader.bool();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -188,15 +188,15 @@ class CreatePlatformDefaultViewRequest$Type extends MessageType<CreatePlatformDe
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: CreatePlatformDefaultViewRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ScreenID = 1 [json_name = "ScreenID"]; */
|
||||
if (message.screenID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.screenID);
|
||||
/* string Payload = 4 [json_name = "Payload"]; */
|
||||
if (message.payload !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.payload);
|
||||
/* bool IsPrivate = 5 [json_name = "IsPrivate"]; */
|
||||
if (message.isPrivate !== false)
|
||||
writer.tag(5, WireType.Varint).bool(message.isPrivate);
|
||||
/* string ScreenID = 1; */
|
||||
if (message.ScreenID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ScreenID);
|
||||
/* string Payload = 4; */
|
||||
if (message.Payload !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.Payload);
|
||||
/* bool IsPrivate = 5; */
|
||||
if (message.IsPrivate !== false)
|
||||
writer.tag(5, WireType.Varint).bool(message.IsPrivate);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -211,12 +211,12 @@ export const CreatePlatformDefaultViewRequest = new CreatePlatformDefaultViewReq
|
||||
class CreatePlatformDefaultViewResult$Type extends MessageType<CreatePlatformDefaultViewResult> {
|
||||
constructor() {
|
||||
super("vizapi.CreatePlatformDefaultViewResult", [
|
||||
{ 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: 1, name: "ViewID", kind: "scalar", localName: "ViewID", 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<CreatePlatformDefaultViewResult>): CreatePlatformDefaultViewResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.viewID = "";
|
||||
message.ViewID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CreatePlatformDefaultViewResult>(this, message, value);
|
||||
return message;
|
||||
@@ -226,8 +226,8 @@ class CreatePlatformDefaultViewResult$Type extends MessageType<CreatePlatformDef
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ViewID = 1 [json_name = "ViewID"];*/ 1:
|
||||
message.viewID = reader.string();
|
||||
case /* string ViewID */ 1:
|
||||
message.ViewID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -241,9 +241,9 @@ class CreatePlatformDefaultViewResult$Type extends MessageType<CreatePlatformDef
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: CreatePlatformDefaultViewResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ViewID = 1 [json_name = "ViewID"]; */
|
||||
if (message.viewID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.viewID);
|
||||
/* string ViewID = 1; */
|
||||
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);
|
||||
@@ -258,12 +258,12 @@ export const CreatePlatformDefaultViewResult = new CreatePlatformDefaultViewResu
|
||||
class UpdatePlatformDefaultViewResult$Type extends MessageType<UpdatePlatformDefaultViewResult> {
|
||||
constructor() {
|
||||
super("vizapi.UpdatePlatformDefaultViewResult", [
|
||||
{ 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: 1, name: "ViewID", kind: "scalar", localName: "ViewID", jsonName: "ViewID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the View" } } }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<UpdatePlatformDefaultViewResult>): UpdatePlatformDefaultViewResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.viewID = "";
|
||||
message.ViewID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<UpdatePlatformDefaultViewResult>(this, message, value);
|
||||
return message;
|
||||
@@ -273,8 +273,8 @@ class UpdatePlatformDefaultViewResult$Type extends MessageType<UpdatePlatformDef
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ViewID = 1 [json_name = "ViewID"];*/ 1:
|
||||
message.viewID = reader.string();
|
||||
case /* string ViewID */ 1:
|
||||
message.ViewID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -288,9 +288,9 @@ class UpdatePlatformDefaultViewResult$Type extends MessageType<UpdatePlatformDef
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: UpdatePlatformDefaultViewResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ViewID = 1 [json_name = "ViewID"]; */
|
||||
if (message.viewID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.viewID);
|
||||
/* string ViewID = 1; */
|
||||
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);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "viz-motd.proto" (package "vizapi", syntax proto3)
|
||||
// tslint:disable
|
||||
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
||||
@@ -22,23 +22,23 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
||||
*/
|
||||
export interface IMotdServiceClient {
|
||||
/**
|
||||
* @generated from protobuf rpc: Get(vizapi.GetMotdRequest) returns (vizapi.GetMotdResult);
|
||||
* @generated from protobuf rpc: Get
|
||||
*/
|
||||
get(input: GetMotdRequest, options?: RpcOptions): UnaryCall<GetMotdRequest, GetMotdResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: Create(vizapi.CreateMotdRequest) returns (vizapi.CreateMotdResult);
|
||||
* @generated from protobuf rpc: Create
|
||||
*/
|
||||
create(input: CreateMotdRequest, options?: RpcOptions): UnaryCall<CreateMotdRequest, CreateMotdResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: Update(vizapi.UpdateMotdRequest) returns (vizapi.UpdateMotdResult);
|
||||
* @generated from protobuf rpc: Update
|
||||
*/
|
||||
update(input: UpdateMotdRequest, options?: RpcOptions): UnaryCall<UpdateMotdRequest, UpdateMotdResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: Delete(vizapi.DeleteMotdRequest) returns (vizapi.DeleteMotdResult);
|
||||
* @generated from protobuf rpc: Delete
|
||||
*/
|
||||
delete(input: DeleteMotdRequest, options?: RpcOptions): UnaryCall<DeleteMotdRequest, DeleteMotdResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: List(vizapi.ListMotdsRequest) returns (vizapi.ListMotdsResult);
|
||||
* @generated from protobuf rpc: List
|
||||
*/
|
||||
list(input: ListMotdsRequest, options?: RpcOptions): UnaryCall<ListMotdsRequest, ListMotdsResult>;
|
||||
}
|
||||
@@ -52,35 +52,35 @@ export class MotdServiceClient implements IMotdServiceClient, ServiceInfo {
|
||||
constructor(private readonly _transport: RpcTransport) {
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Get(vizapi.GetMotdRequest) returns (vizapi.GetMotdResult);
|
||||
* @generated from protobuf rpc: Get
|
||||
*/
|
||||
get(input: GetMotdRequest, options?: RpcOptions): UnaryCall<GetMotdRequest, GetMotdResult> {
|
||||
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<GetMotdRequest, GetMotdResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Create(vizapi.CreateMotdRequest) returns (vizapi.CreateMotdResult);
|
||||
* @generated from protobuf rpc: Create
|
||||
*/
|
||||
create(input: CreateMotdRequest, options?: RpcOptions): UnaryCall<CreateMotdRequest, CreateMotdResult> {
|
||||
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<CreateMotdRequest, CreateMotdResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Update(vizapi.UpdateMotdRequest) returns (vizapi.UpdateMotdResult);
|
||||
* @generated from protobuf rpc: Update
|
||||
*/
|
||||
update(input: UpdateMotdRequest, options?: RpcOptions): UnaryCall<UpdateMotdRequest, UpdateMotdResult> {
|
||||
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<UpdateMotdRequest, UpdateMotdResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Delete(vizapi.DeleteMotdRequest) returns (vizapi.DeleteMotdResult);
|
||||
* @generated from protobuf rpc: Delete
|
||||
*/
|
||||
delete(input: DeleteMotdRequest, options?: RpcOptions): UnaryCall<DeleteMotdRequest, DeleteMotdResult> {
|
||||
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<DeleteMotdRequest, DeleteMotdResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: List(vizapi.ListMotdsRequest) returns (vizapi.ListMotdsResult);
|
||||
* @generated from protobuf rpc: List
|
||||
*/
|
||||
list(input: ListMotdsRequest, options?: RpcOptions): UnaryCall<ListMotdsRequest, ListMotdsResult> {
|
||||
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
||||
|
||||
524
viz-motd.ts
524
viz-motd.ts
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "viz-motd.proto" (package "vizapi", syntax proto3)
|
||||
// tslint:disable
|
||||
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
||||
@@ -16,21 +16,21 @@ import { MessageType } from "@protobuf-ts/runtime";
|
||||
*/
|
||||
export interface Motd {
|
||||
/**
|
||||
* @generated from protobuf field: string MotdID = 1 [json_name = "MotdID"];
|
||||
* @generated from protobuf field: string MotdID = 1
|
||||
*/
|
||||
motdID: string;
|
||||
MotdID: string;
|
||||
/**
|
||||
* @generated from protobuf field: string StartDate = 2 [json_name = "StartDate"];
|
||||
* @generated from protobuf field: string StartDate = 2
|
||||
*/
|
||||
startDate: string;
|
||||
StartDate: string;
|
||||
/**
|
||||
* @generated from protobuf field: string EndDate = 3 [json_name = "EndDate"];
|
||||
* @generated from protobuf field: string EndDate = 3
|
||||
*/
|
||||
endDate: string;
|
||||
EndDate: string;
|
||||
/**
|
||||
* @generated from protobuf field: repeated vizapi.MotdMessage Message = 4 [json_name = "Message"];
|
||||
* @generated from protobuf field: repeated vizapi.MotdMessage Message = 4
|
||||
*/
|
||||
message: MotdMessage[];
|
||||
Message: MotdMessage[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.MotdMessage
|
||||
@@ -39,15 +39,15 @@ export interface MotdMessage {
|
||||
/**
|
||||
* ISO 639-1 code message language
|
||||
*
|
||||
* @generated from protobuf field: string Lang = 1 [json_name = "Lang"];
|
||||
* @generated from protobuf field: string Lang = 1
|
||||
*/
|
||||
lang: string;
|
||||
Lang: string;
|
||||
/**
|
||||
* The message content
|
||||
*
|
||||
* @generated from protobuf field: string Message = 2 [json_name = "Message"];
|
||||
* @generated from protobuf field: string Message = 2
|
||||
*/
|
||||
message: string;
|
||||
Message: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.MotdMessageRes
|
||||
@@ -56,15 +56,15 @@ export interface MotdMessageRes {
|
||||
/**
|
||||
* Language used for the message
|
||||
*
|
||||
* @generated from protobuf field: string Lang = 1 [json_name = "Lang"];
|
||||
* @generated from protobuf field: string Lang = 1
|
||||
*/
|
||||
lang: string;
|
||||
Lang: string;
|
||||
/**
|
||||
* The message content
|
||||
*
|
||||
* @generated from protobuf field: string Message = 2 [json_name = "Message"];
|
||||
* @generated from protobuf field: string Message = 2
|
||||
*/
|
||||
message: string;
|
||||
Message: string;
|
||||
}
|
||||
/**
|
||||
* Message request with the content and the dates
|
||||
@@ -75,19 +75,19 @@ export interface CreateMotdRequest {
|
||||
/**
|
||||
* UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z])
|
||||
*
|
||||
* @generated from protobuf field: string StartDate = 1 [json_name = "StartDate"];
|
||||
* @generated from protobuf field: string StartDate = 1
|
||||
*/
|
||||
startDate: string;
|
||||
StartDate: string;
|
||||
/**
|
||||
* UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z])
|
||||
*
|
||||
* @generated from protobuf field: string EndDate = 2 [json_name = "EndDate"];
|
||||
* @generated from protobuf field: string EndDate = 2
|
||||
*/
|
||||
endDate: string;
|
||||
EndDate: string;
|
||||
/**
|
||||
* @generated from protobuf field: repeated vizapi.MotdMessage Message = 3 [json_name = "Message"];
|
||||
* @generated from protobuf field: repeated vizapi.MotdMessage Message = 3
|
||||
*/
|
||||
message: MotdMessage[];
|
||||
Message: MotdMessage[];
|
||||
}
|
||||
/**
|
||||
* Message result with ID, content and dates
|
||||
@@ -96,25 +96,25 @@ export interface CreateMotdRequest {
|
||||
*/
|
||||
export interface CreateMotdResult {
|
||||
/**
|
||||
* @generated from protobuf field: string ID = 1 [json_name = "ID"];
|
||||
* @generated from protobuf field: string ID = 1
|
||||
*/
|
||||
iD: string;
|
||||
ID: string;
|
||||
/**
|
||||
* UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z])
|
||||
*
|
||||
* @generated from protobuf field: string StartDate = 2 [json_name = "StartDate"];
|
||||
* @generated from protobuf field: string StartDate = 2
|
||||
*/
|
||||
startDate: string;
|
||||
StartDate: string;
|
||||
/**
|
||||
* UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z])
|
||||
*
|
||||
* @generated from protobuf field: string EndDate = 3 [json_name = "EndDate"];
|
||||
* @generated from protobuf field: string EndDate = 3
|
||||
*/
|
||||
endDate: string;
|
||||
EndDate: string;
|
||||
/**
|
||||
* @generated from protobuf field: repeated vizapi.MotdMessageRes Message = 4 [json_name = "Message"];
|
||||
* @generated from protobuf field: repeated vizapi.MotdMessageRes Message = 4
|
||||
*/
|
||||
message: MotdMessageRes[];
|
||||
Message: MotdMessageRes[];
|
||||
}
|
||||
/**
|
||||
* Update an existing Message Of The Day using its key
|
||||
@@ -123,50 +123,50 @@ export interface CreateMotdResult {
|
||||
*/
|
||||
export interface UpdateMotdRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string ID = 1 [json_name = "ID"];
|
||||
* @generated from protobuf field: string ID = 1
|
||||
*/
|
||||
iD: string;
|
||||
ID: string;
|
||||
/**
|
||||
* UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z])
|
||||
*
|
||||
* @generated from protobuf field: string StartDate = 2 [json_name = "StartDate"];
|
||||
* @generated from protobuf field: string StartDate = 2
|
||||
*/
|
||||
startDate: string;
|
||||
StartDate: string;
|
||||
/**
|
||||
* UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z])
|
||||
*
|
||||
* @generated from protobuf field: string EndDate = 3 [json_name = "EndDate"];
|
||||
* @generated from protobuf field: string EndDate = 3
|
||||
*/
|
||||
endDate: string;
|
||||
EndDate: string;
|
||||
/**
|
||||
* @generated from protobuf field: repeated vizapi.MotdMessage Message = 4 [json_name = "Message"];
|
||||
* @generated from protobuf field: repeated vizapi.MotdMessage Message = 4
|
||||
*/
|
||||
message: MotdMessage[];
|
||||
Message: MotdMessage[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.UpdateMotdResult
|
||||
*/
|
||||
export interface UpdateMotdResult {
|
||||
/**
|
||||
* @generated from protobuf field: string ID = 1 [json_name = "ID"];
|
||||
* @generated from protobuf field: string ID = 1
|
||||
*/
|
||||
iD: string;
|
||||
ID: string;
|
||||
/**
|
||||
* UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z])
|
||||
*
|
||||
* @generated from protobuf field: string StartDate = 2 [json_name = "StartDate"];
|
||||
* @generated from protobuf field: string StartDate = 2
|
||||
*/
|
||||
startDate: string;
|
||||
StartDate: string;
|
||||
/**
|
||||
* UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z])
|
||||
*
|
||||
* @generated from protobuf field: string EndDate = 3 [json_name = "EndDate"];
|
||||
* @generated from protobuf field: string EndDate = 3
|
||||
*/
|
||||
endDate: string;
|
||||
EndDate: string;
|
||||
/**
|
||||
* @generated from protobuf field: repeated vizapi.MotdMessage Message = 4 [json_name = "Message"];
|
||||
* @generated from protobuf field: repeated vizapi.MotdMessage Message = 4
|
||||
*/
|
||||
message: MotdMessage[];
|
||||
Message: MotdMessage[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.GetMotdRequest
|
||||
@@ -180,34 +180,34 @@ export interface GetMotdRequest {
|
||||
*/
|
||||
export interface GetMotdResult {
|
||||
/**
|
||||
* @generated from protobuf field: string ID = 1 [json_name = "ID"];
|
||||
* @generated from protobuf field: string ID = 1
|
||||
*/
|
||||
iD: string;
|
||||
ID: string;
|
||||
/**
|
||||
* UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z])
|
||||
*
|
||||
* @generated from protobuf field: string StartDate = 2 [json_name = "StartDate"];
|
||||
* @generated from protobuf field: string StartDate = 2
|
||||
*/
|
||||
startDate: string;
|
||||
StartDate: string;
|
||||
/**
|
||||
* UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z])
|
||||
*
|
||||
* @generated from protobuf field: string EndDate = 3 [json_name = "EndDate"];
|
||||
* @generated from protobuf field: string EndDate = 3
|
||||
*/
|
||||
endDate: string;
|
||||
EndDate: string;
|
||||
/**
|
||||
* @generated from protobuf field: repeated vizapi.MotdMessageRes Message = 4 [json_name = "Message"];
|
||||
* @generated from protobuf field: repeated vizapi.MotdMessageRes Message = 4
|
||||
*/
|
||||
message: MotdMessageRes[];
|
||||
Message: MotdMessageRes[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.DeleteMotdRequest
|
||||
*/
|
||||
export interface DeleteMotdRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string ID = 1 [json_name = "ID"];
|
||||
* @generated from protobuf field: string ID = 1
|
||||
*/
|
||||
iD: string;
|
||||
ID: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.DeleteMotdResult
|
||||
@@ -226,26 +226,26 @@ export interface ListMotdsRequest {
|
||||
*/
|
||||
export interface ListMotdsResult {
|
||||
/**
|
||||
* @generated from protobuf field: repeated vizapi.GetMotdResult Motds = 1 [json_name = "Motds"];
|
||||
* @generated from protobuf field: repeated vizapi.GetMotdResult Motds = 1
|
||||
*/
|
||||
motds: GetMotdResult[];
|
||||
Motds: GetMotdResult[];
|
||||
}
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class Motd$Type extends MessageType<Motd> {
|
||||
constructor() {
|
||||
super("vizapi.Motd", [
|
||||
{ no: 1, name: "MotdID", kind: "scalar", jsonName: "MotdID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "StartDate", kind: "scalar", jsonName: "StartDate", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "EndDate", kind: "scalar", jsonName: "EndDate", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "Message", kind: "message", jsonName: "Message", repeat: 1 /*RepeatType.PACKED*/, T: () => MotdMessage }
|
||||
{ no: 1, name: "MotdID", kind: "scalar", localName: "MotdID", jsonName: "MotdID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "StartDate", kind: "scalar", localName: "StartDate", jsonName: "StartDate", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "EndDate", kind: "scalar", localName: "EndDate", jsonName: "EndDate", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "Message", kind: "message", localName: "Message", jsonName: "Message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MotdMessage }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<Motd>): Motd {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.motdID = "";
|
||||
message.startDate = "";
|
||||
message.endDate = "";
|
||||
message.message = [];
|
||||
message.MotdID = "";
|
||||
message.StartDate = "";
|
||||
message.EndDate = "";
|
||||
message.Message = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<Motd>(this, message, value);
|
||||
return message;
|
||||
@@ -255,17 +255,17 @@ class Motd$Type extends MessageType<Motd> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string MotdID = 1 [json_name = "MotdID"];*/ 1:
|
||||
message.motdID = reader.string();
|
||||
case /* string MotdID */ 1:
|
||||
message.MotdID = reader.string();
|
||||
break;
|
||||
case /* string StartDate = 2 [json_name = "StartDate"];*/ 2:
|
||||
message.startDate = reader.string();
|
||||
case /* string StartDate */ 2:
|
||||
message.StartDate = reader.string();
|
||||
break;
|
||||
case /* string EndDate = 3 [json_name = "EndDate"];*/ 3:
|
||||
message.endDate = reader.string();
|
||||
case /* string EndDate */ 3:
|
||||
message.EndDate = reader.string();
|
||||
break;
|
||||
case /* repeated vizapi.MotdMessage Message = 4 [json_name = "Message"];*/ 4:
|
||||
message.message.push(MotdMessage.internalBinaryRead(reader, reader.uint32(), options));
|
||||
case /* repeated vizapi.MotdMessage Message */ 4:
|
||||
message.Message.push(MotdMessage.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -279,18 +279,18 @@ class Motd$Type extends MessageType<Motd> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: Motd, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string MotdID = 1 [json_name = "MotdID"]; */
|
||||
if (message.motdID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.motdID);
|
||||
/* string StartDate = 2 [json_name = "StartDate"]; */
|
||||
if (message.startDate !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.startDate);
|
||||
/* string EndDate = 3 [json_name = "EndDate"]; */
|
||||
if (message.endDate !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.endDate);
|
||||
/* repeated vizapi.MotdMessage Message = 4 [json_name = "Message"]; */
|
||||
for (let i = 0; i < message.message.length; i++)
|
||||
MotdMessage.internalBinaryWrite(message.message[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string MotdID = 1; */
|
||||
if (message.MotdID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.MotdID);
|
||||
/* string StartDate = 2; */
|
||||
if (message.StartDate !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.StartDate);
|
||||
/* string EndDate = 3; */
|
||||
if (message.EndDate !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.EndDate);
|
||||
/* repeated vizapi.MotdMessage Message = 4; */
|
||||
for (let i = 0; i < message.Message.length; i++)
|
||||
MotdMessage.internalBinaryWrite(message.Message[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -305,14 +305,14 @@ export const Motd = new Motd$Type();
|
||||
class MotdMessage$Type extends MessageType<MotdMessage> {
|
||||
constructor() {
|
||||
super("vizapi.MotdMessage", [
|
||||
{ no: 1, name: "Lang", kind: "scalar", jsonName: "Lang", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "<a href='https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes'>ISO 639-1 code</a> message language", example: "\"en\"" } } },
|
||||
{ no: 2, name: "Message", kind: "scalar", jsonName: "Message", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The message content", example: "\"Happy new year\"" } } }
|
||||
{ no: 1, name: "Lang", kind: "scalar", localName: "Lang", jsonName: "Lang", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "<a href='https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes'>ISO 639-1 code</a> message language", example: "\"en\"" } } },
|
||||
{ no: 2, name: "Message", kind: "scalar", localName: "Message", jsonName: "Message", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The message content", example: "\"Happy new year\"" } } }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<MotdMessage>): MotdMessage {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.lang = "";
|
||||
message.message = "";
|
||||
message.Lang = "";
|
||||
message.Message = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<MotdMessage>(this, message, value);
|
||||
return message;
|
||||
@@ -322,11 +322,11 @@ class MotdMessage$Type extends MessageType<MotdMessage> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Lang = 1 [json_name = "Lang"];*/ 1:
|
||||
message.lang = reader.string();
|
||||
case /* string Lang */ 1:
|
||||
message.Lang = reader.string();
|
||||
break;
|
||||
case /* string Message = 2 [json_name = "Message"];*/ 2:
|
||||
message.message = reader.string();
|
||||
case /* string Message */ 2:
|
||||
message.Message = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -340,12 +340,12 @@ class MotdMessage$Type extends MessageType<MotdMessage> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: MotdMessage, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Lang = 1 [json_name = "Lang"]; */
|
||||
if (message.lang !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.lang);
|
||||
/* string Message = 2 [json_name = "Message"]; */
|
||||
if (message.message !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.message);
|
||||
/* string Lang = 1; */
|
||||
if (message.Lang !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.Lang);
|
||||
/* string Message = 2; */
|
||||
if (message.Message !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Message);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -360,14 +360,14 @@ export const MotdMessage = new MotdMessage$Type();
|
||||
class MotdMessageRes$Type extends MessageType<MotdMessageRes> {
|
||||
constructor() {
|
||||
super("vizapi.MotdMessageRes", [
|
||||
{ no: 1, name: "Lang", kind: "scalar", jsonName: "Lang", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Language used for the message" } } },
|
||||
{ no: 2, name: "Message", kind: "scalar", jsonName: "Message", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The message content" } } }
|
||||
{ no: 1, name: "Lang", kind: "scalar", localName: "Lang", jsonName: "Lang", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Language used for the message" } } },
|
||||
{ no: 2, name: "Message", kind: "scalar", localName: "Message", jsonName: "Message", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The message content" } } }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<MotdMessageRes>): MotdMessageRes {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.lang = "";
|
||||
message.message = "";
|
||||
message.Lang = "";
|
||||
message.Message = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<MotdMessageRes>(this, message, value);
|
||||
return message;
|
||||
@@ -377,11 +377,11 @@ class MotdMessageRes$Type extends MessageType<MotdMessageRes> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Lang = 1 [json_name = "Lang"];*/ 1:
|
||||
message.lang = reader.string();
|
||||
case /* string Lang */ 1:
|
||||
message.Lang = reader.string();
|
||||
break;
|
||||
case /* string Message = 2 [json_name = "Message"];*/ 2:
|
||||
message.message = reader.string();
|
||||
case /* string Message */ 2:
|
||||
message.Message = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -395,12 +395,12 @@ class MotdMessageRes$Type extends MessageType<MotdMessageRes> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: MotdMessageRes, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Lang = 1 [json_name = "Lang"]; */
|
||||
if (message.lang !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.lang);
|
||||
/* string Message = 2 [json_name = "Message"]; */
|
||||
if (message.message !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.message);
|
||||
/* string Lang = 1; */
|
||||
if (message.Lang !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.Lang);
|
||||
/* string Message = 2; */
|
||||
if (message.Message !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Message);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -415,16 +415,16 @@ export const MotdMessageRes = new MotdMessageRes$Type();
|
||||
class CreateMotdRequest$Type extends MessageType<CreateMotdRequest> {
|
||||
constructor() {
|
||||
super("vizapi.CreateMotdRequest", [
|
||||
{ no: 1, name: "StartDate", kind: "scalar", jsonName: "StartDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time 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])", example: "\"2023-01-01T00:00:00Z\"" }, "validate.rules": { string: { dateIso8601: true } } } },
|
||||
{ no: 2, name: "EndDate", kind: "scalar", jsonName: "EndDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time 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])", example: "\"2023-01-01T00:00:00Z\"" }, "validate.rules": { string: { dateIso8601: true } } } },
|
||||
{ no: 3, name: "Message", kind: "message", jsonName: "Message", repeat: 1 /*RepeatType.PACKED*/, T: () => MotdMessage }
|
||||
{ no: 1, name: "StartDate", kind: "scalar", localName: "StartDate", jsonName: "StartDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time 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])", example: "\"2023-01-01T00:00:00Z\"" }, "validate.rules": { string: { dateIso8601: true } } } },
|
||||
{ no: 2, name: "EndDate", kind: "scalar", localName: "EndDate", jsonName: "EndDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time 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])", example: "\"2023-01-01T00:00:00Z\"" }, "validate.rules": { string: { dateIso8601: true } } } },
|
||||
{ no: 3, name: "Message", kind: "message", localName: "Message", jsonName: "Message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MotdMessage }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Message request with the content and the dates" } } });
|
||||
}
|
||||
create(value?: PartialMessage<CreateMotdRequest>): CreateMotdRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.startDate = "";
|
||||
message.endDate = "";
|
||||
message.message = [];
|
||||
message.StartDate = "";
|
||||
message.EndDate = "";
|
||||
message.Message = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CreateMotdRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -434,14 +434,14 @@ class CreateMotdRequest$Type extends MessageType<CreateMotdRequest> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string StartDate = 1 [json_name = "StartDate"];*/ 1:
|
||||
message.startDate = reader.string();
|
||||
case /* string StartDate */ 1:
|
||||
message.StartDate = reader.string();
|
||||
break;
|
||||
case /* string EndDate = 2 [json_name = "EndDate"];*/ 2:
|
||||
message.endDate = reader.string();
|
||||
case /* string EndDate */ 2:
|
||||
message.EndDate = reader.string();
|
||||
break;
|
||||
case /* repeated vizapi.MotdMessage Message = 3 [json_name = "Message"];*/ 3:
|
||||
message.message.push(MotdMessage.internalBinaryRead(reader, reader.uint32(), options));
|
||||
case /* repeated vizapi.MotdMessage Message */ 3:
|
||||
message.Message.push(MotdMessage.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -455,15 +455,15 @@ class CreateMotdRequest$Type extends MessageType<CreateMotdRequest> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: CreateMotdRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string StartDate = 1 [json_name = "StartDate"]; */
|
||||
if (message.startDate !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.startDate);
|
||||
/* string EndDate = 2 [json_name = "EndDate"]; */
|
||||
if (message.endDate !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.endDate);
|
||||
/* repeated vizapi.MotdMessage Message = 3 [json_name = "Message"]; */
|
||||
for (let i = 0; i < message.message.length; i++)
|
||||
MotdMessage.internalBinaryWrite(message.message[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string StartDate = 1; */
|
||||
if (message.StartDate !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.StartDate);
|
||||
/* string EndDate = 2; */
|
||||
if (message.EndDate !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.EndDate);
|
||||
/* repeated vizapi.MotdMessage Message = 3; */
|
||||
for (let i = 0; i < message.Message.length; i++)
|
||||
MotdMessage.internalBinaryWrite(message.Message[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -478,18 +478,18 @@ export const CreateMotdRequest = new CreateMotdRequest$Type();
|
||||
class CreateMotdResult$Type extends MessageType<CreateMotdResult> {
|
||||
constructor() {
|
||||
super("vizapi.CreateMotdResult", [
|
||||
{ no: 1, name: "ID", kind: "scalar", jsonName: "ID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "StartDate", kind: "scalar", jsonName: "StartDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time 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])", example: "\"2023-01-01T00:00:00Z\"" }, "validate.rules": { string: { dateIso8601: true } } } },
|
||||
{ no: 3, name: "EndDate", kind: "scalar", jsonName: "EndDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time 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])", example: "\"2023-01-01T00:00:01Z\"" }, "validate.rules": { string: { dateIso8601: true } } } },
|
||||
{ no: 4, name: "Message", kind: "message", jsonName: "Message", repeat: 1 /*RepeatType.PACKED*/, T: () => MotdMessageRes }
|
||||
{ no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "StartDate", kind: "scalar", localName: "StartDate", jsonName: "StartDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time 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])", example: "\"2023-01-01T00:00:00Z\"" }, "validate.rules": { string: { dateIso8601: true } } } },
|
||||
{ no: 3, name: "EndDate", kind: "scalar", localName: "EndDate", jsonName: "EndDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time 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])", example: "\"2023-01-01T00:00:01Z\"" }, "validate.rules": { string: { dateIso8601: true } } } },
|
||||
{ no: 4, name: "Message", kind: "message", localName: "Message", jsonName: "Message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MotdMessageRes }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Message result with ID, content and dates" } } });
|
||||
}
|
||||
create(value?: PartialMessage<CreateMotdResult>): CreateMotdResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.iD = "";
|
||||
message.startDate = "";
|
||||
message.endDate = "";
|
||||
message.message = [];
|
||||
message.ID = "";
|
||||
message.StartDate = "";
|
||||
message.EndDate = "";
|
||||
message.Message = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CreateMotdResult>(this, message, value);
|
||||
return message;
|
||||
@@ -499,17 +499,17 @@ class CreateMotdResult$Type extends MessageType<CreateMotdResult> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ID = 1 [json_name = "ID"];*/ 1:
|
||||
message.iD = reader.string();
|
||||
case /* string ID */ 1:
|
||||
message.ID = reader.string();
|
||||
break;
|
||||
case /* string StartDate = 2 [json_name = "StartDate"];*/ 2:
|
||||
message.startDate = reader.string();
|
||||
case /* string StartDate */ 2:
|
||||
message.StartDate = reader.string();
|
||||
break;
|
||||
case /* string EndDate = 3 [json_name = "EndDate"];*/ 3:
|
||||
message.endDate = reader.string();
|
||||
case /* string EndDate */ 3:
|
||||
message.EndDate = reader.string();
|
||||
break;
|
||||
case /* repeated vizapi.MotdMessageRes Message = 4 [json_name = "Message"];*/ 4:
|
||||
message.message.push(MotdMessageRes.internalBinaryRead(reader, reader.uint32(), options));
|
||||
case /* repeated vizapi.MotdMessageRes Message */ 4:
|
||||
message.Message.push(MotdMessageRes.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -523,18 +523,18 @@ class CreateMotdResult$Type extends MessageType<CreateMotdResult> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: CreateMotdResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ID = 1 [json_name = "ID"]; */
|
||||
if (message.iD !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.iD);
|
||||
/* string StartDate = 2 [json_name = "StartDate"]; */
|
||||
if (message.startDate !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.startDate);
|
||||
/* string EndDate = 3 [json_name = "EndDate"]; */
|
||||
if (message.endDate !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.endDate);
|
||||
/* repeated vizapi.MotdMessageRes Message = 4 [json_name = "Message"]; */
|
||||
for (let i = 0; i < message.message.length; i++)
|
||||
MotdMessageRes.internalBinaryWrite(message.message[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string ID = 1; */
|
||||
if (message.ID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ID);
|
||||
/* string StartDate = 2; */
|
||||
if (message.StartDate !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.StartDate);
|
||||
/* string EndDate = 3; */
|
||||
if (message.EndDate !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.EndDate);
|
||||
/* repeated vizapi.MotdMessageRes Message = 4; */
|
||||
for (let i = 0; i < message.Message.length; i++)
|
||||
MotdMessageRes.internalBinaryWrite(message.Message[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -549,18 +549,18 @@ export const CreateMotdResult = new CreateMotdResult$Type();
|
||||
class UpdateMotdRequest$Type extends MessageType<UpdateMotdRequest> {
|
||||
constructor() {
|
||||
super("vizapi.UpdateMotdRequest", [
|
||||
{ no: 1, name: "ID", kind: "scalar", jsonName: "ID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "StartDate", kind: "scalar", jsonName: "StartDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time 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])", example: "\"2023-01-01T00:00:00Z\"" }, "validate.rules": { string: { dateIso8601: true } } } },
|
||||
{ no: 3, name: "EndDate", kind: "scalar", jsonName: "EndDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time 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])", example: "\"2023-01-01T00:00:01Z\"" }, "validate.rules": { string: { dateIso8601: true } } } },
|
||||
{ no: 4, name: "Message", kind: "message", jsonName: "Message", repeat: 1 /*RepeatType.PACKED*/, T: () => MotdMessage }
|
||||
{ no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "StartDate", kind: "scalar", localName: "StartDate", jsonName: "StartDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time 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])", example: "\"2023-01-01T00:00:00Z\"" }, "validate.rules": { string: { dateIso8601: true } } } },
|
||||
{ no: 3, name: "EndDate", kind: "scalar", localName: "EndDate", jsonName: "EndDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time 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])", example: "\"2023-01-01T00:00:01Z\"" }, "validate.rules": { string: { dateIso8601: true } } } },
|
||||
{ no: 4, name: "Message", kind: "message", localName: "Message", jsonName: "Message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MotdMessage }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Update an existing Message Of The Day using its key" } } });
|
||||
}
|
||||
create(value?: PartialMessage<UpdateMotdRequest>): UpdateMotdRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.iD = "";
|
||||
message.startDate = "";
|
||||
message.endDate = "";
|
||||
message.message = [];
|
||||
message.ID = "";
|
||||
message.StartDate = "";
|
||||
message.EndDate = "";
|
||||
message.Message = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<UpdateMotdRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -570,17 +570,17 @@ class UpdateMotdRequest$Type extends MessageType<UpdateMotdRequest> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ID = 1 [json_name = "ID"];*/ 1:
|
||||
message.iD = reader.string();
|
||||
case /* string ID */ 1:
|
||||
message.ID = reader.string();
|
||||
break;
|
||||
case /* string StartDate = 2 [json_name = "StartDate"];*/ 2:
|
||||
message.startDate = reader.string();
|
||||
case /* string StartDate */ 2:
|
||||
message.StartDate = reader.string();
|
||||
break;
|
||||
case /* string EndDate = 3 [json_name = "EndDate"];*/ 3:
|
||||
message.endDate = reader.string();
|
||||
case /* string EndDate */ 3:
|
||||
message.EndDate = reader.string();
|
||||
break;
|
||||
case /* repeated vizapi.MotdMessage Message = 4 [json_name = "Message"];*/ 4:
|
||||
message.message.push(MotdMessage.internalBinaryRead(reader, reader.uint32(), options));
|
||||
case /* repeated vizapi.MotdMessage Message */ 4:
|
||||
message.Message.push(MotdMessage.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -594,18 +594,18 @@ class UpdateMotdRequest$Type extends MessageType<UpdateMotdRequest> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: UpdateMotdRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ID = 1 [json_name = "ID"]; */
|
||||
if (message.iD !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.iD);
|
||||
/* string StartDate = 2 [json_name = "StartDate"]; */
|
||||
if (message.startDate !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.startDate);
|
||||
/* string EndDate = 3 [json_name = "EndDate"]; */
|
||||
if (message.endDate !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.endDate);
|
||||
/* repeated vizapi.MotdMessage Message = 4 [json_name = "Message"]; */
|
||||
for (let i = 0; i < message.message.length; i++)
|
||||
MotdMessage.internalBinaryWrite(message.message[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string ID = 1; */
|
||||
if (message.ID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ID);
|
||||
/* string StartDate = 2; */
|
||||
if (message.StartDate !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.StartDate);
|
||||
/* string EndDate = 3; */
|
||||
if (message.EndDate !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.EndDate);
|
||||
/* repeated vizapi.MotdMessage Message = 4; */
|
||||
for (let i = 0; i < message.Message.length; i++)
|
||||
MotdMessage.internalBinaryWrite(message.Message[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -620,18 +620,18 @@ export const UpdateMotdRequest = new UpdateMotdRequest$Type();
|
||||
class UpdateMotdResult$Type extends MessageType<UpdateMotdResult> {
|
||||
constructor() {
|
||||
super("vizapi.UpdateMotdResult", [
|
||||
{ no: 1, name: "ID", kind: "scalar", jsonName: "ID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "StartDate", kind: "scalar", jsonName: "StartDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time 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])", example: "\"2023-01-01T00:00:00Z\"" } } },
|
||||
{ no: 3, name: "EndDate", kind: "scalar", jsonName: "EndDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time 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])", example: "\"2023-01-01T00:00:01Z\"" } } },
|
||||
{ no: 4, name: "Message", kind: "message", jsonName: "Message", repeat: 1 /*RepeatType.PACKED*/, T: () => MotdMessage }
|
||||
{ no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "StartDate", kind: "scalar", localName: "StartDate", jsonName: "StartDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time 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])", example: "\"2023-01-01T00:00:00Z\"" } } },
|
||||
{ no: 3, name: "EndDate", kind: "scalar", localName: "EndDate", jsonName: "EndDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time 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])", example: "\"2023-01-01T00:00:01Z\"" } } },
|
||||
{ no: 4, name: "Message", kind: "message", localName: "Message", jsonName: "Message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MotdMessage }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<UpdateMotdResult>): UpdateMotdResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.iD = "";
|
||||
message.startDate = "";
|
||||
message.endDate = "";
|
||||
message.message = [];
|
||||
message.ID = "";
|
||||
message.StartDate = "";
|
||||
message.EndDate = "";
|
||||
message.Message = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<UpdateMotdResult>(this, message, value);
|
||||
return message;
|
||||
@@ -641,17 +641,17 @@ class UpdateMotdResult$Type extends MessageType<UpdateMotdResult> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ID = 1 [json_name = "ID"];*/ 1:
|
||||
message.iD = reader.string();
|
||||
case /* string ID */ 1:
|
||||
message.ID = reader.string();
|
||||
break;
|
||||
case /* string StartDate = 2 [json_name = "StartDate"];*/ 2:
|
||||
message.startDate = reader.string();
|
||||
case /* string StartDate */ 2:
|
||||
message.StartDate = reader.string();
|
||||
break;
|
||||
case /* string EndDate = 3 [json_name = "EndDate"];*/ 3:
|
||||
message.endDate = reader.string();
|
||||
case /* string EndDate */ 3:
|
||||
message.EndDate = reader.string();
|
||||
break;
|
||||
case /* repeated vizapi.MotdMessage Message = 4 [json_name = "Message"];*/ 4:
|
||||
message.message.push(MotdMessage.internalBinaryRead(reader, reader.uint32(), options));
|
||||
case /* repeated vizapi.MotdMessage Message */ 4:
|
||||
message.Message.push(MotdMessage.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -665,18 +665,18 @@ class UpdateMotdResult$Type extends MessageType<UpdateMotdResult> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: UpdateMotdResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ID = 1 [json_name = "ID"]; */
|
||||
if (message.iD !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.iD);
|
||||
/* string StartDate = 2 [json_name = "StartDate"]; */
|
||||
if (message.startDate !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.startDate);
|
||||
/* string EndDate = 3 [json_name = "EndDate"]; */
|
||||
if (message.endDate !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.endDate);
|
||||
/* repeated vizapi.MotdMessage Message = 4 [json_name = "Message"]; */
|
||||
for (let i = 0; i < message.message.length; i++)
|
||||
MotdMessage.internalBinaryWrite(message.message[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string ID = 1; */
|
||||
if (message.ID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ID);
|
||||
/* string StartDate = 2; */
|
||||
if (message.StartDate !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.StartDate);
|
||||
/* string EndDate = 3; */
|
||||
if (message.EndDate !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.EndDate);
|
||||
/* repeated vizapi.MotdMessage Message = 4; */
|
||||
for (let i = 0; i < message.Message.length; i++)
|
||||
MotdMessage.internalBinaryWrite(message.Message[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -729,18 +729,18 @@ export const GetMotdRequest = new GetMotdRequest$Type();
|
||||
class GetMotdResult$Type extends MessageType<GetMotdResult> {
|
||||
constructor() {
|
||||
super("vizapi.GetMotdResult", [
|
||||
{ no: 1, name: "ID", kind: "scalar", jsonName: "ID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "StartDate", kind: "scalar", jsonName: "StartDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time 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])", example: "\"2023-01-01T00:00:00Z\"" } } },
|
||||
{ no: 3, name: "EndDate", kind: "scalar", jsonName: "EndDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time 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])", example: "\"2023-01-01T00:00:01Z\"" } } },
|
||||
{ no: 4, name: "Message", kind: "message", jsonName: "Message", repeat: 1 /*RepeatType.PACKED*/, T: () => MotdMessageRes }
|
||||
{ no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "StartDate", kind: "scalar", localName: "StartDate", jsonName: "StartDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time 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])", example: "\"2023-01-01T00:00:00Z\"" } } },
|
||||
{ no: 3, name: "EndDate", kind: "scalar", localName: "EndDate", jsonName: "EndDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time 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])", example: "\"2023-01-01T00:00:01Z\"" } } },
|
||||
{ no: 4, name: "Message", kind: "message", localName: "Message", jsonName: "Message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MotdMessageRes }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Return the current Message Of The Day" } } });
|
||||
}
|
||||
create(value?: PartialMessage<GetMotdResult>): GetMotdResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.iD = "";
|
||||
message.startDate = "";
|
||||
message.endDate = "";
|
||||
message.message = [];
|
||||
message.ID = "";
|
||||
message.StartDate = "";
|
||||
message.EndDate = "";
|
||||
message.Message = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetMotdResult>(this, message, value);
|
||||
return message;
|
||||
@@ -750,17 +750,17 @@ class GetMotdResult$Type extends MessageType<GetMotdResult> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ID = 1 [json_name = "ID"];*/ 1:
|
||||
message.iD = reader.string();
|
||||
case /* string ID */ 1:
|
||||
message.ID = reader.string();
|
||||
break;
|
||||
case /* string StartDate = 2 [json_name = "StartDate"];*/ 2:
|
||||
message.startDate = reader.string();
|
||||
case /* string StartDate */ 2:
|
||||
message.StartDate = reader.string();
|
||||
break;
|
||||
case /* string EndDate = 3 [json_name = "EndDate"];*/ 3:
|
||||
message.endDate = reader.string();
|
||||
case /* string EndDate */ 3:
|
||||
message.EndDate = reader.string();
|
||||
break;
|
||||
case /* repeated vizapi.MotdMessageRes Message = 4 [json_name = "Message"];*/ 4:
|
||||
message.message.push(MotdMessageRes.internalBinaryRead(reader, reader.uint32(), options));
|
||||
case /* repeated vizapi.MotdMessageRes Message */ 4:
|
||||
message.Message.push(MotdMessageRes.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -774,18 +774,18 @@ class GetMotdResult$Type extends MessageType<GetMotdResult> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: GetMotdResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ID = 1 [json_name = "ID"]; */
|
||||
if (message.iD !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.iD);
|
||||
/* string StartDate = 2 [json_name = "StartDate"]; */
|
||||
if (message.startDate !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.startDate);
|
||||
/* string EndDate = 3 [json_name = "EndDate"]; */
|
||||
if (message.endDate !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.endDate);
|
||||
/* repeated vizapi.MotdMessageRes Message = 4 [json_name = "Message"]; */
|
||||
for (let i = 0; i < message.message.length; i++)
|
||||
MotdMessageRes.internalBinaryWrite(message.message[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string ID = 1; */
|
||||
if (message.ID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ID);
|
||||
/* string StartDate = 2; */
|
||||
if (message.StartDate !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.StartDate);
|
||||
/* string EndDate = 3; */
|
||||
if (message.EndDate !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.EndDate);
|
||||
/* repeated vizapi.MotdMessageRes Message = 4; */
|
||||
for (let i = 0; i < message.Message.length; i++)
|
||||
MotdMessageRes.internalBinaryWrite(message.Message[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -800,12 +800,12 @@ export const GetMotdResult = new GetMotdResult$Type();
|
||||
class DeleteMotdRequest$Type extends MessageType<DeleteMotdRequest> {
|
||||
constructor() {
|
||||
super("vizapi.DeleteMotdRequest", [
|
||||
{ no: 1, name: "ID", kind: "scalar", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
{ no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ID"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<DeleteMotdRequest>): DeleteMotdRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.iD = "";
|
||||
message.ID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DeleteMotdRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -815,8 +815,8 @@ class DeleteMotdRequest$Type extends MessageType<DeleteMotdRequest> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ID = 1 [json_name = "ID"];*/ 1:
|
||||
message.iD = reader.string();
|
||||
case /* string ID */ 1:
|
||||
message.ID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -830,9 +830,9 @@ class DeleteMotdRequest$Type extends MessageType<DeleteMotdRequest> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: DeleteMotdRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ID = 1 [json_name = "ID"]; */
|
||||
if (message.iD !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.iD);
|
||||
/* string ID = 1; */
|
||||
if (message.ID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -923,12 +923,12 @@ export const ListMotdsRequest = new ListMotdsRequest$Type();
|
||||
class ListMotdsResult$Type extends MessageType<ListMotdsResult> {
|
||||
constructor() {
|
||||
super("vizapi.ListMotdsResult", [
|
||||
{ no: 1, name: "Motds", kind: "message", jsonName: "Motds", repeat: 1 /*RepeatType.PACKED*/, T: () => GetMotdResult }
|
||||
{ no: 1, name: "Motds", kind: "message", localName: "Motds", jsonName: "Motds", repeat: 2 /*RepeatType.UNPACKED*/, T: () => GetMotdResult }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "List of all existing messages of the day" } } });
|
||||
}
|
||||
create(value?: PartialMessage<ListMotdsResult>): ListMotdsResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.motds = [];
|
||||
message.Motds = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ListMotdsResult>(this, message, value);
|
||||
return message;
|
||||
@@ -938,8 +938,8 @@ class ListMotdsResult$Type extends MessageType<ListMotdsResult> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated vizapi.GetMotdResult Motds = 1 [json_name = "Motds"];*/ 1:
|
||||
message.motds.push(GetMotdResult.internalBinaryRead(reader, reader.uint32(), options));
|
||||
case /* repeated vizapi.GetMotdResult Motds */ 1:
|
||||
message.Motds.push(GetMotdResult.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -953,9 +953,9 @@ class ListMotdsResult$Type extends MessageType<ListMotdsResult> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: ListMotdsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated vizapi.GetMotdResult Motds = 1 [json_name = "Motds"]; */
|
||||
for (let i = 0; i < message.motds.length; i++)
|
||||
GetMotdResult.internalBinaryWrite(message.motds[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated vizapi.GetMotdResult Motds = 1; */
|
||||
for (let i = 0; i < message.Motds.length; i++)
|
||||
GetMotdResult.internalBinaryWrite(message.Motds[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);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "viz-organisation-settings.proto" (package "vizapi", syntax proto3)
|
||||
// tslint:disable
|
||||
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
||||
@@ -22,23 +22,23 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
||||
*/
|
||||
export interface IOrganisationSettingsServiceClient {
|
||||
/**
|
||||
* @generated from protobuf rpc: Get(vizapi.GetOrganisationSettingRequest) returns (vizapi.GetOrganisationSettingResult);
|
||||
* @generated from protobuf rpc: Get
|
||||
*/
|
||||
get(input: GetOrganisationSettingRequest, options?: RpcOptions): UnaryCall<GetOrganisationSettingRequest, GetOrganisationSettingResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: Put(vizapi.PutOrganisationSettingRequest) returns (vizapi.PutOrganisationSettingResult);
|
||||
* @generated from protobuf rpc: Put
|
||||
*/
|
||||
put(input: PutOrganisationSettingRequest, options?: RpcOptions): UnaryCall<PutOrganisationSettingRequest, PutOrganisationSettingResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: Delete(vizapi.DeleteOrganisationSettingRequest) returns (vizapi.DeleteOrganisationSettingResult);
|
||||
* @generated from protobuf rpc: Delete
|
||||
*/
|
||||
delete(input: DeleteOrganisationSettingRequest, options?: RpcOptions): UnaryCall<DeleteOrganisationSettingRequest, DeleteOrganisationSettingResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: List(vizapi.ListOrganisationSettingsRequest) returns (vizapi.ListOrganisationSettingsResult);
|
||||
* @generated from protobuf rpc: List
|
||||
*/
|
||||
list(input: ListOrganisationSettingsRequest, options?: RpcOptions): UnaryCall<ListOrganisationSettingsRequest, ListOrganisationSettingsResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteSettingsForOrganisation(vizapi.DeleteSettingsForOrganisationRequest) returns (vizapi.DeleteSettingsForOrganisationResult);
|
||||
* @generated from protobuf rpc: DeleteSettingsForOrganisation
|
||||
*/
|
||||
deleteSettingsForOrganisation(input: DeleteSettingsForOrganisationRequest, options?: RpcOptions): UnaryCall<DeleteSettingsForOrganisationRequest, DeleteSettingsForOrganisationResult>;
|
||||
}
|
||||
@@ -52,35 +52,35 @@ export class OrganisationSettingsServiceClient implements IOrganisationSettingsS
|
||||
constructor(private readonly _transport: RpcTransport) {
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Get(vizapi.GetOrganisationSettingRequest) returns (vizapi.GetOrganisationSettingResult);
|
||||
* @generated from protobuf rpc: Get
|
||||
*/
|
||||
get(input: GetOrganisationSettingRequest, options?: RpcOptions): UnaryCall<GetOrganisationSettingRequest, GetOrganisationSettingResult> {
|
||||
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<GetOrganisationSettingRequest, GetOrganisationSettingResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Put(vizapi.PutOrganisationSettingRequest) returns (vizapi.PutOrganisationSettingResult);
|
||||
* @generated from protobuf rpc: Put
|
||||
*/
|
||||
put(input: PutOrganisationSettingRequest, options?: RpcOptions): UnaryCall<PutOrganisationSettingRequest, PutOrganisationSettingResult> {
|
||||
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<PutOrganisationSettingRequest, PutOrganisationSettingResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Delete(vizapi.DeleteOrganisationSettingRequest) returns (vizapi.DeleteOrganisationSettingResult);
|
||||
* @generated from protobuf rpc: Delete
|
||||
*/
|
||||
delete(input: DeleteOrganisationSettingRequest, options?: RpcOptions): UnaryCall<DeleteOrganisationSettingRequest, DeleteOrganisationSettingResult> {
|
||||
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<DeleteOrganisationSettingRequest, DeleteOrganisationSettingResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: List(vizapi.ListOrganisationSettingsRequest) returns (vizapi.ListOrganisationSettingsResult);
|
||||
* @generated from protobuf rpc: List
|
||||
*/
|
||||
list(input: ListOrganisationSettingsRequest, options?: RpcOptions): UnaryCall<ListOrganisationSettingsRequest, ListOrganisationSettingsResult> {
|
||||
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ListOrganisationSettingsRequest, ListOrganisationSettingsResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteSettingsForOrganisation(vizapi.DeleteSettingsForOrganisationRequest) returns (vizapi.DeleteSettingsForOrganisationResult);
|
||||
* @generated from protobuf rpc: DeleteSettingsForOrganisation
|
||||
*/
|
||||
deleteSettingsForOrganisation(input: DeleteSettingsForOrganisationRequest, options?: RpcOptions): UnaryCall<DeleteSettingsForOrganisationRequest, DeleteSettingsForOrganisationResult> {
|
||||
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "viz-organisation-settings.proto" (package "vizapi", syntax proto3)
|
||||
// tslint:disable
|
||||
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
||||
@@ -17,21 +17,21 @@ import { RequestOrganisationHeader } from "./core/shared";
|
||||
*/
|
||||
export interface OrganisationSetting {
|
||||
/**
|
||||
* @generated from protobuf field: string OrganisationID = 1 [json_name = "OrganisationID"];
|
||||
* @generated from protobuf field: string OrganisationID = 1
|
||||
*/
|
||||
organisationID: string;
|
||||
OrganisationID: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Key = 2 [json_name = "Key"];
|
||||
* @generated from protobuf field: string Key = 2
|
||||
*/
|
||||
key: string;
|
||||
Key: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Value = 3 [json_name = "Value"];
|
||||
* @generated from protobuf field: string Value = 3
|
||||
*/
|
||||
value: string;
|
||||
Value: string;
|
||||
/**
|
||||
* @generated from protobuf field: vizapi.SettingVisibility Visibility = 4 [json_name = "Visibility"];
|
||||
* @generated from protobuf field: vizapi.SettingVisibility Visibility = 4
|
||||
*/
|
||||
visibility: SettingVisibility;
|
||||
Visibility: SettingVisibility;
|
||||
}
|
||||
/**
|
||||
* Key, Value pair to store
|
||||
@@ -40,21 +40,21 @@ export interface OrganisationSetting {
|
||||
*/
|
||||
export interface PutOrganisationSettingRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestOrganisationHeader Header = 1 [json_name = "Header"];
|
||||
* @generated from protobuf field: api.RequestOrganisationHeader Header = 1
|
||||
*/
|
||||
header?: RequestOrganisationHeader;
|
||||
Header?: RequestOrganisationHeader;
|
||||
/**
|
||||
* @generated from protobuf field: string Key = 2 [json_name = "Key"];
|
||||
* @generated from protobuf field: string Key = 2
|
||||
*/
|
||||
key: string;
|
||||
Key: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Value = 3 [json_name = "Value"];
|
||||
* @generated from protobuf field: string Value = 3
|
||||
*/
|
||||
value: string;
|
||||
Value: string;
|
||||
/**
|
||||
* @generated from protobuf field: vizapi.SettingVisibility Visibility = 4 [json_name = "Visibility"];
|
||||
* @generated from protobuf field: vizapi.SettingVisibility Visibility = 4
|
||||
*/
|
||||
visibility: SettingVisibility;
|
||||
Visibility: SettingVisibility;
|
||||
}
|
||||
/**
|
||||
* Key, Value pair response
|
||||
@@ -63,17 +63,17 @@ export interface PutOrganisationSettingRequest {
|
||||
*/
|
||||
export interface PutOrganisationSettingResult {
|
||||
/**
|
||||
* @generated from protobuf field: string Key = 1 [json_name = "Key"];
|
||||
* @generated from protobuf field: string Key = 1
|
||||
*/
|
||||
key: string;
|
||||
Key: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Value = 2 [json_name = "Value"];
|
||||
* @generated from protobuf field: string Value = 2
|
||||
*/
|
||||
value: string;
|
||||
Value: string;
|
||||
/**
|
||||
* @generated from protobuf field: vizapi.SettingVisibility Visibility = 3 [json_name = "Visibility"];
|
||||
* @generated from protobuf field: vizapi.SettingVisibility Visibility = 3
|
||||
*/
|
||||
visibility: SettingVisibility;
|
||||
Visibility: SettingVisibility;
|
||||
}
|
||||
/**
|
||||
* Key of the organisation's setting to get
|
||||
@@ -82,13 +82,13 @@ export interface PutOrganisationSettingResult {
|
||||
*/
|
||||
export interface GetOrganisationSettingRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestOrganisationHeader Header = 1 [json_name = "Header"];
|
||||
* @generated from protobuf field: api.RequestOrganisationHeader Header = 1
|
||||
*/
|
||||
header?: RequestOrganisationHeader;
|
||||
Header?: RequestOrganisationHeader;
|
||||
/**
|
||||
* @generated from protobuf field: string Key = 2 [json_name = "Key"];
|
||||
* @generated from protobuf field: string Key = 2
|
||||
*/
|
||||
key: string;
|
||||
Key: string;
|
||||
}
|
||||
/**
|
||||
* Key, Value pair response
|
||||
@@ -97,17 +97,17 @@ export interface GetOrganisationSettingRequest {
|
||||
*/
|
||||
export interface GetOrganisationSettingResult {
|
||||
/**
|
||||
* @generated from protobuf field: string Key = 1 [json_name = "Key"];
|
||||
* @generated from protobuf field: string Key = 1
|
||||
*/
|
||||
key: string;
|
||||
Key: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Value = 2 [json_name = "Value"];
|
||||
* @generated from protobuf field: string Value = 2
|
||||
*/
|
||||
value: string;
|
||||
Value: string;
|
||||
/**
|
||||
* @generated from protobuf field: vizapi.SettingVisibility Visibility = 3 [json_name = "Visibility"];
|
||||
* @generated from protobuf field: vizapi.SettingVisibility Visibility = 3
|
||||
*/
|
||||
visibility: SettingVisibility;
|
||||
Visibility: SettingVisibility;
|
||||
}
|
||||
/**
|
||||
* Key of the organisation's setting to delete
|
||||
@@ -116,13 +116,13 @@ export interface GetOrganisationSettingResult {
|
||||
*/
|
||||
export interface DeleteOrganisationSettingRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestOrganisationHeader Header = 1 [json_name = "Header"];
|
||||
* @generated from protobuf field: api.RequestOrganisationHeader Header = 1
|
||||
*/
|
||||
header?: RequestOrganisationHeader;
|
||||
Header?: RequestOrganisationHeader;
|
||||
/**
|
||||
* @generated from protobuf field: string Key = 2 [json_name = "Key"];
|
||||
* @generated from protobuf field: string Key = 2
|
||||
*/
|
||||
key: string;
|
||||
Key: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.DeleteOrganisationSettingResult
|
||||
@@ -134,9 +134,9 @@ export interface DeleteOrganisationSettingResult {
|
||||
*/
|
||||
export interface ListOrganisationSettingsRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestOrganisationHeader Header = 1 [json_name = "Header"];
|
||||
* @generated from protobuf field: api.RequestOrganisationHeader Header = 1
|
||||
*/
|
||||
header?: RequestOrganisationHeader;
|
||||
Header?: RequestOrganisationHeader;
|
||||
}
|
||||
/**
|
||||
* List of the organisation's settings
|
||||
@@ -145,18 +145,18 @@ export interface ListOrganisationSettingsRequest {
|
||||
*/
|
||||
export interface ListOrganisationSettingsResult {
|
||||
/**
|
||||
* @generated from protobuf field: repeated vizapi.GetOrganisationSettingResult OrganisationSettings = 1 [json_name = "OrganisationSettings"];
|
||||
* @generated from protobuf field: repeated vizapi.GetOrganisationSettingResult OrganisationSettings = 1
|
||||
*/
|
||||
organisationSettings: GetOrganisationSettingResult[];
|
||||
OrganisationSettings: GetOrganisationSettingResult[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.DeleteSettingsForOrganisationRequest
|
||||
*/
|
||||
export interface DeleteSettingsForOrganisationRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string OrganisationID = 1 [json_name = "OrganisationID"];
|
||||
* @generated from protobuf field: string OrganisationID = 1
|
||||
*/
|
||||
organisationID: string;
|
||||
OrganisationID: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.DeleteSettingsForOrganisationResult
|
||||
@@ -184,18 +184,18 @@ export enum SettingVisibility {
|
||||
class OrganisationSetting$Type extends MessageType<OrganisationSetting> {
|
||||
constructor() {
|
||||
super("vizapi.OrganisationSetting", [
|
||||
{ no: 1, name: "OrganisationID", kind: "scalar", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "Key", kind: "scalar", jsonName: "Key", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "Value", kind: "scalar", jsonName: "Value", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "Visibility", kind: "enum", jsonName: "Visibility", T: () => ["vizapi.SettingVisibility", SettingVisibility, "SETTING_VISIBILITY_"] }
|
||||
{ no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "Visibility", kind: "enum", localName: "Visibility", jsonName: "Visibility", T: () => ["vizapi.SettingVisibility", SettingVisibility, "SETTING_VISIBILITY_"] }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<OrganisationSetting>): OrganisationSetting {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.organisationID = "";
|
||||
message.key = "";
|
||||
message.value = "";
|
||||
message.visibility = 0;
|
||||
message.OrganisationID = "";
|
||||
message.Key = "";
|
||||
message.Value = "";
|
||||
message.Visibility = 0;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<OrganisationSetting>(this, message, value);
|
||||
return message;
|
||||
@@ -205,17 +205,17 @@ class OrganisationSetting$Type extends MessageType<OrganisationSetting> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string OrganisationID = 1 [json_name = "OrganisationID"];*/ 1:
|
||||
message.organisationID = reader.string();
|
||||
case /* string OrganisationID */ 1:
|
||||
message.OrganisationID = reader.string();
|
||||
break;
|
||||
case /* string Key = 2 [json_name = "Key"];*/ 2:
|
||||
message.key = reader.string();
|
||||
case /* string Key */ 2:
|
||||
message.Key = reader.string();
|
||||
break;
|
||||
case /* string Value = 3 [json_name = "Value"];*/ 3:
|
||||
message.value = reader.string();
|
||||
case /* string Value */ 3:
|
||||
message.Value = reader.string();
|
||||
break;
|
||||
case /* vizapi.SettingVisibility Visibility = 4 [json_name = "Visibility"];*/ 4:
|
||||
message.visibility = reader.int32();
|
||||
case /* vizapi.SettingVisibility Visibility */ 4:
|
||||
message.Visibility = reader.int32();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -229,18 +229,18 @@ class OrganisationSetting$Type extends MessageType<OrganisationSetting> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: OrganisationSetting, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string OrganisationID = 1 [json_name = "OrganisationID"]; */
|
||||
if (message.organisationID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.organisationID);
|
||||
/* string Key = 2 [json_name = "Key"]; */
|
||||
if (message.key !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.key);
|
||||
/* string Value = 3 [json_name = "Value"]; */
|
||||
if (message.value !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.value);
|
||||
/* vizapi.SettingVisibility Visibility = 4 [json_name = "Visibility"]; */
|
||||
if (message.visibility !== 0)
|
||||
writer.tag(4, WireType.Varint).int32(message.visibility);
|
||||
/* string OrganisationID = 1; */
|
||||
if (message.OrganisationID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.OrganisationID);
|
||||
/* string Key = 2; */
|
||||
if (message.Key !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Key);
|
||||
/* string Value = 3; */
|
||||
if (message.Value !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.Value);
|
||||
/* vizapi.SettingVisibility Visibility = 4; */
|
||||
if (message.Visibility !== 0)
|
||||
writer.tag(4, WireType.Varint).int32(message.Visibility);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -255,17 +255,17 @@ export const OrganisationSetting = new OrganisationSetting$Type();
|
||||
class PutOrganisationSettingRequest$Type extends MessageType<PutOrganisationSettingRequest> {
|
||||
constructor() {
|
||||
super("vizapi.PutOrganisationSettingRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "Key", kind: "scalar", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Key: each key must be unique", example: "\"preferredTheme\"" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "Value", kind: "scalar", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"dark\"" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 4, name: "Visibility", kind: "enum", jsonName: "Visibility", T: () => ["vizapi.SettingVisibility", SettingVisibility, "SETTING_VISIBILITY_"], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Visibility: public or private. If private, only the organisation can see the setting. If public, all of the organisation and its projects users can see the setting.", example: "\"SETTING_VISIBILITY_PUBLIC\"" }, "validate.rules": { enum: { definedOnly: true } } } }
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Key: each key must be unique", example: "\"preferredTheme\"" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"dark\"" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 4, name: "Visibility", kind: "enum", localName: "Visibility", jsonName: "Visibility", T: () => ["vizapi.SettingVisibility", SettingVisibility, "SETTING_VISIBILITY_"], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Visibility: public or private. If private, only the organisation can see the setting. If public, all of the organisation and its projects users can see the setting.", example: "\"SETTING_VISIBILITY_PUBLIC\"" }, "validate.rules": { enum: { definedOnly: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Key, Value pair to store", required: ["Key", "Value", "Visibility", "Header"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<PutOrganisationSettingRequest>): PutOrganisationSettingRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.key = "";
|
||||
message.value = "";
|
||||
message.visibility = 0;
|
||||
message.Key = "";
|
||||
message.Value = "";
|
||||
message.Visibility = 0;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<PutOrganisationSettingRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -275,17 +275,17 @@ class PutOrganisationSettingRequest$Type extends MessageType<PutOrganisationSett
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.RequestOrganisationHeader Header = 1 [json_name = "Header"];*/ 1:
|
||||
message.header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.header);
|
||||
case /* api.RequestOrganisationHeader Header */ 1:
|
||||
message.Header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string Key = 2 [json_name = "Key"];*/ 2:
|
||||
message.key = reader.string();
|
||||
case /* string Key */ 2:
|
||||
message.Key = reader.string();
|
||||
break;
|
||||
case /* string Value = 3 [json_name = "Value"];*/ 3:
|
||||
message.value = reader.string();
|
||||
case /* string Value */ 3:
|
||||
message.Value = reader.string();
|
||||
break;
|
||||
case /* vizapi.SettingVisibility Visibility = 4 [json_name = "Visibility"];*/ 4:
|
||||
message.visibility = reader.int32();
|
||||
case /* vizapi.SettingVisibility Visibility */ 4:
|
||||
message.Visibility = reader.int32();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -299,18 +299,18 @@ class PutOrganisationSettingRequest$Type extends MessageType<PutOrganisationSett
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: PutOrganisationSettingRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.RequestOrganisationHeader Header = 1 [json_name = "Header"]; */
|
||||
if (message.header)
|
||||
RequestOrganisationHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string Key = 2 [json_name = "Key"]; */
|
||||
if (message.key !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.key);
|
||||
/* string Value = 3 [json_name = "Value"]; */
|
||||
if (message.value !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.value);
|
||||
/* vizapi.SettingVisibility Visibility = 4 [json_name = "Visibility"]; */
|
||||
if (message.visibility !== 0)
|
||||
writer.tag(4, WireType.Varint).int32(message.visibility);
|
||||
/* api.RequestOrganisationHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestOrganisationHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string Key = 2; */
|
||||
if (message.Key !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Key);
|
||||
/* string Value = 3; */
|
||||
if (message.Value !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.Value);
|
||||
/* vizapi.SettingVisibility Visibility = 4; */
|
||||
if (message.Visibility !== 0)
|
||||
writer.tag(4, WireType.Varint).int32(message.Visibility);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -325,16 +325,16 @@ export const PutOrganisationSettingRequest = new PutOrganisationSettingRequest$T
|
||||
class PutOrganisationSettingResult$Type extends MessageType<PutOrganisationSettingResult> {
|
||||
constructor() {
|
||||
super("vizapi.PutOrganisationSettingResult", [
|
||||
{ no: 1, name: "Key", kind: "scalar", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" } } },
|
||||
{ no: 2, name: "Value", kind: "scalar", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"dark\"" } } },
|
||||
{ no: 3, name: "Visibility", kind: "enum", jsonName: "Visibility", T: () => ["vizapi.SettingVisibility", SettingVisibility, "SETTING_VISIBILITY_"], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Visibility: public or private. If private, only the organisation can see the setting. If public, all of the organisation and its projects users can see the setting.", example: "\"SETTING_VISIBILITY_PUBLIC\"" } } }
|
||||
{ no: 1, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" } } },
|
||||
{ no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"dark\"" } } },
|
||||
{ no: 3, name: "Visibility", kind: "enum", localName: "Visibility", jsonName: "Visibility", T: () => ["vizapi.SettingVisibility", SettingVisibility, "SETTING_VISIBILITY_"], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Visibility: public or private. If private, only the organisation can see the setting. If public, all of the organisation and its projects users can see the setting.", example: "\"SETTING_VISIBILITY_PUBLIC\"" } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Key, Value pair response" } } });
|
||||
}
|
||||
create(value?: PartialMessage<PutOrganisationSettingResult>): PutOrganisationSettingResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.key = "";
|
||||
message.value = "";
|
||||
message.visibility = 0;
|
||||
message.Key = "";
|
||||
message.Value = "";
|
||||
message.Visibility = 0;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<PutOrganisationSettingResult>(this, message, value);
|
||||
return message;
|
||||
@@ -344,14 +344,14 @@ class PutOrganisationSettingResult$Type extends MessageType<PutOrganisationSetti
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Key = 1 [json_name = "Key"];*/ 1:
|
||||
message.key = reader.string();
|
||||
case /* string Key */ 1:
|
||||
message.Key = reader.string();
|
||||
break;
|
||||
case /* string Value = 2 [json_name = "Value"];*/ 2:
|
||||
message.value = reader.string();
|
||||
case /* string Value */ 2:
|
||||
message.Value = reader.string();
|
||||
break;
|
||||
case /* vizapi.SettingVisibility Visibility = 3 [json_name = "Visibility"];*/ 3:
|
||||
message.visibility = reader.int32();
|
||||
case /* vizapi.SettingVisibility Visibility */ 3:
|
||||
message.Visibility = reader.int32();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -365,15 +365,15 @@ class PutOrganisationSettingResult$Type extends MessageType<PutOrganisationSetti
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: PutOrganisationSettingResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Key = 1 [json_name = "Key"]; */
|
||||
if (message.key !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.key);
|
||||
/* string Value = 2 [json_name = "Value"]; */
|
||||
if (message.value !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.value);
|
||||
/* vizapi.SettingVisibility Visibility = 3 [json_name = "Visibility"]; */
|
||||
if (message.visibility !== 0)
|
||||
writer.tag(3, WireType.Varint).int32(message.visibility);
|
||||
/* string Key = 1; */
|
||||
if (message.Key !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.Key);
|
||||
/* string Value = 2; */
|
||||
if (message.Value !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Value);
|
||||
/* vizapi.SettingVisibility Visibility = 3; */
|
||||
if (message.Visibility !== 0)
|
||||
writer.tag(3, WireType.Varint).int32(message.Visibility);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -388,13 +388,13 @@ export const PutOrganisationSettingResult = new PutOrganisationSettingResult$Typ
|
||||
class GetOrganisationSettingRequest$Type extends MessageType<GetOrganisationSettingRequest> {
|
||||
constructor() {
|
||||
super("vizapi.GetOrganisationSettingRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "Key", kind: "scalar", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Key of the organisation's setting to get", required: ["Header", "Key"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<GetOrganisationSettingRequest>): GetOrganisationSettingRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.key = "";
|
||||
message.Key = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetOrganisationSettingRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -404,11 +404,11 @@ class GetOrganisationSettingRequest$Type extends MessageType<GetOrganisationSett
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.RequestOrganisationHeader Header = 1 [json_name = "Header"];*/ 1:
|
||||
message.header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.header);
|
||||
case /* api.RequestOrganisationHeader Header */ 1:
|
||||
message.Header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string Key = 2 [json_name = "Key"];*/ 2:
|
||||
message.key = reader.string();
|
||||
case /* string Key */ 2:
|
||||
message.Key = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -422,12 +422,12 @@ class GetOrganisationSettingRequest$Type extends MessageType<GetOrganisationSett
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: GetOrganisationSettingRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.RequestOrganisationHeader Header = 1 [json_name = "Header"]; */
|
||||
if (message.header)
|
||||
RequestOrganisationHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string Key = 2 [json_name = "Key"]; */
|
||||
if (message.key !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.key);
|
||||
/* api.RequestOrganisationHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestOrganisationHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string Key = 2; */
|
||||
if (message.Key !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Key);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -442,16 +442,16 @@ export const GetOrganisationSettingRequest = new GetOrganisationSettingRequest$T
|
||||
class GetOrganisationSettingResult$Type extends MessageType<GetOrganisationSettingResult> {
|
||||
constructor() {
|
||||
super("vizapi.GetOrganisationSettingResult", [
|
||||
{ no: 1, name: "Key", kind: "scalar", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "Value", kind: "scalar", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"dark\"" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "Visibility", kind: "enum", jsonName: "Visibility", T: () => ["vizapi.SettingVisibility", SettingVisibility, "SETTING_VISIBILITY_"], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Visibility: public or private. If private, only the organisation can see the setting. If public, all of the organisation and its projects users can see the setting.", example: "\"SETTING_VISIBILITY_PUBLIC\"" } } }
|
||||
{ no: 1, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"dark\"" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "Visibility", kind: "enum", localName: "Visibility", jsonName: "Visibility", T: () => ["vizapi.SettingVisibility", SettingVisibility, "SETTING_VISIBILITY_"], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Visibility: public or private. If private, only the organisation can see the setting. If public, all of the organisation and its projects users can see the setting.", example: "\"SETTING_VISIBILITY_PUBLIC\"" } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Key, Value pair response" } } });
|
||||
}
|
||||
create(value?: PartialMessage<GetOrganisationSettingResult>): GetOrganisationSettingResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.key = "";
|
||||
message.value = "";
|
||||
message.visibility = 0;
|
||||
message.Key = "";
|
||||
message.Value = "";
|
||||
message.Visibility = 0;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetOrganisationSettingResult>(this, message, value);
|
||||
return message;
|
||||
@@ -461,14 +461,14 @@ class GetOrganisationSettingResult$Type extends MessageType<GetOrganisationSetti
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Key = 1 [json_name = "Key"];*/ 1:
|
||||
message.key = reader.string();
|
||||
case /* string Key */ 1:
|
||||
message.Key = reader.string();
|
||||
break;
|
||||
case /* string Value = 2 [json_name = "Value"];*/ 2:
|
||||
message.value = reader.string();
|
||||
case /* string Value */ 2:
|
||||
message.Value = reader.string();
|
||||
break;
|
||||
case /* vizapi.SettingVisibility Visibility = 3 [json_name = "Visibility"];*/ 3:
|
||||
message.visibility = reader.int32();
|
||||
case /* vizapi.SettingVisibility Visibility */ 3:
|
||||
message.Visibility = reader.int32();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -482,15 +482,15 @@ class GetOrganisationSettingResult$Type extends MessageType<GetOrganisationSetti
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: GetOrganisationSettingResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Key = 1 [json_name = "Key"]; */
|
||||
if (message.key !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.key);
|
||||
/* string Value = 2 [json_name = "Value"]; */
|
||||
if (message.value !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.value);
|
||||
/* vizapi.SettingVisibility Visibility = 3 [json_name = "Visibility"]; */
|
||||
if (message.visibility !== 0)
|
||||
writer.tag(3, WireType.Varint).int32(message.visibility);
|
||||
/* string Key = 1; */
|
||||
if (message.Key !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.Key);
|
||||
/* string Value = 2; */
|
||||
if (message.Value !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Value);
|
||||
/* vizapi.SettingVisibility Visibility = 3; */
|
||||
if (message.Visibility !== 0)
|
||||
writer.tag(3, WireType.Varint).int32(message.Visibility);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -505,13 +505,13 @@ export const GetOrganisationSettingResult = new GetOrganisationSettingResult$Typ
|
||||
class DeleteOrganisationSettingRequest$Type extends MessageType<DeleteOrganisationSettingRequest> {
|
||||
constructor() {
|
||||
super("vizapi.DeleteOrganisationSettingRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "Key", kind: "scalar", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Key of the organisation's setting to delete", required: ["Header", "Key"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<DeleteOrganisationSettingRequest>): DeleteOrganisationSettingRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.key = "";
|
||||
message.Key = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DeleteOrganisationSettingRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -521,11 +521,11 @@ class DeleteOrganisationSettingRequest$Type extends MessageType<DeleteOrganisati
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.RequestOrganisationHeader Header = 1 [json_name = "Header"];*/ 1:
|
||||
message.header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.header);
|
||||
case /* api.RequestOrganisationHeader Header */ 1:
|
||||
message.Header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string Key = 2 [json_name = "Key"];*/ 2:
|
||||
message.key = reader.string();
|
||||
case /* string Key */ 2:
|
||||
message.Key = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -539,12 +539,12 @@ class DeleteOrganisationSettingRequest$Type extends MessageType<DeleteOrganisati
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: DeleteOrganisationSettingRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.RequestOrganisationHeader Header = 1 [json_name = "Header"]; */
|
||||
if (message.header)
|
||||
RequestOrganisationHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string Key = 2 [json_name = "Key"]; */
|
||||
if (message.key !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.key);
|
||||
/* api.RequestOrganisationHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestOrganisationHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string Key = 2; */
|
||||
if (message.Key !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Key);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -597,7 +597,7 @@ export const DeleteOrganisationSettingResult = new DeleteOrganisationSettingResu
|
||||
class ListOrganisationSettingsRequest$Type extends MessageType<ListOrganisationSettingsRequest> {
|
||||
constructor() {
|
||||
super("vizapi.ListOrganisationSettingsRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Key of the organisation's setting to delete", required: ["Header"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<ListOrganisationSettingsRequest>): ListOrganisationSettingsRequest {
|
||||
@@ -611,8 +611,8 @@ class ListOrganisationSettingsRequest$Type extends MessageType<ListOrganisationS
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.RequestOrganisationHeader Header = 1 [json_name = "Header"];*/ 1:
|
||||
message.header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.header);
|
||||
case /* api.RequestOrganisationHeader Header */ 1:
|
||||
message.Header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -626,9 +626,9 @@ class ListOrganisationSettingsRequest$Type extends MessageType<ListOrganisationS
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: ListOrganisationSettingsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.RequestOrganisationHeader Header = 1 [json_name = "Header"]; */
|
||||
if (message.header)
|
||||
RequestOrganisationHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.RequestOrganisationHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestOrganisationHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -643,12 +643,12 @@ export const ListOrganisationSettingsRequest = new ListOrganisationSettingsReque
|
||||
class ListOrganisationSettingsResult$Type extends MessageType<ListOrganisationSettingsResult> {
|
||||
constructor() {
|
||||
super("vizapi.ListOrganisationSettingsResult", [
|
||||
{ no: 1, name: "OrganisationSettings", kind: "message", jsonName: "OrganisationSettings", repeat: 1 /*RepeatType.PACKED*/, T: () => GetOrganisationSettingResult }
|
||||
{ no: 1, name: "OrganisationSettings", kind: "message", localName: "OrganisationSettings", jsonName: "OrganisationSettings", repeat: 2 /*RepeatType.UNPACKED*/, T: () => GetOrganisationSettingResult }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "List of the organisation's settings" } } });
|
||||
}
|
||||
create(value?: PartialMessage<ListOrganisationSettingsResult>): ListOrganisationSettingsResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.organisationSettings = [];
|
||||
message.OrganisationSettings = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ListOrganisationSettingsResult>(this, message, value);
|
||||
return message;
|
||||
@@ -658,8 +658,8 @@ class ListOrganisationSettingsResult$Type extends MessageType<ListOrganisationSe
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated vizapi.GetOrganisationSettingResult OrganisationSettings = 1 [json_name = "OrganisationSettings"];*/ 1:
|
||||
message.organisationSettings.push(GetOrganisationSettingResult.internalBinaryRead(reader, reader.uint32(), options));
|
||||
case /* repeated vizapi.GetOrganisationSettingResult OrganisationSettings */ 1:
|
||||
message.OrganisationSettings.push(GetOrganisationSettingResult.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -673,9 +673,9 @@ class ListOrganisationSettingsResult$Type extends MessageType<ListOrganisationSe
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: ListOrganisationSettingsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated vizapi.GetOrganisationSettingResult OrganisationSettings = 1 [json_name = "OrganisationSettings"]; */
|
||||
for (let i = 0; i < message.organisationSettings.length; i++)
|
||||
GetOrganisationSettingResult.internalBinaryWrite(message.organisationSettings[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated vizapi.GetOrganisationSettingResult OrganisationSettings = 1; */
|
||||
for (let i = 0; i < message.OrganisationSettings.length; i++)
|
||||
GetOrganisationSettingResult.internalBinaryWrite(message.OrganisationSettings[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);
|
||||
@@ -690,12 +690,12 @@ export const ListOrganisationSettingsResult = new ListOrganisationSettingsResult
|
||||
class DeleteSettingsForOrganisationRequest$Type extends MessageType<DeleteSettingsForOrganisationRequest> {
|
||||
constructor() {
|
||||
super("vizapi.DeleteSettingsForOrganisationRequest", [
|
||||
{ no: 1, name: "OrganisationID", kind: "scalar", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
{ no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Organisation to delete settings from", required: ["OrganisationID"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<DeleteSettingsForOrganisationRequest>): DeleteSettingsForOrganisationRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.organisationID = "";
|
||||
message.OrganisationID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DeleteSettingsForOrganisationRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -705,8 +705,8 @@ class DeleteSettingsForOrganisationRequest$Type extends MessageType<DeleteSettin
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string OrganisationID = 1 [json_name = "OrganisationID"];*/ 1:
|
||||
message.organisationID = reader.string();
|
||||
case /* string OrganisationID */ 1:
|
||||
message.OrganisationID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -720,9 +720,9 @@ class DeleteSettingsForOrganisationRequest$Type extends MessageType<DeleteSettin
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: DeleteSettingsForOrganisationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string OrganisationID = 1 [json_name = "OrganisationID"]; */
|
||||
if (message.organisationID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.organisationID);
|
||||
/* string OrganisationID = 1; */
|
||||
if (message.OrganisationID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.OrganisationID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "viz-project-settings.proto" (package "vizapi", syntax proto3)
|
||||
// tslint:disable
|
||||
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
||||
@@ -24,27 +24,27 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
||||
*/
|
||||
export interface IProjectSettingsServiceClient {
|
||||
/**
|
||||
* @generated from protobuf rpc: Get(vizapi.GetProjectSettingRequest) returns (vizapi.GetProjectSettingResult);
|
||||
* @generated from protobuf rpc: Get
|
||||
*/
|
||||
get(input: GetProjectSettingRequest, options?: RpcOptions): UnaryCall<GetProjectSettingRequest, GetProjectSettingResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: Put(vizapi.PutProjectSettingRequest) returns (vizapi.PutProjectSettingResult);
|
||||
* @generated from protobuf rpc: Put
|
||||
*/
|
||||
put(input: PutProjectSettingRequest, options?: RpcOptions): UnaryCall<PutProjectSettingRequest, PutProjectSettingResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: Delete(vizapi.DeleteProjectSettingRequest) returns (vizapi.DeleteProjectSettingResult);
|
||||
* @generated from protobuf rpc: Delete
|
||||
*/
|
||||
delete(input: DeleteProjectSettingRequest, options?: RpcOptions): UnaryCall<DeleteProjectSettingRequest, DeleteProjectSettingResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: List(vizapi.ListProjectSettingsRequest) returns (vizapi.ListProjectSettingsResult);
|
||||
* @generated from protobuf rpc: List
|
||||
*/
|
||||
list(input: ListProjectSettingsRequest, options?: RpcOptions): UnaryCall<ListProjectSettingsRequest, ListProjectSettingsResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: ListOrganisationSettings(vizapi.ListProjectOrganisationSettingsRequest) returns (vizapi.ListProjectOrganisationSettingsResult);
|
||||
* @generated from protobuf rpc: ListOrganisationSettings
|
||||
*/
|
||||
listOrganisationSettings(input: ListProjectOrganisationSettingsRequest, options?: RpcOptions): UnaryCall<ListProjectOrganisationSettingsRequest, ListProjectOrganisationSettingsResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteSettingsForProject(vizapi.DeleteSettingsForProjectRequest) returns (vizapi.DeleteSettingsForProjectResult);
|
||||
* @generated from protobuf rpc: DeleteSettingsForProject
|
||||
*/
|
||||
deleteSettingsForProject(input: DeleteSettingsForProjectRequest, options?: RpcOptions): UnaryCall<DeleteSettingsForProjectRequest, DeleteSettingsForProjectResult>;
|
||||
}
|
||||
@@ -58,42 +58,42 @@ export class ProjectSettingsServiceClient implements IProjectSettingsServiceClie
|
||||
constructor(private readonly _transport: RpcTransport) {
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Get(vizapi.GetProjectSettingRequest) returns (vizapi.GetProjectSettingResult);
|
||||
* @generated from protobuf rpc: Get
|
||||
*/
|
||||
get(input: GetProjectSettingRequest, options?: RpcOptions): UnaryCall<GetProjectSettingRequest, GetProjectSettingResult> {
|
||||
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<GetProjectSettingRequest, GetProjectSettingResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Put(vizapi.PutProjectSettingRequest) returns (vizapi.PutProjectSettingResult);
|
||||
* @generated from protobuf rpc: Put
|
||||
*/
|
||||
put(input: PutProjectSettingRequest, options?: RpcOptions): UnaryCall<PutProjectSettingRequest, PutProjectSettingResult> {
|
||||
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<PutProjectSettingRequest, PutProjectSettingResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Delete(vizapi.DeleteProjectSettingRequest) returns (vizapi.DeleteProjectSettingResult);
|
||||
* @generated from protobuf rpc: Delete
|
||||
*/
|
||||
delete(input: DeleteProjectSettingRequest, options?: RpcOptions): UnaryCall<DeleteProjectSettingRequest, DeleteProjectSettingResult> {
|
||||
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<DeleteProjectSettingRequest, DeleteProjectSettingResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: List(vizapi.ListProjectSettingsRequest) returns (vizapi.ListProjectSettingsResult);
|
||||
* @generated from protobuf rpc: List
|
||||
*/
|
||||
list(input: ListProjectSettingsRequest, options?: RpcOptions): UnaryCall<ListProjectSettingsRequest, ListProjectSettingsResult> {
|
||||
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ListProjectSettingsRequest, ListProjectSettingsResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: ListOrganisationSettings(vizapi.ListProjectOrganisationSettingsRequest) returns (vizapi.ListProjectOrganisationSettingsResult);
|
||||
* @generated from protobuf rpc: ListOrganisationSettings
|
||||
*/
|
||||
listOrganisationSettings(input: ListProjectOrganisationSettingsRequest, options?: RpcOptions): UnaryCall<ListProjectOrganisationSettingsRequest, ListProjectOrganisationSettingsResult> {
|
||||
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ListProjectOrganisationSettingsRequest, ListProjectOrganisationSettingsResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteSettingsForProject(vizapi.DeleteSettingsForProjectRequest) returns (vizapi.DeleteSettingsForProjectResult);
|
||||
* @generated from protobuf rpc: DeleteSettingsForProject
|
||||
*/
|
||||
deleteSettingsForProject(input: DeleteSettingsForProjectRequest, options?: RpcOptions): UnaryCall<DeleteSettingsForProjectRequest, DeleteSettingsForProjectResult> {
|
||||
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "viz-project-settings.proto" (package "vizapi", syntax proto3)
|
||||
// tslint:disable
|
||||
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
||||
@@ -18,17 +18,17 @@ import { RequestProjectHeader } from "./core/shared";
|
||||
*/
|
||||
export interface ProjectSetting {
|
||||
/**
|
||||
* @generated from protobuf field: string ProjectID = 1 [json_name = "ProjectID"];
|
||||
* @generated from protobuf field: string ProjectID = 1
|
||||
*/
|
||||
projectID: string;
|
||||
ProjectID: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Key = 2 [json_name = "Key"];
|
||||
* @generated from protobuf field: string Key = 2
|
||||
*/
|
||||
key: string;
|
||||
Key: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Value = 3 [json_name = "Value"];
|
||||
* @generated from protobuf field: string Value = 3
|
||||
*/
|
||||
value: string;
|
||||
Value: string;
|
||||
}
|
||||
/**
|
||||
* Key, Value pair to store
|
||||
@@ -37,17 +37,17 @@ export interface ProjectSetting {
|
||||
*/
|
||||
export interface PutProjectSettingRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
||||
*/
|
||||
header?: RequestProjectHeader;
|
||||
Header?: RequestProjectHeader;
|
||||
/**
|
||||
* @generated from protobuf field: string Key = 2 [json_name = "Key"];
|
||||
* @generated from protobuf field: string Key = 2
|
||||
*/
|
||||
key: string;
|
||||
Key: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Value = 3 [json_name = "Value"];
|
||||
* @generated from protobuf field: string Value = 3
|
||||
*/
|
||||
value: string;
|
||||
Value: string;
|
||||
}
|
||||
/**
|
||||
* Key, Value pair response
|
||||
@@ -56,13 +56,13 @@ export interface PutProjectSettingRequest {
|
||||
*/
|
||||
export interface PutProjectSettingResult {
|
||||
/**
|
||||
* @generated from protobuf field: string Key = 1 [json_name = "Key"];
|
||||
* @generated from protobuf field: string Key = 1
|
||||
*/
|
||||
key: string;
|
||||
Key: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Value = 2 [json_name = "Value"];
|
||||
* @generated from protobuf field: string Value = 2
|
||||
*/
|
||||
value: string;
|
||||
Value: string;
|
||||
}
|
||||
/**
|
||||
* Key of the project's setting to get
|
||||
@@ -71,13 +71,13 @@ export interface PutProjectSettingResult {
|
||||
*/
|
||||
export interface GetProjectSettingRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
||||
*/
|
||||
header?: RequestProjectHeader;
|
||||
Header?: RequestProjectHeader;
|
||||
/**
|
||||
* @generated from protobuf field: string Key = 2 [json_name = "Key"];
|
||||
* @generated from protobuf field: string Key = 2
|
||||
*/
|
||||
key: string;
|
||||
Key: string;
|
||||
}
|
||||
/**
|
||||
* Key, Value pair response
|
||||
@@ -86,13 +86,13 @@ export interface GetProjectSettingRequest {
|
||||
*/
|
||||
export interface GetProjectSettingResult {
|
||||
/**
|
||||
* @generated from protobuf field: string Key = 1 [json_name = "Key"];
|
||||
* @generated from protobuf field: string Key = 1
|
||||
*/
|
||||
key: string;
|
||||
Key: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Value = 2 [json_name = "Value"];
|
||||
* @generated from protobuf field: string Value = 2
|
||||
*/
|
||||
value: string;
|
||||
Value: string;
|
||||
}
|
||||
/**
|
||||
* Key of the project's setting to delete
|
||||
@@ -101,13 +101,13 @@ export interface GetProjectSettingResult {
|
||||
*/
|
||||
export interface DeleteProjectSettingRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
||||
*/
|
||||
header?: RequestProjectHeader;
|
||||
Header?: RequestProjectHeader;
|
||||
/**
|
||||
* @generated from protobuf field: string Key = 2 [json_name = "Key"];
|
||||
* @generated from protobuf field: string Key = 2
|
||||
*/
|
||||
key: string;
|
||||
Key: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.DeleteProjectSettingResult
|
||||
@@ -119,9 +119,9 @@ export interface DeleteProjectSettingResult {
|
||||
*/
|
||||
export interface ListProjectSettingsRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
||||
*/
|
||||
header?: RequestProjectHeader;
|
||||
Header?: RequestProjectHeader;
|
||||
}
|
||||
/**
|
||||
* List of the project's settings
|
||||
@@ -130,18 +130,18 @@ export interface ListProjectSettingsRequest {
|
||||
*/
|
||||
export interface ListProjectSettingsResult {
|
||||
/**
|
||||
* @generated from protobuf field: repeated vizapi.GetProjectSettingResult ProjectSettings = 1 [json_name = "ProjectSettings"];
|
||||
* @generated from protobuf field: repeated vizapi.GetProjectSettingResult ProjectSettings = 1
|
||||
*/
|
||||
projectSettings: GetProjectSettingResult[];
|
||||
ProjectSettings: GetProjectSettingResult[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.ListProjectOrganisationSettingsRequest
|
||||
*/
|
||||
export interface ListProjectOrganisationSettingsRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
||||
*/
|
||||
header?: RequestProjectHeader;
|
||||
Header?: RequestProjectHeader;
|
||||
}
|
||||
/**
|
||||
* List of the project's settings
|
||||
@@ -150,18 +150,18 @@ export interface ListProjectOrganisationSettingsRequest {
|
||||
*/
|
||||
export interface ListProjectOrganisationSettingsResult {
|
||||
/**
|
||||
* @generated from protobuf field: repeated vizapi.GetOrganisationSettingResult OrganisationSettings = 1 [json_name = "OrganisationSettings"];
|
||||
* @generated from protobuf field: repeated vizapi.GetOrganisationSettingResult OrganisationSettings = 1
|
||||
*/
|
||||
organisationSettings: GetOrganisationSettingResult[];
|
||||
OrganisationSettings: GetOrganisationSettingResult[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.DeleteSettingsForProjectRequest
|
||||
*/
|
||||
export interface DeleteSettingsForProjectRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string ProjectID = 1 [json_name = "ProjectID"];
|
||||
* @generated from protobuf field: string ProjectID = 1
|
||||
*/
|
||||
projectID: string;
|
||||
ProjectID: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.DeleteSettingsForProjectResult
|
||||
@@ -172,16 +172,16 @@ export interface DeleteSettingsForProjectResult {
|
||||
class ProjectSetting$Type extends MessageType<ProjectSetting> {
|
||||
constructor() {
|
||||
super("vizapi.ProjectSetting", [
|
||||
{ no: 1, name: "ProjectID", kind: "scalar", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "Key", kind: "scalar", jsonName: "Key", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "Value", kind: "scalar", jsonName: "Value", T: 9 /*ScalarType.STRING*/ }
|
||||
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<ProjectSetting>): ProjectSetting {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.projectID = "";
|
||||
message.key = "";
|
||||
message.value = "";
|
||||
message.ProjectID = "";
|
||||
message.Key = "";
|
||||
message.Value = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ProjectSetting>(this, message, value);
|
||||
return message;
|
||||
@@ -191,14 +191,14 @@ class ProjectSetting$Type extends MessageType<ProjectSetting> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ProjectID = 1 [json_name = "ProjectID"];*/ 1:
|
||||
message.projectID = reader.string();
|
||||
case /* string ProjectID */ 1:
|
||||
message.ProjectID = reader.string();
|
||||
break;
|
||||
case /* string Key = 2 [json_name = "Key"];*/ 2:
|
||||
message.key = reader.string();
|
||||
case /* string Key */ 2:
|
||||
message.Key = reader.string();
|
||||
break;
|
||||
case /* string Value = 3 [json_name = "Value"];*/ 3:
|
||||
message.value = reader.string();
|
||||
case /* string Value */ 3:
|
||||
message.Value = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -212,15 +212,15 @@ class ProjectSetting$Type extends MessageType<ProjectSetting> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: ProjectSetting, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ProjectID = 1 [json_name = "ProjectID"]; */
|
||||
if (message.projectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.projectID);
|
||||
/* string Key = 2 [json_name = "Key"]; */
|
||||
if (message.key !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.key);
|
||||
/* string Value = 3 [json_name = "Value"]; */
|
||||
if (message.value !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.value);
|
||||
/* string ProjectID = 1; */
|
||||
if (message.ProjectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
|
||||
/* string Key = 2; */
|
||||
if (message.Key !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Key);
|
||||
/* string Value = 3; */
|
||||
if (message.Value !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.Value);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -235,15 +235,15 @@ export const ProjectSetting = new ProjectSetting$Type();
|
||||
class PutProjectSettingRequest$Type extends MessageType<PutProjectSettingRequest> {
|
||||
constructor() {
|
||||
super("vizapi.PutProjectSettingRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "Key", kind: "scalar", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Key: each key must be unique", example: "\"preferredTheme\"" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "Value", kind: "scalar", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"dark \"" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Key: each key must be unique", example: "\"preferredTheme\"" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"dark \"" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Key, Value pair to store", required: ["Key", "Value", "Header"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<PutProjectSettingRequest>): PutProjectSettingRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.key = "";
|
||||
message.value = "";
|
||||
message.Key = "";
|
||||
message.Value = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<PutProjectSettingRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -253,14 +253,14 @@ class PutProjectSettingRequest$Type extends MessageType<PutProjectSettingRequest
|
||||
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);
|
||||
case /* api.RequestProjectHeader Header */ 1:
|
||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string Key = 2 [json_name = "Key"];*/ 2:
|
||||
message.key = reader.string();
|
||||
case /* string Key */ 2:
|
||||
message.Key = reader.string();
|
||||
break;
|
||||
case /* string Value = 3 [json_name = "Value"];*/ 3:
|
||||
message.value = reader.string();
|
||||
case /* string Value */ 3:
|
||||
message.Value = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -274,15 +274,15 @@ class PutProjectSettingRequest$Type extends MessageType<PutProjectSettingRequest
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: PutProjectSettingRequest, 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 Key = 2 [json_name = "Key"]; */
|
||||
if (message.key !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.key);
|
||||
/* string Value = 3 [json_name = "Value"]; */
|
||||
if (message.value !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.value);
|
||||
/* api.RequestProjectHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string Key = 2; */
|
||||
if (message.Key !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Key);
|
||||
/* string Value = 3; */
|
||||
if (message.Value !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.Value);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -297,14 +297,14 @@ export const PutProjectSettingRequest = new PutProjectSettingRequest$Type();
|
||||
class PutProjectSettingResult$Type extends MessageType<PutProjectSettingResult> {
|
||||
constructor() {
|
||||
super("vizapi.PutProjectSettingResult", [
|
||||
{ no: 1, name: "Key", kind: "scalar", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "Value", kind: "scalar", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"dark\"" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
{ no: 1, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"dark\"" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Key, Value pair response" } } });
|
||||
}
|
||||
create(value?: PartialMessage<PutProjectSettingResult>): PutProjectSettingResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.key = "";
|
||||
message.value = "";
|
||||
message.Key = "";
|
||||
message.Value = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<PutProjectSettingResult>(this, message, value);
|
||||
return message;
|
||||
@@ -314,11 +314,11 @@ class PutProjectSettingResult$Type extends MessageType<PutProjectSettingResult>
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Key = 1 [json_name = "Key"];*/ 1:
|
||||
message.key = reader.string();
|
||||
case /* string Key */ 1:
|
||||
message.Key = reader.string();
|
||||
break;
|
||||
case /* string Value = 2 [json_name = "Value"];*/ 2:
|
||||
message.value = reader.string();
|
||||
case /* string Value */ 2:
|
||||
message.Value = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -332,12 +332,12 @@ class PutProjectSettingResult$Type extends MessageType<PutProjectSettingResult>
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: PutProjectSettingResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Key = 1 [json_name = "Key"]; */
|
||||
if (message.key !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.key);
|
||||
/* string Value = 2 [json_name = "Value"]; */
|
||||
if (message.value !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.value);
|
||||
/* string Key = 1; */
|
||||
if (message.Key !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.Key);
|
||||
/* string Value = 2; */
|
||||
if (message.Value !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Value);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -352,13 +352,13 @@ export const PutProjectSettingResult = new PutProjectSettingResult$Type();
|
||||
class GetProjectSettingRequest$Type extends MessageType<GetProjectSettingRequest> {
|
||||
constructor() {
|
||||
super("vizapi.GetProjectSettingRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "Key", kind: "scalar", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Key of the project's setting to get", required: ["Header", "Key"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<GetProjectSettingRequest>): GetProjectSettingRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.key = "";
|
||||
message.Key = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetProjectSettingRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -368,11 +368,11 @@ class GetProjectSettingRequest$Type extends MessageType<GetProjectSettingRequest
|
||||
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);
|
||||
case /* api.RequestProjectHeader Header */ 1:
|
||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string Key = 2 [json_name = "Key"];*/ 2:
|
||||
message.key = reader.string();
|
||||
case /* string Key */ 2:
|
||||
message.Key = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -386,12 +386,12 @@ class GetProjectSettingRequest$Type extends MessageType<GetProjectSettingRequest
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: GetProjectSettingRequest, 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 Key = 2 [json_name = "Key"]; */
|
||||
if (message.key !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.key);
|
||||
/* api.RequestProjectHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string Key = 2; */
|
||||
if (message.Key !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Key);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -406,14 +406,14 @@ export const GetProjectSettingRequest = new GetProjectSettingRequest$Type();
|
||||
class GetProjectSettingResult$Type extends MessageType<GetProjectSettingResult> {
|
||||
constructor() {
|
||||
super("vizapi.GetProjectSettingResult", [
|
||||
{ no: 1, name: "Key", kind: "scalar", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "Value", kind: "scalar", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"dark\"" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
{ no: 1, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"dark\"" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Key, Value pair response" } } });
|
||||
}
|
||||
create(value?: PartialMessage<GetProjectSettingResult>): GetProjectSettingResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.key = "";
|
||||
message.value = "";
|
||||
message.Key = "";
|
||||
message.Value = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetProjectSettingResult>(this, message, value);
|
||||
return message;
|
||||
@@ -423,11 +423,11 @@ class GetProjectSettingResult$Type extends MessageType<GetProjectSettingResult>
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Key = 1 [json_name = "Key"];*/ 1:
|
||||
message.key = reader.string();
|
||||
case /* string Key */ 1:
|
||||
message.Key = reader.string();
|
||||
break;
|
||||
case /* string Value = 2 [json_name = "Value"];*/ 2:
|
||||
message.value = reader.string();
|
||||
case /* string Value */ 2:
|
||||
message.Value = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -441,12 +441,12 @@ class GetProjectSettingResult$Type extends MessageType<GetProjectSettingResult>
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: GetProjectSettingResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Key = 1 [json_name = "Key"]; */
|
||||
if (message.key !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.key);
|
||||
/* string Value = 2 [json_name = "Value"]; */
|
||||
if (message.value !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.value);
|
||||
/* string Key = 1; */
|
||||
if (message.Key !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.Key);
|
||||
/* string Value = 2; */
|
||||
if (message.Value !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Value);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -461,13 +461,13 @@ export const GetProjectSettingResult = new GetProjectSettingResult$Type();
|
||||
class DeleteProjectSettingRequest$Type extends MessageType<DeleteProjectSettingRequest> {
|
||||
constructor() {
|
||||
super("vizapi.DeleteProjectSettingRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "Key", kind: "scalar", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Key of the project's setting to delete", required: ["Header", "Key"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<DeleteProjectSettingRequest>): DeleteProjectSettingRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.key = "";
|
||||
message.Key = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DeleteProjectSettingRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -477,11 +477,11 @@ class DeleteProjectSettingRequest$Type extends MessageType<DeleteProjectSettingR
|
||||
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);
|
||||
case /* api.RequestProjectHeader Header */ 1:
|
||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string Key = 2 [json_name = "Key"];*/ 2:
|
||||
message.key = reader.string();
|
||||
case /* string Key */ 2:
|
||||
message.Key = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -495,12 +495,12 @@ class DeleteProjectSettingRequest$Type extends MessageType<DeleteProjectSettingR
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: DeleteProjectSettingRequest, 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 Key = 2 [json_name = "Key"]; */
|
||||
if (message.key !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.key);
|
||||
/* api.RequestProjectHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string Key = 2; */
|
||||
if (message.Key !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Key);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -553,7 +553,7 @@ export const DeleteProjectSettingResult = new DeleteProjectSettingResult$Type();
|
||||
class ListProjectSettingsRequest$Type extends MessageType<ListProjectSettingsRequest> {
|
||||
constructor() {
|
||||
super("vizapi.ListProjectSettingsRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Project's settings to list", required: ["Header"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<ListProjectSettingsRequest>): ListProjectSettingsRequest {
|
||||
@@ -567,8 +567,8 @@ class ListProjectSettingsRequest$Type extends MessageType<ListProjectSettingsReq
|
||||
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);
|
||||
case /* api.RequestProjectHeader Header */ 1:
|
||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -582,9 +582,9 @@ class ListProjectSettingsRequest$Type extends MessageType<ListProjectSettingsReq
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: ListProjectSettingsRequest, 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();
|
||||
/* api.RequestProjectHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -599,12 +599,12 @@ export const ListProjectSettingsRequest = new ListProjectSettingsRequest$Type();
|
||||
class ListProjectSettingsResult$Type extends MessageType<ListProjectSettingsResult> {
|
||||
constructor() {
|
||||
super("vizapi.ListProjectSettingsResult", [
|
||||
{ no: 1, name: "ProjectSettings", kind: "message", jsonName: "ProjectSettings", repeat: 1 /*RepeatType.PACKED*/, T: () => GetProjectSettingResult }
|
||||
{ no: 1, name: "ProjectSettings", kind: "message", localName: "ProjectSettings", jsonName: "ProjectSettings", repeat: 2 /*RepeatType.UNPACKED*/, T: () => GetProjectSettingResult }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "List of the project's settings" } } });
|
||||
}
|
||||
create(value?: PartialMessage<ListProjectSettingsResult>): ListProjectSettingsResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.projectSettings = [];
|
||||
message.ProjectSettings = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ListProjectSettingsResult>(this, message, value);
|
||||
return message;
|
||||
@@ -614,8 +614,8 @@ class ListProjectSettingsResult$Type extends MessageType<ListProjectSettingsResu
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated vizapi.GetProjectSettingResult ProjectSettings = 1 [json_name = "ProjectSettings"];*/ 1:
|
||||
message.projectSettings.push(GetProjectSettingResult.internalBinaryRead(reader, reader.uint32(), options));
|
||||
case /* repeated vizapi.GetProjectSettingResult ProjectSettings */ 1:
|
||||
message.ProjectSettings.push(GetProjectSettingResult.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -629,9 +629,9 @@ class ListProjectSettingsResult$Type extends MessageType<ListProjectSettingsResu
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: ListProjectSettingsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated vizapi.GetProjectSettingResult ProjectSettings = 1 [json_name = "ProjectSettings"]; */
|
||||
for (let i = 0; i < message.projectSettings.length; i++)
|
||||
GetProjectSettingResult.internalBinaryWrite(message.projectSettings[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated vizapi.GetProjectSettingResult ProjectSettings = 1; */
|
||||
for (let i = 0; i < message.ProjectSettings.length; i++)
|
||||
GetProjectSettingResult.internalBinaryWrite(message.ProjectSettings[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);
|
||||
@@ -646,7 +646,7 @@ export const ListProjectSettingsResult = new ListProjectSettingsResult$Type();
|
||||
class ListProjectOrganisationSettingsRequest$Type extends MessageType<ListProjectOrganisationSettingsRequest> {
|
||||
constructor() {
|
||||
super("vizapi.ListProjectOrganisationSettingsRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Project's organisation public settings to list", required: ["Header"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<ListProjectOrganisationSettingsRequest>): ListProjectOrganisationSettingsRequest {
|
||||
@@ -660,8 +660,8 @@ class ListProjectOrganisationSettingsRequest$Type extends MessageType<ListProjec
|
||||
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);
|
||||
case /* api.RequestProjectHeader Header */ 1:
|
||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -675,9 +675,9 @@ class ListProjectOrganisationSettingsRequest$Type extends MessageType<ListProjec
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: ListProjectOrganisationSettingsRequest, 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();
|
||||
/* api.RequestProjectHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -692,12 +692,12 @@ export const ListProjectOrganisationSettingsRequest = new ListProjectOrganisatio
|
||||
class ListProjectOrganisationSettingsResult$Type extends MessageType<ListProjectOrganisationSettingsResult> {
|
||||
constructor() {
|
||||
super("vizapi.ListProjectOrganisationSettingsResult", [
|
||||
{ no: 1, name: "OrganisationSettings", kind: "message", jsonName: "OrganisationSettings", repeat: 1 /*RepeatType.PACKED*/, T: () => GetOrganisationSettingResult }
|
||||
{ no: 1, name: "OrganisationSettings", kind: "message", localName: "OrganisationSettings", jsonName: "OrganisationSettings", repeat: 2 /*RepeatType.UNPACKED*/, T: () => GetOrganisationSettingResult }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "List of the project's organisation public settings" } } });
|
||||
}
|
||||
create(value?: PartialMessage<ListProjectOrganisationSettingsResult>): ListProjectOrganisationSettingsResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.organisationSettings = [];
|
||||
message.OrganisationSettings = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ListProjectOrganisationSettingsResult>(this, message, value);
|
||||
return message;
|
||||
@@ -707,8 +707,8 @@ class ListProjectOrganisationSettingsResult$Type extends MessageType<ListProject
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated vizapi.GetOrganisationSettingResult OrganisationSettings = 1 [json_name = "OrganisationSettings"];*/ 1:
|
||||
message.organisationSettings.push(GetOrganisationSettingResult.internalBinaryRead(reader, reader.uint32(), options));
|
||||
case /* repeated vizapi.GetOrganisationSettingResult OrganisationSettings */ 1:
|
||||
message.OrganisationSettings.push(GetOrganisationSettingResult.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -722,9 +722,9 @@ class ListProjectOrganisationSettingsResult$Type extends MessageType<ListProject
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: ListProjectOrganisationSettingsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated vizapi.GetOrganisationSettingResult OrganisationSettings = 1 [json_name = "OrganisationSettings"]; */
|
||||
for (let i = 0; i < message.organisationSettings.length; i++)
|
||||
GetOrganisationSettingResult.internalBinaryWrite(message.organisationSettings[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated vizapi.GetOrganisationSettingResult OrganisationSettings = 1; */
|
||||
for (let i = 0; i < message.OrganisationSettings.length; i++)
|
||||
GetOrganisationSettingResult.internalBinaryWrite(message.OrganisationSettings[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);
|
||||
@@ -739,12 +739,12 @@ export const ListProjectOrganisationSettingsResult = new ListProjectOrganisation
|
||||
class DeleteSettingsForProjectRequest$Type extends MessageType<DeleteSettingsForProjectRequest> {
|
||||
constructor() {
|
||||
super("vizapi.DeleteSettingsForProjectRequest", [
|
||||
{ no: 1, name: "ProjectID", kind: "scalar", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Project to delete settings from", required: ["ProjectID"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<DeleteSettingsForProjectRequest>): DeleteSettingsForProjectRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.projectID = "";
|
||||
message.ProjectID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DeleteSettingsForProjectRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -754,8 +754,8 @@ class DeleteSettingsForProjectRequest$Type extends MessageType<DeleteSettingsFor
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ProjectID = 1 [json_name = "ProjectID"];*/ 1:
|
||||
message.projectID = reader.string();
|
||||
case /* string ProjectID */ 1:
|
||||
message.ProjectID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -769,9 +769,9 @@ class DeleteSettingsForProjectRequest$Type extends MessageType<DeleteSettingsFor
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: DeleteSettingsForProjectRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ProjectID = 1 [json_name = "ProjectID"]; */
|
||||
if (message.projectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.projectID);
|
||||
/* string ProjectID = 1; */
|
||||
if (message.ProjectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "viz-tab.proto" (package "vizapi", syntax proto3)
|
||||
// tslint:disable
|
||||
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
||||
@@ -14,7 +14,7 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
||||
*/
|
||||
export interface ITabServiceClient {
|
||||
/**
|
||||
* @generated from protobuf rpc: List(vizapi.ListTabRequest) returns (vizapi.ListTabResult);
|
||||
* @generated from protobuf rpc: List
|
||||
*/
|
||||
list(input: ListTabRequest, options?: RpcOptions): UnaryCall<ListTabRequest, ListTabResult>;
|
||||
}
|
||||
@@ -28,7 +28,7 @@ export class TabServiceClient implements ITabServiceClient, ServiceInfo {
|
||||
constructor(private readonly _transport: RpcTransport) {
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: List(vizapi.ListTabRequest) returns (vizapi.ListTabResult);
|
||||
* @generated from protobuf rpc: List
|
||||
*/
|
||||
list(input: ListTabRequest, options?: RpcOptions): UnaryCall<ListTabRequest, ListTabResult> {
|
||||
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
||||
|
||||
38
viz-tab.ts
38
viz-tab.ts
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "viz-tab.proto" (package "vizapi", syntax proto3)
|
||||
// tslint:disable
|
||||
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
||||
@@ -18,9 +18,9 @@ export interface ListTabRequest {
|
||||
/**
|
||||
* Identifier of the Tab
|
||||
*
|
||||
* @generated from protobuf field: string TabID = 1 [json_name = "TabID"];
|
||||
* @generated from protobuf field: string TabID = 1
|
||||
*/
|
||||
tabID: string;
|
||||
TabID: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.ListTabResult
|
||||
@@ -29,20 +29,20 @@ export interface ListTabResult {
|
||||
/**
|
||||
* List of tabs
|
||||
*
|
||||
* @generated from protobuf field: string Result = 1 [json_name = "Result"];
|
||||
* @generated from protobuf field: string Result = 1
|
||||
*/
|
||||
result: string;
|
||||
Result: string;
|
||||
}
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ListTabRequest$Type extends MessageType<ListTabRequest> {
|
||||
constructor() {
|
||||
super("vizapi.ListTabRequest", [
|
||||
{ no: 1, name: "TabID", kind: "scalar", jsonName: "TabID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Tab" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
{ no: 1, name: "TabID", kind: "scalar", localName: "TabID", jsonName: "TabID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Tab" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["TabID"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<ListTabRequest>): ListTabRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.tabID = "";
|
||||
message.TabID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ListTabRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -52,8 +52,8 @@ class ListTabRequest$Type extends MessageType<ListTabRequest> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string TabID = 1 [json_name = "TabID"];*/ 1:
|
||||
message.tabID = reader.string();
|
||||
case /* string TabID */ 1:
|
||||
message.TabID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -67,9 +67,9 @@ class ListTabRequest$Type extends MessageType<ListTabRequest> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: ListTabRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string TabID = 1 [json_name = "TabID"]; */
|
||||
if (message.tabID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.tabID);
|
||||
/* string TabID = 1; */
|
||||
if (message.TabID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.TabID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -84,12 +84,12 @@ export const ListTabRequest = new ListTabRequest$Type();
|
||||
class ListTabResult$Type extends MessageType<ListTabResult> {
|
||||
constructor() {
|
||||
super("vizapi.ListTabResult", [
|
||||
{ no: 1, name: "Result", kind: "scalar", jsonName: "Result", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of tabs" } } }
|
||||
{ no: 1, name: "Result", kind: "scalar", localName: "Result", jsonName: "Result", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of tabs" } } }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<ListTabResult>): ListTabResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.result = "";
|
||||
message.Result = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ListTabResult>(this, message, value);
|
||||
return message;
|
||||
@@ -99,8 +99,8 @@ class ListTabResult$Type extends MessageType<ListTabResult> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Result = 1 [json_name = "Result"];*/ 1:
|
||||
message.result = reader.string();
|
||||
case /* string Result */ 1:
|
||||
message.Result = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -114,9 +114,9 @@ class ListTabResult$Type extends MessageType<ListTabResult> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: ListTabResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Result = 1 [json_name = "Result"]; */
|
||||
if (message.result !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.result);
|
||||
/* string Result = 1; */
|
||||
if (message.Result !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.Result);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
@@ -1,110 +0,0 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated from protobuf file "viz-translations.proto" (package "vizapi", syntax proto3)
|
||||
// tslint:disable
|
||||
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
||||
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
||||
import { TranslationsService } from "./viz-translations";
|
||||
import type { GetLanguagesResult } from "./viz-translations";
|
||||
import type { GetLanguagesRequest } from "./viz-translations";
|
||||
import type { DeleteAllTranslationsResult } from "./viz-translations";
|
||||
import type { DeleteAllTranslationsRequest } from "./viz-translations";
|
||||
import type { ListTranslationsResult } from "./viz-translations";
|
||||
import type { ListTranslationsRequest } from "./viz-translations";
|
||||
import type { DeleteTranslationsResult } from "./viz-translations";
|
||||
import type { DeleteTranslationsRequest } from "./viz-translations";
|
||||
import type { PutTranslationsResult } from "./viz-translations";
|
||||
import type { PutTranslationsRequest } from "./viz-translations";
|
||||
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
||||
import type { GetTranslationsResult } from "./viz-translations";
|
||||
import type { GetTranslationsRequest } from "./viz-translations";
|
||||
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
||||
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
||||
// ===================================
|
||||
// ============= Service =============
|
||||
// ===================================
|
||||
|
||||
/**
|
||||
* @generated from protobuf service vizapi.TranslationsService
|
||||
*/
|
||||
export interface ITranslationsServiceClient {
|
||||
/**
|
||||
* @generated from protobuf rpc: Get(vizapi.GetTranslationsRequest) returns (vizapi.GetTranslationsResult);
|
||||
*/
|
||||
get(input: GetTranslationsRequest, options?: RpcOptions): UnaryCall<GetTranslationsRequest, GetTranslationsResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: Put(vizapi.PutTranslationsRequest) returns (vizapi.PutTranslationsResult);
|
||||
*/
|
||||
put(input: PutTranslationsRequest, options?: RpcOptions): UnaryCall<PutTranslationsRequest, PutTranslationsResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: Delete(vizapi.DeleteTranslationsRequest) returns (vizapi.DeleteTranslationsResult);
|
||||
*/
|
||||
delete(input: DeleteTranslationsRequest, options?: RpcOptions): UnaryCall<DeleteTranslationsRequest, DeleteTranslationsResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: List(vizapi.ListTranslationsRequest) returns (vizapi.ListTranslationsResult);
|
||||
*/
|
||||
list(input: ListTranslationsRequest, options?: RpcOptions): UnaryCall<ListTranslationsRequest, ListTranslationsResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteAll(vizapi.DeleteAllTranslationsRequest) returns (vizapi.DeleteAllTranslationsResult);
|
||||
*/
|
||||
deleteAll(input: DeleteAllTranslationsRequest, options?: RpcOptions): UnaryCall<DeleteAllTranslationsRequest, DeleteAllTranslationsResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: GetLanguages(vizapi.GetLanguagesRequest) returns (vizapi.GetLanguagesResult);
|
||||
*/
|
||||
getLanguages(input: GetLanguagesRequest, options?: RpcOptions): UnaryCall<GetLanguagesRequest, GetLanguagesResult>;
|
||||
}
|
||||
// ===================================
|
||||
// ============= Service =============
|
||||
// ===================================
|
||||
|
||||
/**
|
||||
* @generated from protobuf service vizapi.TranslationsService
|
||||
*/
|
||||
export class TranslationsServiceClient implements ITranslationsServiceClient, ServiceInfo {
|
||||
typeName = TranslationsService.typeName;
|
||||
methods = TranslationsService.methods;
|
||||
options = TranslationsService.options;
|
||||
constructor(private readonly _transport: RpcTransport) {
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Get(vizapi.GetTranslationsRequest) returns (vizapi.GetTranslationsResult);
|
||||
*/
|
||||
get(input: GetTranslationsRequest, options?: RpcOptions): UnaryCall<GetTranslationsRequest, GetTranslationsResult> {
|
||||
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<GetTranslationsRequest, GetTranslationsResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Put(vizapi.PutTranslationsRequest) returns (vizapi.PutTranslationsResult);
|
||||
*/
|
||||
put(input: PutTranslationsRequest, options?: RpcOptions): UnaryCall<PutTranslationsRequest, PutTranslationsResult> {
|
||||
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<PutTranslationsRequest, PutTranslationsResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Delete(vizapi.DeleteTranslationsRequest) returns (vizapi.DeleteTranslationsResult);
|
||||
*/
|
||||
delete(input: DeleteTranslationsRequest, options?: RpcOptions): UnaryCall<DeleteTranslationsRequest, DeleteTranslationsResult> {
|
||||
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<DeleteTranslationsRequest, DeleteTranslationsResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: List(vizapi.ListTranslationsRequest) returns (vizapi.ListTranslationsResult);
|
||||
*/
|
||||
list(input: ListTranslationsRequest, options?: RpcOptions): UnaryCall<ListTranslationsRequest, ListTranslationsResult> {
|
||||
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ListTranslationsRequest, ListTranslationsResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteAll(vizapi.DeleteAllTranslationsRequest) returns (vizapi.DeleteAllTranslationsResult);
|
||||
*/
|
||||
deleteAll(input: DeleteAllTranslationsRequest, options?: RpcOptions): UnaryCall<DeleteAllTranslationsRequest, DeleteAllTranslationsResult> {
|
||||
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<DeleteAllTranslationsRequest, DeleteAllTranslationsResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: GetLanguages(vizapi.GetLanguagesRequest) returns (vizapi.GetLanguagesResult);
|
||||
*/
|
||||
getLanguages(input: GetLanguagesRequest, options?: RpcOptions): UnaryCall<GetLanguagesRequest, GetLanguagesResult> {
|
||||
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<GetLanguagesRequest, GetLanguagesResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
1193
viz-translations.ts
1193
viz-translations.ts
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "viz-user-settings.proto" (package "vizapi", syntax proto3)
|
||||
// tslint:disable
|
||||
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
||||
@@ -20,19 +20,19 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
||||
*/
|
||||
export interface IUserSettingsServiceClient {
|
||||
/**
|
||||
* @generated from protobuf rpc: Get(vizapi.GetUserSettingRequest) returns (vizapi.GetUserSettingResult);
|
||||
* @generated from protobuf rpc: Get
|
||||
*/
|
||||
get(input: GetUserSettingRequest, options?: RpcOptions): UnaryCall<GetUserSettingRequest, GetUserSettingResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: Put(vizapi.PutUserSettingRequest) returns (vizapi.PutUserSettingResult);
|
||||
* @generated from protobuf rpc: Put
|
||||
*/
|
||||
put(input: PutUserSettingRequest, options?: RpcOptions): UnaryCall<PutUserSettingRequest, PutUserSettingResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: Delete(vizapi.DeleteUserSettingRequest) returns (vizapi.DeleteUserSettingResult);
|
||||
* @generated from protobuf rpc: Delete
|
||||
*/
|
||||
delete(input: DeleteUserSettingRequest, options?: RpcOptions): UnaryCall<DeleteUserSettingRequest, DeleteUserSettingResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: List(vizapi.ListUserSettingsRequest) returns (vizapi.ListUserSettingsResult);
|
||||
* @generated from protobuf rpc: List
|
||||
*/
|
||||
list(input: ListUserSettingsRequest, options?: RpcOptions): UnaryCall<ListUserSettingsRequest, ListUserSettingsResult>;
|
||||
}
|
||||
@@ -46,28 +46,28 @@ export class UserSettingsServiceClient implements IUserSettingsServiceClient, Se
|
||||
constructor(private readonly _transport: RpcTransport) {
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Get(vizapi.GetUserSettingRequest) returns (vizapi.GetUserSettingResult);
|
||||
* @generated from protobuf rpc: Get
|
||||
*/
|
||||
get(input: GetUserSettingRequest, options?: RpcOptions): UnaryCall<GetUserSettingRequest, GetUserSettingResult> {
|
||||
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<GetUserSettingRequest, GetUserSettingResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Put(vizapi.PutUserSettingRequest) returns (vizapi.PutUserSettingResult);
|
||||
* @generated from protobuf rpc: Put
|
||||
*/
|
||||
put(input: PutUserSettingRequest, options?: RpcOptions): UnaryCall<PutUserSettingRequest, PutUserSettingResult> {
|
||||
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<PutUserSettingRequest, PutUserSettingResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Delete(vizapi.DeleteUserSettingRequest) returns (vizapi.DeleteUserSettingResult);
|
||||
* @generated from protobuf rpc: Delete
|
||||
*/
|
||||
delete(input: DeleteUserSettingRequest, options?: RpcOptions): UnaryCall<DeleteUserSettingRequest, DeleteUserSettingResult> {
|
||||
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<DeleteUserSettingRequest, DeleteUserSettingResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: List(vizapi.ListUserSettingsRequest) returns (vizapi.ListUserSettingsResult);
|
||||
* @generated from protobuf rpc: List
|
||||
*/
|
||||
list(input: ListUserSettingsRequest, options?: RpcOptions): UnaryCall<ListUserSettingsRequest, ListUserSettingsResult> {
|
||||
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "viz-user-settings.proto" (package "vizapi", syntax proto3)
|
||||
// tslint:disable
|
||||
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
||||
@@ -16,17 +16,17 @@ import { MessageType } from "@protobuf-ts/runtime";
|
||||
*/
|
||||
export interface UserSetting {
|
||||
/**
|
||||
* @generated from protobuf field: string UserID = 1 [json_name = "UserID"];
|
||||
* @generated from protobuf field: string UserID = 1
|
||||
*/
|
||||
userID: string;
|
||||
UserID: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Key = 2 [json_name = "Key"];
|
||||
* @generated from protobuf field: string Key = 2
|
||||
*/
|
||||
key: string;
|
||||
Key: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Value = 3 [json_name = "Value"];
|
||||
* @generated from protobuf field: string Value = 3
|
||||
*/
|
||||
value: string;
|
||||
Value: string;
|
||||
}
|
||||
/**
|
||||
* Key, Value pair to store
|
||||
@@ -37,13 +37,13 @@ export interface PutUserSettingRequest {
|
||||
/**
|
||||
* Key: each key must be unique
|
||||
*
|
||||
* @generated from protobuf field: string Key = 1 [json_name = "Key"];
|
||||
* @generated from protobuf field: string Key = 1
|
||||
*/
|
||||
key: string;
|
||||
Key: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Value = 2 [json_name = "Value"];
|
||||
* @generated from protobuf field: string Value = 2
|
||||
*/
|
||||
value: string;
|
||||
Value: string;
|
||||
}
|
||||
/**
|
||||
* Key, Value pair response
|
||||
@@ -52,13 +52,13 @@ export interface PutUserSettingRequest {
|
||||
*/
|
||||
export interface PutUserSettingResult {
|
||||
/**
|
||||
* @generated from protobuf field: string Key = 1 [json_name = "Key"];
|
||||
* @generated from protobuf field: string Key = 1
|
||||
*/
|
||||
key: string;
|
||||
Key: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Value = 2 [json_name = "Value"];
|
||||
* @generated from protobuf field: string Value = 2
|
||||
*/
|
||||
value: string;
|
||||
Value: string;
|
||||
}
|
||||
/**
|
||||
* Key of the user's setting to get
|
||||
@@ -67,9 +67,9 @@ export interface PutUserSettingResult {
|
||||
*/
|
||||
export interface GetUserSettingRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string Key = 2 [json_name = "Key"];
|
||||
* @generated from protobuf field: string Key = 2
|
||||
*/
|
||||
key: string;
|
||||
Key: string;
|
||||
}
|
||||
/**
|
||||
* Key, Value pair response
|
||||
@@ -78,13 +78,13 @@ export interface GetUserSettingRequest {
|
||||
*/
|
||||
export interface GetUserSettingResult {
|
||||
/**
|
||||
* @generated from protobuf field: string Key = 1 [json_name = "Key"];
|
||||
* @generated from protobuf field: string Key = 1
|
||||
*/
|
||||
key: string;
|
||||
Key: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Value = 2 [json_name = "Value"];
|
||||
* @generated from protobuf field: string Value = 2
|
||||
*/
|
||||
value: string;
|
||||
Value: string;
|
||||
}
|
||||
/**
|
||||
* Key of the user's setting to delete
|
||||
@@ -93,9 +93,9 @@ export interface GetUserSettingResult {
|
||||
*/
|
||||
export interface DeleteUserSettingRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string Key = 2 [json_name = "Key"];
|
||||
* @generated from protobuf field: string Key = 2
|
||||
*/
|
||||
key: string;
|
||||
Key: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.DeleteUserSettingResult
|
||||
@@ -114,24 +114,24 @@ export interface ListUserSettingsRequest {
|
||||
*/
|
||||
export interface ListUserSettingsResult {
|
||||
/**
|
||||
* @generated from protobuf field: repeated vizapi.GetUserSettingResult UserSettings = 1 [json_name = "UserSettings"];
|
||||
* @generated from protobuf field: repeated vizapi.GetUserSettingResult UserSettings = 1
|
||||
*/
|
||||
userSettings: GetUserSettingResult[];
|
||||
UserSettings: GetUserSettingResult[];
|
||||
}
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class UserSetting$Type extends MessageType<UserSetting> {
|
||||
constructor() {
|
||||
super("vizapi.UserSetting", [
|
||||
{ no: 1, name: "UserID", kind: "scalar", jsonName: "UserID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "Key", kind: "scalar", jsonName: "Key", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "Value", kind: "scalar", jsonName: "Value", T: 9 /*ScalarType.STRING*/ }
|
||||
{ no: 1, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<UserSetting>): UserSetting {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.userID = "";
|
||||
message.key = "";
|
||||
message.value = "";
|
||||
message.UserID = "";
|
||||
message.Key = "";
|
||||
message.Value = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<UserSetting>(this, message, value);
|
||||
return message;
|
||||
@@ -141,14 +141,14 @@ class UserSetting$Type extends MessageType<UserSetting> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string UserID = 1 [json_name = "UserID"];*/ 1:
|
||||
message.userID = reader.string();
|
||||
case /* string UserID */ 1:
|
||||
message.UserID = reader.string();
|
||||
break;
|
||||
case /* string Key = 2 [json_name = "Key"];*/ 2:
|
||||
message.key = reader.string();
|
||||
case /* string Key */ 2:
|
||||
message.Key = reader.string();
|
||||
break;
|
||||
case /* string Value = 3 [json_name = "Value"];*/ 3:
|
||||
message.value = reader.string();
|
||||
case /* string Value */ 3:
|
||||
message.Value = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -162,15 +162,15 @@ class UserSetting$Type extends MessageType<UserSetting> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: UserSetting, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string UserID = 1 [json_name = "UserID"]; */
|
||||
if (message.userID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.userID);
|
||||
/* string Key = 2 [json_name = "Key"]; */
|
||||
if (message.key !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.key);
|
||||
/* string Value = 3 [json_name = "Value"]; */
|
||||
if (message.value !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.value);
|
||||
/* string UserID = 1; */
|
||||
if (message.UserID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.UserID);
|
||||
/* string Key = 2; */
|
||||
if (message.Key !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Key);
|
||||
/* string Value = 3; */
|
||||
if (message.Value !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.Value);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -185,14 +185,14 @@ export const UserSetting = new UserSetting$Type();
|
||||
class PutUserSettingRequest$Type extends MessageType<PutUserSettingRequest> {
|
||||
constructor() {
|
||||
super("vizapi.PutUserSettingRequest", [
|
||||
{ no: 1, name: "Key", kind: "scalar", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Key: each key must be unique", example: "\"preferredTheme\"" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "Value", kind: "scalar", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"dark \"" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
{ no: 1, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Key: each key must be unique", example: "\"preferredTheme\"" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"dark \"" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Key, Value pair to store", required: ["Key", "Value"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<PutUserSettingRequest>): PutUserSettingRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.key = "";
|
||||
message.value = "";
|
||||
message.Key = "";
|
||||
message.Value = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<PutUserSettingRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -202,11 +202,11 @@ class PutUserSettingRequest$Type extends MessageType<PutUserSettingRequest> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Key = 1 [json_name = "Key"];*/ 1:
|
||||
message.key = reader.string();
|
||||
case /* string Key */ 1:
|
||||
message.Key = reader.string();
|
||||
break;
|
||||
case /* string Value = 2 [json_name = "Value"];*/ 2:
|
||||
message.value = reader.string();
|
||||
case /* string Value */ 2:
|
||||
message.Value = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -220,12 +220,12 @@ class PutUserSettingRequest$Type extends MessageType<PutUserSettingRequest> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: PutUserSettingRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Key = 1 [json_name = "Key"]; */
|
||||
if (message.key !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.key);
|
||||
/* string Value = 2 [json_name = "Value"]; */
|
||||
if (message.value !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.value);
|
||||
/* string Key = 1; */
|
||||
if (message.Key !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.Key);
|
||||
/* string Value = 2; */
|
||||
if (message.Value !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Value);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -240,14 +240,14 @@ export const PutUserSettingRequest = new PutUserSettingRequest$Type();
|
||||
class PutUserSettingResult$Type extends MessageType<PutUserSettingResult> {
|
||||
constructor() {
|
||||
super("vizapi.PutUserSettingResult", [
|
||||
{ no: 1, name: "Key", kind: "scalar", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "Value", kind: "scalar", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"dark\"" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
{ no: 1, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"dark\"" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Key, Value pair response" } } });
|
||||
}
|
||||
create(value?: PartialMessage<PutUserSettingResult>): PutUserSettingResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.key = "";
|
||||
message.value = "";
|
||||
message.Key = "";
|
||||
message.Value = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<PutUserSettingResult>(this, message, value);
|
||||
return message;
|
||||
@@ -257,11 +257,11 @@ class PutUserSettingResult$Type extends MessageType<PutUserSettingResult> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Key = 1 [json_name = "Key"];*/ 1:
|
||||
message.key = reader.string();
|
||||
case /* string Key */ 1:
|
||||
message.Key = reader.string();
|
||||
break;
|
||||
case /* string Value = 2 [json_name = "Value"];*/ 2:
|
||||
message.value = reader.string();
|
||||
case /* string Value */ 2:
|
||||
message.Value = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -275,12 +275,12 @@ class PutUserSettingResult$Type extends MessageType<PutUserSettingResult> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: PutUserSettingResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Key = 1 [json_name = "Key"]; */
|
||||
if (message.key !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.key);
|
||||
/* string Value = 2 [json_name = "Value"]; */
|
||||
if (message.value !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.value);
|
||||
/* string Key = 1; */
|
||||
if (message.Key !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.Key);
|
||||
/* string Value = 2; */
|
||||
if (message.Value !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Value);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -295,12 +295,12 @@ export const PutUserSettingResult = new PutUserSettingResult$Type();
|
||||
class GetUserSettingRequest$Type extends MessageType<GetUserSettingRequest> {
|
||||
constructor() {
|
||||
super("vizapi.GetUserSettingRequest", [
|
||||
{ no: 2, name: "Key", kind: "scalar", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
{ no: 2, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Key of the user's setting to get", required: ["Key"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<GetUserSettingRequest>): GetUserSettingRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.key = "";
|
||||
message.Key = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetUserSettingRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -310,8 +310,8 @@ class GetUserSettingRequest$Type extends MessageType<GetUserSettingRequest> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Key = 2 [json_name = "Key"];*/ 2:
|
||||
message.key = reader.string();
|
||||
case /* string Key */ 2:
|
||||
message.Key = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -325,9 +325,9 @@ class GetUserSettingRequest$Type extends MessageType<GetUserSettingRequest> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: GetUserSettingRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Key = 2 [json_name = "Key"]; */
|
||||
if (message.key !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.key);
|
||||
/* string Key = 2; */
|
||||
if (message.Key !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Key);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -342,14 +342,14 @@ export const GetUserSettingRequest = new GetUserSettingRequest$Type();
|
||||
class GetUserSettingResult$Type extends MessageType<GetUserSettingResult> {
|
||||
constructor() {
|
||||
super("vizapi.GetUserSettingResult", [
|
||||
{ no: 1, name: "Key", kind: "scalar", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "Value", kind: "scalar", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"dark\"" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
{ no: 1, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"dark\"" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Key, Value pair response" } } });
|
||||
}
|
||||
create(value?: PartialMessage<GetUserSettingResult>): GetUserSettingResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.key = "";
|
||||
message.value = "";
|
||||
message.Key = "";
|
||||
message.Value = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetUserSettingResult>(this, message, value);
|
||||
return message;
|
||||
@@ -359,11 +359,11 @@ class GetUserSettingResult$Type extends MessageType<GetUserSettingResult> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Key = 1 [json_name = "Key"];*/ 1:
|
||||
message.key = reader.string();
|
||||
case /* string Key */ 1:
|
||||
message.Key = reader.string();
|
||||
break;
|
||||
case /* string Value = 2 [json_name = "Value"];*/ 2:
|
||||
message.value = reader.string();
|
||||
case /* string Value */ 2:
|
||||
message.Value = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -377,12 +377,12 @@ class GetUserSettingResult$Type extends MessageType<GetUserSettingResult> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: GetUserSettingResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Key = 1 [json_name = "Key"]; */
|
||||
if (message.key !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.key);
|
||||
/* string Value = 2 [json_name = "Value"]; */
|
||||
if (message.value !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.value);
|
||||
/* string Key = 1; */
|
||||
if (message.Key !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.Key);
|
||||
/* string Value = 2; */
|
||||
if (message.Value !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Value);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -397,12 +397,12 @@ export const GetUserSettingResult = new GetUserSettingResult$Type();
|
||||
class DeleteUserSettingRequest$Type extends MessageType<DeleteUserSettingRequest> {
|
||||
constructor() {
|
||||
super("vizapi.DeleteUserSettingRequest", [
|
||||
{ no: 2, name: "Key", kind: "scalar", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
{ no: 2, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Key of the user's setting to delete", required: ["Key"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<DeleteUserSettingRequest>): DeleteUserSettingRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.key = "";
|
||||
message.Key = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DeleteUserSettingRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -412,8 +412,8 @@ class DeleteUserSettingRequest$Type extends MessageType<DeleteUserSettingRequest
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Key = 2 [json_name = "Key"];*/ 2:
|
||||
message.key = reader.string();
|
||||
case /* string Key */ 2:
|
||||
message.Key = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -427,9 +427,9 @@ class DeleteUserSettingRequest$Type extends MessageType<DeleteUserSettingRequest
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: DeleteUserSettingRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Key = 2 [json_name = "Key"]; */
|
||||
if (message.key !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.key);
|
||||
/* string Key = 2; */
|
||||
if (message.Key !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Key);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -520,12 +520,12 @@ export const ListUserSettingsRequest = new ListUserSettingsRequest$Type();
|
||||
class ListUserSettingsResult$Type extends MessageType<ListUserSettingsResult> {
|
||||
constructor() {
|
||||
super("vizapi.ListUserSettingsResult", [
|
||||
{ no: 1, name: "UserSettings", kind: "message", jsonName: "UserSettings", repeat: 1 /*RepeatType.PACKED*/, T: () => GetUserSettingResult }
|
||||
{ no: 1, name: "UserSettings", kind: "message", localName: "UserSettings", jsonName: "UserSettings", repeat: 2 /*RepeatType.UNPACKED*/, T: () => GetUserSettingResult }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "List of the user's settings" } } });
|
||||
}
|
||||
create(value?: PartialMessage<ListUserSettingsResult>): ListUserSettingsResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.userSettings = [];
|
||||
message.UserSettings = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ListUserSettingsResult>(this, message, value);
|
||||
return message;
|
||||
@@ -535,8 +535,8 @@ class ListUserSettingsResult$Type extends MessageType<ListUserSettingsResult> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated vizapi.GetUserSettingResult UserSettings = 1 [json_name = "UserSettings"];*/ 1:
|
||||
message.userSettings.push(GetUserSettingResult.internalBinaryRead(reader, reader.uint32(), options));
|
||||
case /* repeated vizapi.GetUserSettingResult UserSettings */ 1:
|
||||
message.UserSettings.push(GetUserSettingResult.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -550,9 +550,9 @@ class ListUserSettingsResult$Type extends MessageType<ListUserSettingsResult> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: ListUserSettingsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated vizapi.GetUserSettingResult UserSettings = 1 [json_name = "UserSettings"]; */
|
||||
for (let i = 0; i < message.userSettings.length; i++)
|
||||
GetUserSettingResult.internalBinaryWrite(message.userSettings[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated vizapi.GetUserSettingResult UserSettings = 1; */
|
||||
for (let i = 0; i < message.UserSettings.length; i++)
|
||||
GetUserSettingResult.internalBinaryWrite(message.UserSettings[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);
|
||||
|
||||
@@ -1,11 +1,14 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "viz-view.proto" (package "vizapi", syntax proto3)
|
||||
// tslint:disable
|
||||
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
||||
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
||||
import { ViewService } from "./viz-view";
|
||||
import type { CrossExtractRequest } from "./viz-view";
|
||||
import type { ExtractResult } from "./viz-view";
|
||||
import type { ExtractRequest } from "./viz-view";
|
||||
import type { SetOwnerViewResult } from "./viz-view";
|
||||
import type { SetOwnerViewRequest } from "./viz-view";
|
||||
import type { DeleteViewsForProjectResult } from "./viz-view";
|
||||
import type { DeleteViewsForProjectRequest } from "./viz-view";
|
||||
import type { ListViewResult } from "./viz-view";
|
||||
@@ -26,33 +29,41 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
||||
*/
|
||||
export interface IViewServiceClient {
|
||||
/**
|
||||
* @generated from protobuf rpc: Get(vizapi.GetViewRequest) returns (vizapi.GetViewResult);
|
||||
* @generated from protobuf rpc: Get
|
||||
*/
|
||||
get(input: GetViewRequest, options?: RpcOptions): UnaryCall<GetViewRequest, GetViewResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: Create(vizapi.CreateViewRequest) returns (vizapi.CreateViewResult);
|
||||
* @generated from protobuf rpc: Create
|
||||
*/
|
||||
create(input: CreateViewRequest, options?: RpcOptions): UnaryCall<CreateViewRequest, CreateViewResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: Update(vizapi.UpdateViewRequest) returns (vizapi.UpdateViewResult);
|
||||
* @generated from protobuf rpc: Update
|
||||
*/
|
||||
update(input: UpdateViewRequest, options?: RpcOptions): UnaryCall<UpdateViewRequest, UpdateViewResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: Delete(vizapi.DeleteViewRequest) returns (vizapi.DeleteViewResult);
|
||||
* @generated from protobuf rpc: Delete
|
||||
*/
|
||||
delete(input: DeleteViewRequest, options?: RpcOptions): UnaryCall<DeleteViewRequest, DeleteViewResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: List(vizapi.ListViewRequest) returns (vizapi.ListViewResult);
|
||||
* @generated from protobuf rpc: List
|
||||
*/
|
||||
list(input: ListViewRequest, options?: RpcOptions): UnaryCall<ListViewRequest, ListViewResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteViewsForProject(vizapi.DeleteViewsForProjectRequest) returns (vizapi.DeleteViewsForProjectResult);
|
||||
* @generated from protobuf rpc: DeleteViewsForProject
|
||||
*/
|
||||
deleteViewsForProject(input: DeleteViewsForProjectRequest, options?: RpcOptions): UnaryCall<DeleteViewsForProjectRequest, DeleteViewsForProjectResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: Extract(vizapi.ExtractRequest) returns (vizapi.ExtractResult);
|
||||
* @generated from protobuf rpc: SetOwner
|
||||
*/
|
||||
setOwner(input: SetOwnerViewRequest, options?: RpcOptions): UnaryCall<SetOwnerViewRequest, SetOwnerViewResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: Extract
|
||||
*/
|
||||
extract(input: ExtractRequest, options?: RpcOptions): UnaryCall<ExtractRequest, ExtractResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: CrossExtract
|
||||
*/
|
||||
crossExtract(input: CrossExtractRequest, options?: RpcOptions): UnaryCall<CrossExtractRequest, ExtractResult>;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf service vizapi.ViewService
|
||||
@@ -64,52 +75,66 @@ export class ViewServiceClient implements IViewServiceClient, ServiceInfo {
|
||||
constructor(private readonly _transport: RpcTransport) {
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Get(vizapi.GetViewRequest) returns (vizapi.GetViewResult);
|
||||
* @generated from protobuf rpc: Get
|
||||
*/
|
||||
get(input: GetViewRequest, options?: RpcOptions): UnaryCall<GetViewRequest, GetViewResult> {
|
||||
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<GetViewRequest, GetViewResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Create(vizapi.CreateViewRequest) returns (vizapi.CreateViewResult);
|
||||
* @generated from protobuf rpc: Create
|
||||
*/
|
||||
create(input: CreateViewRequest, options?: RpcOptions): UnaryCall<CreateViewRequest, CreateViewResult> {
|
||||
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<CreateViewRequest, CreateViewResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Update(vizapi.UpdateViewRequest) returns (vizapi.UpdateViewResult);
|
||||
* @generated from protobuf rpc: Update
|
||||
*/
|
||||
update(input: UpdateViewRequest, options?: RpcOptions): UnaryCall<UpdateViewRequest, UpdateViewResult> {
|
||||
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<UpdateViewRequest, UpdateViewResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Delete(vizapi.DeleteViewRequest) returns (vizapi.DeleteViewResult);
|
||||
* @generated from protobuf rpc: Delete
|
||||
*/
|
||||
delete(input: DeleteViewRequest, options?: RpcOptions): UnaryCall<DeleteViewRequest, DeleteViewResult> {
|
||||
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<DeleteViewRequest, DeleteViewResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: List(vizapi.ListViewRequest) returns (vizapi.ListViewResult);
|
||||
* @generated from protobuf rpc: List
|
||||
*/
|
||||
list(input: ListViewRequest, options?: RpcOptions): UnaryCall<ListViewRequest, ListViewResult> {
|
||||
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ListViewRequest, ListViewResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteViewsForProject(vizapi.DeleteViewsForProjectRequest) returns (vizapi.DeleteViewsForProjectResult);
|
||||
* @generated from protobuf rpc: DeleteViewsForProject
|
||||
*/
|
||||
deleteViewsForProject(input: DeleteViewsForProjectRequest, options?: RpcOptions): UnaryCall<DeleteViewsForProjectRequest, DeleteViewsForProjectResult> {
|
||||
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<DeleteViewsForProjectRequest, DeleteViewsForProjectResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Extract(vizapi.ExtractRequest) returns (vizapi.ExtractResult);
|
||||
* @generated from protobuf rpc: SetOwner
|
||||
*/
|
||||
setOwner(input: SetOwnerViewRequest, options?: RpcOptions): UnaryCall<SetOwnerViewRequest, SetOwnerViewResult> {
|
||||
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<SetOwnerViewRequest, SetOwnerViewResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Extract
|
||||
*/
|
||||
extract(input: ExtractRequest, options?: RpcOptions): UnaryCall<ExtractRequest, ExtractResult> {
|
||||
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ExtractRequest, ExtractResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CrossExtract
|
||||
*/
|
||||
crossExtract(input: CrossExtractRequest, options?: RpcOptions): UnaryCall<CrossExtractRequest, ExtractResult> {
|
||||
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<CrossExtractRequest, ExtractResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
|
||||
1375
viz-view.ts
1375
viz-view.ts
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user