You've already forked npm-viz-sdk
Latest generation
This commit is contained in:
1100
core/shared.ts
1100
core/shared.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.9.6 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "core/unitOfMeasures.proto" (package "api", syntax proto3)
|
||||
// tslint:disable
|
||||
/**
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.9.6 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";
|
||||
|
||||
36
counter.ts
36
counter.ts
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.9.6 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";
|
||||
@@ -19,11 +19,11 @@ export interface NextProjectCounterRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
|
||||
*/
|
||||
header?: RequestProjectHeader;
|
||||
Header?: RequestProjectHeader;
|
||||
/**
|
||||
* @generated from protobuf field: string Key = 2 [json_name = "Key"];
|
||||
*/
|
||||
key: string;
|
||||
Key: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.NextCounterResult
|
||||
@@ -32,19 +32,19 @@ export interface NextCounterResult {
|
||||
/**
|
||||
* @generated from protobuf field: int64 Value = 1 [json_name = "Value"];
|
||||
*/
|
||||
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;
|
||||
@@ -55,10 +55,10 @@ class NextProjectCounterRequest$Type extends MessageType<NextProjectCounterReque
|
||||
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);
|
||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string Key = 2 [json_name = "Key"];*/ 2:
|
||||
message.key = reader.string();
|
||||
message.Key = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -73,11 +73,11 @@ class NextProjectCounterRequest$Type extends MessageType<NextProjectCounterReque
|
||||
}
|
||||
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();
|
||||
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);
|
||||
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;
|
||||
@@ -108,7 +108,7 @@ class NextCounterResult$Type extends MessageType<NextCounterResult> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* int64 Value = 1 [json_name = "Value"];*/ 1:
|
||||
message.value = reader.int64().toBigInt();
|
||||
message.Value = reader.int64().toBigInt();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -123,8 +123,8 @@ class NextCounterResult$Type extends MessageType<NextCounterResult> {
|
||||
}
|
||||
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);
|
||||
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);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "google/api/field_behavior.proto" (package "google.api", syntax proto3)
|
||||
// tslint:disable
|
||||
//
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "google/api/http.proto" (package "google.api", syntax proto3)
|
||||
// tslint:disable
|
||||
//
|
||||
@@ -51,7 +51,7 @@ export interface Http {
|
||||
*
|
||||
* @generated from protobuf field: bool fully_decode_reserved_expansion = 2;
|
||||
*/
|
||||
fullyDecodeReservedExpansion: boolean;
|
||||
fully_decode_reserved_expansion: boolean;
|
||||
}
|
||||
/**
|
||||
* # gRPC Transcoding
|
||||
@@ -414,7 +414,7 @@ export interface HttpRule {
|
||||
*
|
||||
* @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,
|
||||
@@ -422,7 +422,7 @@ export interface HttpRule {
|
||||
*
|
||||
* @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.
|
||||
@@ -448,13 +448,13 @@ 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: 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: 1 /*RepeatType.PACKED*/, 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;
|
||||
@@ -615,11 +615,11 @@ class HttpRule$Type extends MessageType<HttpRule> {
|
||||
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);
|
||||
if (message.response_body !== "")
|
||||
writer.tag(12, WireType.LengthDelimited).string(message.response_body);
|
||||
/* 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();
|
||||
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.9.6 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "google/api/httpbody.proto" (package "google.api", syntax proto3)
|
||||
// tslint:disable
|
||||
//
|
||||
@@ -75,7 +75,7 @@ export interface HttpBody {
|
||||
*
|
||||
* @generated from protobuf field: string content_type = 1;
|
||||
*/
|
||||
contentType: string;
|
||||
content_type: string;
|
||||
/**
|
||||
* The HTTP request/response body as raw binary.
|
||||
*
|
||||
@@ -94,14 +94,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 }
|
||||
]);
|
||||
}
|
||||
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 +114,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 +135,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.9.6 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "google/protobuf/any.proto" (package "google.protobuf", syntax proto3)
|
||||
// tslint:disable
|
||||
//
|
||||
@@ -165,7 +165,7 @@ export interface Any {
|
||||
*
|
||||
* @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.
|
||||
*
|
||||
@@ -177,7 +177,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 +188,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 +196,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 +219,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 +252,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 +272,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 +284,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 +302,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.9.6 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "google/protobuf/api.proto" (package "google.protobuf", syntax proto3)
|
||||
// tslint:disable
|
||||
//
|
||||
@@ -109,7 +109,7 @@ export interface Api {
|
||||
*
|
||||
* @generated from protobuf field: google.protobuf.SourceContext source_context = 5;
|
||||
*/
|
||||
sourceContext?: SourceContext;
|
||||
source_context?: SourceContext;
|
||||
/**
|
||||
* Included interfaces. See [Mixin][].
|
||||
*
|
||||
@@ -140,25 +140,25 @@ export interface Method {
|
||||
*
|
||||
* @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;
|
||||
*/
|
||||
requestStreaming: boolean;
|
||||
request_streaming: boolean;
|
||||
/**
|
||||
* The URL of the output message type.
|
||||
*
|
||||
* @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;
|
||||
*/
|
||||
responseStreaming: boolean;
|
||||
response_streaming: boolean;
|
||||
/**
|
||||
* Any metadata attached to the method.
|
||||
*
|
||||
@@ -277,7 +277,7 @@ class Api$Type extends MessageType<Api> {
|
||||
{ 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: 4, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 5, name: "source_context", kind: "message", T: () => SourceContext },
|
||||
{ no: 5, name: "source_context", kind: "message", localName: "source_context", 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_"] }
|
||||
]);
|
||||
@@ -312,7 +312,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));
|
||||
@@ -345,8 +345,8 @@ 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();
|
||||
@@ -368,10 +368,10 @@ 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: 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: 1 /*RepeatType.PACKED*/, T: () => Option },
|
||||
{ no: 7, name: "syntax", kind: "enum", T: () => ["google.protobuf.Syntax", Syntax, "SYNTAX_"] }
|
||||
]);
|
||||
@@ -379,10 +379,10 @@ class Method$Type extends MessageType<Method> {
|
||||
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;
|
||||
if (value !== undefined)
|
||||
@@ -398,16 +398,16 @@ 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));
|
||||
@@ -431,17 +431,17 @@ 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();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "google/protobuf/compiler/plugin.proto" (package "google.protobuf.compiler", syntax proto2)
|
||||
// tslint:disable
|
||||
//
|
||||
@@ -98,7 +98,7 @@ export interface CodeGeneratorRequest {
|
||||
*
|
||||
* @generated from protobuf field: repeated string file_to_generate = 1;
|
||||
*/
|
||||
fileToGenerate: string[];
|
||||
file_to_generate: string[];
|
||||
/**
|
||||
* The generator parameter passed on the command-line.
|
||||
*
|
||||
@@ -123,13 +123,13 @@ export interface CodeGeneratorRequest {
|
||||
*
|
||||
* @generated from protobuf field: repeated google.protobuf.FileDescriptorProto proto_file = 15;
|
||||
*/
|
||||
protoFile: FileDescriptorProto[];
|
||||
proto_file: FileDescriptorProto[];
|
||||
/**
|
||||
* The version number of protocol compiler.
|
||||
*
|
||||
* @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.
|
||||
@@ -218,7 +218,7 @@ export interface CodeGeneratorResponse_File {
|
||||
*
|
||||
* @generated from protobuf field: optional string insertion_point = 2;
|
||||
*/
|
||||
insertionPoint?: string;
|
||||
insertion_point?: string;
|
||||
/**
|
||||
* The file contents.
|
||||
*
|
||||
@@ -297,16 +297,16 @@ 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: 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 = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CodeGeneratorRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -317,16 +317,16 @@ 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 /* 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 +341,17 @@ 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();
|
||||
for (let i = 0; i < message.proto_file.length; i++)
|
||||
FileDescriptorProto.internalBinaryWrite(message.proto_file[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();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -421,7 +421,7 @@ 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: 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*/ }
|
||||
]);
|
||||
}
|
||||
@@ -440,7 +440,7 @@ 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();
|
||||
@@ -461,8 +461,8 @@ 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);
|
||||
|
||||
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.9.6 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "google/protobuf/duration.proto" (package "google.protobuf", syntax proto3)
|
||||
// tslint:disable
|
||||
//
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "google/protobuf/empty.proto" (package "google.protobuf", syntax proto3)
|
||||
// tslint:disable
|
||||
//
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "google/protobuf/field_mask.proto" (package "google.protobuf", syntax proto3)
|
||||
// tslint:disable
|
||||
//
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "google/protobuf/source_context.proto" (package "google.protobuf", syntax proto3)
|
||||
// tslint:disable
|
||||
//
|
||||
@@ -54,18 +54,18 @@ export interface SourceContext {
|
||||
*
|
||||
* @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.9.6 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "google/protobuf/struct.proto" (package "google.protobuf", syntax proto3)
|
||||
// tslint:disable
|
||||
//
|
||||
@@ -84,53 +84,53 @@ export interface 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;
|
||||
*/
|
||||
nullValue: NullValue;
|
||||
null_value: NullValue;
|
||||
} | {
|
||||
oneofKind: "numberValue";
|
||||
oneofKind: "number_value";
|
||||
/**
|
||||
* Represents a double value.
|
||||
*
|
||||
* @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;
|
||||
*/
|
||||
stringValue: string;
|
||||
string_value: string;
|
||||
} | {
|
||||
oneofKind: "boolValue";
|
||||
oneofKind: "bool_value";
|
||||
/**
|
||||
* Represents a boolean value.
|
||||
*
|
||||
* @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;
|
||||
*/
|
||||
structValue: Struct;
|
||||
struct_value: Struct;
|
||||
} | {
|
||||
oneofKind: "listValue";
|
||||
oneofKind: "list_value";
|
||||
/**
|
||||
* Represents a repeated `Value`.
|
||||
*
|
||||
* @generated from protobuf field: google.protobuf.ListValue list_value = 6;
|
||||
*/
|
||||
listValue: ListValue;
|
||||
list_value: ListValue;
|
||||
} | {
|
||||
oneofKind: undefined;
|
||||
};
|
||||
@@ -260,12 +260,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 +276,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 +304,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 +341,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 +388,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);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "google/protobuf/timestamp.proto" (package "google.protobuf", syntax proto3)
|
||||
// tslint:disable
|
||||
//
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "google/protobuf/type.proto" (package "google.protobuf", syntax proto3)
|
||||
// tslint:disable
|
||||
//
|
||||
@@ -78,7 +78,7 @@ export interface Type {
|
||||
*
|
||||
* @generated from protobuf field: google.protobuf.SourceContext source_context = 5;
|
||||
*/
|
||||
sourceContext?: SourceContext;
|
||||
source_context?: SourceContext;
|
||||
/**
|
||||
* The source syntax.
|
||||
*
|
||||
@@ -122,14 +122,14 @@ export interface Field {
|
||||
*
|
||||
* @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;
|
||||
*/
|
||||
oneofIndex: number;
|
||||
oneof_index: number;
|
||||
/**
|
||||
* Whether to use alternative packed wire representation.
|
||||
*
|
||||
@@ -147,13 +147,13 @@ export interface Field {
|
||||
*
|
||||
* @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;
|
||||
*/
|
||||
defaultValue: string;
|
||||
default_value: string;
|
||||
}
|
||||
/**
|
||||
* Basic field types.
|
||||
@@ -336,7 +336,7 @@ export interface Enum {
|
||||
*
|
||||
* @generated from protobuf field: google.protobuf.SourceContext source_context = 4;
|
||||
*/
|
||||
sourceContext?: SourceContext;
|
||||
source_context?: SourceContext;
|
||||
/**
|
||||
* The source syntax.
|
||||
*
|
||||
@@ -422,7 +422,7 @@ class Type$Type extends MessageType<Type> {
|
||||
{ no: 2, name: "fields", kind: "message", repeat: 1 /*RepeatType.PACKED*/, 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: 5, name: "source_context", kind: "message", localName: "source_context", T: () => SourceContext },
|
||||
{ no: 6, name: "syntax", kind: "enum", T: () => ["google.protobuf.Syntax", Syntax, "SYNTAX_"] }
|
||||
]);
|
||||
}
|
||||
@@ -455,7 +455,7 @@ 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();
|
||||
@@ -485,8 +485,8 @@ 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);
|
||||
@@ -508,12 +508,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: 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 +522,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 +550,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 +562,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 +592,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 +604,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);
|
||||
@@ -626,7 +626,7 @@ class Enum$Type extends MessageType<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: 4, name: "source_context", kind: "message", localName: "source_context", T: () => SourceContext },
|
||||
{ no: 5, name: "syntax", kind: "enum", T: () => ["google.protobuf.Syntax", Syntax, "SYNTAX_"] }
|
||||
]);
|
||||
}
|
||||
@@ -655,7 +655,7 @@ 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();
|
||||
@@ -682,8 +682,8 @@ 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);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "google/protobuf/wrappers.proto" (package "google.protobuf", syntax proto3)
|
||||
// tslint:disable
|
||||
//
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.9.6 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.9.6 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "google/rpc/error_details.proto" (package "google.rpc", syntax proto3)
|
||||
// tslint:disable
|
||||
//
|
||||
@@ -49,7 +49,7 @@ export interface RetryInfo {
|
||||
*
|
||||
* @generated from protobuf field: google.protobuf.Duration retry_delay = 1;
|
||||
*/
|
||||
retryDelay?: Duration;
|
||||
retry_delay?: Duration;
|
||||
}
|
||||
/**
|
||||
* Describes additional debugging info.
|
||||
@@ -62,7 +62,7 @@ export interface DebugInfo {
|
||||
*
|
||||
* @generated from protobuf field: repeated string stack_entries = 1;
|
||||
*/
|
||||
stackEntries: string[];
|
||||
stack_entries: string[];
|
||||
/**
|
||||
* Additional debugging information provided by the server.
|
||||
*
|
||||
@@ -182,7 +182,7 @@ export interface BadRequest {
|
||||
*
|
||||
* @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.
|
||||
@@ -218,14 +218,14 @@ export interface RequestInfo {
|
||||
*
|
||||
* @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;
|
||||
*/
|
||||
servingData: string;
|
||||
serving_data: string;
|
||||
}
|
||||
/**
|
||||
* Describes the resource that is being accessed.
|
||||
@@ -240,7 +240,7 @@ export interface ResourceInfo {
|
||||
*
|
||||
* @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
|
||||
@@ -248,7 +248,7 @@ export interface ResourceInfo {
|
||||
*
|
||||
* @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
|
||||
@@ -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);
|
||||
@@ -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: 1 /*RepeatType.PACKED*/, 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);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "google/rpc/status.proto" (package "google.rpc", syntax proto3)
|
||||
// tslint:disable
|
||||
//
|
||||
|
||||
282
openapiv2.ts
282
openapiv2.ts
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "openapiv2.proto" (package "grpc.gateway.protoc_gen_openapiv2.options", syntax proto3)
|
||||
// tslint:disable
|
||||
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
||||
@@ -79,7 +79,7 @@ export interface Swagger {
|
||||
*
|
||||
* @generated from protobuf field: string base_path = 4;
|
||||
*/
|
||||
basePath: string;
|
||||
base_path: string;
|
||||
/**
|
||||
* The transfer protocol of the API. Values MUST be from the list: "http",
|
||||
* "https", "ws", "wss". If the schemes is not included, the default scheme to
|
||||
@@ -118,7 +118,7 @@ export interface Swagger {
|
||||
*
|
||||
* @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11;
|
||||
*/
|
||||
securityDefinitions?: SecurityDefinitions;
|
||||
security_definitions?: SecurityDefinitions;
|
||||
/**
|
||||
* A declaration of which security schemes are applied for the API as a whole.
|
||||
* The list of values describes alternative security schemes that can be used
|
||||
@@ -133,7 +133,7 @@ export interface Swagger {
|
||||
*
|
||||
* @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14;
|
||||
*/
|
||||
externalDocs?: ExternalDocumentation;
|
||||
external_docs?: ExternalDocumentation;
|
||||
/**
|
||||
* @generated from protobuf field: map<string, google.protobuf.Value> extensions = 15;
|
||||
*/
|
||||
@@ -197,7 +197,7 @@ export interface Operation {
|
||||
*
|
||||
* @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4;
|
||||
*/
|
||||
externalDocs?: ExternalDocumentation;
|
||||
external_docs?: ExternalDocumentation;
|
||||
/**
|
||||
* Unique string used to identify the operation. The id MUST be unique among
|
||||
* all operations described in the API. Tools and libraries MAY use the
|
||||
@@ -206,7 +206,7 @@ export interface Operation {
|
||||
*
|
||||
* @generated from protobuf field: string operation_id = 5;
|
||||
*/
|
||||
operationId: string;
|
||||
operation_id: string;
|
||||
/**
|
||||
* A list of MIME types the operation can consume. This overrides the consumes
|
||||
* definition at the OpenAPI Object. An empty value MAY be used to clear the
|
||||
@@ -402,7 +402,7 @@ export interface Info {
|
||||
*
|
||||
* @generated from protobuf field: string terms_of_service = 3;
|
||||
*/
|
||||
termsOfService: string;
|
||||
terms_of_service: string;
|
||||
/**
|
||||
* The contact information for the exposed API.
|
||||
*
|
||||
@@ -558,7 +558,7 @@ export interface Schema {
|
||||
/**
|
||||
* @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1;
|
||||
*/
|
||||
jsonSchema?: JSONSchema;
|
||||
json_schema?: JSONSchema;
|
||||
/**
|
||||
* Adds support for polymorphism. The discriminator is the schema property
|
||||
* name that is used to differentiate between other schema that inherit this
|
||||
@@ -578,13 +578,13 @@ export interface Schema {
|
||||
*
|
||||
* @generated from protobuf field: bool read_only = 3;
|
||||
*/
|
||||
readOnly: boolean;
|
||||
read_only: boolean;
|
||||
/**
|
||||
* Additional external documentation for this schema.
|
||||
*
|
||||
* @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5;
|
||||
*/
|
||||
externalDocs?: ExternalDocumentation;
|
||||
external_docs?: ExternalDocumentation;
|
||||
/**
|
||||
* A free-form property to include an example of an instance for this schema in JSON.
|
||||
* This is copied verbatim to the output.
|
||||
@@ -657,7 +657,7 @@ export interface JSONSchema {
|
||||
/**
|
||||
* @generated from protobuf field: bool read_only = 8;
|
||||
*/
|
||||
readOnly: boolean;
|
||||
read_only: boolean;
|
||||
/**
|
||||
* A free-form property to include a JSON example of this field. This is copied
|
||||
* verbatim to the output swagger.json. Quotes must be escaped.
|
||||
@@ -669,7 +669,7 @@ export interface JSONSchema {
|
||||
/**
|
||||
* @generated from protobuf field: double multiple_of = 10;
|
||||
*/
|
||||
multipleOf: number;
|
||||
multiple_of: number;
|
||||
/**
|
||||
* Maximum represents an inclusive upper limit for a numeric instance. The
|
||||
* value of MUST be a number,
|
||||
@@ -680,7 +680,7 @@ export interface JSONSchema {
|
||||
/**
|
||||
* @generated from protobuf field: bool exclusive_maximum = 12;
|
||||
*/
|
||||
exclusiveMaximum: boolean;
|
||||
exclusive_maximum: boolean;
|
||||
/**
|
||||
* minimum represents an inclusive lower limit for a numeric instance. The
|
||||
* value of MUST be a number,
|
||||
@@ -691,15 +691,15 @@ export interface JSONSchema {
|
||||
/**
|
||||
* @generated from protobuf field: bool exclusive_minimum = 14;
|
||||
*/
|
||||
exclusiveMinimum: boolean;
|
||||
exclusive_minimum: boolean;
|
||||
/**
|
||||
* @generated from protobuf field: uint64 max_length = 15;
|
||||
*/
|
||||
maxLength: bigint;
|
||||
max_length: bigint;
|
||||
/**
|
||||
* @generated from protobuf field: uint64 min_length = 16;
|
||||
*/
|
||||
minLength: bigint;
|
||||
min_length: bigint;
|
||||
/**
|
||||
* @generated from protobuf field: string pattern = 17;
|
||||
*/
|
||||
@@ -707,23 +707,23 @@ export interface JSONSchema {
|
||||
/**
|
||||
* @generated from protobuf field: uint64 max_items = 20;
|
||||
*/
|
||||
maxItems: bigint;
|
||||
max_items: bigint;
|
||||
/**
|
||||
* @generated from protobuf field: uint64 min_items = 21;
|
||||
*/
|
||||
minItems: bigint;
|
||||
min_items: bigint;
|
||||
/**
|
||||
* @generated from protobuf field: bool unique_items = 22;
|
||||
*/
|
||||
uniqueItems: boolean;
|
||||
unique_items: boolean;
|
||||
/**
|
||||
* @generated from protobuf field: uint64 max_properties = 24;
|
||||
*/
|
||||
maxProperties: bigint;
|
||||
max_properties: bigint;
|
||||
/**
|
||||
* @generated from protobuf field: uint64 min_properties = 25;
|
||||
*/
|
||||
minProperties: bigint;
|
||||
min_properties: bigint;
|
||||
/**
|
||||
* @generated from protobuf field: repeated string required = 26;
|
||||
*/
|
||||
@@ -809,7 +809,7 @@ export interface Tag {
|
||||
*
|
||||
* @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3;
|
||||
*/
|
||||
externalDocs?: ExternalDocumentation;
|
||||
external_docs?: ExternalDocumentation;
|
||||
}
|
||||
/**
|
||||
* `SecurityDefinitions` is a representation of OpenAPI v2 specification's
|
||||
@@ -891,7 +891,7 @@ export interface SecurityScheme {
|
||||
*
|
||||
* @generated from protobuf field: string authorization_url = 6;
|
||||
*/
|
||||
authorizationUrl: string;
|
||||
authorization_url: string;
|
||||
/**
|
||||
* The token URL to be used for this flow. This SHOULD be in the
|
||||
* form of a URL.
|
||||
@@ -899,7 +899,7 @@ export interface SecurityScheme {
|
||||
*
|
||||
* @generated from protobuf field: string token_url = 7;
|
||||
*/
|
||||
tokenUrl: string;
|
||||
token_url: string;
|
||||
/**
|
||||
* The available scopes for the OAuth2 security scheme.
|
||||
* Valid for oauth2.
|
||||
@@ -1009,7 +1009,7 @@ export interface SecurityRequirement {
|
||||
*
|
||||
* @generated from protobuf field: map<string, grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1;
|
||||
*/
|
||||
securityRequirement: {
|
||||
security_requirement: {
|
||||
[key: string]: SecurityRequirement_SecurityRequirementValue;
|
||||
};
|
||||
}
|
||||
@@ -1081,14 +1081,14 @@ class Swagger$Type extends MessageType<Swagger> {
|
||||
{ no: 1, name: "swagger", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "info", kind: "message", T: () => Info },
|
||||
{ no: 3, name: "host", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "base_path", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "base_path", kind: "scalar", localName: "base_path", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 5, name: "schemes", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["grpc.gateway.protoc_gen_openapiv2.options.Scheme", Scheme] },
|
||||
{ no: 6, name: "consumes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 7, name: "produces", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 10, name: "responses", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => Response } },
|
||||
{ no: 11, name: "security_definitions", kind: "message", T: () => SecurityDefinitions },
|
||||
{ no: 11, name: "security_definitions", kind: "message", localName: "security_definitions", T: () => SecurityDefinitions },
|
||||
{ no: 12, name: "security", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => SecurityRequirement },
|
||||
{ no: 14, name: "external_docs", kind: "message", T: () => ExternalDocumentation },
|
||||
{ no: 14, name: "external_docs", kind: "message", localName: "external_docs", T: () => ExternalDocumentation },
|
||||
{ no: 15, name: "extensions", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => Value } }
|
||||
]);
|
||||
}
|
||||
@@ -1096,7 +1096,7 @@ class Swagger$Type extends MessageType<Swagger> {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.swagger = "";
|
||||
message.host = "";
|
||||
message.basePath = "";
|
||||
message.base_path = "";
|
||||
message.schemes = [];
|
||||
message.consumes = [];
|
||||
message.produces = [];
|
||||
@@ -1122,7 +1122,7 @@ class Swagger$Type extends MessageType<Swagger> {
|
||||
message.host = reader.string();
|
||||
break;
|
||||
case /* string base_path */ 4:
|
||||
message.basePath = reader.string();
|
||||
message.base_path = reader.string();
|
||||
break;
|
||||
case /* repeated grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes */ 5:
|
||||
if (wireType === WireType.LengthDelimited)
|
||||
@@ -1141,13 +1141,13 @@ class Swagger$Type extends MessageType<Swagger> {
|
||||
this.binaryReadMap10(message.responses, reader, options);
|
||||
break;
|
||||
case /* grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions */ 11:
|
||||
message.securityDefinitions = SecurityDefinitions.internalBinaryRead(reader, reader.uint32(), options, message.securityDefinitions);
|
||||
message.security_definitions = SecurityDefinitions.internalBinaryRead(reader, reader.uint32(), options, message.security_definitions);
|
||||
break;
|
||||
case /* repeated grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security */ 12:
|
||||
message.security.push(SecurityRequirement.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs */ 14:
|
||||
message.externalDocs = ExternalDocumentation.internalBinaryRead(reader, reader.uint32(), options, message.externalDocs);
|
||||
message.external_docs = ExternalDocumentation.internalBinaryRead(reader, reader.uint32(), options, message.external_docs);
|
||||
break;
|
||||
case /* map<string, google.protobuf.Value> extensions */ 15:
|
||||
this.binaryReadMap15(message.extensions, reader, options);
|
||||
@@ -1206,8 +1206,8 @@ class Swagger$Type extends MessageType<Swagger> {
|
||||
if (message.host !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.host);
|
||||
/* string base_path = 4; */
|
||||
if (message.basePath !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.basePath);
|
||||
if (message.base_path !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.base_path);
|
||||
/* repeated grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; */
|
||||
if (message.schemes.length) {
|
||||
writer.tag(5, WireType.LengthDelimited).fork();
|
||||
@@ -1229,14 +1229,14 @@ class Swagger$Type extends MessageType<Swagger> {
|
||||
writer.join().join();
|
||||
}
|
||||
/* grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11; */
|
||||
if (message.securityDefinitions)
|
||||
SecurityDefinitions.internalBinaryWrite(message.securityDefinitions, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.security_definitions)
|
||||
SecurityDefinitions.internalBinaryWrite(message.security_definitions, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */
|
||||
for (let i = 0; i < message.security.length; i++)
|
||||
SecurityRequirement.internalBinaryWrite(message.security[i], writer.tag(12, WireType.LengthDelimited).fork(), options).join();
|
||||
/* grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14; */
|
||||
if (message.externalDocs)
|
||||
ExternalDocumentation.internalBinaryWrite(message.externalDocs, writer.tag(14, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.external_docs)
|
||||
ExternalDocumentation.internalBinaryWrite(message.external_docs, writer.tag(14, WireType.LengthDelimited).fork(), options).join();
|
||||
/* map<string, google.protobuf.Value> extensions = 15; */
|
||||
for (let k of globalThis.Object.keys(message.extensions)) {
|
||||
writer.tag(15, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
||||
@@ -1261,8 +1261,8 @@ class Operation$Type extends MessageType<Operation> {
|
||||
{ no: 1, name: "tags", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "summary", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "external_docs", kind: "message", T: () => ExternalDocumentation },
|
||||
{ no: 5, name: "operation_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "external_docs", kind: "message", localName: "external_docs", T: () => ExternalDocumentation },
|
||||
{ no: 5, name: "operation_id", kind: "scalar", localName: "operation_id", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 6, name: "consumes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 7, name: "produces", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 9, name: "responses", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => Response } },
|
||||
@@ -1277,7 +1277,7 @@ class Operation$Type extends MessageType<Operation> {
|
||||
message.tags = [];
|
||||
message.summary = "";
|
||||
message.description = "";
|
||||
message.operationId = "";
|
||||
message.operation_id = "";
|
||||
message.consumes = [];
|
||||
message.produces = [];
|
||||
message.responses = {};
|
||||
@@ -1304,10 +1304,10 @@ class Operation$Type extends MessageType<Operation> {
|
||||
message.description = reader.string();
|
||||
break;
|
||||
case /* grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs */ 4:
|
||||
message.externalDocs = ExternalDocumentation.internalBinaryRead(reader, reader.uint32(), options, message.externalDocs);
|
||||
message.external_docs = ExternalDocumentation.internalBinaryRead(reader, reader.uint32(), options, message.external_docs);
|
||||
break;
|
||||
case /* string operation_id */ 5:
|
||||
message.operationId = reader.string();
|
||||
message.operation_id = reader.string();
|
||||
break;
|
||||
case /* repeated string consumes */ 6:
|
||||
message.consumes.push(reader.string());
|
||||
@@ -1388,11 +1388,11 @@ class Operation$Type extends MessageType<Operation> {
|
||||
if (message.description !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.description);
|
||||
/* grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; */
|
||||
if (message.externalDocs)
|
||||
ExternalDocumentation.internalBinaryWrite(message.externalDocs, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.external_docs)
|
||||
ExternalDocumentation.internalBinaryWrite(message.external_docs, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string operation_id = 5; */
|
||||
if (message.operationId !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.operationId);
|
||||
if (message.operation_id !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.operation_id);
|
||||
/* repeated string consumes = 6; */
|
||||
for (let i = 0; i < message.consumes.length; i++)
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.consumes[i]);
|
||||
@@ -1655,7 +1655,7 @@ class Info$Type extends MessageType<Info> {
|
||||
super("grpc.gateway.protoc_gen_openapiv2.options.Info", [
|
||||
{ no: 1, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "terms_of_service", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "terms_of_service", kind: "scalar", localName: "terms_of_service", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "contact", kind: "message", T: () => Contact },
|
||||
{ no: 5, name: "license", kind: "message", T: () => License },
|
||||
{ no: 6, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
@@ -1666,7 +1666,7 @@ class Info$Type extends MessageType<Info> {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.title = "";
|
||||
message.description = "";
|
||||
message.termsOfService = "";
|
||||
message.terms_of_service = "";
|
||||
message.version = "";
|
||||
message.extensions = {};
|
||||
if (value !== undefined)
|
||||
@@ -1685,7 +1685,7 @@ class Info$Type extends MessageType<Info> {
|
||||
message.description = reader.string();
|
||||
break;
|
||||
case /* string terms_of_service */ 3:
|
||||
message.termsOfService = reader.string();
|
||||
message.terms_of_service = reader.string();
|
||||
break;
|
||||
case /* grpc.gateway.protoc_gen_openapiv2.options.Contact contact */ 4:
|
||||
message.contact = Contact.internalBinaryRead(reader, reader.uint32(), options, message.contact);
|
||||
@@ -1734,8 +1734,8 @@ class Info$Type extends MessageType<Info> {
|
||||
if (message.description !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.description);
|
||||
/* string terms_of_service = 3; */
|
||||
if (message.termsOfService !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.termsOfService);
|
||||
if (message.terms_of_service !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.terms_of_service);
|
||||
/* grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; */
|
||||
if (message.contact)
|
||||
Contact.internalBinaryWrite(message.contact, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
@@ -1939,17 +1939,17 @@ export const ExternalDocumentation = new ExternalDocumentation$Type();
|
||||
class Schema$Type extends MessageType<Schema> {
|
||||
constructor() {
|
||||
super("grpc.gateway.protoc_gen_openapiv2.options.Schema", [
|
||||
{ no: 1, name: "json_schema", kind: "message", T: () => JSONSchema },
|
||||
{ no: 1, name: "json_schema", kind: "message", localName: "json_schema", T: () => JSONSchema },
|
||||
{ no: 2, name: "discriminator", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "read_only", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 5, name: "external_docs", kind: "message", T: () => ExternalDocumentation },
|
||||
{ no: 3, name: "read_only", kind: "scalar", localName: "read_only", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 5, name: "external_docs", kind: "message", localName: "external_docs", T: () => ExternalDocumentation },
|
||||
{ no: 6, name: "example", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<Schema>): Schema {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.discriminator = "";
|
||||
message.readOnly = false;
|
||||
message.read_only = false;
|
||||
message.example = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<Schema>(this, message, value);
|
||||
@@ -1961,16 +1961,16 @@ class Schema$Type extends MessageType<Schema> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema */ 1:
|
||||
message.jsonSchema = JSONSchema.internalBinaryRead(reader, reader.uint32(), options, message.jsonSchema);
|
||||
message.json_schema = JSONSchema.internalBinaryRead(reader, reader.uint32(), options, message.json_schema);
|
||||
break;
|
||||
case /* string discriminator */ 2:
|
||||
message.discriminator = reader.string();
|
||||
break;
|
||||
case /* bool read_only */ 3:
|
||||
message.readOnly = reader.bool();
|
||||
message.read_only = reader.bool();
|
||||
break;
|
||||
case /* grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs */ 5:
|
||||
message.externalDocs = ExternalDocumentation.internalBinaryRead(reader, reader.uint32(), options, message.externalDocs);
|
||||
message.external_docs = ExternalDocumentation.internalBinaryRead(reader, reader.uint32(), options, message.external_docs);
|
||||
break;
|
||||
case /* string example */ 6:
|
||||
message.example = reader.string();
|
||||
@@ -1988,17 +1988,17 @@ class Schema$Type extends MessageType<Schema> {
|
||||
}
|
||||
internalBinaryWrite(message: Schema, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; */
|
||||
if (message.jsonSchema)
|
||||
JSONSchema.internalBinaryWrite(message.jsonSchema, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.json_schema)
|
||||
JSONSchema.internalBinaryWrite(message.json_schema, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string discriminator = 2; */
|
||||
if (message.discriminator !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.discriminator);
|
||||
/* bool read_only = 3; */
|
||||
if (message.readOnly !== false)
|
||||
writer.tag(3, WireType.Varint).bool(message.readOnly);
|
||||
if (message.read_only !== false)
|
||||
writer.tag(3, WireType.Varint).bool(message.read_only);
|
||||
/* grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5; */
|
||||
if (message.externalDocs)
|
||||
ExternalDocumentation.internalBinaryWrite(message.externalDocs, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.external_docs)
|
||||
ExternalDocumentation.internalBinaryWrite(message.external_docs, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string example = 6; */
|
||||
if (message.example !== "")
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.example);
|
||||
@@ -2020,21 +2020,21 @@ class JSONSchema$Type extends MessageType<JSONSchema> {
|
||||
{ no: 5, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 6, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 7, name: "default", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 8, name: "read_only", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 8, name: "read_only", kind: "scalar", localName: "read_only", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 9, name: "example", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 10, name: "multiple_of", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
|
||||
{ no: 10, name: "multiple_of", kind: "scalar", localName: "multiple_of", T: 1 /*ScalarType.DOUBLE*/ },
|
||||
{ no: 11, name: "maximum", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
|
||||
{ no: 12, name: "exclusive_maximum", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 12, name: "exclusive_maximum", kind: "scalar", localName: "exclusive_maximum", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 13, name: "minimum", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
|
||||
{ no: 14, name: "exclusive_minimum", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 15, name: "max_length", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
||||
{ no: 16, name: "min_length", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
||||
{ no: 14, name: "exclusive_minimum", kind: "scalar", localName: "exclusive_minimum", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 15, name: "max_length", kind: "scalar", localName: "max_length", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
||||
{ no: 16, name: "min_length", kind: "scalar", localName: "min_length", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
||||
{ no: 17, name: "pattern", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 20, name: "max_items", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
||||
{ no: 21, name: "min_items", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
||||
{ no: 22, name: "unique_items", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 24, name: "max_properties", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
||||
{ no: 25, name: "min_properties", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
||||
{ no: 20, name: "max_items", kind: "scalar", localName: "max_items", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
||||
{ no: 21, name: "min_items", kind: "scalar", localName: "min_items", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
||||
{ no: 22, name: "unique_items", kind: "scalar", localName: "unique_items", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 24, name: "max_properties", kind: "scalar", localName: "max_properties", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
||||
{ no: 25, name: "min_properties", kind: "scalar", localName: "min_properties", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
||||
{ no: 26, name: "required", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 34, name: "array", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 35, name: "type", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes", JSONSchema_JSONSchemaSimpleTypes] },
|
||||
@@ -2048,21 +2048,21 @@ class JSONSchema$Type extends MessageType<JSONSchema> {
|
||||
message.title = "";
|
||||
message.description = "";
|
||||
message.default = "";
|
||||
message.readOnly = false;
|
||||
message.read_only = false;
|
||||
message.example = "";
|
||||
message.multipleOf = 0;
|
||||
message.multiple_of = 0;
|
||||
message.maximum = 0;
|
||||
message.exclusiveMaximum = false;
|
||||
message.exclusive_maximum = false;
|
||||
message.minimum = 0;
|
||||
message.exclusiveMinimum = false;
|
||||
message.maxLength = 0n;
|
||||
message.minLength = 0n;
|
||||
message.exclusive_minimum = false;
|
||||
message.max_length = 0n;
|
||||
message.min_length = 0n;
|
||||
message.pattern = "";
|
||||
message.maxItems = 0n;
|
||||
message.minItems = 0n;
|
||||
message.uniqueItems = false;
|
||||
message.maxProperties = 0n;
|
||||
message.minProperties = 0n;
|
||||
message.max_items = 0n;
|
||||
message.min_items = 0n;
|
||||
message.unique_items = false;
|
||||
message.max_properties = 0n;
|
||||
message.min_properties = 0n;
|
||||
message.required = [];
|
||||
message.array = [];
|
||||
message.type = [];
|
||||
@@ -2090,49 +2090,49 @@ class JSONSchema$Type extends MessageType<JSONSchema> {
|
||||
message.default = reader.string();
|
||||
break;
|
||||
case /* bool read_only */ 8:
|
||||
message.readOnly = reader.bool();
|
||||
message.read_only = reader.bool();
|
||||
break;
|
||||
case /* string example */ 9:
|
||||
message.example = reader.string();
|
||||
break;
|
||||
case /* double multiple_of */ 10:
|
||||
message.multipleOf = reader.double();
|
||||
message.multiple_of = reader.double();
|
||||
break;
|
||||
case /* double maximum */ 11:
|
||||
message.maximum = reader.double();
|
||||
break;
|
||||
case /* bool exclusive_maximum */ 12:
|
||||
message.exclusiveMaximum = reader.bool();
|
||||
message.exclusive_maximum = reader.bool();
|
||||
break;
|
||||
case /* double minimum */ 13:
|
||||
message.minimum = reader.double();
|
||||
break;
|
||||
case /* bool exclusive_minimum */ 14:
|
||||
message.exclusiveMinimum = reader.bool();
|
||||
message.exclusive_minimum = reader.bool();
|
||||
break;
|
||||
case /* uint64 max_length */ 15:
|
||||
message.maxLength = reader.uint64().toBigInt();
|
||||
message.max_length = reader.uint64().toBigInt();
|
||||
break;
|
||||
case /* uint64 min_length */ 16:
|
||||
message.minLength = reader.uint64().toBigInt();
|
||||
message.min_length = reader.uint64().toBigInt();
|
||||
break;
|
||||
case /* string pattern */ 17:
|
||||
message.pattern = reader.string();
|
||||
break;
|
||||
case /* uint64 max_items */ 20:
|
||||
message.maxItems = reader.uint64().toBigInt();
|
||||
message.max_items = reader.uint64().toBigInt();
|
||||
break;
|
||||
case /* uint64 min_items */ 21:
|
||||
message.minItems = reader.uint64().toBigInt();
|
||||
message.min_items = reader.uint64().toBigInt();
|
||||
break;
|
||||
case /* bool unique_items */ 22:
|
||||
message.uniqueItems = reader.bool();
|
||||
message.unique_items = reader.bool();
|
||||
break;
|
||||
case /* uint64 max_properties */ 24:
|
||||
message.maxProperties = reader.uint64().toBigInt();
|
||||
message.max_properties = reader.uint64().toBigInt();
|
||||
break;
|
||||
case /* uint64 min_properties */ 25:
|
||||
message.minProperties = reader.uint64().toBigInt();
|
||||
message.min_properties = reader.uint64().toBigInt();
|
||||
break;
|
||||
case /* repeated string required */ 26:
|
||||
message.required.push(reader.string());
|
||||
@@ -2178,50 +2178,50 @@ class JSONSchema$Type extends MessageType<JSONSchema> {
|
||||
if (message.default !== "")
|
||||
writer.tag(7, WireType.LengthDelimited).string(message.default);
|
||||
/* bool read_only = 8; */
|
||||
if (message.readOnly !== false)
|
||||
writer.tag(8, WireType.Varint).bool(message.readOnly);
|
||||
if (message.read_only !== false)
|
||||
writer.tag(8, WireType.Varint).bool(message.read_only);
|
||||
/* string example = 9; */
|
||||
if (message.example !== "")
|
||||
writer.tag(9, WireType.LengthDelimited).string(message.example);
|
||||
/* double multiple_of = 10; */
|
||||
if (message.multipleOf !== 0)
|
||||
writer.tag(10, WireType.Bit64).double(message.multipleOf);
|
||||
if (message.multiple_of !== 0)
|
||||
writer.tag(10, WireType.Bit64).double(message.multiple_of);
|
||||
/* double maximum = 11; */
|
||||
if (message.maximum !== 0)
|
||||
writer.tag(11, WireType.Bit64).double(message.maximum);
|
||||
/* bool exclusive_maximum = 12; */
|
||||
if (message.exclusiveMaximum !== false)
|
||||
writer.tag(12, WireType.Varint).bool(message.exclusiveMaximum);
|
||||
if (message.exclusive_maximum !== false)
|
||||
writer.tag(12, WireType.Varint).bool(message.exclusive_maximum);
|
||||
/* double minimum = 13; */
|
||||
if (message.minimum !== 0)
|
||||
writer.tag(13, WireType.Bit64).double(message.minimum);
|
||||
/* bool exclusive_minimum = 14; */
|
||||
if (message.exclusiveMinimum !== false)
|
||||
writer.tag(14, WireType.Varint).bool(message.exclusiveMinimum);
|
||||
if (message.exclusive_minimum !== false)
|
||||
writer.tag(14, WireType.Varint).bool(message.exclusive_minimum);
|
||||
/* uint64 max_length = 15; */
|
||||
if (message.maxLength !== 0n)
|
||||
writer.tag(15, WireType.Varint).uint64(message.maxLength);
|
||||
if (message.max_length !== 0n)
|
||||
writer.tag(15, WireType.Varint).uint64(message.max_length);
|
||||
/* uint64 min_length = 16; */
|
||||
if (message.minLength !== 0n)
|
||||
writer.tag(16, WireType.Varint).uint64(message.minLength);
|
||||
if (message.min_length !== 0n)
|
||||
writer.tag(16, WireType.Varint).uint64(message.min_length);
|
||||
/* string pattern = 17; */
|
||||
if (message.pattern !== "")
|
||||
writer.tag(17, WireType.LengthDelimited).string(message.pattern);
|
||||
/* uint64 max_items = 20; */
|
||||
if (message.maxItems !== 0n)
|
||||
writer.tag(20, WireType.Varint).uint64(message.maxItems);
|
||||
if (message.max_items !== 0n)
|
||||
writer.tag(20, WireType.Varint).uint64(message.max_items);
|
||||
/* uint64 min_items = 21; */
|
||||
if (message.minItems !== 0n)
|
||||
writer.tag(21, WireType.Varint).uint64(message.minItems);
|
||||
if (message.min_items !== 0n)
|
||||
writer.tag(21, WireType.Varint).uint64(message.min_items);
|
||||
/* bool unique_items = 22; */
|
||||
if (message.uniqueItems !== false)
|
||||
writer.tag(22, WireType.Varint).bool(message.uniqueItems);
|
||||
if (message.unique_items !== false)
|
||||
writer.tag(22, WireType.Varint).bool(message.unique_items);
|
||||
/* uint64 max_properties = 24; */
|
||||
if (message.maxProperties !== 0n)
|
||||
writer.tag(24, WireType.Varint).uint64(message.maxProperties);
|
||||
if (message.max_properties !== 0n)
|
||||
writer.tag(24, WireType.Varint).uint64(message.max_properties);
|
||||
/* uint64 min_properties = 25; */
|
||||
if (message.minProperties !== 0n)
|
||||
writer.tag(25, WireType.Varint).uint64(message.minProperties);
|
||||
if (message.min_properties !== 0n)
|
||||
writer.tag(25, WireType.Varint).uint64(message.min_properties);
|
||||
/* repeated string required = 26; */
|
||||
for (let i = 0; i < message.required.length; i++)
|
||||
writer.tag(26, WireType.LengthDelimited).string(message.required[i]);
|
||||
@@ -2256,7 +2256,7 @@ class Tag$Type extends MessageType<Tag> {
|
||||
constructor() {
|
||||
super("grpc.gateway.protoc_gen_openapiv2.options.Tag", [
|
||||
{ no: 2, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "external_docs", kind: "message", T: () => ExternalDocumentation }
|
||||
{ no: 3, name: "external_docs", kind: "message", localName: "external_docs", T: () => ExternalDocumentation }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<Tag>): Tag {
|
||||
@@ -2275,7 +2275,7 @@ class Tag$Type extends MessageType<Tag> {
|
||||
message.description = reader.string();
|
||||
break;
|
||||
case /* grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs */ 3:
|
||||
message.externalDocs = ExternalDocumentation.internalBinaryRead(reader, reader.uint32(), options, message.externalDocs);
|
||||
message.external_docs = ExternalDocumentation.internalBinaryRead(reader, reader.uint32(), options, message.external_docs);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -2293,8 +2293,8 @@ class Tag$Type extends MessageType<Tag> {
|
||||
if (message.description !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.description);
|
||||
/* grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; */
|
||||
if (message.externalDocs)
|
||||
ExternalDocumentation.internalBinaryWrite(message.externalDocs, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.external_docs)
|
||||
ExternalDocumentation.internalBinaryWrite(message.external_docs, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -2381,8 +2381,8 @@ class SecurityScheme$Type extends MessageType<SecurityScheme> {
|
||||
{ no: 3, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "in", kind: "enum", T: () => ["grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In", SecurityScheme_In, "IN_"] },
|
||||
{ no: 5, name: "flow", kind: "enum", T: () => ["grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow", SecurityScheme_Flow, "FLOW_"] },
|
||||
{ no: 6, name: "authorization_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 7, name: "token_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 6, name: "authorization_url", kind: "scalar", localName: "authorization_url", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 7, name: "token_url", kind: "scalar", localName: "token_url", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 8, name: "scopes", kind: "message", T: () => Scopes },
|
||||
{ no: 9, name: "extensions", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => Value } }
|
||||
]);
|
||||
@@ -2394,8 +2394,8 @@ class SecurityScheme$Type extends MessageType<SecurityScheme> {
|
||||
message.name = "";
|
||||
message.in = 0;
|
||||
message.flow = 0;
|
||||
message.authorizationUrl = "";
|
||||
message.tokenUrl = "";
|
||||
message.authorization_url = "";
|
||||
message.token_url = "";
|
||||
message.extensions = {};
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<SecurityScheme>(this, message, value);
|
||||
@@ -2422,10 +2422,10 @@ class SecurityScheme$Type extends MessageType<SecurityScheme> {
|
||||
message.flow = reader.int32();
|
||||
break;
|
||||
case /* string authorization_url */ 6:
|
||||
message.authorizationUrl = reader.string();
|
||||
message.authorization_url = reader.string();
|
||||
break;
|
||||
case /* string token_url */ 7:
|
||||
message.tokenUrl = reader.string();
|
||||
message.token_url = reader.string();
|
||||
break;
|
||||
case /* grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes */ 8:
|
||||
message.scopes = Scopes.internalBinaryRead(reader, reader.uint32(), options, message.scopes);
|
||||
@@ -2477,11 +2477,11 @@ class SecurityScheme$Type extends MessageType<SecurityScheme> {
|
||||
if (message.flow !== 0)
|
||||
writer.tag(5, WireType.Varint).int32(message.flow);
|
||||
/* string authorization_url = 6; */
|
||||
if (message.authorizationUrl !== "")
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.authorizationUrl);
|
||||
if (message.authorization_url !== "")
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.authorization_url);
|
||||
/* string token_url = 7; */
|
||||
if (message.tokenUrl !== "")
|
||||
writer.tag(7, WireType.LengthDelimited).string(message.tokenUrl);
|
||||
if (message.token_url !== "")
|
||||
writer.tag(7, WireType.LengthDelimited).string(message.token_url);
|
||||
/* grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8; */
|
||||
if (message.scopes)
|
||||
Scopes.internalBinaryWrite(message.scopes, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
||||
@@ -2506,12 +2506,12 @@ export const SecurityScheme = new SecurityScheme$Type();
|
||||
class SecurityRequirement$Type extends MessageType<SecurityRequirement> {
|
||||
constructor() {
|
||||
super("grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement", [
|
||||
{ no: 1, name: "security_requirement", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => SecurityRequirement_SecurityRequirementValue } }
|
||||
{ no: 1, name: "security_requirement", kind: "map", localName: "security_requirement", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => SecurityRequirement_SecurityRequirementValue } }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<SecurityRequirement>): SecurityRequirement {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.securityRequirement = {};
|
||||
message.security_requirement = {};
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<SecurityRequirement>(this, message, value);
|
||||
return message;
|
||||
@@ -2522,7 +2522,7 @@ class SecurityRequirement$Type extends MessageType<SecurityRequirement> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* map<string, grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement */ 1:
|
||||
this.binaryReadMap1(message.securityRequirement, reader, options);
|
||||
this.binaryReadMap1(message.security_requirement, reader, options);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -2535,8 +2535,8 @@ class SecurityRequirement$Type extends MessageType<SecurityRequirement> {
|
||||
}
|
||||
return message;
|
||||
}
|
||||
private binaryReadMap1(map: SecurityRequirement["securityRequirement"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
||||
let len = reader.uint32(), end = reader.pos + len, key: keyof SecurityRequirement["securityRequirement"] | undefined, val: SecurityRequirement["securityRequirement"][any] | undefined;
|
||||
private binaryReadMap1(map: SecurityRequirement["security_requirement"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
||||
let len = reader.uint32(), end = reader.pos + len, key: keyof SecurityRequirement["security_requirement"] | undefined, val: SecurityRequirement["security_requirement"][any] | undefined;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
@@ -2553,10 +2553,10 @@ class SecurityRequirement$Type extends MessageType<SecurityRequirement> {
|
||||
}
|
||||
internalBinaryWrite(message: SecurityRequirement, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* map<string, grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1; */
|
||||
for (let k of globalThis.Object.keys(message.securityRequirement)) {
|
||||
for (let k of globalThis.Object.keys(message.security_requirement)) {
|
||||
writer.tag(1, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
||||
writer.tag(2, WireType.LengthDelimited).fork();
|
||||
SecurityRequirement_SecurityRequirementValue.internalBinaryWrite(message.securityRequirement[k], writer, options);
|
||||
SecurityRequirement_SecurityRequirementValue.internalBinaryWrite(message.security_requirement[k], writer, options);
|
||||
writer.join().join();
|
||||
}
|
||||
let u = options.writeUnknownFields;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reflex-platform/npm-viz-sdk",
|
||||
"version": "1.11.0-SNAPSHOT-250408081217",
|
||||
"version": "1.11.0-SNAPSHOT-250428134845",
|
||||
"description": "npm libs from visibility model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
714
validate.ts
714
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.9.6 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "visibility.proto" (package "google.api", syntax proto3)
|
||||
// tslint:disable
|
||||
//
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.9.6 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";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "viz-composed-field.proto" (package "vizapi", syntax proto3)
|
||||
// tslint:disable
|
||||
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
||||
@@ -21,61 +21,61 @@ export interface ComposedField {
|
||||
*
|
||||
* @generated from protobuf field: string ComposedFieldID = 1 [json_name = "ComposedFieldID"];
|
||||
*/
|
||||
composedFieldID: string;
|
||||
ComposedFieldID: string;
|
||||
/**
|
||||
* Name of the Composed Field
|
||||
*
|
||||
* @generated from protobuf field: string Name = 2 [json_name = "Name"];
|
||||
*/
|
||||
name: string;
|
||||
Name: string;
|
||||
/**
|
||||
* Identifier of the project
|
||||
*
|
||||
* @generated from protobuf field: string ProjectID = 3 [json_name = "ProjectID"];
|
||||
*/
|
||||
projectID: string;
|
||||
ProjectID: string;
|
||||
/**
|
||||
* Identifier of the Screen
|
||||
*
|
||||
* @generated from protobuf field: string ScreenID = 4 [json_name = "ScreenID"];
|
||||
*/
|
||||
screenID: string;
|
||||
ScreenID: string;
|
||||
/**
|
||||
* Identifier of the user who created
|
||||
*
|
||||
* @generated from protobuf field: string CreateUserID = 5 [json_name = "CreateUserID"];
|
||||
*/
|
||||
createUserID: string;
|
||||
CreateUserID: string;
|
||||
/**
|
||||
* Identifier of the user who did the last update
|
||||
*
|
||||
* @generated from protobuf field: string UpdateUserID = 6 [json_name = "UpdateUserID"];
|
||||
*/
|
||||
updateUserID: string;
|
||||
UpdateUserID: string;
|
||||
/**
|
||||
* Date of creation in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z]
|
||||
*
|
||||
* @generated from protobuf field: string CreateDateTime = 7 [json_name = "CreateDateTime"];
|
||||
*/
|
||||
createDateTime: string;
|
||||
CreateDateTime: string;
|
||||
/**
|
||||
* Date of last update in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z]
|
||||
*
|
||||
* @generated from protobuf field: string UpdateDateTime = 8 [json_name = "UpdateDateTime"];
|
||||
*/
|
||||
updateDateTime: string;
|
||||
UpdateDateTime: string;
|
||||
/**
|
||||
* Identifier of the Tab
|
||||
*
|
||||
* @generated from protobuf field: string TabID = 9 [json_name = "TabID"];
|
||||
*/
|
||||
tabID: string;
|
||||
TabID: string;
|
||||
/**
|
||||
* Content in the Composed Field
|
||||
*
|
||||
* @generated from protobuf field: string Payload = 10 [json_name = "Payload"];
|
||||
*/
|
||||
payload: string;
|
||||
Payload: string;
|
||||
}
|
||||
/**
|
||||
* IDs of the Composed Field
|
||||
@@ -86,13 +86,13 @@ export interface GetComposedFieldRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
|
||||
*/
|
||||
header?: RequestProjectHeader;
|
||||
Header?: RequestProjectHeader;
|
||||
/**
|
||||
* Identifier of the Composed Field
|
||||
*
|
||||
* @generated from protobuf field: string ComposedFieldID = 2 [json_name = "ComposedFieldID"];
|
||||
*/
|
||||
composedFieldID: string;
|
||||
ComposedFieldID: string;
|
||||
}
|
||||
/**
|
||||
* All the Content about the composed field
|
||||
@@ -103,7 +103,7 @@ export interface GetComposedFieldResult {
|
||||
/**
|
||||
* @generated from protobuf field: vizapi.ComposedField Result = 1 [json_name = "Result"];
|
||||
*/
|
||||
result?: ComposedField;
|
||||
Result?: ComposedField;
|
||||
}
|
||||
/**
|
||||
* Content that needs to be stored
|
||||
@@ -114,31 +114,31 @@ export interface CreateComposedFieldRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
|
||||
*/
|
||||
header?: RequestProjectHeader;
|
||||
Header?: RequestProjectHeader;
|
||||
/**
|
||||
* Name of the Composed Field
|
||||
*
|
||||
* @generated from protobuf field: string Name = 2 [json_name = "Name"];
|
||||
*/
|
||||
name: string;
|
||||
Name: string;
|
||||
/**
|
||||
* Identifier of the Screen
|
||||
*
|
||||
* @generated from protobuf field: string ScreenID = 3 [json_name = "ScreenID"];
|
||||
*/
|
||||
screenID: string;
|
||||
ScreenID: string;
|
||||
/**
|
||||
* Identifier of the Tab
|
||||
*
|
||||
* @generated from protobuf field: string TabID = 4 [json_name = "TabID"];
|
||||
*/
|
||||
tabID: string;
|
||||
TabID: string;
|
||||
/**
|
||||
* Content in the Composed Field
|
||||
*
|
||||
* @generated from protobuf field: string Payload = 5 [json_name = "Payload"];
|
||||
*/
|
||||
payload: string;
|
||||
Payload: string;
|
||||
}
|
||||
/**
|
||||
* ID of the created Composed Field
|
||||
@@ -151,7 +151,7 @@ export interface CreateComposedFieldResult {
|
||||
*
|
||||
* @generated from protobuf field: string ComposedFieldID = 1 [json_name = "ComposedFieldID"];
|
||||
*/
|
||||
composedFieldID: string;
|
||||
ComposedFieldID: string;
|
||||
}
|
||||
/**
|
||||
* Content that needs to be updated
|
||||
@@ -162,37 +162,37 @@ export interface UpdateComposedFieldRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
|
||||
*/
|
||||
header?: RequestProjectHeader;
|
||||
Header?: RequestProjectHeader;
|
||||
/**
|
||||
* Identifier of the Composed Field
|
||||
*
|
||||
* @generated from protobuf field: string ComposedFieldID = 2 [json_name = "ComposedFieldID"];
|
||||
*/
|
||||
composedFieldID: string;
|
||||
ComposedFieldID: string;
|
||||
/**
|
||||
* Name of the Composed Field
|
||||
*
|
||||
* @generated from protobuf field: string Name = 3 [json_name = "Name"];
|
||||
*/
|
||||
name: string;
|
||||
Name: string;
|
||||
/**
|
||||
* Identifier of the Screen
|
||||
*
|
||||
* @generated from protobuf field: string ScreenID = 4 [json_name = "ScreenID"];
|
||||
*/
|
||||
screenID: string;
|
||||
ScreenID: string;
|
||||
/**
|
||||
* Identifier of the Tab
|
||||
*
|
||||
* @generated from protobuf field: string TabID = 5 [json_name = "TabID"];
|
||||
*/
|
||||
tabID: string;
|
||||
TabID: string;
|
||||
/**
|
||||
* Content in the Composed Field
|
||||
*
|
||||
* @generated from protobuf field: string Payload = 6 [json_name = "Payload"];
|
||||
*/
|
||||
payload: string;
|
||||
Payload: string;
|
||||
}
|
||||
/**
|
||||
* Updated dashboard ID
|
||||
@@ -205,7 +205,7 @@ export interface UpdateComposedFieldResult {
|
||||
*
|
||||
* @generated from protobuf field: string ComposedFieldID = 1 [json_name = "ComposedFieldID"];
|
||||
*/
|
||||
composedFieldID: string;
|
||||
ComposedFieldID: string;
|
||||
}
|
||||
/**
|
||||
* IDs of the Composed Field to be deleted
|
||||
@@ -216,13 +216,13 @@ export interface DeleteComposedFieldRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
|
||||
*/
|
||||
header?: RequestProjectHeader;
|
||||
Header?: RequestProjectHeader;
|
||||
/**
|
||||
* Identifier of the Composed Field
|
||||
*
|
||||
* @generated from protobuf field: string ComposedFieldID = 2 [json_name = "ComposedFieldID"];
|
||||
*/
|
||||
composedFieldID: string;
|
||||
ComposedFieldID: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.DeleteComposedFieldResult
|
||||
@@ -236,19 +236,19 @@ export interface ListComposedFieldRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
|
||||
*/
|
||||
header?: RequestProjectHeader;
|
||||
Header?: RequestProjectHeader;
|
||||
/**
|
||||
* Identifier of the Screen
|
||||
*
|
||||
* @generated from protobuf field: string ScreenID = 2 [json_name = "ScreenID"];
|
||||
*/
|
||||
screenID: string;
|
||||
ScreenID: string;
|
||||
/**
|
||||
* Identifier of the Tab
|
||||
*
|
||||
* @generated from protobuf field: string TabID = 3 [json_name = "TabID"];
|
||||
*/
|
||||
tabID: string;
|
||||
TabID: string;
|
||||
}
|
||||
/**
|
||||
* List of Composed Fields
|
||||
@@ -261,36 +261,36 @@ export interface ListComposedFieldResult {
|
||||
*
|
||||
* @generated from protobuf field: repeated vizapi.ComposedField Results = 1 [json_name = "Results"];
|
||||
*/
|
||||
results: ComposedField[];
|
||||
Results: ComposedField[];
|
||||
}
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ComposedField$Type extends MessageType<ComposedField> {
|
||||
constructor() {
|
||||
super("vizapi.ComposedField", [
|
||||
{ no: 1, name: "ComposedFieldID", kind: "scalar", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" } } },
|
||||
{ no: 2, name: "Name", kind: "scalar", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the Composed Field" } } },
|
||||
{ no: 3, name: "ProjectID", kind: "scalar", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the project" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 4, name: "ScreenID", kind: "scalar", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Screen" } } },
|
||||
{ no: 5, name: "CreateUserID", kind: "scalar", jsonName: "CreateUserID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the user who created" } } },
|
||||
{ no: 6, name: "UpdateUserID", kind: "scalar", jsonName: "UpdateUserID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the user who did the last update" } } },
|
||||
{ no: 7, name: "CreateDateTime", kind: "scalar", jsonName: "CreateDateTime", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Date of creation in <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO 8601</a> format with time zone (accepted tzd formats: [+01:00, -01:00, Z]" } } },
|
||||
{ no: 8, name: "UpdateDateTime", kind: "scalar", jsonName: "UpdateDateTime", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Date of last update in <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO 8601</a> format with time zone (accepted tzd formats: [+01:00, -01:00, Z]" } } },
|
||||
{ no: 9, name: "TabID", kind: "scalar", jsonName: "TabID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Tab" } } },
|
||||
{ no: 10, name: "Payload", kind: "scalar", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content in the Composed Field" } } }
|
||||
{ no: 1, name: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" } } },
|
||||
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the Composed Field" } } },
|
||||
{ no: 3, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the project" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 4, 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" } } },
|
||||
{ no: 5, name: "CreateUserID", kind: "scalar", localName: "CreateUserID", jsonName: "CreateUserID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the user who created" } } },
|
||||
{ no: 6, name: "UpdateUserID", kind: "scalar", localName: "UpdateUserID", jsonName: "UpdateUserID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the user who did the last update" } } },
|
||||
{ no: 7, name: "CreateDateTime", kind: "scalar", localName: "CreateDateTime", jsonName: "CreateDateTime", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Date of creation in <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO 8601</a> format with time zone (accepted tzd formats: [+01:00, -01:00, Z]" } } },
|
||||
{ no: 8, name: "UpdateDateTime", kind: "scalar", localName: "UpdateDateTime", jsonName: "UpdateDateTime", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Date of last update in <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO 8601</a> format with time zone (accepted tzd formats: [+01:00, -01:00, Z]" } } },
|
||||
{ no: 9, 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" } } },
|
||||
{ no: 10, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content in the Composed Field" } } }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<ComposedField>): ComposedField {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.composedFieldID = "";
|
||||
message.name = "";
|
||||
message.projectID = "";
|
||||
message.screenID = "";
|
||||
message.createUserID = "";
|
||||
message.updateUserID = "";
|
||||
message.createDateTime = "";
|
||||
message.updateDateTime = "";
|
||||
message.tabID = "";
|
||||
message.payload = "";
|
||||
message.ComposedFieldID = "";
|
||||
message.Name = "";
|
||||
message.ProjectID = "";
|
||||
message.ScreenID = "";
|
||||
message.CreateUserID = "";
|
||||
message.UpdateUserID = "";
|
||||
message.CreateDateTime = "";
|
||||
message.UpdateDateTime = "";
|
||||
message.TabID = "";
|
||||
message.Payload = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ComposedField>(this, message, value);
|
||||
return message;
|
||||
@@ -301,34 +301,34 @@ class ComposedField$Type extends MessageType<ComposedField> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ComposedFieldID = 1 [json_name = "ComposedFieldID"];*/ 1:
|
||||
message.composedFieldID = reader.string();
|
||||
message.ComposedFieldID = reader.string();
|
||||
break;
|
||||
case /* string Name = 2 [json_name = "Name"];*/ 2:
|
||||
message.name = reader.string();
|
||||
message.Name = reader.string();
|
||||
break;
|
||||
case /* string ProjectID = 3 [json_name = "ProjectID"];*/ 3:
|
||||
message.projectID = reader.string();
|
||||
message.ProjectID = reader.string();
|
||||
break;
|
||||
case /* string ScreenID = 4 [json_name = "ScreenID"];*/ 4:
|
||||
message.screenID = reader.string();
|
||||
message.ScreenID = reader.string();
|
||||
break;
|
||||
case /* string CreateUserID = 5 [json_name = "CreateUserID"];*/ 5:
|
||||
message.createUserID = reader.string();
|
||||
message.CreateUserID = reader.string();
|
||||
break;
|
||||
case /* string UpdateUserID = 6 [json_name = "UpdateUserID"];*/ 6:
|
||||
message.updateUserID = reader.string();
|
||||
message.UpdateUserID = reader.string();
|
||||
break;
|
||||
case /* string CreateDateTime = 7 [json_name = "CreateDateTime"];*/ 7:
|
||||
message.createDateTime = reader.string();
|
||||
message.CreateDateTime = reader.string();
|
||||
break;
|
||||
case /* string UpdateDateTime = 8 [json_name = "UpdateDateTime"];*/ 8:
|
||||
message.updateDateTime = reader.string();
|
||||
message.UpdateDateTime = reader.string();
|
||||
break;
|
||||
case /* string TabID = 9 [json_name = "TabID"];*/ 9:
|
||||
message.tabID = reader.string();
|
||||
message.TabID = reader.string();
|
||||
break;
|
||||
case /* string Payload = 10 [json_name = "Payload"];*/ 10:
|
||||
message.payload = reader.string();
|
||||
message.Payload = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -343,35 +343,35 @@ class ComposedField$Type extends MessageType<ComposedField> {
|
||||
}
|
||||
internalBinaryWrite(message: ComposedField, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ComposedFieldID = 1 [json_name = "ComposedFieldID"]; */
|
||||
if (message.composedFieldID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.composedFieldID);
|
||||
if (message.ComposedFieldID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ComposedFieldID);
|
||||
/* string Name = 2 [json_name = "Name"]; */
|
||||
if (message.name !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
||||
if (message.Name !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Name);
|
||||
/* string ProjectID = 3 [json_name = "ProjectID"]; */
|
||||
if (message.projectID !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.projectID);
|
||||
if (message.ProjectID !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.ProjectID);
|
||||
/* string ScreenID = 4 [json_name = "ScreenID"]; */
|
||||
if (message.screenID !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.screenID);
|
||||
if (message.ScreenID !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.ScreenID);
|
||||
/* string CreateUserID = 5 [json_name = "CreateUserID"]; */
|
||||
if (message.createUserID !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.createUserID);
|
||||
if (message.CreateUserID !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.CreateUserID);
|
||||
/* string UpdateUserID = 6 [json_name = "UpdateUserID"]; */
|
||||
if (message.updateUserID !== "")
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.updateUserID);
|
||||
if (message.UpdateUserID !== "")
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.UpdateUserID);
|
||||
/* string CreateDateTime = 7 [json_name = "CreateDateTime"]; */
|
||||
if (message.createDateTime !== "")
|
||||
writer.tag(7, WireType.LengthDelimited).string(message.createDateTime);
|
||||
if (message.CreateDateTime !== "")
|
||||
writer.tag(7, WireType.LengthDelimited).string(message.CreateDateTime);
|
||||
/* string UpdateDateTime = 8 [json_name = "UpdateDateTime"]; */
|
||||
if (message.updateDateTime !== "")
|
||||
writer.tag(8, WireType.LengthDelimited).string(message.updateDateTime);
|
||||
if (message.UpdateDateTime !== "")
|
||||
writer.tag(8, WireType.LengthDelimited).string(message.UpdateDateTime);
|
||||
/* string TabID = 9 [json_name = "TabID"]; */
|
||||
if (message.tabID !== "")
|
||||
writer.tag(9, WireType.LengthDelimited).string(message.tabID);
|
||||
if (message.TabID !== "")
|
||||
writer.tag(9, WireType.LengthDelimited).string(message.TabID);
|
||||
/* string Payload = 10 [json_name = "Payload"]; */
|
||||
if (message.payload !== "")
|
||||
writer.tag(10, WireType.LengthDelimited).string(message.payload);
|
||||
if (message.Payload !== "")
|
||||
writer.tag(10, WireType.LengthDelimited).string(message.Payload);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -386,13 +386,13 @@ export const ComposedField = new ComposedField$Type();
|
||||
class GetComposedFieldRequest$Type extends MessageType<GetComposedFieldRequest> {
|
||||
constructor() {
|
||||
super("vizapi.GetComposedFieldRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "ComposedFieldID", kind: "scalar", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" }, "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: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "IDs of the Composed Field", required: ["Header", "ComposedFieldID"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<GetComposedFieldRequest>): GetComposedFieldRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.composedFieldID = "";
|
||||
message.ComposedFieldID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetComposedFieldRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -403,10 +403,10 @@ class GetComposedFieldRequest$Type extends MessageType<GetComposedFieldRequest>
|
||||
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);
|
||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string ComposedFieldID = 2 [json_name = "ComposedFieldID"];*/ 2:
|
||||
message.composedFieldID = reader.string();
|
||||
message.ComposedFieldID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -421,11 +421,11 @@ class GetComposedFieldRequest$Type extends MessageType<GetComposedFieldRequest>
|
||||
}
|
||||
internalBinaryWrite(message: GetComposedFieldRequest, 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();
|
||||
if (message.Header)
|
||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string ComposedFieldID = 2 [json_name = "ComposedFieldID"]; */
|
||||
if (message.composedFieldID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.composedFieldID);
|
||||
if (message.ComposedFieldID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.ComposedFieldID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -440,7 +440,7 @@ export const GetComposedFieldRequest = new GetComposedFieldRequest$Type();
|
||||
class GetComposedFieldResult$Type extends MessageType<GetComposedFieldResult> {
|
||||
constructor() {
|
||||
super("vizapi.GetComposedFieldResult", [
|
||||
{ no: 1, name: "Result", kind: "message", jsonName: "Result", T: () => ComposedField }
|
||||
{ no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => ComposedField }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "All the Content about the composed field" } } });
|
||||
}
|
||||
create(value?: PartialMessage<GetComposedFieldResult>): GetComposedFieldResult {
|
||||
@@ -455,7 +455,7 @@ class GetComposedFieldResult$Type extends MessageType<GetComposedFieldResult> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* vizapi.ComposedField Result = 1 [json_name = "Result"];*/ 1:
|
||||
message.result = ComposedField.internalBinaryRead(reader, reader.uint32(), options, message.result);
|
||||
message.Result = ComposedField.internalBinaryRead(reader, reader.uint32(), options, message.Result);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -470,8 +470,8 @@ class GetComposedFieldResult$Type extends MessageType<GetComposedFieldResult> {
|
||||
}
|
||||
internalBinaryWrite(message: GetComposedFieldResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* vizapi.ComposedField Result = 1 [json_name = "Result"]; */
|
||||
if (message.result)
|
||||
ComposedField.internalBinaryWrite(message.result, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.Result)
|
||||
ComposedField.internalBinaryWrite(message.Result, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -486,19 +486,19 @@ export const GetComposedFieldResult = new GetComposedFieldResult$Type();
|
||||
class CreateComposedFieldRequest$Type extends MessageType<CreateComposedFieldRequest> {
|
||||
constructor() {
|
||||
super("vizapi.CreateComposedFieldRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "Name", kind: "scalar", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "ScreenID", kind: "scalar", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Screen" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 4, 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: 5, name: "Payload", kind: "scalar", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content in the Composed Field" }, "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: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, 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: "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" } } } },
|
||||
{ no: 5, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content in the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Content that needs to be stored ", required: ["Header", "Name", "ScreenID", "TabID", "Payload"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<CreateComposedFieldRequest>): CreateComposedFieldRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.name = "";
|
||||
message.screenID = "";
|
||||
message.tabID = "";
|
||||
message.payload = "";
|
||||
message.Name = "";
|
||||
message.ScreenID = "";
|
||||
message.TabID = "";
|
||||
message.Payload = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CreateComposedFieldRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -509,19 +509,19 @@ class CreateComposedFieldRequest$Type extends MessageType<CreateComposedFieldReq
|
||||
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);
|
||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string Name = 2 [json_name = "Name"];*/ 2:
|
||||
message.name = reader.string();
|
||||
message.Name = reader.string();
|
||||
break;
|
||||
case /* string ScreenID = 3 [json_name = "ScreenID"];*/ 3:
|
||||
message.screenID = reader.string();
|
||||
message.ScreenID = reader.string();
|
||||
break;
|
||||
case /* string TabID = 4 [json_name = "TabID"];*/ 4:
|
||||
message.tabID = reader.string();
|
||||
message.TabID = reader.string();
|
||||
break;
|
||||
case /* string Payload = 5 [json_name = "Payload"];*/ 5:
|
||||
message.payload = reader.string();
|
||||
message.Payload = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -536,20 +536,20 @@ class CreateComposedFieldRequest$Type extends MessageType<CreateComposedFieldReq
|
||||
}
|
||||
internalBinaryWrite(message: CreateComposedFieldRequest, 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();
|
||||
if (message.Header)
|
||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string Name = 2 [json_name = "Name"]; */
|
||||
if (message.name !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
||||
if (message.Name !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Name);
|
||||
/* string ScreenID = 3 [json_name = "ScreenID"]; */
|
||||
if (message.screenID !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.screenID);
|
||||
if (message.ScreenID !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.ScreenID);
|
||||
/* string TabID = 4 [json_name = "TabID"]; */
|
||||
if (message.tabID !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.tabID);
|
||||
if (message.TabID !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.TabID);
|
||||
/* string Payload = 5 [json_name = "Payload"]; */
|
||||
if (message.payload !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.payload);
|
||||
if (message.Payload !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.Payload);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -564,12 +564,12 @@ export const CreateComposedFieldRequest = new CreateComposedFieldRequest$Type();
|
||||
class CreateComposedFieldResult$Type extends MessageType<CreateComposedFieldResult> {
|
||||
constructor() {
|
||||
super("vizapi.CreateComposedFieldResult", [
|
||||
{ no: 1, name: "ComposedFieldID", kind: "scalar", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" } } }
|
||||
{ no: 1, name: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "ID of the created Composed Field" } } });
|
||||
}
|
||||
create(value?: PartialMessage<CreateComposedFieldResult>): CreateComposedFieldResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.composedFieldID = "";
|
||||
message.ComposedFieldID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CreateComposedFieldResult>(this, message, value);
|
||||
return message;
|
||||
@@ -580,7 +580,7 @@ class CreateComposedFieldResult$Type extends MessageType<CreateComposedFieldResu
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ComposedFieldID = 1 [json_name = "ComposedFieldID"];*/ 1:
|
||||
message.composedFieldID = reader.string();
|
||||
message.ComposedFieldID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -595,8 +595,8 @@ class CreateComposedFieldResult$Type extends MessageType<CreateComposedFieldResu
|
||||
}
|
||||
internalBinaryWrite(message: CreateComposedFieldResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ComposedFieldID = 1 [json_name = "ComposedFieldID"]; */
|
||||
if (message.composedFieldID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.composedFieldID);
|
||||
if (message.ComposedFieldID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ComposedFieldID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -611,21 +611,21 @@ export const CreateComposedFieldResult = new CreateComposedFieldResult$Type();
|
||||
class UpdateComposedFieldRequest$Type extends MessageType<UpdateComposedFieldRequest> {
|
||||
constructor() {
|
||||
super("vizapi.UpdateComposedFieldRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "ComposedFieldID", kind: "scalar", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "Name", kind: "scalar", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 4, name: "ScreenID", kind: "scalar", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Screen" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 5, 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: 6, name: "Payload", kind: "scalar", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content in the Composed Field" }, "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: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 4, 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: 5, 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" } } } },
|
||||
{ no: 6, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content in the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Content that needs to be updated", required: ["Header", "ComposedFieldID", "Name", "ScreenID", "TabID", "Payload"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<UpdateComposedFieldRequest>): UpdateComposedFieldRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.composedFieldID = "";
|
||||
message.name = "";
|
||||
message.screenID = "";
|
||||
message.tabID = "";
|
||||
message.payload = "";
|
||||
message.ComposedFieldID = "";
|
||||
message.Name = "";
|
||||
message.ScreenID = "";
|
||||
message.TabID = "";
|
||||
message.Payload = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<UpdateComposedFieldRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -636,22 +636,22 @@ class UpdateComposedFieldRequest$Type extends MessageType<UpdateComposedFieldReq
|
||||
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);
|
||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string ComposedFieldID = 2 [json_name = "ComposedFieldID"];*/ 2:
|
||||
message.composedFieldID = reader.string();
|
||||
message.ComposedFieldID = reader.string();
|
||||
break;
|
||||
case /* string Name = 3 [json_name = "Name"];*/ 3:
|
||||
message.name = reader.string();
|
||||
message.Name = reader.string();
|
||||
break;
|
||||
case /* string ScreenID = 4 [json_name = "ScreenID"];*/ 4:
|
||||
message.screenID = reader.string();
|
||||
message.ScreenID = reader.string();
|
||||
break;
|
||||
case /* string TabID = 5 [json_name = "TabID"];*/ 5:
|
||||
message.tabID = reader.string();
|
||||
message.TabID = reader.string();
|
||||
break;
|
||||
case /* string Payload = 6 [json_name = "Payload"];*/ 6:
|
||||
message.payload = reader.string();
|
||||
message.Payload = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -666,23 +666,23 @@ class UpdateComposedFieldRequest$Type extends MessageType<UpdateComposedFieldReq
|
||||
}
|
||||
internalBinaryWrite(message: UpdateComposedFieldRequest, 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();
|
||||
if (message.Header)
|
||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string ComposedFieldID = 2 [json_name = "ComposedFieldID"]; */
|
||||
if (message.composedFieldID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.composedFieldID);
|
||||
if (message.ComposedFieldID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.ComposedFieldID);
|
||||
/* string Name = 3 [json_name = "Name"]; */
|
||||
if (message.name !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.name);
|
||||
if (message.Name !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.Name);
|
||||
/* string ScreenID = 4 [json_name = "ScreenID"]; */
|
||||
if (message.screenID !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.screenID);
|
||||
if (message.ScreenID !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.ScreenID);
|
||||
/* string TabID = 5 [json_name = "TabID"]; */
|
||||
if (message.tabID !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.tabID);
|
||||
if (message.TabID !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.TabID);
|
||||
/* string Payload = 6 [json_name = "Payload"]; */
|
||||
if (message.payload !== "")
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.payload);
|
||||
if (message.Payload !== "")
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.Payload);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -697,12 +697,12 @@ export const UpdateComposedFieldRequest = new UpdateComposedFieldRequest$Type();
|
||||
class UpdateComposedFieldResult$Type extends MessageType<UpdateComposedFieldResult> {
|
||||
constructor() {
|
||||
super("vizapi.UpdateComposedFieldResult", [
|
||||
{ no: 1, name: "ComposedFieldID", kind: "scalar", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" } } }
|
||||
{ no: 1, name: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Updated dashboard ID" } } });
|
||||
}
|
||||
create(value?: PartialMessage<UpdateComposedFieldResult>): UpdateComposedFieldResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.composedFieldID = "";
|
||||
message.ComposedFieldID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<UpdateComposedFieldResult>(this, message, value);
|
||||
return message;
|
||||
@@ -713,7 +713,7 @@ class UpdateComposedFieldResult$Type extends MessageType<UpdateComposedFieldResu
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ComposedFieldID = 1 [json_name = "ComposedFieldID"];*/ 1:
|
||||
message.composedFieldID = reader.string();
|
||||
message.ComposedFieldID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -728,8 +728,8 @@ class UpdateComposedFieldResult$Type extends MessageType<UpdateComposedFieldResu
|
||||
}
|
||||
internalBinaryWrite(message: UpdateComposedFieldResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ComposedFieldID = 1 [json_name = "ComposedFieldID"]; */
|
||||
if (message.composedFieldID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.composedFieldID);
|
||||
if (message.ComposedFieldID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ComposedFieldID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -744,13 +744,13 @@ export const UpdateComposedFieldResult = new UpdateComposedFieldResult$Type();
|
||||
class DeleteComposedFieldRequest$Type extends MessageType<DeleteComposedFieldRequest> {
|
||||
constructor() {
|
||||
super("vizapi.DeleteComposedFieldRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "ComposedFieldID", kind: "scalar", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" }, "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: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "IDs of the Composed Field to be deleted", required: ["Header", "ComposedFieldID"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<DeleteComposedFieldRequest>): DeleteComposedFieldRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.composedFieldID = "";
|
||||
message.ComposedFieldID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DeleteComposedFieldRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -761,10 +761,10 @@ class DeleteComposedFieldRequest$Type extends MessageType<DeleteComposedFieldReq
|
||||
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);
|
||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string ComposedFieldID = 2 [json_name = "ComposedFieldID"];*/ 2:
|
||||
message.composedFieldID = reader.string();
|
||||
message.ComposedFieldID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -779,11 +779,11 @@ class DeleteComposedFieldRequest$Type extends MessageType<DeleteComposedFieldReq
|
||||
}
|
||||
internalBinaryWrite(message: DeleteComposedFieldRequest, 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();
|
||||
if (message.Header)
|
||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string ComposedFieldID = 2 [json_name = "ComposedFieldID"]; */
|
||||
if (message.composedFieldID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.composedFieldID);
|
||||
if (message.ComposedFieldID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.ComposedFieldID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -836,15 +836,15 @@ export const DeleteComposedFieldResult = new DeleteComposedFieldResult$Type();
|
||||
class ListComposedFieldRequest$Type extends MessageType<ListComposedFieldRequest> {
|
||||
constructor() {
|
||||
super("vizapi.ListComposedFieldRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "ScreenID", kind: "scalar", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Screen" } } },
|
||||
{ no: 3, name: "TabID", kind: "scalar", jsonName: "TabID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Tab" } } }
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, 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" } } },
|
||||
{ no: 3, 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" } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<ListComposedFieldRequest>): ListComposedFieldRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.screenID = "";
|
||||
message.tabID = "";
|
||||
message.ScreenID = "";
|
||||
message.TabID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ListComposedFieldRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -855,13 +855,13 @@ class ListComposedFieldRequest$Type extends MessageType<ListComposedFieldRequest
|
||||
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);
|
||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string ScreenID = 2 [json_name = "ScreenID"];*/ 2:
|
||||
message.screenID = reader.string();
|
||||
message.ScreenID = reader.string();
|
||||
break;
|
||||
case /* string TabID = 3 [json_name = "TabID"];*/ 3:
|
||||
message.tabID = reader.string();
|
||||
message.TabID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -876,14 +876,14 @@ class ListComposedFieldRequest$Type extends MessageType<ListComposedFieldRequest
|
||||
}
|
||||
internalBinaryWrite(message: ListComposedFieldRequest, 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();
|
||||
if (message.Header)
|
||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string ScreenID = 2 [json_name = "ScreenID"]; */
|
||||
if (message.screenID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.screenID);
|
||||
if (message.ScreenID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.ScreenID);
|
||||
/* string TabID = 3 [json_name = "TabID"]; */
|
||||
if (message.tabID !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.tabID);
|
||||
if (message.TabID !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.TabID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -898,12 +898,12 @@ export const ListComposedFieldRequest = new ListComposedFieldRequest$Type();
|
||||
class ListComposedFieldResult$Type extends MessageType<ListComposedFieldResult> {
|
||||
constructor() {
|
||||
super("vizapi.ListComposedFieldResult", [
|
||||
{ no: 1, name: "Results", kind: "message", jsonName: "Results", repeat: 1 /*RepeatType.PACKED*/, T: () => ComposedField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "All Content in a Composed Field" } } }
|
||||
{ no: 1, name: "Results", kind: "message", localName: "Results", jsonName: "Results", repeat: 1 /*RepeatType.PACKED*/, T: () => ComposedField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "All Content in a Composed Field" } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "List of Composed Fields" } } });
|
||||
}
|
||||
create(value?: PartialMessage<ListComposedFieldResult>): ListComposedFieldResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.results = [];
|
||||
message.Results = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ListComposedFieldResult>(this, message, value);
|
||||
return message;
|
||||
@@ -914,7 +914,7 @@ class ListComposedFieldResult$Type extends MessageType<ListComposedFieldResult>
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated vizapi.ComposedField Results = 1 [json_name = "Results"];*/ 1:
|
||||
message.results.push(ComposedField.internalBinaryRead(reader, reader.uint32(), options));
|
||||
message.Results.push(ComposedField.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -929,8 +929,8 @@ class ListComposedFieldResult$Type extends MessageType<ListComposedFieldResult>
|
||||
}
|
||||
internalBinaryWrite(message: ListComposedFieldResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated vizapi.ComposedField Results = 1 [json_name = "Results"]; */
|
||||
for (let i = 0; i < message.results.length; i++)
|
||||
ComposedField.internalBinaryWrite(message.results[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
for (let i = 0; i < message.Results.length; i++)
|
||||
ComposedField.internalBinaryWrite(message.Results[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.9.6 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";
|
||||
|
||||
372
viz-dashboard.ts
372
viz-dashboard.ts
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "viz-dashboard.proto" (package "vizapi", syntax proto3)
|
||||
// tslint:disable
|
||||
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
||||
@@ -24,49 +24,49 @@ export interface Dashboard {
|
||||
*
|
||||
* @generated from protobuf field: string DashboardID = 1 [json_name = "DashboardID"];
|
||||
*/
|
||||
dashboardID: string;
|
||||
DashboardID: string;
|
||||
/**
|
||||
* Name of the Dashboard
|
||||
*
|
||||
* @generated from protobuf field: string Name = 2 [json_name = "Name"];
|
||||
*/
|
||||
name: string;
|
||||
Name: string;
|
||||
/**
|
||||
* All the widgets in Dashboard
|
||||
*
|
||||
* @generated from protobuf field: string Content = 3 [json_name = "Content"];
|
||||
*/
|
||||
content: string;
|
||||
Content: string;
|
||||
/**
|
||||
* Identifier of the user who created
|
||||
*
|
||||
* @generated from protobuf field: string CreateUserID = 4 [json_name = "CreateUserID"];
|
||||
*/
|
||||
createUserID: string;
|
||||
CreateUserID: string;
|
||||
/**
|
||||
* Identifier of the user who did the last update
|
||||
*
|
||||
* @generated from protobuf field: string UpdateUserID = 5 [json_name = "UpdateUserID"];
|
||||
*/
|
||||
updateUserID: string;
|
||||
UpdateUserID: string;
|
||||
/**
|
||||
* Date of creation in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z]
|
||||
*
|
||||
* @generated from protobuf field: string CreateDate = 6 [json_name = "CreateDate"];
|
||||
*/
|
||||
createDate: string;
|
||||
CreateDate: string;
|
||||
/**
|
||||
* Date of last update in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z]
|
||||
*
|
||||
* @generated from protobuf field: string UpdateDate = 7 [json_name = "UpdateDate"];
|
||||
*/
|
||||
updateDate: string;
|
||||
UpdateDate: string;
|
||||
/**
|
||||
* Visibility of the Dashboard
|
||||
*
|
||||
* @generated from protobuf field: bool IsPrivate = 8 [json_name = "IsPrivate"];
|
||||
*/
|
||||
isPrivate: boolean;
|
||||
IsPrivate: boolean;
|
||||
// bool IsFavorite = 9;
|
||||
// bool IsDefault = 10;
|
||||
// bool IsHomePage = 11;
|
||||
@@ -74,7 +74,7 @@ export interface Dashboard {
|
||||
/**
|
||||
* @generated from protobuf field: int32 AutoRefresh = 12 [json_name = "AutoRefresh"];
|
||||
*/
|
||||
autoRefresh: number;
|
||||
AutoRefresh: number;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.ListDashboardRequest
|
||||
@@ -83,7 +83,7 @@ export interface ListDashboardRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
|
||||
*/
|
||||
header?: RequestProjectHeader;
|
||||
Header?: RequestProjectHeader;
|
||||
}
|
||||
/**
|
||||
* List of Dashboards
|
||||
@@ -96,7 +96,7 @@ export interface ListDashboardResult {
|
||||
*
|
||||
* @generated from protobuf field: repeated vizapi.Dashboard Results = 1 [json_name = "Results"];
|
||||
*/
|
||||
results: Dashboard[];
|
||||
Results: Dashboard[];
|
||||
}
|
||||
/**
|
||||
* Information that needs to be stored
|
||||
@@ -107,7 +107,7 @@ export interface CreateDashboardRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
|
||||
*/
|
||||
header?: RequestProjectHeader;
|
||||
Header?: RequestProjectHeader;
|
||||
// empty string for name, PO: name could be empty
|
||||
|
||||
/**
|
||||
@@ -115,7 +115,7 @@ export interface CreateDashboardRequest {
|
||||
*
|
||||
* @generated from protobuf field: string Name = 2 [json_name = "Name"];
|
||||
*/
|
||||
name: string;
|
||||
Name: string;
|
||||
/**
|
||||
* All widgets in Dashboard
|
||||
*
|
||||
@@ -127,7 +127,7 @@ export interface CreateDashboardRequest {
|
||||
*
|
||||
* @generated from protobuf field: bool IsPrivate = 4 [json_name = "IsPrivate"];
|
||||
*/
|
||||
isPrivate: boolean;
|
||||
IsPrivate: boolean;
|
||||
// bool IsFavorite = 5;
|
||||
// bool IsDefault = 6;
|
||||
// bool IsHomePage = 7;
|
||||
@@ -135,7 +135,7 @@ export interface CreateDashboardRequest {
|
||||
/**
|
||||
* @generated from protobuf field: int32 AutoRefresh = 8 [json_name = "AutoRefresh"];
|
||||
*/
|
||||
autoRefresh: number;
|
||||
AutoRefresh: number;
|
||||
}
|
||||
/**
|
||||
* Created Dashboard
|
||||
@@ -146,7 +146,7 @@ export interface CreateDashboardResult {
|
||||
/**
|
||||
* @generated from protobuf field: vizapi.Dashboard Result = 1 [json_name = "Result"];
|
||||
*/
|
||||
result?: Dashboard;
|
||||
Result?: Dashboard;
|
||||
}
|
||||
/**
|
||||
* IDs of the Dashboard to be deleted
|
||||
@@ -157,13 +157,13 @@ export interface DeleteDashboardRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
|
||||
*/
|
||||
header?: RequestProjectHeader;
|
||||
Header?: RequestProjectHeader;
|
||||
/**
|
||||
* Identifier of the Dashboard
|
||||
*
|
||||
* @generated from protobuf field: string DashboardID = 2 [json_name = "DashboardID"];
|
||||
*/
|
||||
dashboardID: string;
|
||||
DashboardID: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.DeleteDashboardResult
|
||||
@@ -181,7 +181,7 @@ export interface DeleteDashboardsForOrganisationRequest {
|
||||
*
|
||||
* @generated from protobuf field: string OrganisationID = 2 [json_name = "OrganisationID"];
|
||||
*/
|
||||
organisationID: string;
|
||||
OrganisationID: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.DeleteDashboardsForOrganisationResult
|
||||
@@ -199,7 +199,7 @@ export interface DeleteDashboardsForProjectRequest {
|
||||
*
|
||||
* @generated from protobuf field: string ProjectID = 1 [json_name = "ProjectID"];
|
||||
*/
|
||||
projectID: string;
|
||||
ProjectID: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.DeleteDashboardsForProjectResult
|
||||
@@ -215,31 +215,31 @@ export interface UpdateDashboardRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
|
||||
*/
|
||||
header?: RequestProjectHeader;
|
||||
Header?: RequestProjectHeader;
|
||||
/**
|
||||
* Identifier of the Dashboard
|
||||
*
|
||||
* @generated from protobuf field: string DashboardID = 2 [json_name = "DashboardID"];
|
||||
*/
|
||||
dashboardID: string;
|
||||
DashboardID: string;
|
||||
/**
|
||||
* Name of the Dashboard
|
||||
*
|
||||
* @generated from protobuf field: api.StringObject Name = 3 [json_name = "Name"];
|
||||
*/
|
||||
name?: StringObject;
|
||||
Name?: StringObject;
|
||||
/**
|
||||
* All the widgets in Dashboard
|
||||
*
|
||||
* @generated from protobuf field: api.StringObject Content = 4 [json_name = "Content"];
|
||||
*/
|
||||
content?: StringObject;
|
||||
Content?: StringObject;
|
||||
/**
|
||||
* Visibility of the Dashboard
|
||||
*
|
||||
* @generated from protobuf field: api.BoolObject IsPrivate = 5 [json_name = "IsPrivate"];
|
||||
*/
|
||||
isPrivate?: BoolObject;
|
||||
IsPrivate?: BoolObject;
|
||||
// api.BoolObject IsFavorite = 6;
|
||||
// api.BoolObject IsDefault = 7;
|
||||
// api.BoolObject IsHomePage = 8;
|
||||
@@ -247,7 +247,7 @@ export interface UpdateDashboardRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.Int32Object AutoRefresh = 9 [json_name = "AutoRefresh"];
|
||||
*/
|
||||
autoRefresh?: Int32Object;
|
||||
AutoRefresh?: Int32Object;
|
||||
}
|
||||
/**
|
||||
* Updated Dashboard information
|
||||
@@ -258,7 +258,7 @@ export interface UpdateDashboardResult {
|
||||
/**
|
||||
* @generated from protobuf field: vizapi.Dashboard Result = 1 [json_name = "Result"];
|
||||
*/
|
||||
result?: Dashboard;
|
||||
Result?: Dashboard;
|
||||
}
|
||||
/**
|
||||
* IDs of the Dashboard
|
||||
@@ -269,13 +269,13 @@ export interface GetDashboardRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
|
||||
*/
|
||||
header?: RequestProjectHeader;
|
||||
Header?: RequestProjectHeader;
|
||||
/**
|
||||
* Identifier of the Dashboard
|
||||
*
|
||||
* @generated from protobuf field: string DashboardID = 2 [json_name = "DashboardID"];
|
||||
*/
|
||||
dashboardID: string;
|
||||
DashboardID: string;
|
||||
}
|
||||
/**
|
||||
* All information about the Dashboard
|
||||
@@ -295,19 +295,19 @@ export interface CopyDashboardRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
|
||||
*/
|
||||
header?: RequestProjectHeader;
|
||||
Header?: RequestProjectHeader;
|
||||
/**
|
||||
* Identifier of the Dashboard
|
||||
*
|
||||
* @generated from protobuf field: string DashboardID = 2 [json_name = "DashboardID"];
|
||||
*/
|
||||
dashboardID: string;
|
||||
DashboardID: string;
|
||||
/**
|
||||
* Name of the new Dashboard
|
||||
*
|
||||
* @generated from protobuf field: string Name = 3 [json_name = "Name"];
|
||||
*/
|
||||
name: string; // string OrganisationID = 4 [(validate.rules).string.min_len = 1];
|
||||
Name: string; // string OrganisationID = 4 [(validate.rules).string.min_len = 1];
|
||||
}
|
||||
/**
|
||||
* New copied dashboard
|
||||
@@ -318,34 +318,34 @@ export interface CopyDashboardResult {
|
||||
/**
|
||||
* @generated from protobuf field: vizapi.Dashboard Result = 1 [json_name = "Result"];
|
||||
*/
|
||||
result?: Dashboard;
|
||||
Result?: Dashboard;
|
||||
}
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class Dashboard$Type extends MessageType<Dashboard> {
|
||||
constructor() {
|
||||
super("vizapi.Dashboard", [
|
||||
{ no: 1, name: "DashboardID", kind: "scalar", jsonName: "DashboardID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Dashboard" } } },
|
||||
{ no: 2, name: "Name", kind: "scalar", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the Dashboard" } } },
|
||||
{ no: 3, name: "Content", kind: "scalar", jsonName: "Content", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "All the widgets in Dashboard" } } },
|
||||
{ no: 4, name: "CreateUserID", kind: "scalar", jsonName: "CreateUserID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the user who created" } } },
|
||||
{ no: 5, name: "UpdateUserID", kind: "scalar", jsonName: "UpdateUserID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the user who did the last update" } } },
|
||||
{ no: 6, name: "CreateDate", kind: "scalar", jsonName: "CreateDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Date of creation in <a href='https://en.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format with time zone (accepted tzd formats: [+01:00, -01:00, Z]", example: "\"2023-01-01T00:00:00Z\"" } } },
|
||||
{ no: 7, name: "UpdateDate", kind: "scalar", jsonName: "UpdateDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Date of last update in <a href='https://en.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format with time zone (accepted tzd formats: [+01:00, -01:00, Z]", example: "\"2023-01-01T00:00:01Z\"" } } },
|
||||
{ no: 8, name: "IsPrivate", kind: "scalar", jsonName: "IsPrivate", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Visibility of the Dashboard" } } },
|
||||
{ no: 12, name: "AutoRefresh", kind: "scalar", jsonName: "AutoRefresh", T: 5 /*ScalarType.INT32*/ }
|
||||
{ no: 1, name: "DashboardID", kind: "scalar", localName: "DashboardID", jsonName: "DashboardID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Dashboard" } } },
|
||||
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the Dashboard" } } },
|
||||
{ no: 3, name: "Content", kind: "scalar", localName: "Content", jsonName: "Content", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "All the widgets in Dashboard" } } },
|
||||
{ no: 4, name: "CreateUserID", kind: "scalar", localName: "CreateUserID", jsonName: "CreateUserID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the user who created" } } },
|
||||
{ no: 5, name: "UpdateUserID", kind: "scalar", localName: "UpdateUserID", jsonName: "UpdateUserID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the user who did the last update" } } },
|
||||
{ no: 6, name: "CreateDate", kind: "scalar", localName: "CreateDate", jsonName: "CreateDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Date of creation in <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: 7, name: "UpdateDate", kind: "scalar", localName: "UpdateDate", jsonName: "UpdateDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Date of last update in <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: 8, name: "IsPrivate", kind: "scalar", localName: "IsPrivate", jsonName: "IsPrivate", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Visibility of the Dashboard" } } },
|
||||
{ no: 12, name: "AutoRefresh", kind: "scalar", localName: "AutoRefresh", jsonName: "AutoRefresh", T: 5 /*ScalarType.INT32*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<Dashboard>): Dashboard {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.dashboardID = "";
|
||||
message.name = "";
|
||||
message.content = "";
|
||||
message.createUserID = "";
|
||||
message.updateUserID = "";
|
||||
message.createDate = "";
|
||||
message.updateDate = "";
|
||||
message.isPrivate = false;
|
||||
message.autoRefresh = 0;
|
||||
message.DashboardID = "";
|
||||
message.Name = "";
|
||||
message.Content = "";
|
||||
message.CreateUserID = "";
|
||||
message.UpdateUserID = "";
|
||||
message.CreateDate = "";
|
||||
message.UpdateDate = "";
|
||||
message.IsPrivate = false;
|
||||
message.AutoRefresh = 0;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<Dashboard>(this, message, value);
|
||||
return message;
|
||||
@@ -356,31 +356,31 @@ class Dashboard$Type extends MessageType<Dashboard> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string DashboardID = 1 [json_name = "DashboardID"];*/ 1:
|
||||
message.dashboardID = reader.string();
|
||||
message.DashboardID = reader.string();
|
||||
break;
|
||||
case /* string Name = 2 [json_name = "Name"];*/ 2:
|
||||
message.name = reader.string();
|
||||
message.Name = reader.string();
|
||||
break;
|
||||
case /* string Content = 3 [json_name = "Content"];*/ 3:
|
||||
message.content = reader.string();
|
||||
message.Content = reader.string();
|
||||
break;
|
||||
case /* string CreateUserID = 4 [json_name = "CreateUserID"];*/ 4:
|
||||
message.createUserID = reader.string();
|
||||
message.CreateUserID = reader.string();
|
||||
break;
|
||||
case /* string UpdateUserID = 5 [json_name = "UpdateUserID"];*/ 5:
|
||||
message.updateUserID = reader.string();
|
||||
message.UpdateUserID = reader.string();
|
||||
break;
|
||||
case /* string CreateDate = 6 [json_name = "CreateDate"];*/ 6:
|
||||
message.createDate = reader.string();
|
||||
message.CreateDate = reader.string();
|
||||
break;
|
||||
case /* string UpdateDate = 7 [json_name = "UpdateDate"];*/ 7:
|
||||
message.updateDate = reader.string();
|
||||
message.UpdateDate = reader.string();
|
||||
break;
|
||||
case /* bool IsPrivate = 8 [json_name = "IsPrivate"];*/ 8:
|
||||
message.isPrivate = reader.bool();
|
||||
message.IsPrivate = reader.bool();
|
||||
break;
|
||||
case /* int32 AutoRefresh = 12 [json_name = "AutoRefresh"];*/ 12:
|
||||
message.autoRefresh = reader.int32();
|
||||
message.AutoRefresh = reader.int32();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -395,32 +395,32 @@ class Dashboard$Type extends MessageType<Dashboard> {
|
||||
}
|
||||
internalBinaryWrite(message: Dashboard, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string DashboardID = 1 [json_name = "DashboardID"]; */
|
||||
if (message.dashboardID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.dashboardID);
|
||||
if (message.DashboardID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.DashboardID);
|
||||
/* string Name = 2 [json_name = "Name"]; */
|
||||
if (message.name !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
||||
if (message.Name !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Name);
|
||||
/* string Content = 3 [json_name = "Content"]; */
|
||||
if (message.content !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.content);
|
||||
if (message.Content !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.Content);
|
||||
/* string CreateUserID = 4 [json_name = "CreateUserID"]; */
|
||||
if (message.createUserID !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.createUserID);
|
||||
if (message.CreateUserID !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.CreateUserID);
|
||||
/* string UpdateUserID = 5 [json_name = "UpdateUserID"]; */
|
||||
if (message.updateUserID !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.updateUserID);
|
||||
if (message.UpdateUserID !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.UpdateUserID);
|
||||
/* string CreateDate = 6 [json_name = "CreateDate"]; */
|
||||
if (message.createDate !== "")
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.createDate);
|
||||
if (message.CreateDate !== "")
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.CreateDate);
|
||||
/* string UpdateDate = 7 [json_name = "UpdateDate"]; */
|
||||
if (message.updateDate !== "")
|
||||
writer.tag(7, WireType.LengthDelimited).string(message.updateDate);
|
||||
if (message.UpdateDate !== "")
|
||||
writer.tag(7, WireType.LengthDelimited).string(message.UpdateDate);
|
||||
/* bool IsPrivate = 8 [json_name = "IsPrivate"]; */
|
||||
if (message.isPrivate !== false)
|
||||
writer.tag(8, WireType.Varint).bool(message.isPrivate);
|
||||
if (message.IsPrivate !== false)
|
||||
writer.tag(8, WireType.Varint).bool(message.IsPrivate);
|
||||
/* int32 AutoRefresh = 12 [json_name = "AutoRefresh"]; */
|
||||
if (message.autoRefresh !== 0)
|
||||
writer.tag(12, WireType.Varint).int32(message.autoRefresh);
|
||||
if (message.AutoRefresh !== 0)
|
||||
writer.tag(12, WireType.Varint).int32(message.AutoRefresh);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -435,7 +435,7 @@ export const Dashboard = new Dashboard$Type();
|
||||
class ListDashboardRequest$Type extends MessageType<ListDashboardRequest> {
|
||||
constructor() {
|
||||
super("vizapi.ListDashboardRequest", [
|
||||
{ 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: { required: ["Header"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<ListDashboardRequest>): ListDashboardRequest {
|
||||
@@ -450,7 +450,7 @@ class ListDashboardRequest$Type extends MessageType<ListDashboardRequest> {
|
||||
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);
|
||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -465,8 +465,8 @@ class ListDashboardRequest$Type extends MessageType<ListDashboardRequest> {
|
||||
}
|
||||
internalBinaryWrite(message: ListDashboardRequest, 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();
|
||||
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);
|
||||
@@ -481,12 +481,12 @@ export const ListDashboardRequest = new ListDashboardRequest$Type();
|
||||
class ListDashboardResult$Type extends MessageType<ListDashboardResult> {
|
||||
constructor() {
|
||||
super("vizapi.ListDashboardResult", [
|
||||
{ no: 1, name: "Results", kind: "message", jsonName: "Results", repeat: 1 /*RepeatType.PACKED*/, T: () => Dashboard, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "All information in a Dashboard" } } }
|
||||
{ no: 1, name: "Results", kind: "message", localName: "Results", jsonName: "Results", repeat: 1 /*RepeatType.PACKED*/, T: () => Dashboard, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "All information in a Dashboard" } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "List of Dashboards" } } });
|
||||
}
|
||||
create(value?: PartialMessage<ListDashboardResult>): ListDashboardResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.results = [];
|
||||
message.Results = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ListDashboardResult>(this, message, value);
|
||||
return message;
|
||||
@@ -497,7 +497,7 @@ class ListDashboardResult$Type extends MessageType<ListDashboardResult> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated vizapi.Dashboard Results = 1 [json_name = "Results"];*/ 1:
|
||||
message.results.push(Dashboard.internalBinaryRead(reader, reader.uint32(), options));
|
||||
message.Results.push(Dashboard.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -512,8 +512,8 @@ class ListDashboardResult$Type extends MessageType<ListDashboardResult> {
|
||||
}
|
||||
internalBinaryWrite(message: ListDashboardResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated vizapi.Dashboard Results = 1 [json_name = "Results"]; */
|
||||
for (let i = 0; i < message.results.length; i++)
|
||||
Dashboard.internalBinaryWrite(message.results[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
for (let i = 0; i < message.Results.length; i++)
|
||||
Dashboard.internalBinaryWrite(message.Results[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -528,19 +528,19 @@ export const ListDashboardResult = new ListDashboardResult$Type();
|
||||
class CreateDashboardRequest$Type extends MessageType<CreateDashboardRequest> {
|
||||
constructor() {
|
||||
super("vizapi.CreateDashboardRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "Name", kind: "scalar", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the Dashboard" }, "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: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the Dashboard" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "content", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "All widgets in Dashboard" } } },
|
||||
{ no: 4, name: "IsPrivate", kind: "scalar", jsonName: "IsPrivate", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Visibility of the Dashboard" } } },
|
||||
{ no: 8, name: "AutoRefresh", kind: "scalar", jsonName: "AutoRefresh", T: 5 /*ScalarType.INT32*/ }
|
||||
{ no: 4, name: "IsPrivate", kind: "scalar", localName: "IsPrivate", jsonName: "IsPrivate", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Visibility of the Dashboard" } } },
|
||||
{ no: 8, name: "AutoRefresh", kind: "scalar", localName: "AutoRefresh", jsonName: "AutoRefresh", T: 5 /*ScalarType.INT32*/ }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Information that needs to be stored", required: ["Header", "Name"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<CreateDashboardRequest>): CreateDashboardRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.name = "";
|
||||
message.Name = "";
|
||||
message.content = "";
|
||||
message.isPrivate = false;
|
||||
message.autoRefresh = 0;
|
||||
message.IsPrivate = false;
|
||||
message.AutoRefresh = 0;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CreateDashboardRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -551,19 +551,19 @@ class CreateDashboardRequest$Type extends MessageType<CreateDashboardRequest> {
|
||||
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);
|
||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string Name = 2 [json_name = "Name"];*/ 2:
|
||||
message.name = reader.string();
|
||||
message.Name = reader.string();
|
||||
break;
|
||||
case /* string content */ 3:
|
||||
message.content = reader.string();
|
||||
break;
|
||||
case /* bool IsPrivate = 4 [json_name = "IsPrivate"];*/ 4:
|
||||
message.isPrivate = reader.bool();
|
||||
message.IsPrivate = reader.bool();
|
||||
break;
|
||||
case /* int32 AutoRefresh = 8 [json_name = "AutoRefresh"];*/ 8:
|
||||
message.autoRefresh = reader.int32();
|
||||
message.AutoRefresh = reader.int32();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -578,20 +578,20 @@ class CreateDashboardRequest$Type extends MessageType<CreateDashboardRequest> {
|
||||
}
|
||||
internalBinaryWrite(message: CreateDashboardRequest, 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();
|
||||
if (message.Header)
|
||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string Name = 2 [json_name = "Name"]; */
|
||||
if (message.name !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
||||
if (message.Name !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Name);
|
||||
/* string content = 3; */
|
||||
if (message.content !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.content);
|
||||
/* bool IsPrivate = 4 [json_name = "IsPrivate"]; */
|
||||
if (message.isPrivate !== false)
|
||||
writer.tag(4, WireType.Varint).bool(message.isPrivate);
|
||||
if (message.IsPrivate !== false)
|
||||
writer.tag(4, WireType.Varint).bool(message.IsPrivate);
|
||||
/* int32 AutoRefresh = 8 [json_name = "AutoRefresh"]; */
|
||||
if (message.autoRefresh !== 0)
|
||||
writer.tag(8, WireType.Varint).int32(message.autoRefresh);
|
||||
if (message.AutoRefresh !== 0)
|
||||
writer.tag(8, WireType.Varint).int32(message.AutoRefresh);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -606,7 +606,7 @@ export const CreateDashboardRequest = new CreateDashboardRequest$Type();
|
||||
class CreateDashboardResult$Type extends MessageType<CreateDashboardResult> {
|
||||
constructor() {
|
||||
super("vizapi.CreateDashboardResult", [
|
||||
{ no: 1, name: "Result", kind: "message", jsonName: "Result", T: () => Dashboard }
|
||||
{ no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => Dashboard }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Created Dashboard" } } });
|
||||
}
|
||||
create(value?: PartialMessage<CreateDashboardResult>): CreateDashboardResult {
|
||||
@@ -621,7 +621,7 @@ class CreateDashboardResult$Type extends MessageType<CreateDashboardResult> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* vizapi.Dashboard Result = 1 [json_name = "Result"];*/ 1:
|
||||
message.result = Dashboard.internalBinaryRead(reader, reader.uint32(), options, message.result);
|
||||
message.Result = Dashboard.internalBinaryRead(reader, reader.uint32(), options, message.Result);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -636,8 +636,8 @@ class CreateDashboardResult$Type extends MessageType<CreateDashboardResult> {
|
||||
}
|
||||
internalBinaryWrite(message: CreateDashboardResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* vizapi.Dashboard Result = 1 [json_name = "Result"]; */
|
||||
if (message.result)
|
||||
Dashboard.internalBinaryWrite(message.result, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.Result)
|
||||
Dashboard.internalBinaryWrite(message.Result, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -652,13 +652,13 @@ export const CreateDashboardResult = new CreateDashboardResult$Type();
|
||||
class DeleteDashboardRequest$Type extends MessageType<DeleteDashboardRequest> {
|
||||
constructor() {
|
||||
super("vizapi.DeleteDashboardRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "DashboardID", kind: "scalar", jsonName: "DashboardID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Dashboard" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "DashboardID", kind: "scalar", localName: "DashboardID", jsonName: "DashboardID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Dashboard" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "IDs of the Dashboard to be deleted", required: ["Header", "DashboardID"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<DeleteDashboardRequest>): DeleteDashboardRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.dashboardID = "";
|
||||
message.DashboardID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DeleteDashboardRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -669,10 +669,10 @@ class DeleteDashboardRequest$Type extends MessageType<DeleteDashboardRequest> {
|
||||
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);
|
||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string DashboardID = 2 [json_name = "DashboardID"];*/ 2:
|
||||
message.dashboardID = reader.string();
|
||||
message.DashboardID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -687,11 +687,11 @@ class DeleteDashboardRequest$Type extends MessageType<DeleteDashboardRequest> {
|
||||
}
|
||||
internalBinaryWrite(message: DeleteDashboardRequest, 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();
|
||||
if (message.Header)
|
||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string DashboardID = 2 [json_name = "DashboardID"]; */
|
||||
if (message.dashboardID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.dashboardID);
|
||||
if (message.DashboardID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.DashboardID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -744,12 +744,12 @@ export const DeleteDashboardResult = new DeleteDashboardResult$Type();
|
||||
class DeleteDashboardsForOrganisationRequest$Type extends MessageType<DeleteDashboardsForOrganisationRequest> {
|
||||
constructor() {
|
||||
super("vizapi.DeleteDashboardsForOrganisationRequest", [
|
||||
{ no: 2, name: "OrganisationID", kind: "scalar", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Organization" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
{ no: 2, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Organization" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Organization identifier to delete the dashboards from", required: ["OrganisationID"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<DeleteDashboardsForOrganisationRequest>): DeleteDashboardsForOrganisationRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.organisationID = "";
|
||||
message.OrganisationID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DeleteDashboardsForOrganisationRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -760,7 +760,7 @@ class DeleteDashboardsForOrganisationRequest$Type extends MessageType<DeleteDash
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string OrganisationID = 2 [json_name = "OrganisationID"];*/ 2:
|
||||
message.organisationID = reader.string();
|
||||
message.OrganisationID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -775,8 +775,8 @@ class DeleteDashboardsForOrganisationRequest$Type extends MessageType<DeleteDash
|
||||
}
|
||||
internalBinaryWrite(message: DeleteDashboardsForOrganisationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string OrganisationID = 2 [json_name = "OrganisationID"]; */
|
||||
if (message.organisationID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.organisationID);
|
||||
if (message.OrganisationID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.OrganisationID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -829,12 +829,12 @@ export const DeleteDashboardsForOrganisationResult = new DeleteDashboardsForOrga
|
||||
class DeleteDashboardsForProjectRequest$Type extends MessageType<DeleteDashboardsForProjectRequest> {
|
||||
constructor() {
|
||||
super("vizapi.DeleteDashboardsForProjectRequest", [
|
||||
{ no: 1, name: "ProjectID", kind: "scalar", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Project" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Project" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Organization identifier to delete the dashboards from", required: ["ProjectID"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<DeleteDashboardsForProjectRequest>): DeleteDashboardsForProjectRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.projectID = "";
|
||||
message.ProjectID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DeleteDashboardsForProjectRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -845,7 +845,7 @@ class DeleteDashboardsForProjectRequest$Type extends MessageType<DeleteDashboard
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ProjectID = 1 [json_name = "ProjectID"];*/ 1:
|
||||
message.projectID = reader.string();
|
||||
message.ProjectID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -860,8 +860,8 @@ class DeleteDashboardsForProjectRequest$Type extends MessageType<DeleteDashboard
|
||||
}
|
||||
internalBinaryWrite(message: DeleteDashboardsForProjectRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ProjectID = 1 [json_name = "ProjectID"]; */
|
||||
if (message.projectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.projectID);
|
||||
if (message.ProjectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -914,17 +914,17 @@ export const DeleteDashboardsForProjectResult = new DeleteDashboardsForProjectRe
|
||||
class UpdateDashboardRequest$Type extends MessageType<UpdateDashboardRequest> {
|
||||
constructor() {
|
||||
super("vizapi.UpdateDashboardRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "DashboardID", kind: "scalar", jsonName: "DashboardID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Dashboard" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "Name", kind: "message", jsonName: "Name", T: () => StringObject, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the Dashboard" } } },
|
||||
{ no: 4, name: "Content", kind: "message", jsonName: "Content", T: () => StringObject, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "All the widgets in Dashboard" } } },
|
||||
{ no: 5, name: "IsPrivate", kind: "message", jsonName: "IsPrivate", T: () => BoolObject, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Visibility of the Dashboard" } } },
|
||||
{ no: 9, name: "AutoRefresh", kind: "message", jsonName: "AutoRefresh", T: () => Int32Object }
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "DashboardID", kind: "scalar", localName: "DashboardID", jsonName: "DashboardID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Dashboard" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "Name", kind: "message", localName: "Name", jsonName: "Name", T: () => StringObject, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the Dashboard" } } },
|
||||
{ no: 4, name: "Content", kind: "message", localName: "Content", jsonName: "Content", T: () => StringObject, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "All the widgets in Dashboard" } } },
|
||||
{ no: 5, name: "IsPrivate", kind: "message", localName: "IsPrivate", jsonName: "IsPrivate", T: () => BoolObject, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Visibility of the Dashboard" } } },
|
||||
{ no: 9, name: "AutoRefresh", kind: "message", localName: "AutoRefresh", jsonName: "AutoRefresh", T: () => Int32Object }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Information that needs to be updated", required: ["Header", "DashboardID"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<UpdateDashboardRequest>): UpdateDashboardRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.dashboardID = "";
|
||||
message.DashboardID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<UpdateDashboardRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -935,22 +935,22 @@ class UpdateDashboardRequest$Type extends MessageType<UpdateDashboardRequest> {
|
||||
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);
|
||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string DashboardID = 2 [json_name = "DashboardID"];*/ 2:
|
||||
message.dashboardID = reader.string();
|
||||
message.DashboardID = reader.string();
|
||||
break;
|
||||
case /* api.StringObject Name = 3 [json_name = "Name"];*/ 3:
|
||||
message.name = StringObject.internalBinaryRead(reader, reader.uint32(), options, message.name);
|
||||
message.Name = StringObject.internalBinaryRead(reader, reader.uint32(), options, message.Name);
|
||||
break;
|
||||
case /* api.StringObject Content = 4 [json_name = "Content"];*/ 4:
|
||||
message.content = StringObject.internalBinaryRead(reader, reader.uint32(), options, message.content);
|
||||
message.Content = StringObject.internalBinaryRead(reader, reader.uint32(), options, message.Content);
|
||||
break;
|
||||
case /* api.BoolObject IsPrivate = 5 [json_name = "IsPrivate"];*/ 5:
|
||||
message.isPrivate = BoolObject.internalBinaryRead(reader, reader.uint32(), options, message.isPrivate);
|
||||
message.IsPrivate = BoolObject.internalBinaryRead(reader, reader.uint32(), options, message.IsPrivate);
|
||||
break;
|
||||
case /* api.Int32Object AutoRefresh = 9 [json_name = "AutoRefresh"];*/ 9:
|
||||
message.autoRefresh = Int32Object.internalBinaryRead(reader, reader.uint32(), options, message.autoRefresh);
|
||||
message.AutoRefresh = Int32Object.internalBinaryRead(reader, reader.uint32(), options, message.AutoRefresh);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -965,23 +965,23 @@ class UpdateDashboardRequest$Type extends MessageType<UpdateDashboardRequest> {
|
||||
}
|
||||
internalBinaryWrite(message: UpdateDashboardRequest, 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();
|
||||
if (message.Header)
|
||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string DashboardID = 2 [json_name = "DashboardID"]; */
|
||||
if (message.dashboardID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.dashboardID);
|
||||
if (message.DashboardID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.DashboardID);
|
||||
/* api.StringObject Name = 3 [json_name = "Name"]; */
|
||||
if (message.name)
|
||||
StringObject.internalBinaryWrite(message.name, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.Name)
|
||||
StringObject.internalBinaryWrite(message.Name, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.StringObject Content = 4 [json_name = "Content"]; */
|
||||
if (message.content)
|
||||
StringObject.internalBinaryWrite(message.content, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.Content)
|
||||
StringObject.internalBinaryWrite(message.Content, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.BoolObject IsPrivate = 5 [json_name = "IsPrivate"]; */
|
||||
if (message.isPrivate)
|
||||
BoolObject.internalBinaryWrite(message.isPrivate, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.IsPrivate)
|
||||
BoolObject.internalBinaryWrite(message.IsPrivate, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.Int32Object AutoRefresh = 9 [json_name = "AutoRefresh"]; */
|
||||
if (message.autoRefresh)
|
||||
Int32Object.internalBinaryWrite(message.autoRefresh, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.AutoRefresh)
|
||||
Int32Object.internalBinaryWrite(message.AutoRefresh, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -996,7 +996,7 @@ export const UpdateDashboardRequest = new UpdateDashboardRequest$Type();
|
||||
class UpdateDashboardResult$Type extends MessageType<UpdateDashboardResult> {
|
||||
constructor() {
|
||||
super("vizapi.UpdateDashboardResult", [
|
||||
{ no: 1, name: "Result", kind: "message", jsonName: "Result", T: () => Dashboard }
|
||||
{ no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => Dashboard }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Updated Dashboard information" } } });
|
||||
}
|
||||
create(value?: PartialMessage<UpdateDashboardResult>): UpdateDashboardResult {
|
||||
@@ -1011,7 +1011,7 @@ class UpdateDashboardResult$Type extends MessageType<UpdateDashboardResult> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* vizapi.Dashboard Result = 1 [json_name = "Result"];*/ 1:
|
||||
message.result = Dashboard.internalBinaryRead(reader, reader.uint32(), options, message.result);
|
||||
message.Result = Dashboard.internalBinaryRead(reader, reader.uint32(), options, message.Result);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -1026,8 +1026,8 @@ class UpdateDashboardResult$Type extends MessageType<UpdateDashboardResult> {
|
||||
}
|
||||
internalBinaryWrite(message: UpdateDashboardResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* vizapi.Dashboard Result = 1 [json_name = "Result"]; */
|
||||
if (message.result)
|
||||
Dashboard.internalBinaryWrite(message.result, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.Result)
|
||||
Dashboard.internalBinaryWrite(message.Result, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -1042,13 +1042,13 @@ export const UpdateDashboardResult = new UpdateDashboardResult$Type();
|
||||
class GetDashboardRequest$Type extends MessageType<GetDashboardRequest> {
|
||||
constructor() {
|
||||
super("vizapi.GetDashboardRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "DashboardID", kind: "scalar", jsonName: "DashboardID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Dashboard" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "DashboardID", kind: "scalar", localName: "DashboardID", jsonName: "DashboardID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Dashboard" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "IDs of the Dashboard", required: ["Header", "DashboardID"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<GetDashboardRequest>): GetDashboardRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.dashboardID = "";
|
||||
message.DashboardID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetDashboardRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -1059,10 +1059,10 @@ class GetDashboardRequest$Type extends MessageType<GetDashboardRequest> {
|
||||
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);
|
||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string DashboardID = 2 [json_name = "DashboardID"];*/ 2:
|
||||
message.dashboardID = reader.string();
|
||||
message.DashboardID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -1077,11 +1077,11 @@ class GetDashboardRequest$Type extends MessageType<GetDashboardRequest> {
|
||||
}
|
||||
internalBinaryWrite(message: GetDashboardRequest, 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();
|
||||
if (message.Header)
|
||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string DashboardID = 2 [json_name = "DashboardID"]; */
|
||||
if (message.dashboardID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.dashboardID);
|
||||
if (message.DashboardID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.DashboardID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -1142,15 +1142,15 @@ export const GetDashboardResult = new GetDashboardResult$Type();
|
||||
class CopyDashboardRequest$Type extends MessageType<CopyDashboardRequest> {
|
||||
constructor() {
|
||||
super("vizapi.CopyDashboardRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "DashboardID", kind: "scalar", jsonName: "DashboardID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Dashboard" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "Name", kind: "scalar", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the new Dashboard" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "DashboardID", kind: "scalar", localName: "DashboardID", jsonName: "DashboardID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Dashboard" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the new Dashboard" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "DashboardID", "Name"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<CopyDashboardRequest>): CopyDashboardRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.dashboardID = "";
|
||||
message.name = "";
|
||||
message.DashboardID = "";
|
||||
message.Name = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CopyDashboardRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -1161,13 +1161,13 @@ class CopyDashboardRequest$Type extends MessageType<CopyDashboardRequest> {
|
||||
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);
|
||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string DashboardID = 2 [json_name = "DashboardID"];*/ 2:
|
||||
message.dashboardID = reader.string();
|
||||
message.DashboardID = reader.string();
|
||||
break;
|
||||
case /* string Name = 3 [json_name = "Name"];*/ 3:
|
||||
message.name = reader.string();
|
||||
message.Name = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -1182,14 +1182,14 @@ class CopyDashboardRequest$Type extends MessageType<CopyDashboardRequest> {
|
||||
}
|
||||
internalBinaryWrite(message: CopyDashboardRequest, 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();
|
||||
if (message.Header)
|
||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string DashboardID = 2 [json_name = "DashboardID"]; */
|
||||
if (message.dashboardID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.dashboardID);
|
||||
if (message.DashboardID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.DashboardID);
|
||||
/* string Name = 3 [json_name = "Name"]; */
|
||||
if (message.name !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.name);
|
||||
if (message.Name !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.Name);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -1204,7 +1204,7 @@ export const CopyDashboardRequest = new CopyDashboardRequest$Type();
|
||||
class CopyDashboardResult$Type extends MessageType<CopyDashboardResult> {
|
||||
constructor() {
|
||||
super("vizapi.CopyDashboardResult", [
|
||||
{ no: 1, name: "Result", kind: "message", jsonName: "Result", T: () => Dashboard }
|
||||
{ no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => Dashboard }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "New copied dashboard" } } });
|
||||
}
|
||||
create(value?: PartialMessage<CopyDashboardResult>): CopyDashboardResult {
|
||||
@@ -1219,7 +1219,7 @@ class CopyDashboardResult$Type extends MessageType<CopyDashboardResult> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* vizapi.Dashboard Result = 1 [json_name = "Result"];*/ 1:
|
||||
message.result = Dashboard.internalBinaryRead(reader, reader.uint32(), options, message.result);
|
||||
message.Result = Dashboard.internalBinaryRead(reader, reader.uint32(), options, message.Result);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -1234,8 +1234,8 @@ class CopyDashboardResult$Type extends MessageType<CopyDashboardResult> {
|
||||
}
|
||||
internalBinaryWrite(message: CopyDashboardResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* vizapi.Dashboard Result = 1 [json_name = "Result"]; */
|
||||
if (message.result)
|
||||
Dashboard.internalBinaryWrite(message.result, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.Result)
|
||||
Dashboard.internalBinaryWrite(message.Result, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.9.6 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";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.9.6 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";
|
||||
@@ -20,19 +20,19 @@ export interface UpdatePlatformDefaultViewRequest {
|
||||
*
|
||||
* @generated from protobuf field: string ViewID = 1 [json_name = "ViewID"];
|
||||
*/
|
||||
viewID: string;
|
||||
ViewID: string;
|
||||
/**
|
||||
* Content of the View
|
||||
*
|
||||
* @generated from protobuf field: string Payload = 4 [json_name = "Payload"];
|
||||
*/
|
||||
payload: string;
|
||||
Payload: string;
|
||||
/**
|
||||
* Visibility of the View
|
||||
*
|
||||
* @generated from protobuf field: bool IsPrivate = 5 [json_name = "IsPrivate"];
|
||||
*/
|
||||
isPrivate: boolean;
|
||||
IsPrivate: boolean;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.CreatePlatformDefaultViewRequest
|
||||
@@ -43,19 +43,19 @@ export interface CreatePlatformDefaultViewRequest {
|
||||
*
|
||||
* @generated from protobuf field: string ScreenID = 1 [json_name = "ScreenID"];
|
||||
*/
|
||||
screenID: string;
|
||||
ScreenID: string;
|
||||
/**
|
||||
* Content of the View
|
||||
*
|
||||
* @generated from protobuf field: string Payload = 4 [json_name = "Payload"];
|
||||
*/
|
||||
payload: string;
|
||||
Payload: string;
|
||||
/**
|
||||
* Visibility of the View
|
||||
*
|
||||
* @generated from protobuf field: bool IsPrivate = 5 [json_name = "IsPrivate"];
|
||||
*/
|
||||
isPrivate: boolean;
|
||||
IsPrivate: boolean;
|
||||
}
|
||||
/**
|
||||
* ID of the created View
|
||||
@@ -68,7 +68,7 @@ export interface CreatePlatformDefaultViewResult {
|
||||
*
|
||||
* @generated from protobuf field: string ViewID = 1 [json_name = "ViewID"];
|
||||
*/
|
||||
viewID: string;
|
||||
ViewID: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.UpdatePlatformDefaultViewResult
|
||||
@@ -79,22 +79,22 @@ export interface UpdatePlatformDefaultViewResult {
|
||||
*
|
||||
* @generated from protobuf field: string ViewID = 1 [json_name = "ViewID"];
|
||||
*/
|
||||
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;
|
||||
@@ -105,13 +105,13 @@ class UpdatePlatformDefaultViewRequest$Type extends MessageType<UpdatePlatformDe
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ViewID = 1 [json_name = "ViewID"];*/ 1:
|
||||
message.viewID = reader.string();
|
||||
message.ViewID = reader.string();
|
||||
break;
|
||||
case /* string Payload = 4 [json_name = "Payload"];*/ 4:
|
||||
message.payload = reader.string();
|
||||
message.Payload = reader.string();
|
||||
break;
|
||||
case /* bool IsPrivate = 5 [json_name = "IsPrivate"];*/ 5:
|
||||
message.isPrivate = reader.bool();
|
||||
message.IsPrivate = reader.bool();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -126,14 +126,14 @@ class UpdatePlatformDefaultViewRequest$Type extends MessageType<UpdatePlatformDe
|
||||
}
|
||||
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);
|
||||
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);
|
||||
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);
|
||||
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;
|
||||
@@ -168,13 +168,13 @@ class CreatePlatformDefaultViewRequest$Type extends MessageType<CreatePlatformDe
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ScreenID = 1 [json_name = "ScreenID"];*/ 1:
|
||||
message.screenID = reader.string();
|
||||
message.ScreenID = reader.string();
|
||||
break;
|
||||
case /* string Payload = 4 [json_name = "Payload"];*/ 4:
|
||||
message.payload = reader.string();
|
||||
message.Payload = reader.string();
|
||||
break;
|
||||
case /* bool IsPrivate = 5 [json_name = "IsPrivate"];*/ 5:
|
||||
message.isPrivate = reader.bool();
|
||||
message.IsPrivate = reader.bool();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -189,14 +189,14 @@ class CreatePlatformDefaultViewRequest$Type extends MessageType<CreatePlatformDe
|
||||
}
|
||||
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);
|
||||
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);
|
||||
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);
|
||||
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;
|
||||
@@ -227,7 +227,7 @@ class CreatePlatformDefaultViewResult$Type extends MessageType<CreatePlatformDef
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ViewID = 1 [json_name = "ViewID"];*/ 1:
|
||||
message.viewID = reader.string();
|
||||
message.ViewID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -242,8 +242,8 @@ class CreatePlatformDefaultViewResult$Type extends MessageType<CreatePlatformDef
|
||||
}
|
||||
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);
|
||||
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;
|
||||
@@ -274,7 +274,7 @@ class UpdatePlatformDefaultViewResult$Type extends MessageType<UpdatePlatformDef
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ViewID = 1 [json_name = "ViewID"];*/ 1:
|
||||
message.viewID = reader.string();
|
||||
message.ViewID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -289,8 +289,8 @@ class UpdatePlatformDefaultViewResult$Type extends MessageType<UpdatePlatformDef
|
||||
}
|
||||
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);
|
||||
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.9.6 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";
|
||||
|
||||
350
viz-motd.ts
350
viz-motd.ts
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.9.6 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";
|
||||
@@ -18,19 +18,19 @@ export interface Motd {
|
||||
/**
|
||||
* @generated from protobuf field: string MotdID = 1 [json_name = "MotdID"];
|
||||
*/
|
||||
motdID: string;
|
||||
MotdID: string;
|
||||
/**
|
||||
* @generated from protobuf field: string StartDate = 2 [json_name = "StartDate"];
|
||||
*/
|
||||
startDate: string;
|
||||
StartDate: string;
|
||||
/**
|
||||
* @generated from protobuf field: string EndDate = 3 [json_name = "EndDate"];
|
||||
*/
|
||||
endDate: string;
|
||||
EndDate: string;
|
||||
/**
|
||||
* @generated from protobuf field: repeated vizapi.MotdMessage Message = 4 [json_name = "Message"];
|
||||
*/
|
||||
message: MotdMessage[];
|
||||
Message: MotdMessage[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.MotdMessage
|
||||
@@ -41,13 +41,13 @@ export interface MotdMessage {
|
||||
*
|
||||
* @generated from protobuf field: string Lang = 1 [json_name = "Lang"];
|
||||
*/
|
||||
lang: string;
|
||||
Lang: string;
|
||||
/**
|
||||
* The message content
|
||||
*
|
||||
* @generated from protobuf field: string Message = 2 [json_name = "Message"];
|
||||
*/
|
||||
message: string;
|
||||
Message: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.MotdMessageRes
|
||||
@@ -58,13 +58,13 @@ export interface MotdMessageRes {
|
||||
*
|
||||
* @generated from protobuf field: string Lang = 1 [json_name = "Lang"];
|
||||
*/
|
||||
lang: string;
|
||||
Lang: string;
|
||||
/**
|
||||
* The message content
|
||||
*
|
||||
* @generated from protobuf field: string Message = 2 [json_name = "Message"];
|
||||
*/
|
||||
message: string;
|
||||
Message: string;
|
||||
}
|
||||
/**
|
||||
* Message request with the content and the dates
|
||||
@@ -77,17 +77,17 @@ export interface CreateMotdRequest {
|
||||
*
|
||||
* @generated from protobuf field: string StartDate = 1 [json_name = "StartDate"];
|
||||
*/
|
||||
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"];
|
||||
*/
|
||||
endDate: string;
|
||||
EndDate: string;
|
||||
/**
|
||||
* @generated from protobuf field: repeated vizapi.MotdMessage Message = 3 [json_name = "Message"];
|
||||
*/
|
||||
message: MotdMessage[];
|
||||
Message: MotdMessage[];
|
||||
}
|
||||
/**
|
||||
* Message result with ID, content and dates
|
||||
@@ -98,23 +98,23 @@ export interface CreateMotdResult {
|
||||
/**
|
||||
* @generated from protobuf field: string ID = 1 [json_name = "ID"];
|
||||
*/
|
||||
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"];
|
||||
*/
|
||||
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"];
|
||||
*/
|
||||
endDate: string;
|
||||
EndDate: string;
|
||||
/**
|
||||
* @generated from protobuf field: repeated vizapi.MotdMessageRes Message = 4 [json_name = "Message"];
|
||||
*/
|
||||
message: MotdMessageRes[];
|
||||
Message: MotdMessageRes[];
|
||||
}
|
||||
/**
|
||||
* Update an existing Message Of The Day using its key
|
||||
@@ -125,23 +125,23 @@ export interface UpdateMotdRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string ID = 1 [json_name = "ID"];
|
||||
*/
|
||||
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"];
|
||||
*/
|
||||
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"];
|
||||
*/
|
||||
endDate: string;
|
||||
EndDate: string;
|
||||
/**
|
||||
* @generated from protobuf field: repeated vizapi.MotdMessage Message = 4 [json_name = "Message"];
|
||||
*/
|
||||
message: MotdMessage[];
|
||||
Message: MotdMessage[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.UpdateMotdResult
|
||||
@@ -150,23 +150,23 @@ export interface UpdateMotdResult {
|
||||
/**
|
||||
* @generated from protobuf field: string ID = 1 [json_name = "ID"];
|
||||
*/
|
||||
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"];
|
||||
*/
|
||||
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"];
|
||||
*/
|
||||
endDate: string;
|
||||
EndDate: string;
|
||||
/**
|
||||
* @generated from protobuf field: repeated vizapi.MotdMessage Message = 4 [json_name = "Message"];
|
||||
*/
|
||||
message: MotdMessage[];
|
||||
Message: MotdMessage[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.GetMotdRequest
|
||||
@@ -182,23 +182,23 @@ export interface GetMotdResult {
|
||||
/**
|
||||
* @generated from protobuf field: string ID = 1 [json_name = "ID"];
|
||||
*/
|
||||
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"];
|
||||
*/
|
||||
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"];
|
||||
*/
|
||||
endDate: string;
|
||||
EndDate: string;
|
||||
/**
|
||||
* @generated from protobuf field: repeated vizapi.MotdMessageRes Message = 4 [json_name = "Message"];
|
||||
*/
|
||||
message: MotdMessageRes[];
|
||||
Message: MotdMessageRes[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.DeleteMotdRequest
|
||||
@@ -207,7 +207,7 @@ export interface DeleteMotdRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string ID = 1 [json_name = "ID"];
|
||||
*/
|
||||
iD: string;
|
||||
ID: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.DeleteMotdResult
|
||||
@@ -228,24 +228,24 @@ export interface ListMotdsResult {
|
||||
/**
|
||||
* @generated from protobuf field: repeated vizapi.GetMotdResult Motds = 1 [json_name = "Motds"];
|
||||
*/
|
||||
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: 1 /*RepeatType.PACKED*/, 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;
|
||||
@@ -256,16 +256,16 @@ class Motd$Type extends MessageType<Motd> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string MotdID = 1 [json_name = "MotdID"];*/ 1:
|
||||
message.motdID = reader.string();
|
||||
message.MotdID = reader.string();
|
||||
break;
|
||||
case /* string StartDate = 2 [json_name = "StartDate"];*/ 2:
|
||||
message.startDate = reader.string();
|
||||
message.StartDate = reader.string();
|
||||
break;
|
||||
case /* string EndDate = 3 [json_name = "EndDate"];*/ 3:
|
||||
message.endDate = reader.string();
|
||||
message.EndDate = reader.string();
|
||||
break;
|
||||
case /* repeated vizapi.MotdMessage Message = 4 [json_name = "Message"];*/ 4:
|
||||
message.message.push(MotdMessage.internalBinaryRead(reader, reader.uint32(), options));
|
||||
message.Message.push(MotdMessage.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -280,17 +280,17 @@ class Motd$Type extends MessageType<Motd> {
|
||||
}
|
||||
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);
|
||||
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);
|
||||
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);
|
||||
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();
|
||||
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;
|
||||
@@ -323,10 +323,10 @@ class MotdMessage$Type extends MessageType<MotdMessage> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Lang = 1 [json_name = "Lang"];*/ 1:
|
||||
message.lang = reader.string();
|
||||
message.Lang = reader.string();
|
||||
break;
|
||||
case /* string Message = 2 [json_name = "Message"];*/ 2:
|
||||
message.message = reader.string();
|
||||
message.Message = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -341,11 +341,11 @@ class MotdMessage$Type extends MessageType<MotdMessage> {
|
||||
}
|
||||
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);
|
||||
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);
|
||||
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;
|
||||
@@ -378,10 +378,10 @@ class MotdMessageRes$Type extends MessageType<MotdMessageRes> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Lang = 1 [json_name = "Lang"];*/ 1:
|
||||
message.lang = reader.string();
|
||||
message.Lang = reader.string();
|
||||
break;
|
||||
case /* string Message = 2 [json_name = "Message"];*/ 2:
|
||||
message.message = reader.string();
|
||||
message.Message = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -396,11 +396,11 @@ class MotdMessageRes$Type extends MessageType<MotdMessageRes> {
|
||||
}
|
||||
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);
|
||||
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);
|
||||
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: 1 /*RepeatType.PACKED*/, 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;
|
||||
@@ -435,13 +435,13 @@ class CreateMotdRequest$Type extends MessageType<CreateMotdRequest> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string StartDate = 1 [json_name = "StartDate"];*/ 1:
|
||||
message.startDate = reader.string();
|
||||
message.StartDate = reader.string();
|
||||
break;
|
||||
case /* string EndDate = 2 [json_name = "EndDate"];*/ 2:
|
||||
message.endDate = reader.string();
|
||||
message.EndDate = reader.string();
|
||||
break;
|
||||
case /* repeated vizapi.MotdMessage Message = 3 [json_name = "Message"];*/ 3:
|
||||
message.message.push(MotdMessage.internalBinaryRead(reader, reader.uint32(), options));
|
||||
message.Message.push(MotdMessage.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -456,14 +456,14 @@ class CreateMotdRequest$Type extends MessageType<CreateMotdRequest> {
|
||||
}
|
||||
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);
|
||||
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);
|
||||
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();
|
||||
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: 1 /*RepeatType.PACKED*/, 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;
|
||||
@@ -500,16 +500,16 @@ class CreateMotdResult$Type extends MessageType<CreateMotdResult> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ID = 1 [json_name = "ID"];*/ 1:
|
||||
message.iD = reader.string();
|
||||
message.ID = reader.string();
|
||||
break;
|
||||
case /* string StartDate = 2 [json_name = "StartDate"];*/ 2:
|
||||
message.startDate = reader.string();
|
||||
message.StartDate = reader.string();
|
||||
break;
|
||||
case /* string EndDate = 3 [json_name = "EndDate"];*/ 3:
|
||||
message.endDate = reader.string();
|
||||
message.EndDate = reader.string();
|
||||
break;
|
||||
case /* repeated vizapi.MotdMessageRes Message = 4 [json_name = "Message"];*/ 4:
|
||||
message.message.push(MotdMessageRes.internalBinaryRead(reader, reader.uint32(), options));
|
||||
message.Message.push(MotdMessageRes.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -524,17 +524,17 @@ class CreateMotdResult$Type extends MessageType<CreateMotdResult> {
|
||||
}
|
||||
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);
|
||||
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);
|
||||
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);
|
||||
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();
|
||||
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: 1 /*RepeatType.PACKED*/, 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;
|
||||
@@ -571,16 +571,16 @@ class UpdateMotdRequest$Type extends MessageType<UpdateMotdRequest> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ID = 1 [json_name = "ID"];*/ 1:
|
||||
message.iD = reader.string();
|
||||
message.ID = reader.string();
|
||||
break;
|
||||
case /* string StartDate = 2 [json_name = "StartDate"];*/ 2:
|
||||
message.startDate = reader.string();
|
||||
message.StartDate = reader.string();
|
||||
break;
|
||||
case /* string EndDate = 3 [json_name = "EndDate"];*/ 3:
|
||||
message.endDate = reader.string();
|
||||
message.EndDate = reader.string();
|
||||
break;
|
||||
case /* repeated vizapi.MotdMessage Message = 4 [json_name = "Message"];*/ 4:
|
||||
message.message.push(MotdMessage.internalBinaryRead(reader, reader.uint32(), options));
|
||||
message.Message.push(MotdMessage.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -595,17 +595,17 @@ class UpdateMotdRequest$Type extends MessageType<UpdateMotdRequest> {
|
||||
}
|
||||
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);
|
||||
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);
|
||||
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);
|
||||
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();
|
||||
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: 1 /*RepeatType.PACKED*/, 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;
|
||||
@@ -642,16 +642,16 @@ class UpdateMotdResult$Type extends MessageType<UpdateMotdResult> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ID = 1 [json_name = "ID"];*/ 1:
|
||||
message.iD = reader.string();
|
||||
message.ID = reader.string();
|
||||
break;
|
||||
case /* string StartDate = 2 [json_name = "StartDate"];*/ 2:
|
||||
message.startDate = reader.string();
|
||||
message.StartDate = reader.string();
|
||||
break;
|
||||
case /* string EndDate = 3 [json_name = "EndDate"];*/ 3:
|
||||
message.endDate = reader.string();
|
||||
message.EndDate = reader.string();
|
||||
break;
|
||||
case /* repeated vizapi.MotdMessage Message = 4 [json_name = "Message"];*/ 4:
|
||||
message.message.push(MotdMessage.internalBinaryRead(reader, reader.uint32(), options));
|
||||
message.Message.push(MotdMessage.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -666,17 +666,17 @@ class UpdateMotdResult$Type extends MessageType<UpdateMotdResult> {
|
||||
}
|
||||
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);
|
||||
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);
|
||||
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);
|
||||
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();
|
||||
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: 1 /*RepeatType.PACKED*/, 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;
|
||||
@@ -751,16 +751,16 @@ class GetMotdResult$Type extends MessageType<GetMotdResult> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ID = 1 [json_name = "ID"];*/ 1:
|
||||
message.iD = reader.string();
|
||||
message.ID = reader.string();
|
||||
break;
|
||||
case /* string StartDate = 2 [json_name = "StartDate"];*/ 2:
|
||||
message.startDate = reader.string();
|
||||
message.StartDate = reader.string();
|
||||
break;
|
||||
case /* string EndDate = 3 [json_name = "EndDate"];*/ 3:
|
||||
message.endDate = reader.string();
|
||||
message.EndDate = reader.string();
|
||||
break;
|
||||
case /* repeated vizapi.MotdMessageRes Message = 4 [json_name = "Message"];*/ 4:
|
||||
message.message.push(MotdMessageRes.internalBinaryRead(reader, reader.uint32(), options));
|
||||
message.Message.push(MotdMessageRes.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -775,17 +775,17 @@ class GetMotdResult$Type extends MessageType<GetMotdResult> {
|
||||
}
|
||||
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);
|
||||
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);
|
||||
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);
|
||||
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();
|
||||
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;
|
||||
@@ -816,7 +816,7 @@ class DeleteMotdRequest$Type extends MessageType<DeleteMotdRequest> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ID = 1 [json_name = "ID"];*/ 1:
|
||||
message.iD = reader.string();
|
||||
message.ID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -831,8 +831,8 @@ class DeleteMotdRequest$Type extends MessageType<DeleteMotdRequest> {
|
||||
}
|
||||
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);
|
||||
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: 1 /*RepeatType.PACKED*/, 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;
|
||||
@@ -939,7 +939,7 @@ class ListMotdsResult$Type extends MessageType<ListMotdsResult> {
|
||||
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));
|
||||
message.Motds.push(GetMotdResult.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -954,8 +954,8 @@ class ListMotdsResult$Type extends MessageType<ListMotdsResult> {
|
||||
}
|
||||
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();
|
||||
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.9.6 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";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.9.6 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";
|
||||
@@ -19,19 +19,19 @@ export interface OrganisationSetting {
|
||||
/**
|
||||
* @generated from protobuf field: string OrganisationID = 1 [json_name = "OrganisationID"];
|
||||
*/
|
||||
organisationID: string;
|
||||
OrganisationID: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Key = 2 [json_name = "Key"];
|
||||
*/
|
||||
key: string;
|
||||
Key: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Value = 3 [json_name = "Value"];
|
||||
*/
|
||||
value: string;
|
||||
Value: string;
|
||||
/**
|
||||
* @generated from protobuf field: vizapi.SettingVisibility Visibility = 4 [json_name = "Visibility"];
|
||||
*/
|
||||
visibility: SettingVisibility;
|
||||
Visibility: SettingVisibility;
|
||||
}
|
||||
/**
|
||||
* Key, Value pair to store
|
||||
@@ -42,19 +42,19 @@ export interface PutOrganisationSettingRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestOrganisationHeader Header = 1 [json_name = "Header"];
|
||||
*/
|
||||
header?: RequestOrganisationHeader;
|
||||
Header?: RequestOrganisationHeader;
|
||||
/**
|
||||
* @generated from protobuf field: string Key = 2 [json_name = "Key"];
|
||||
*/
|
||||
key: string;
|
||||
Key: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Value = 3 [json_name = "Value"];
|
||||
*/
|
||||
value: string;
|
||||
Value: string;
|
||||
/**
|
||||
* @generated from protobuf field: vizapi.SettingVisibility Visibility = 4 [json_name = "Visibility"];
|
||||
*/
|
||||
visibility: SettingVisibility;
|
||||
Visibility: SettingVisibility;
|
||||
}
|
||||
/**
|
||||
* Key, Value pair response
|
||||
@@ -65,15 +65,15 @@ export interface PutOrganisationSettingResult {
|
||||
/**
|
||||
* @generated from protobuf field: string Key = 1 [json_name = "Key"];
|
||||
*/
|
||||
key: string;
|
||||
Key: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Value = 2 [json_name = "Value"];
|
||||
*/
|
||||
value: string;
|
||||
Value: string;
|
||||
/**
|
||||
* @generated from protobuf field: vizapi.SettingVisibility Visibility = 3 [json_name = "Visibility"];
|
||||
*/
|
||||
visibility: SettingVisibility;
|
||||
Visibility: SettingVisibility;
|
||||
}
|
||||
/**
|
||||
* Key of the organisation's setting to get
|
||||
@@ -84,11 +84,11 @@ export interface GetOrganisationSettingRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestOrganisationHeader Header = 1 [json_name = "Header"];
|
||||
*/
|
||||
header?: RequestOrganisationHeader;
|
||||
Header?: RequestOrganisationHeader;
|
||||
/**
|
||||
* @generated from protobuf field: string Key = 2 [json_name = "Key"];
|
||||
*/
|
||||
key: string;
|
||||
Key: string;
|
||||
}
|
||||
/**
|
||||
* Key, Value pair response
|
||||
@@ -99,15 +99,15 @@ export interface GetOrganisationSettingResult {
|
||||
/**
|
||||
* @generated from protobuf field: string Key = 1 [json_name = "Key"];
|
||||
*/
|
||||
key: string;
|
||||
Key: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Value = 2 [json_name = "Value"];
|
||||
*/
|
||||
value: string;
|
||||
Value: string;
|
||||
/**
|
||||
* @generated from protobuf field: vizapi.SettingVisibility Visibility = 3 [json_name = "Visibility"];
|
||||
*/
|
||||
visibility: SettingVisibility;
|
||||
Visibility: SettingVisibility;
|
||||
}
|
||||
/**
|
||||
* Key of the organisation's setting to delete
|
||||
@@ -118,11 +118,11 @@ export interface DeleteOrganisationSettingRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestOrganisationHeader Header = 1 [json_name = "Header"];
|
||||
*/
|
||||
header?: RequestOrganisationHeader;
|
||||
Header?: RequestOrganisationHeader;
|
||||
/**
|
||||
* @generated from protobuf field: string Key = 2 [json_name = "Key"];
|
||||
*/
|
||||
key: string;
|
||||
Key: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.DeleteOrganisationSettingResult
|
||||
@@ -136,7 +136,7 @@ export interface ListOrganisationSettingsRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestOrganisationHeader Header = 1 [json_name = "Header"];
|
||||
*/
|
||||
header?: RequestOrganisationHeader;
|
||||
Header?: RequestOrganisationHeader;
|
||||
}
|
||||
/**
|
||||
* List of the organisation's settings
|
||||
@@ -147,7 +147,7 @@ export interface ListOrganisationSettingsResult {
|
||||
/**
|
||||
* @generated from protobuf field: repeated vizapi.GetOrganisationSettingResult OrganisationSettings = 1 [json_name = "OrganisationSettings"];
|
||||
*/
|
||||
organisationSettings: GetOrganisationSettingResult[];
|
||||
OrganisationSettings: GetOrganisationSettingResult[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.DeleteSettingsForOrganisationRequest
|
||||
@@ -156,7 +156,7 @@ export interface DeleteSettingsForOrganisationRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string OrganisationID = 1 [json_name = "OrganisationID"];
|
||||
*/
|
||||
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;
|
||||
@@ -206,16 +206,16 @@ class OrganisationSetting$Type extends MessageType<OrganisationSetting> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string OrganisationID = 1 [json_name = "OrganisationID"];*/ 1:
|
||||
message.organisationID = reader.string();
|
||||
message.OrganisationID = reader.string();
|
||||
break;
|
||||
case /* string Key = 2 [json_name = "Key"];*/ 2:
|
||||
message.key = reader.string();
|
||||
message.Key = reader.string();
|
||||
break;
|
||||
case /* string Value = 3 [json_name = "Value"];*/ 3:
|
||||
message.value = reader.string();
|
||||
message.Value = reader.string();
|
||||
break;
|
||||
case /* vizapi.SettingVisibility Visibility = 4 [json_name = "Visibility"];*/ 4:
|
||||
message.visibility = reader.int32();
|
||||
message.Visibility = reader.int32();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -230,17 +230,17 @@ class OrganisationSetting$Type extends MessageType<OrganisationSetting> {
|
||||
}
|
||||
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);
|
||||
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);
|
||||
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);
|
||||
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);
|
||||
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;
|
||||
@@ -276,16 +276,16 @@ class PutOrganisationSettingRequest$Type extends MessageType<PutOrganisationSett
|
||||
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);
|
||||
message.Header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string Key = 2 [json_name = "Key"];*/ 2:
|
||||
message.key = reader.string();
|
||||
message.Key = reader.string();
|
||||
break;
|
||||
case /* string Value = 3 [json_name = "Value"];*/ 3:
|
||||
message.value = reader.string();
|
||||
message.Value = reader.string();
|
||||
break;
|
||||
case /* vizapi.SettingVisibility Visibility = 4 [json_name = "Visibility"];*/ 4:
|
||||
message.visibility = reader.int32();
|
||||
message.Visibility = reader.int32();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -300,17 +300,17 @@ class PutOrganisationSettingRequest$Type extends MessageType<PutOrganisationSett
|
||||
}
|
||||
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();
|
||||
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);
|
||||
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);
|
||||
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);
|
||||
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;
|
||||
@@ -345,13 +345,13 @@ class PutOrganisationSettingResult$Type extends MessageType<PutOrganisationSetti
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Key = 1 [json_name = "Key"];*/ 1:
|
||||
message.key = reader.string();
|
||||
message.Key = reader.string();
|
||||
break;
|
||||
case /* string Value = 2 [json_name = "Value"];*/ 2:
|
||||
message.value = reader.string();
|
||||
message.Value = reader.string();
|
||||
break;
|
||||
case /* vizapi.SettingVisibility Visibility = 3 [json_name = "Visibility"];*/ 3:
|
||||
message.visibility = reader.int32();
|
||||
message.Visibility = reader.int32();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -366,14 +366,14 @@ class PutOrganisationSettingResult$Type extends MessageType<PutOrganisationSetti
|
||||
}
|
||||
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);
|
||||
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);
|
||||
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);
|
||||
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;
|
||||
@@ -405,10 +405,10 @@ class GetOrganisationSettingRequest$Type extends MessageType<GetOrganisationSett
|
||||
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);
|
||||
message.Header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string Key = 2 [json_name = "Key"];*/ 2:
|
||||
message.key = reader.string();
|
||||
message.Key = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -423,11 +423,11 @@ class GetOrganisationSettingRequest$Type extends MessageType<GetOrganisationSett
|
||||
}
|
||||
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();
|
||||
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);
|
||||
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;
|
||||
@@ -462,13 +462,13 @@ class GetOrganisationSettingResult$Type extends MessageType<GetOrganisationSetti
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Key = 1 [json_name = "Key"];*/ 1:
|
||||
message.key = reader.string();
|
||||
message.Key = reader.string();
|
||||
break;
|
||||
case /* string Value = 2 [json_name = "Value"];*/ 2:
|
||||
message.value = reader.string();
|
||||
message.Value = reader.string();
|
||||
break;
|
||||
case /* vizapi.SettingVisibility Visibility = 3 [json_name = "Visibility"];*/ 3:
|
||||
message.visibility = reader.int32();
|
||||
message.Visibility = reader.int32();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -483,14 +483,14 @@ class GetOrganisationSettingResult$Type extends MessageType<GetOrganisationSetti
|
||||
}
|
||||
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);
|
||||
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);
|
||||
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);
|
||||
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;
|
||||
@@ -522,10 +522,10 @@ class DeleteOrganisationSettingRequest$Type extends MessageType<DeleteOrganisati
|
||||
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);
|
||||
message.Header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string Key = 2 [json_name = "Key"];*/ 2:
|
||||
message.key = reader.string();
|
||||
message.Key = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -540,11 +540,11 @@ class DeleteOrganisationSettingRequest$Type extends MessageType<DeleteOrganisati
|
||||
}
|
||||
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();
|
||||
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);
|
||||
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 {
|
||||
@@ -612,7 +612,7 @@ class ListOrganisationSettingsRequest$Type extends MessageType<ListOrganisationS
|
||||
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);
|
||||
message.Header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -627,8 +627,8 @@ class ListOrganisationSettingsRequest$Type extends MessageType<ListOrganisationS
|
||||
}
|
||||
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();
|
||||
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: 1 /*RepeatType.PACKED*/, 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;
|
||||
@@ -659,7 +659,7 @@ class ListOrganisationSettingsResult$Type extends MessageType<ListOrganisationSe
|
||||
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));
|
||||
message.OrganisationSettings.push(GetOrganisationSettingResult.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -674,8 +674,8 @@ class ListOrganisationSettingsResult$Type extends MessageType<ListOrganisationSe
|
||||
}
|
||||
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();
|
||||
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;
|
||||
@@ -706,7 +706,7 @@ class DeleteSettingsForOrganisationRequest$Type extends MessageType<DeleteSettin
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string OrganisationID = 1 [json_name = "OrganisationID"];*/ 1:
|
||||
message.organisationID = reader.string();
|
||||
message.OrganisationID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -721,8 +721,8 @@ class DeleteSettingsForOrganisationRequest$Type extends MessageType<DeleteSettin
|
||||
}
|
||||
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);
|
||||
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.9.6 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";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.9.6 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";
|
||||
@@ -20,15 +20,15 @@ export interface ProjectSetting {
|
||||
/**
|
||||
* @generated from protobuf field: string ProjectID = 1 [json_name = "ProjectID"];
|
||||
*/
|
||||
projectID: string;
|
||||
ProjectID: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Key = 2 [json_name = "Key"];
|
||||
*/
|
||||
key: string;
|
||||
Key: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Value = 3 [json_name = "Value"];
|
||||
*/
|
||||
value: string;
|
||||
Value: string;
|
||||
}
|
||||
/**
|
||||
* Key, Value pair to store
|
||||
@@ -39,15 +39,15 @@ export interface PutProjectSettingRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
|
||||
*/
|
||||
header?: RequestProjectHeader;
|
||||
Header?: RequestProjectHeader;
|
||||
/**
|
||||
* @generated from protobuf field: string Key = 2 [json_name = "Key"];
|
||||
*/
|
||||
key: string;
|
||||
Key: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Value = 3 [json_name = "Value"];
|
||||
*/
|
||||
value: string;
|
||||
Value: string;
|
||||
}
|
||||
/**
|
||||
* Key, Value pair response
|
||||
@@ -58,11 +58,11 @@ export interface PutProjectSettingResult {
|
||||
/**
|
||||
* @generated from protobuf field: string Key = 1 [json_name = "Key"];
|
||||
*/
|
||||
key: string;
|
||||
Key: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Value = 2 [json_name = "Value"];
|
||||
*/
|
||||
value: string;
|
||||
Value: string;
|
||||
}
|
||||
/**
|
||||
* Key of the project's setting to get
|
||||
@@ -73,11 +73,11 @@ export interface GetProjectSettingRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
|
||||
*/
|
||||
header?: RequestProjectHeader;
|
||||
Header?: RequestProjectHeader;
|
||||
/**
|
||||
* @generated from protobuf field: string Key = 2 [json_name = "Key"];
|
||||
*/
|
||||
key: string;
|
||||
Key: string;
|
||||
}
|
||||
/**
|
||||
* Key, Value pair response
|
||||
@@ -88,11 +88,11 @@ export interface GetProjectSettingResult {
|
||||
/**
|
||||
* @generated from protobuf field: string Key = 1 [json_name = "Key"];
|
||||
*/
|
||||
key: string;
|
||||
Key: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Value = 2 [json_name = "Value"];
|
||||
*/
|
||||
value: string;
|
||||
Value: string;
|
||||
}
|
||||
/**
|
||||
* Key of the project's setting to delete
|
||||
@@ -103,11 +103,11 @@ export interface DeleteProjectSettingRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
|
||||
*/
|
||||
header?: RequestProjectHeader;
|
||||
Header?: RequestProjectHeader;
|
||||
/**
|
||||
* @generated from protobuf field: string Key = 2 [json_name = "Key"];
|
||||
*/
|
||||
key: string;
|
||||
Key: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.DeleteProjectSettingResult
|
||||
@@ -121,7 +121,7 @@ export interface ListProjectSettingsRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
|
||||
*/
|
||||
header?: RequestProjectHeader;
|
||||
Header?: RequestProjectHeader;
|
||||
}
|
||||
/**
|
||||
* List of the project's settings
|
||||
@@ -132,7 +132,7 @@ export interface ListProjectSettingsResult {
|
||||
/**
|
||||
* @generated from protobuf field: repeated vizapi.GetProjectSettingResult ProjectSettings = 1 [json_name = "ProjectSettings"];
|
||||
*/
|
||||
projectSettings: GetProjectSettingResult[];
|
||||
ProjectSettings: GetProjectSettingResult[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.ListProjectOrganisationSettingsRequest
|
||||
@@ -141,7 +141,7 @@ export interface ListProjectOrganisationSettingsRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
|
||||
*/
|
||||
header?: RequestProjectHeader;
|
||||
Header?: RequestProjectHeader;
|
||||
}
|
||||
/**
|
||||
* List of the project's settings
|
||||
@@ -152,7 +152,7 @@ export interface ListProjectOrganisationSettingsResult {
|
||||
/**
|
||||
* @generated from protobuf field: repeated vizapi.GetOrganisationSettingResult OrganisationSettings = 1 [json_name = "OrganisationSettings"];
|
||||
*/
|
||||
organisationSettings: GetOrganisationSettingResult[];
|
||||
OrganisationSettings: GetOrganisationSettingResult[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.DeleteSettingsForProjectRequest
|
||||
@@ -161,7 +161,7 @@ export interface DeleteSettingsForProjectRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string ProjectID = 1 [json_name = "ProjectID"];
|
||||
*/
|
||||
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;
|
||||
@@ -192,13 +192,13 @@ class ProjectSetting$Type extends MessageType<ProjectSetting> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ProjectID = 1 [json_name = "ProjectID"];*/ 1:
|
||||
message.projectID = reader.string();
|
||||
message.ProjectID = reader.string();
|
||||
break;
|
||||
case /* string Key = 2 [json_name = "Key"];*/ 2:
|
||||
message.key = reader.string();
|
||||
message.Key = reader.string();
|
||||
break;
|
||||
case /* string Value = 3 [json_name = "Value"];*/ 3:
|
||||
message.value = reader.string();
|
||||
message.Value = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -213,14 +213,14 @@ class ProjectSetting$Type extends MessageType<ProjectSetting> {
|
||||
}
|
||||
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);
|
||||
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);
|
||||
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);
|
||||
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;
|
||||
@@ -254,13 +254,13 @@ class PutProjectSettingRequest$Type extends MessageType<PutProjectSettingRequest
|
||||
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);
|
||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string Key = 2 [json_name = "Key"];*/ 2:
|
||||
message.key = reader.string();
|
||||
message.Key = reader.string();
|
||||
break;
|
||||
case /* string Value = 3 [json_name = "Value"];*/ 3:
|
||||
message.value = reader.string();
|
||||
message.Value = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -275,14 +275,14 @@ class PutProjectSettingRequest$Type extends MessageType<PutProjectSettingRequest
|
||||
}
|
||||
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();
|
||||
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);
|
||||
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);
|
||||
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;
|
||||
@@ -315,10 +315,10 @@ class PutProjectSettingResult$Type extends MessageType<PutProjectSettingResult>
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Key = 1 [json_name = "Key"];*/ 1:
|
||||
message.key = reader.string();
|
||||
message.Key = reader.string();
|
||||
break;
|
||||
case /* string Value = 2 [json_name = "Value"];*/ 2:
|
||||
message.value = reader.string();
|
||||
message.Value = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -333,11 +333,11 @@ class PutProjectSettingResult$Type extends MessageType<PutProjectSettingResult>
|
||||
}
|
||||
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);
|
||||
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);
|
||||
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;
|
||||
@@ -369,10 +369,10 @@ class GetProjectSettingRequest$Type extends MessageType<GetProjectSettingRequest
|
||||
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);
|
||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string Key = 2 [json_name = "Key"];*/ 2:
|
||||
message.key = reader.string();
|
||||
message.Key = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -387,11 +387,11 @@ class GetProjectSettingRequest$Type extends MessageType<GetProjectSettingRequest
|
||||
}
|
||||
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();
|
||||
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);
|
||||
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;
|
||||
@@ -424,10 +424,10 @@ class GetProjectSettingResult$Type extends MessageType<GetProjectSettingResult>
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Key = 1 [json_name = "Key"];*/ 1:
|
||||
message.key = reader.string();
|
||||
message.Key = reader.string();
|
||||
break;
|
||||
case /* string Value = 2 [json_name = "Value"];*/ 2:
|
||||
message.value = reader.string();
|
||||
message.Value = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -442,11 +442,11 @@ class GetProjectSettingResult$Type extends MessageType<GetProjectSettingResult>
|
||||
}
|
||||
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);
|
||||
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);
|
||||
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;
|
||||
@@ -478,10 +478,10 @@ class DeleteProjectSettingRequest$Type extends MessageType<DeleteProjectSettingR
|
||||
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);
|
||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string Key = 2 [json_name = "Key"];*/ 2:
|
||||
message.key = reader.string();
|
||||
message.Key = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -496,11 +496,11 @@ class DeleteProjectSettingRequest$Type extends MessageType<DeleteProjectSettingR
|
||||
}
|
||||
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();
|
||||
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);
|
||||
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 {
|
||||
@@ -568,7 +568,7 @@ class ListProjectSettingsRequest$Type extends MessageType<ListProjectSettingsReq
|
||||
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);
|
||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -583,8 +583,8 @@ class ListProjectSettingsRequest$Type extends MessageType<ListProjectSettingsReq
|
||||
}
|
||||
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();
|
||||
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: 1 /*RepeatType.PACKED*/, 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;
|
||||
@@ -615,7 +615,7 @@ class ListProjectSettingsResult$Type extends MessageType<ListProjectSettingsResu
|
||||
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));
|
||||
message.ProjectSettings.push(GetProjectSettingResult.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -630,8 +630,8 @@ class ListProjectSettingsResult$Type extends MessageType<ListProjectSettingsResu
|
||||
}
|
||||
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();
|
||||
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 {
|
||||
@@ -661,7 +661,7 @@ class ListProjectOrganisationSettingsRequest$Type extends MessageType<ListProjec
|
||||
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);
|
||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -676,8 +676,8 @@ class ListProjectOrganisationSettingsRequest$Type extends MessageType<ListProjec
|
||||
}
|
||||
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();
|
||||
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: 1 /*RepeatType.PACKED*/, 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;
|
||||
@@ -708,7 +708,7 @@ class ListProjectOrganisationSettingsResult$Type extends MessageType<ListProject
|
||||
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));
|
||||
message.OrganisationSettings.push(GetOrganisationSettingResult.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -723,8 +723,8 @@ class ListProjectOrganisationSettingsResult$Type extends MessageType<ListProject
|
||||
}
|
||||
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();
|
||||
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;
|
||||
@@ -755,7 +755,7 @@ class DeleteSettingsForProjectRequest$Type extends MessageType<DeleteSettingsFor
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ProjectID = 1 [json_name = "ProjectID"];*/ 1:
|
||||
message.projectID = reader.string();
|
||||
message.ProjectID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -770,8 +770,8 @@ class DeleteSettingsForProjectRequest$Type extends MessageType<DeleteSettingsFor
|
||||
}
|
||||
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);
|
||||
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.9.6 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";
|
||||
|
||||
26
viz-tab.ts
26
viz-tab.ts
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.9.6 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";
|
||||
@@ -20,7 +20,7 @@ export interface ListTabRequest {
|
||||
*
|
||||
* @generated from protobuf field: string TabID = 1 [json_name = "TabID"];
|
||||
*/
|
||||
tabID: string;
|
||||
TabID: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.ListTabResult
|
||||
@@ -31,18 +31,18 @@ export interface ListTabResult {
|
||||
*
|
||||
* @generated from protobuf field: string Result = 1 [json_name = "Result"];
|
||||
*/
|
||||
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;
|
||||
@@ -53,7 +53,7 @@ class ListTabRequest$Type extends MessageType<ListTabRequest> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string TabID = 1 [json_name = "TabID"];*/ 1:
|
||||
message.tabID = reader.string();
|
||||
message.TabID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -68,8 +68,8 @@ class ListTabRequest$Type extends MessageType<ListTabRequest> {
|
||||
}
|
||||
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);
|
||||
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;
|
||||
@@ -100,7 +100,7 @@ class ListTabResult$Type extends MessageType<ListTabResult> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Result = 1 [json_name = "Result"];*/ 1:
|
||||
message.result = reader.string();
|
||||
message.Result = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -115,8 +115,8 @@ class ListTabResult$Type extends MessageType<ListTabResult> {
|
||||
}
|
||||
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);
|
||||
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,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "viz-translations.proto" (package "vizapi", syntax proto3)
|
||||
// tslint:disable
|
||||
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "viz-translations.proto" (package "vizapi", syntax proto3)
|
||||
// tslint:disable
|
||||
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
||||
@@ -23,19 +23,19 @@ export interface Label {
|
||||
/**
|
||||
* @generated from protobuf field: string ID = 1 [json_name = "ID"];
|
||||
*/
|
||||
iD: string; // ID of the label (unique, ProjectID + Context + Label)
|
||||
ID: string; // ID of the label (unique, ProjectID + Context + Label)
|
||||
/**
|
||||
* @generated from protobuf field: string ProjectID = 2 [json_name = "ProjectID"];
|
||||
*/
|
||||
projectID: string; // ID of the project
|
||||
ProjectID: string; // ID of the project
|
||||
/**
|
||||
* @generated from protobuf field: string Context = 3 [json_name = "Context"];
|
||||
*/
|
||||
context: string; // Context of the label (ex: "Order", "Product", "Customer", "User", "...")
|
||||
Context: string; // Context of the label (ex: "Order", "Product", "Customer", "User", "...")
|
||||
/**
|
||||
* @generated from protobuf field: string Label = 4 [json_name = "Label"];
|
||||
*/
|
||||
label: string; // Label (ex: "Status", "Color", "Size")
|
||||
Label: string; // Label (ex: "Status", "Color", "Size")
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.LanguageCode
|
||||
@@ -44,7 +44,7 @@ export interface LanguageCode {
|
||||
/**
|
||||
* @generated from protobuf field: string Code = 1 [json_name = "Code"];
|
||||
*/
|
||||
code: string; // ISO 639-1 code
|
||||
Code: string; // ISO 639-1 code
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.Translation
|
||||
@@ -53,15 +53,15 @@ export interface Translation {
|
||||
/**
|
||||
* @generated from protobuf field: string LabelID = 1 [json_name = "LabelID"];
|
||||
*/
|
||||
labelID: string; // ID of the label (unique, ProjectID + Context + Label)
|
||||
LabelID: string; // ID of the label (unique, ProjectID + Context + Label)
|
||||
/**
|
||||
* @generated from protobuf field: string LanguageCode = 2 [json_name = "LanguageCode"];
|
||||
*/
|
||||
languageCode: string; // ICU - ISO 639-1 code
|
||||
LanguageCode: string; // ICU - ISO 639-1 code
|
||||
/**
|
||||
* @generated from protobuf field: string Translation = 3 [json_name = "Translation"];
|
||||
*/
|
||||
translation: string; // Translation of the label in the given language code
|
||||
Translation: string; // Translation of the label in the given language code
|
||||
}
|
||||
// ===================================
|
||||
// ======= Requests & Results ========
|
||||
@@ -74,15 +74,15 @@ export interface GetTranslationsRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
|
||||
*/
|
||||
header?: RequestProjectHeader;
|
||||
Header?: RequestProjectHeader;
|
||||
/**
|
||||
* @generated from protobuf field: string Context = 2 [json_name = "Context"];
|
||||
*/
|
||||
context: string;
|
||||
Context: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Label = 3 [json_name = "Label"];
|
||||
*/
|
||||
label: string;
|
||||
Label: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.GetTranslationsResult
|
||||
@@ -91,7 +91,7 @@ export interface GetTranslationsResult {
|
||||
/**
|
||||
* @generated from protobuf field: repeated vizapi.Translation Translations = 1 [json_name = "Translations"];
|
||||
*/
|
||||
translations: Translation[];
|
||||
Translations: Translation[];
|
||||
}
|
||||
/**
|
||||
* Message used to Put a translation for a label in the PutTranslationsRequest
|
||||
@@ -102,11 +102,11 @@ export interface PutTranslationMessage {
|
||||
/**
|
||||
* @generated from protobuf field: string LanguageCode = 1 [json_name = "LanguageCode"];
|
||||
*/
|
||||
languageCode: string;
|
||||
LanguageCode: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Translation = 2 [json_name = "Translation"];
|
||||
*/
|
||||
translation: string;
|
||||
Translation: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.PutTranslationsRequest
|
||||
@@ -115,19 +115,19 @@ export interface PutTranslationsRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
|
||||
*/
|
||||
header?: RequestProjectHeader;
|
||||
Header?: RequestProjectHeader;
|
||||
/**
|
||||
* @generated from protobuf field: string Context = 2 [json_name = "Context"];
|
||||
*/
|
||||
context: string;
|
||||
Context: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Label = 3 [json_name = "Label"];
|
||||
*/
|
||||
label: string;
|
||||
Label: string;
|
||||
/**
|
||||
* @generated from protobuf field: repeated vizapi.PutTranslationMessage Translations = 4 [json_name = "Translations"];
|
||||
*/
|
||||
translations: PutTranslationMessage[];
|
||||
Translations: PutTranslationMessage[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.PutTranslationsResult
|
||||
@@ -136,7 +136,7 @@ export interface PutTranslationsResult {
|
||||
/**
|
||||
* @generated from protobuf field: repeated vizapi.Translation Translations = 1 [json_name = "Translations"];
|
||||
*/
|
||||
translations: Translation[];
|
||||
Translations: Translation[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.DeleteTranslationsRequest
|
||||
@@ -145,15 +145,15 @@ export interface DeleteTranslationsRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
|
||||
*/
|
||||
header?: RequestProjectHeader;
|
||||
Header?: RequestProjectHeader;
|
||||
/**
|
||||
* @generated from protobuf field: string Context = 2 [json_name = "Context"];
|
||||
*/
|
||||
context: string;
|
||||
Context: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Label = 3 [json_name = "Label"];
|
||||
*/
|
||||
label: string;
|
||||
Label: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.DeleteTranslationsResult
|
||||
@@ -167,11 +167,11 @@ export interface ListTranslationsRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
|
||||
*/
|
||||
header?: RequestProjectHeader;
|
||||
Header?: RequestProjectHeader;
|
||||
/**
|
||||
* @generated from protobuf field: string LanguageCode = 2 [json_name = "LanguageCode"];
|
||||
*/
|
||||
languageCode: string;
|
||||
LanguageCode: string;
|
||||
}
|
||||
/**
|
||||
* Messages for the ListTranslationsResult
|
||||
@@ -182,11 +182,11 @@ export interface TranslationContextResult {
|
||||
/**
|
||||
* @generated from protobuf field: string Name = 1 [json_name = "Name"];
|
||||
*/
|
||||
name: string;
|
||||
Name: string;
|
||||
/**
|
||||
* @generated from protobuf field: repeated vizapi.TranslationLabelResult Labels = 2 [json_name = "Labels"];
|
||||
*/
|
||||
labels: TranslationLabelResult[];
|
||||
Labels: TranslationLabelResult[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.TranslationLabelResult
|
||||
@@ -195,11 +195,11 @@ export interface TranslationLabelResult {
|
||||
/**
|
||||
* @generated from protobuf field: string Name = 1 [json_name = "Name"];
|
||||
*/
|
||||
name: string;
|
||||
Name: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Translation = 2 [json_name = "Translation"];
|
||||
*/
|
||||
translation: string;
|
||||
Translation: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.ListTranslationsResult
|
||||
@@ -208,7 +208,7 @@ export interface ListTranslationsResult {
|
||||
/**
|
||||
* @generated from protobuf field: repeated vizapi.TranslationContextResult Contexts = 1 [json_name = "Contexts"];
|
||||
*/
|
||||
contexts: TranslationContextResult[];
|
||||
Contexts: TranslationContextResult[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.DeleteAllTranslationsRequest
|
||||
@@ -217,7 +217,7 @@ export interface DeleteAllTranslationsRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
|
||||
*/
|
||||
header?: RequestProjectHeader;
|
||||
Header?: RequestProjectHeader;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.DeleteAllTranslationsResult
|
||||
@@ -236,24 +236,24 @@ export interface GetLanguagesResult {
|
||||
/**
|
||||
* @generated from protobuf field: repeated vizapi.LanguageCode Languages = 1 [json_name = "Languages"];
|
||||
*/
|
||||
languages: LanguageCode[];
|
||||
Languages: LanguageCode[];
|
||||
}
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class Label$Type extends MessageType<Label> {
|
||||
constructor() {
|
||||
super("vizapi.Label", [
|
||||
{ no: 1, name: "ID", kind: "scalar", jsonName: "ID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "ProjectID", kind: "scalar", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "Context", kind: "scalar", jsonName: "Context", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "Label", kind: "scalar", jsonName: "Label", T: 9 /*ScalarType.STRING*/ }
|
||||
{ no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "Context", kind: "scalar", localName: "Context", jsonName: "Context", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "Label", kind: "scalar", localName: "Label", jsonName: "Label", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<Label>): Label {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.iD = "";
|
||||
message.projectID = "";
|
||||
message.context = "";
|
||||
message.label = "";
|
||||
message.ID = "";
|
||||
message.ProjectID = "";
|
||||
message.Context = "";
|
||||
message.Label = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<Label>(this, message, value);
|
||||
return message;
|
||||
@@ -264,16 +264,16 @@ class Label$Type extends MessageType<Label> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ID = 1 [json_name = "ID"];*/ 1:
|
||||
message.iD = reader.string();
|
||||
message.ID = reader.string();
|
||||
break;
|
||||
case /* string ProjectID = 2 [json_name = "ProjectID"];*/ 2:
|
||||
message.projectID = reader.string();
|
||||
message.ProjectID = reader.string();
|
||||
break;
|
||||
case /* string Context = 3 [json_name = "Context"];*/ 3:
|
||||
message.context = reader.string();
|
||||
message.Context = reader.string();
|
||||
break;
|
||||
case /* string Label = 4 [json_name = "Label"];*/ 4:
|
||||
message.label = reader.string();
|
||||
message.Label = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -288,17 +288,17 @@ class Label$Type extends MessageType<Label> {
|
||||
}
|
||||
internalBinaryWrite(message: Label, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ID = 1 [json_name = "ID"]; */
|
||||
if (message.iD !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.iD);
|
||||
if (message.ID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ID);
|
||||
/* string ProjectID = 2 [json_name = "ProjectID"]; */
|
||||
if (message.projectID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.projectID);
|
||||
if (message.ProjectID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.ProjectID);
|
||||
/* string Context = 3 [json_name = "Context"]; */
|
||||
if (message.context !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.context);
|
||||
if (message.Context !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.Context);
|
||||
/* string Label = 4 [json_name = "Label"]; */
|
||||
if (message.label !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.label);
|
||||
if (message.Label !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.Label);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -313,12 +313,12 @@ export const Label = new Label$Type();
|
||||
class LanguageCode$Type extends MessageType<LanguageCode> {
|
||||
constructor() {
|
||||
super("vizapi.LanguageCode", [
|
||||
{ no: 1, name: "Code", kind: "scalar", jsonName: "Code", T: 9 /*ScalarType.STRING*/ }
|
||||
{ no: 1, name: "Code", kind: "scalar", localName: "Code", jsonName: "Code", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<LanguageCode>): LanguageCode {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.code = "";
|
||||
message.Code = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<LanguageCode>(this, message, value);
|
||||
return message;
|
||||
@@ -329,7 +329,7 @@ class LanguageCode$Type extends MessageType<LanguageCode> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Code = 1 [json_name = "Code"];*/ 1:
|
||||
message.code = reader.string();
|
||||
message.Code = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -344,8 +344,8 @@ class LanguageCode$Type extends MessageType<LanguageCode> {
|
||||
}
|
||||
internalBinaryWrite(message: LanguageCode, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Code = 1 [json_name = "Code"]; */
|
||||
if (message.code !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.code);
|
||||
if (message.Code !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.Code);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -360,16 +360,16 @@ export const LanguageCode = new LanguageCode$Type();
|
||||
class Translation$Type extends MessageType<Translation> {
|
||||
constructor() {
|
||||
super("vizapi.Translation", [
|
||||
{ no: 1, name: "LabelID", kind: "scalar", jsonName: "LabelID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "LanguageCode", kind: "scalar", jsonName: "LanguageCode", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "Translation", kind: "scalar", jsonName: "Translation", T: 9 /*ScalarType.STRING*/ }
|
||||
{ no: 1, name: "LabelID", kind: "scalar", localName: "LabelID", jsonName: "LabelID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "LanguageCode", kind: "scalar", localName: "LanguageCode", jsonName: "LanguageCode", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "Translation", kind: "scalar", localName: "Translation", jsonName: "Translation", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<Translation>): Translation {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.labelID = "";
|
||||
message.languageCode = "";
|
||||
message.translation = "";
|
||||
message.LabelID = "";
|
||||
message.LanguageCode = "";
|
||||
message.Translation = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<Translation>(this, message, value);
|
||||
return message;
|
||||
@@ -380,13 +380,13 @@ class Translation$Type extends MessageType<Translation> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string LabelID = 1 [json_name = "LabelID"];*/ 1:
|
||||
message.labelID = reader.string();
|
||||
message.LabelID = reader.string();
|
||||
break;
|
||||
case /* string LanguageCode = 2 [json_name = "LanguageCode"];*/ 2:
|
||||
message.languageCode = reader.string();
|
||||
message.LanguageCode = reader.string();
|
||||
break;
|
||||
case /* string Translation = 3 [json_name = "Translation"];*/ 3:
|
||||
message.translation = reader.string();
|
||||
message.Translation = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -401,14 +401,14 @@ class Translation$Type extends MessageType<Translation> {
|
||||
}
|
||||
internalBinaryWrite(message: Translation, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string LabelID = 1 [json_name = "LabelID"]; */
|
||||
if (message.labelID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.labelID);
|
||||
if (message.LabelID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.LabelID);
|
||||
/* string LanguageCode = 2 [json_name = "LanguageCode"]; */
|
||||
if (message.languageCode !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.languageCode);
|
||||
if (message.LanguageCode !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.LanguageCode);
|
||||
/* string Translation = 3 [json_name = "Translation"]; */
|
||||
if (message.translation !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.translation);
|
||||
if (message.Translation !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.Translation);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -423,15 +423,15 @@ export const Translation = new Translation$Type();
|
||||
class GetTranslationsRequest$Type extends MessageType<GetTranslationsRequest> {
|
||||
constructor() {
|
||||
super("vizapi.GetTranslationsRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "Context", kind: "scalar", jsonName: "Context", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "Label", kind: "scalar", jsonName: "Label", T: 9 /*ScalarType.STRING*/, options: { "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: "Context", kind: "scalar", localName: "Context", jsonName: "Context", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "Label", kind: "scalar", localName: "Label", jsonName: "Label", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Message request for the GetTranslations method", required: ["Header", "Context", "Label"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<GetTranslationsRequest>): GetTranslationsRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.context = "";
|
||||
message.label = "";
|
||||
message.Context = "";
|
||||
message.Label = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetTranslationsRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -442,13 +442,13 @@ class GetTranslationsRequest$Type extends MessageType<GetTranslationsRequest> {
|
||||
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);
|
||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string Context = 2 [json_name = "Context"];*/ 2:
|
||||
message.context = reader.string();
|
||||
message.Context = reader.string();
|
||||
break;
|
||||
case /* string Label = 3 [json_name = "Label"];*/ 3:
|
||||
message.label = reader.string();
|
||||
message.Label = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -463,14 +463,14 @@ class GetTranslationsRequest$Type extends MessageType<GetTranslationsRequest> {
|
||||
}
|
||||
internalBinaryWrite(message: GetTranslationsRequest, 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();
|
||||
if (message.Header)
|
||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string Context = 2 [json_name = "Context"]; */
|
||||
if (message.context !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.context);
|
||||
if (message.Context !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Context);
|
||||
/* string Label = 3 [json_name = "Label"]; */
|
||||
if (message.label !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.label);
|
||||
if (message.Label !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.Label);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -485,12 +485,12 @@ export const GetTranslationsRequest = new GetTranslationsRequest$Type();
|
||||
class GetTranslationsResult$Type extends MessageType<GetTranslationsResult> {
|
||||
constructor() {
|
||||
super("vizapi.GetTranslationsResult", [
|
||||
{ no: 1, name: "Translations", kind: "message", jsonName: "Translations", repeat: 1 /*RepeatType.PACKED*/, T: () => Translation }
|
||||
{ no: 1, name: "Translations", kind: "message", localName: "Translations", jsonName: "Translations", repeat: 1 /*RepeatType.PACKED*/, T: () => Translation }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Message result for the GetTranslations method" } } });
|
||||
}
|
||||
create(value?: PartialMessage<GetTranslationsResult>): GetTranslationsResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.translations = [];
|
||||
message.Translations = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetTranslationsResult>(this, message, value);
|
||||
return message;
|
||||
@@ -501,7 +501,7 @@ class GetTranslationsResult$Type extends MessageType<GetTranslationsResult> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated vizapi.Translation Translations = 1 [json_name = "Translations"];*/ 1:
|
||||
message.translations.push(Translation.internalBinaryRead(reader, reader.uint32(), options));
|
||||
message.Translations.push(Translation.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -516,8 +516,8 @@ class GetTranslationsResult$Type extends MessageType<GetTranslationsResult> {
|
||||
}
|
||||
internalBinaryWrite(message: GetTranslationsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated vizapi.Translation Translations = 1 [json_name = "Translations"]; */
|
||||
for (let i = 0; i < message.translations.length; i++)
|
||||
Translation.internalBinaryWrite(message.translations[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
for (let i = 0; i < message.Translations.length; i++)
|
||||
Translation.internalBinaryWrite(message.Translations[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);
|
||||
@@ -532,14 +532,14 @@ export const GetTranslationsResult = new GetTranslationsResult$Type();
|
||||
class PutTranslationMessage$Type extends MessageType<PutTranslationMessage> {
|
||||
constructor() {
|
||||
super("vizapi.PutTranslationMessage", [
|
||||
{ no: 1, name: "LanguageCode", kind: "scalar", jsonName: "LanguageCode", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "Translation", kind: "scalar", jsonName: "Translation", T: 9 /*ScalarType.STRING*/ }
|
||||
{ no: 1, name: "LanguageCode", kind: "scalar", localName: "LanguageCode", jsonName: "LanguageCode", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "Translation", kind: "scalar", localName: "Translation", jsonName: "Translation", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<PutTranslationMessage>): PutTranslationMessage {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.languageCode = "";
|
||||
message.translation = "";
|
||||
message.LanguageCode = "";
|
||||
message.Translation = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<PutTranslationMessage>(this, message, value);
|
||||
return message;
|
||||
@@ -550,10 +550,10 @@ class PutTranslationMessage$Type extends MessageType<PutTranslationMessage> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string LanguageCode = 1 [json_name = "LanguageCode"];*/ 1:
|
||||
message.languageCode = reader.string();
|
||||
message.LanguageCode = reader.string();
|
||||
break;
|
||||
case /* string Translation = 2 [json_name = "Translation"];*/ 2:
|
||||
message.translation = reader.string();
|
||||
message.Translation = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -568,11 +568,11 @@ class PutTranslationMessage$Type extends MessageType<PutTranslationMessage> {
|
||||
}
|
||||
internalBinaryWrite(message: PutTranslationMessage, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string LanguageCode = 1 [json_name = "LanguageCode"]; */
|
||||
if (message.languageCode !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.languageCode);
|
||||
if (message.LanguageCode !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.LanguageCode);
|
||||
/* string Translation = 2 [json_name = "Translation"]; */
|
||||
if (message.translation !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.translation);
|
||||
if (message.Translation !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Translation);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -587,17 +587,17 @@ export const PutTranslationMessage = new PutTranslationMessage$Type();
|
||||
class PutTranslationsRequest$Type extends MessageType<PutTranslationsRequest> {
|
||||
constructor() {
|
||||
super("vizapi.PutTranslationsRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "Context", kind: "scalar", jsonName: "Context", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "Label", kind: "scalar", jsonName: "Label", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 4, name: "Translations", kind: "message", jsonName: "Translations", repeat: 1 /*RepeatType.PACKED*/, T: () => PutTranslationMessage }
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "Context", kind: "scalar", localName: "Context", jsonName: "Context", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "Label", kind: "scalar", localName: "Label", jsonName: "Label", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 4, name: "Translations", kind: "message", localName: "Translations", jsonName: "Translations", repeat: 1 /*RepeatType.PACKED*/, T: () => PutTranslationMessage }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Message request for the PutTranslation method", required: ["Header", "Context", "Label"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<PutTranslationsRequest>): PutTranslationsRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.context = "";
|
||||
message.label = "";
|
||||
message.translations = [];
|
||||
message.Context = "";
|
||||
message.Label = "";
|
||||
message.Translations = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<PutTranslationsRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -608,16 +608,16 @@ class PutTranslationsRequest$Type extends MessageType<PutTranslationsRequest> {
|
||||
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);
|
||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string Context = 2 [json_name = "Context"];*/ 2:
|
||||
message.context = reader.string();
|
||||
message.Context = reader.string();
|
||||
break;
|
||||
case /* string Label = 3 [json_name = "Label"];*/ 3:
|
||||
message.label = reader.string();
|
||||
message.Label = reader.string();
|
||||
break;
|
||||
case /* repeated vizapi.PutTranslationMessage Translations = 4 [json_name = "Translations"];*/ 4:
|
||||
message.translations.push(PutTranslationMessage.internalBinaryRead(reader, reader.uint32(), options));
|
||||
message.Translations.push(PutTranslationMessage.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -632,17 +632,17 @@ class PutTranslationsRequest$Type extends MessageType<PutTranslationsRequest> {
|
||||
}
|
||||
internalBinaryWrite(message: PutTranslationsRequest, 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();
|
||||
if (message.Header)
|
||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string Context = 2 [json_name = "Context"]; */
|
||||
if (message.context !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.context);
|
||||
if (message.Context !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Context);
|
||||
/* string Label = 3 [json_name = "Label"]; */
|
||||
if (message.label !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.label);
|
||||
if (message.Label !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.Label);
|
||||
/* repeated vizapi.PutTranslationMessage Translations = 4 [json_name = "Translations"]; */
|
||||
for (let i = 0; i < message.translations.length; i++)
|
||||
PutTranslationMessage.internalBinaryWrite(message.translations[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
for (let i = 0; i < message.Translations.length; i++)
|
||||
PutTranslationMessage.internalBinaryWrite(message.Translations[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);
|
||||
@@ -657,12 +657,12 @@ export const PutTranslationsRequest = new PutTranslationsRequest$Type();
|
||||
class PutTranslationsResult$Type extends MessageType<PutTranslationsResult> {
|
||||
constructor() {
|
||||
super("vizapi.PutTranslationsResult", [
|
||||
{ no: 1, name: "Translations", kind: "message", jsonName: "Translations", repeat: 1 /*RepeatType.PACKED*/, T: () => Translation }
|
||||
{ no: 1, name: "Translations", kind: "message", localName: "Translations", jsonName: "Translations", repeat: 1 /*RepeatType.PACKED*/, T: () => Translation }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Message result for the PutTranslation method" } } });
|
||||
}
|
||||
create(value?: PartialMessage<PutTranslationsResult>): PutTranslationsResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.translations = [];
|
||||
message.Translations = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<PutTranslationsResult>(this, message, value);
|
||||
return message;
|
||||
@@ -673,7 +673,7 @@ class PutTranslationsResult$Type extends MessageType<PutTranslationsResult> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated vizapi.Translation Translations = 1 [json_name = "Translations"];*/ 1:
|
||||
message.translations.push(Translation.internalBinaryRead(reader, reader.uint32(), options));
|
||||
message.Translations.push(Translation.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -688,8 +688,8 @@ class PutTranslationsResult$Type extends MessageType<PutTranslationsResult> {
|
||||
}
|
||||
internalBinaryWrite(message: PutTranslationsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated vizapi.Translation Translations = 1 [json_name = "Translations"]; */
|
||||
for (let i = 0; i < message.translations.length; i++)
|
||||
Translation.internalBinaryWrite(message.translations[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
for (let i = 0; i < message.Translations.length; i++)
|
||||
Translation.internalBinaryWrite(message.Translations[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);
|
||||
@@ -704,15 +704,15 @@ export const PutTranslationsResult = new PutTranslationsResult$Type();
|
||||
class DeleteTranslationsRequest$Type extends MessageType<DeleteTranslationsRequest> {
|
||||
constructor() {
|
||||
super("vizapi.DeleteTranslationsRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "Context", kind: "scalar", jsonName: "Context", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "Label", kind: "scalar", jsonName: "Label", T: 9 /*ScalarType.STRING*/, options: { "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: "Context", kind: "scalar", localName: "Context", jsonName: "Context", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "Label", kind: "scalar", localName: "Label", jsonName: "Label", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Message request for the DeleteTranslation method", required: ["Header", "Context", "Label"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<DeleteTranslationsRequest>): DeleteTranslationsRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.context = "";
|
||||
message.label = "";
|
||||
message.Context = "";
|
||||
message.Label = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DeleteTranslationsRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -723,13 +723,13 @@ class DeleteTranslationsRequest$Type extends MessageType<DeleteTranslationsReque
|
||||
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);
|
||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string Context = 2 [json_name = "Context"];*/ 2:
|
||||
message.context = reader.string();
|
||||
message.Context = reader.string();
|
||||
break;
|
||||
case /* string Label = 3 [json_name = "Label"];*/ 3:
|
||||
message.label = reader.string();
|
||||
message.Label = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -744,14 +744,14 @@ class DeleteTranslationsRequest$Type extends MessageType<DeleteTranslationsReque
|
||||
}
|
||||
internalBinaryWrite(message: DeleteTranslationsRequest, 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();
|
||||
if (message.Header)
|
||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string Context = 2 [json_name = "Context"]; */
|
||||
if (message.context !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.context);
|
||||
if (message.Context !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Context);
|
||||
/* string Label = 3 [json_name = "Label"]; */
|
||||
if (message.label !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.label);
|
||||
if (message.Label !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.Label);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -804,13 +804,13 @@ export const DeleteTranslationsResult = new DeleteTranslationsResult$Type();
|
||||
class ListTranslationsRequest$Type extends MessageType<ListTranslationsRequest> {
|
||||
constructor() {
|
||||
super("vizapi.ListTranslationsRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "LanguageCode", kind: "scalar", jsonName: "LanguageCode", T: 9 /*ScalarType.STRING*/, options: { "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: "LanguageCode", kind: "scalar", localName: "LanguageCode", jsonName: "LanguageCode", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Message request for the ListTranslations method", required: ["Header", "LanguageCode"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<ListTranslationsRequest>): ListTranslationsRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.languageCode = "";
|
||||
message.LanguageCode = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ListTranslationsRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -821,10 +821,10 @@ class ListTranslationsRequest$Type extends MessageType<ListTranslationsRequest>
|
||||
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);
|
||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string LanguageCode = 2 [json_name = "LanguageCode"];*/ 2:
|
||||
message.languageCode = reader.string();
|
||||
message.LanguageCode = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -839,11 +839,11 @@ class ListTranslationsRequest$Type extends MessageType<ListTranslationsRequest>
|
||||
}
|
||||
internalBinaryWrite(message: ListTranslationsRequest, 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();
|
||||
if (message.Header)
|
||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string LanguageCode = 2 [json_name = "LanguageCode"]; */
|
||||
if (message.languageCode !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.languageCode);
|
||||
if (message.LanguageCode !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.LanguageCode);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -858,14 +858,14 @@ export const ListTranslationsRequest = new ListTranslationsRequest$Type();
|
||||
class TranslationContextResult$Type extends MessageType<TranslationContextResult> {
|
||||
constructor() {
|
||||
super("vizapi.TranslationContextResult", [
|
||||
{ no: 1, name: "Name", kind: "scalar", jsonName: "Name", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "Labels", kind: "message", jsonName: "Labels", repeat: 1 /*RepeatType.PACKED*/, T: () => TranslationLabelResult }
|
||||
{ no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "Labels", kind: "message", localName: "Labels", jsonName: "Labels", repeat: 1 /*RepeatType.PACKED*/, T: () => TranslationLabelResult }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<TranslationContextResult>): TranslationContextResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.name = "";
|
||||
message.labels = [];
|
||||
message.Name = "";
|
||||
message.Labels = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<TranslationContextResult>(this, message, value);
|
||||
return message;
|
||||
@@ -876,10 +876,10 @@ class TranslationContextResult$Type extends MessageType<TranslationContextResult
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Name = 1 [json_name = "Name"];*/ 1:
|
||||
message.name = reader.string();
|
||||
message.Name = reader.string();
|
||||
break;
|
||||
case /* repeated vizapi.TranslationLabelResult Labels = 2 [json_name = "Labels"];*/ 2:
|
||||
message.labels.push(TranslationLabelResult.internalBinaryRead(reader, reader.uint32(), options));
|
||||
message.Labels.push(TranslationLabelResult.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -894,11 +894,11 @@ class TranslationContextResult$Type extends MessageType<TranslationContextResult
|
||||
}
|
||||
internalBinaryWrite(message: TranslationContextResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Name = 1 [json_name = "Name"]; */
|
||||
if (message.name !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
||||
if (message.Name !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.Name);
|
||||
/* repeated vizapi.TranslationLabelResult Labels = 2 [json_name = "Labels"]; */
|
||||
for (let i = 0; i < message.labels.length; i++)
|
||||
TranslationLabelResult.internalBinaryWrite(message.labels[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
for (let i = 0; i < message.Labels.length; i++)
|
||||
TranslationLabelResult.internalBinaryWrite(message.Labels[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -913,14 +913,14 @@ export const TranslationContextResult = new TranslationContextResult$Type();
|
||||
class TranslationLabelResult$Type extends MessageType<TranslationLabelResult> {
|
||||
constructor() {
|
||||
super("vizapi.TranslationLabelResult", [
|
||||
{ no: 1, name: "Name", kind: "scalar", jsonName: "Name", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "Translation", kind: "scalar", jsonName: "Translation", T: 9 /*ScalarType.STRING*/ }
|
||||
{ no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "Translation", kind: "scalar", localName: "Translation", jsonName: "Translation", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<TranslationLabelResult>): TranslationLabelResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.name = "";
|
||||
message.translation = "";
|
||||
message.Name = "";
|
||||
message.Translation = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<TranslationLabelResult>(this, message, value);
|
||||
return message;
|
||||
@@ -931,10 +931,10 @@ class TranslationLabelResult$Type extends MessageType<TranslationLabelResult> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Name = 1 [json_name = "Name"];*/ 1:
|
||||
message.name = reader.string();
|
||||
message.Name = reader.string();
|
||||
break;
|
||||
case /* string Translation = 2 [json_name = "Translation"];*/ 2:
|
||||
message.translation = reader.string();
|
||||
message.Translation = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -949,11 +949,11 @@ class TranslationLabelResult$Type extends MessageType<TranslationLabelResult> {
|
||||
}
|
||||
internalBinaryWrite(message: TranslationLabelResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Name = 1 [json_name = "Name"]; */
|
||||
if (message.name !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
||||
if (message.Name !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.Name);
|
||||
/* string Translation = 2 [json_name = "Translation"]; */
|
||||
if (message.translation !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.translation);
|
||||
if (message.Translation !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Translation);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -968,12 +968,12 @@ export const TranslationLabelResult = new TranslationLabelResult$Type();
|
||||
class ListTranslationsResult$Type extends MessageType<ListTranslationsResult> {
|
||||
constructor() {
|
||||
super("vizapi.ListTranslationsResult", [
|
||||
{ no: 1, name: "Contexts", kind: "message", jsonName: "Contexts", repeat: 1 /*RepeatType.PACKED*/, T: () => TranslationContextResult }
|
||||
{ no: 1, name: "Contexts", kind: "message", localName: "Contexts", jsonName: "Contexts", repeat: 1 /*RepeatType.PACKED*/, T: () => TranslationContextResult }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Message result for the ListTranslations method" } } });
|
||||
}
|
||||
create(value?: PartialMessage<ListTranslationsResult>): ListTranslationsResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.contexts = [];
|
||||
message.Contexts = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ListTranslationsResult>(this, message, value);
|
||||
return message;
|
||||
@@ -984,7 +984,7 @@ class ListTranslationsResult$Type extends MessageType<ListTranslationsResult> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated vizapi.TranslationContextResult Contexts = 1 [json_name = "Contexts"];*/ 1:
|
||||
message.contexts.push(TranslationContextResult.internalBinaryRead(reader, reader.uint32(), options));
|
||||
message.Contexts.push(TranslationContextResult.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -999,8 +999,8 @@ class ListTranslationsResult$Type extends MessageType<ListTranslationsResult> {
|
||||
}
|
||||
internalBinaryWrite(message: ListTranslationsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated vizapi.TranslationContextResult Contexts = 1 [json_name = "Contexts"]; */
|
||||
for (let i = 0; i < message.contexts.length; i++)
|
||||
TranslationContextResult.internalBinaryWrite(message.contexts[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
for (let i = 0; i < message.Contexts.length; i++)
|
||||
TranslationContextResult.internalBinaryWrite(message.Contexts[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);
|
||||
@@ -1015,7 +1015,7 @@ export const ListTranslationsResult = new ListTranslationsResult$Type();
|
||||
class DeleteAllTranslationsRequest$Type extends MessageType<DeleteAllTranslationsRequest> {
|
||||
constructor() {
|
||||
super("vizapi.DeleteAllTranslationsRequest", [
|
||||
{ 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: "Message request for the DeleteAllTranslations method", required: ["Header"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<DeleteAllTranslationsRequest>): DeleteAllTranslationsRequest {
|
||||
@@ -1030,7 +1030,7 @@ class DeleteAllTranslationsRequest$Type extends MessageType<DeleteAllTranslation
|
||||
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);
|
||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -1045,8 +1045,8 @@ class DeleteAllTranslationsRequest$Type extends MessageType<DeleteAllTranslation
|
||||
}
|
||||
internalBinaryWrite(message: DeleteAllTranslationsRequest, 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();
|
||||
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);
|
||||
@@ -1137,12 +1137,12 @@ export const GetLanguagesRequest = new GetLanguagesRequest$Type();
|
||||
class GetLanguagesResult$Type extends MessageType<GetLanguagesResult> {
|
||||
constructor() {
|
||||
super("vizapi.GetLanguagesResult", [
|
||||
{ no: 1, name: "Languages", kind: "message", jsonName: "Languages", repeat: 1 /*RepeatType.PACKED*/, T: () => LanguageCode }
|
||||
{ no: 1, name: "Languages", kind: "message", localName: "Languages", jsonName: "Languages", repeat: 1 /*RepeatType.PACKED*/, T: () => LanguageCode }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Message result for the GetLanguages method" } } });
|
||||
}
|
||||
create(value?: PartialMessage<GetLanguagesResult>): GetLanguagesResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.languages = [];
|
||||
message.Languages = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetLanguagesResult>(this, message, value);
|
||||
return message;
|
||||
@@ -1153,7 +1153,7 @@ class GetLanguagesResult$Type extends MessageType<GetLanguagesResult> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated vizapi.LanguageCode Languages = 1 [json_name = "Languages"];*/ 1:
|
||||
message.languages.push(LanguageCode.internalBinaryRead(reader, reader.uint32(), options));
|
||||
message.Languages.push(LanguageCode.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -1168,8 +1168,8 @@ class GetLanguagesResult$Type extends MessageType<GetLanguagesResult> {
|
||||
}
|
||||
internalBinaryWrite(message: GetLanguagesResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated vizapi.LanguageCode Languages = 1 [json_name = "Languages"]; */
|
||||
for (let i = 0; i < message.languages.length; i++)
|
||||
LanguageCode.internalBinaryWrite(message.languages[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
for (let i = 0; i < message.Languages.length; i++)
|
||||
LanguageCode.internalBinaryWrite(message.Languages[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.9.6 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";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.9.6 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";
|
||||
@@ -18,15 +18,15 @@ export interface UserSetting {
|
||||
/**
|
||||
* @generated from protobuf field: string UserID = 1 [json_name = "UserID"];
|
||||
*/
|
||||
userID: string;
|
||||
UserID: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Key = 2 [json_name = "Key"];
|
||||
*/
|
||||
key: string;
|
||||
Key: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Value = 3 [json_name = "Value"];
|
||||
*/
|
||||
value: string;
|
||||
Value: string;
|
||||
}
|
||||
/**
|
||||
* Key, Value pair to store
|
||||
@@ -39,11 +39,11 @@ export interface PutUserSettingRequest {
|
||||
*
|
||||
* @generated from protobuf field: string Key = 1 [json_name = "Key"];
|
||||
*/
|
||||
key: string;
|
||||
Key: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Value = 2 [json_name = "Value"];
|
||||
*/
|
||||
value: string;
|
||||
Value: string;
|
||||
}
|
||||
/**
|
||||
* Key, Value pair response
|
||||
@@ -54,11 +54,11 @@ export interface PutUserSettingResult {
|
||||
/**
|
||||
* @generated from protobuf field: string Key = 1 [json_name = "Key"];
|
||||
*/
|
||||
key: string;
|
||||
Key: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Value = 2 [json_name = "Value"];
|
||||
*/
|
||||
value: string;
|
||||
Value: string;
|
||||
}
|
||||
/**
|
||||
* Key of the user's setting to get
|
||||
@@ -69,7 +69,7 @@ export interface GetUserSettingRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string Key = 2 [json_name = "Key"];
|
||||
*/
|
||||
key: string;
|
||||
Key: string;
|
||||
}
|
||||
/**
|
||||
* Key, Value pair response
|
||||
@@ -80,11 +80,11 @@ export interface GetUserSettingResult {
|
||||
/**
|
||||
* @generated from protobuf field: string Key = 1 [json_name = "Key"];
|
||||
*/
|
||||
key: string;
|
||||
Key: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Value = 2 [json_name = "Value"];
|
||||
*/
|
||||
value: string;
|
||||
Value: string;
|
||||
}
|
||||
/**
|
||||
* Key of the user's setting to delete
|
||||
@@ -95,7 +95,7 @@ export interface DeleteUserSettingRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string Key = 2 [json_name = "Key"];
|
||||
*/
|
||||
key: string;
|
||||
Key: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.DeleteUserSettingResult
|
||||
@@ -116,22 +116,22 @@ export interface ListUserSettingsResult {
|
||||
/**
|
||||
* @generated from protobuf field: repeated vizapi.GetUserSettingResult UserSettings = 1 [json_name = "UserSettings"];
|
||||
*/
|
||||
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;
|
||||
@@ -142,13 +142,13 @@ class UserSetting$Type extends MessageType<UserSetting> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string UserID = 1 [json_name = "UserID"];*/ 1:
|
||||
message.userID = reader.string();
|
||||
message.UserID = reader.string();
|
||||
break;
|
||||
case /* string Key = 2 [json_name = "Key"];*/ 2:
|
||||
message.key = reader.string();
|
||||
message.Key = reader.string();
|
||||
break;
|
||||
case /* string Value = 3 [json_name = "Value"];*/ 3:
|
||||
message.value = reader.string();
|
||||
message.Value = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -163,14 +163,14 @@ class UserSetting$Type extends MessageType<UserSetting> {
|
||||
}
|
||||
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);
|
||||
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);
|
||||
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);
|
||||
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;
|
||||
@@ -203,10 +203,10 @@ class PutUserSettingRequest$Type extends MessageType<PutUserSettingRequest> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Key = 1 [json_name = "Key"];*/ 1:
|
||||
message.key = reader.string();
|
||||
message.Key = reader.string();
|
||||
break;
|
||||
case /* string Value = 2 [json_name = "Value"];*/ 2:
|
||||
message.value = reader.string();
|
||||
message.Value = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -221,11 +221,11 @@ class PutUserSettingRequest$Type extends MessageType<PutUserSettingRequest> {
|
||||
}
|
||||
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);
|
||||
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);
|
||||
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;
|
||||
@@ -258,10 +258,10 @@ class PutUserSettingResult$Type extends MessageType<PutUserSettingResult> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Key = 1 [json_name = "Key"];*/ 1:
|
||||
message.key = reader.string();
|
||||
message.Key = reader.string();
|
||||
break;
|
||||
case /* string Value = 2 [json_name = "Value"];*/ 2:
|
||||
message.value = reader.string();
|
||||
message.Value = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -276,11 +276,11 @@ class PutUserSettingResult$Type extends MessageType<PutUserSettingResult> {
|
||||
}
|
||||
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);
|
||||
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);
|
||||
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;
|
||||
@@ -311,7 +311,7 @@ class GetUserSettingRequest$Type extends MessageType<GetUserSettingRequest> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Key = 2 [json_name = "Key"];*/ 2:
|
||||
message.key = reader.string();
|
||||
message.Key = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -326,8 +326,8 @@ class GetUserSettingRequest$Type extends MessageType<GetUserSettingRequest> {
|
||||
}
|
||||
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);
|
||||
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;
|
||||
@@ -360,10 +360,10 @@ class GetUserSettingResult$Type extends MessageType<GetUserSettingResult> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Key = 1 [json_name = "Key"];*/ 1:
|
||||
message.key = reader.string();
|
||||
message.Key = reader.string();
|
||||
break;
|
||||
case /* string Value = 2 [json_name = "Value"];*/ 2:
|
||||
message.value = reader.string();
|
||||
message.Value = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -378,11 +378,11 @@ class GetUserSettingResult$Type extends MessageType<GetUserSettingResult> {
|
||||
}
|
||||
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);
|
||||
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);
|
||||
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;
|
||||
@@ -413,7 +413,7 @@ class DeleteUserSettingRequest$Type extends MessageType<DeleteUserSettingRequest
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Key = 2 [json_name = "Key"];*/ 2:
|
||||
message.key = reader.string();
|
||||
message.Key = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -428,8 +428,8 @@ class DeleteUserSettingRequest$Type extends MessageType<DeleteUserSettingRequest
|
||||
}
|
||||
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);
|
||||
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: 1 /*RepeatType.PACKED*/, 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;
|
||||
@@ -536,7 +536,7 @@ class ListUserSettingsResult$Type extends MessageType<ListUserSettingsResult> {
|
||||
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));
|
||||
message.UserSettings.push(GetUserSettingResult.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -551,8 +551,8 @@ class ListUserSettingsResult$Type extends MessageType<ListUserSettingsResult> {
|
||||
}
|
||||
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();
|
||||
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,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.9.6 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";
|
||||
|
||||
656
viz-view.ts
656
viz-view.ts
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user