You've already forked npm-core-sdk
1048 lines
53 KiB
TypeScript
1048 lines
53 KiB
TypeScript
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix
|
|
// @generated from protobuf file "model.proto" (package "api", syntax proto3)
|
|
// tslint:disable
|
|
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
import { WireType } from "@protobuf-ts/runtime";
|
|
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
import { ResourceType } from "./shared";
|
|
import { RequestSiteHeader } from "./shared";
|
|
import { RequestProjectHeader } from "./shared";
|
|
// message MetadataSchema {
|
|
// string Id = 1;
|
|
// string Text = 2;
|
|
// DataSchema Data = 3;
|
|
// StateSchema State = 4;
|
|
// string Parent = 5;
|
|
// repeated MetadataSchema Children = 6;
|
|
// }
|
|
//
|
|
// // TODO use a oneof ?
|
|
// message DataSchema {
|
|
// string Option = 1;
|
|
// string Type = 2;
|
|
// string Parent = 3;
|
|
// string Domain = 4; // if Option == "reference"
|
|
// string Entity = 5; // if Option == "reference"
|
|
//
|
|
// Metadata Metatada = 6;
|
|
// bool IsMetadata = 7;
|
|
// bool IsReference = 8;
|
|
// bool IsReadOnly = 9;
|
|
// }
|
|
//
|
|
// message StateSchema {
|
|
// bool Expanded = 1;
|
|
// }
|
|
|
|
/**
|
|
* @generated from protobuf message api.DataFilters
|
|
*/
|
|
export interface DataFilters {
|
|
// string Project = 1
|
|
// [
|
|
// (validate.rules).string.min_len = 1
|
|
// ];
|
|
|
|
/**
|
|
* @generated from protobuf field: string Domain = 2
|
|
*/
|
|
Domain: string;
|
|
/**
|
|
* Entity where the metadata will be created. It can be \"executionflow\", \"handlingunit\", \"item\", \"order\", \"stock\"
|
|
*
|
|
* @generated from protobuf field: string Entity = 3
|
|
*/
|
|
Entity: string;
|
|
/**
|
|
* @generated from protobuf field: string Screen = 4
|
|
*/
|
|
Screen: string;
|
|
}
|
|
/**
|
|
* @deprecated
|
|
* @generated from protobuf message api.GetDataModelRequest
|
|
*/
|
|
export interface GetDataModelRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
|
*/
|
|
Header?: RequestProjectHeader;
|
|
/**
|
|
* @generated from protobuf field: api.DataFilters Filters = 2
|
|
*/
|
|
Filters?: DataFilters;
|
|
}
|
|
/**
|
|
* @deprecated
|
|
* @generated from protobuf message api.GetDataModelResult
|
|
*/
|
|
export interface GetDataModelResult {
|
|
/**
|
|
* @generated from protobuf field: repeated string DataModel = 1
|
|
*/
|
|
DataModel: string[];
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.GetProjectDataModelRequest
|
|
*/
|
|
export interface GetProjectDataModelRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
|
*/
|
|
Header?: RequestProjectHeader;
|
|
/**
|
|
* @generated from protobuf field: api.DataFilters Filters = 2
|
|
*/
|
|
Filters?: DataFilters;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.GetProjectDataModelResult
|
|
*/
|
|
export interface GetProjectDataModelResult {
|
|
/**
|
|
* @generated from protobuf field: repeated string DataModel = 1
|
|
*/
|
|
DataModel: string[];
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.GetSiteDataModelRequest
|
|
*/
|
|
export interface GetSiteDataModelRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestSiteHeader Header = 1
|
|
*/
|
|
Header?: RequestSiteHeader;
|
|
/**
|
|
* @generated from protobuf field: api.DataFilters Filters = 2
|
|
*/
|
|
Filters?: DataFilters;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.GetSiteDataModelResult
|
|
*/
|
|
export interface GetSiteDataModelResult {
|
|
/**
|
|
* @generated from protobuf field: repeated string DataModel = 1
|
|
*/
|
|
DataModel: string[];
|
|
}
|
|
/**
|
|
* @deprecated
|
|
* @generated from protobuf message api.GetEntityModelRequest
|
|
*/
|
|
export interface GetEntityModelRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
|
*/
|
|
Header?: RequestProjectHeader;
|
|
/**
|
|
* @generated from protobuf field: string Entity = 2
|
|
*/
|
|
Entity: string;
|
|
/**
|
|
* @generated from protobuf field: string Domain = 3
|
|
*/
|
|
Domain: string;
|
|
}
|
|
/**
|
|
* @deprecated
|
|
* @generated from protobuf message api.GetEntityModelResult
|
|
*/
|
|
export interface GetEntityModelResult {
|
|
/**
|
|
* @generated from protobuf field: string JsonFormatModel = 1
|
|
*/
|
|
JsonFormatModel: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.GetProjectEntityModelRequest
|
|
*/
|
|
export interface GetProjectEntityModelRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
|
*/
|
|
Header?: RequestProjectHeader;
|
|
/**
|
|
* @generated from protobuf field: string Entity = 2
|
|
*/
|
|
Entity: string;
|
|
/**
|
|
* @generated from protobuf field: string Domain = 3
|
|
*/
|
|
Domain: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.GetProjectEntityModelResult
|
|
*/
|
|
export interface GetProjectEntityModelResult {
|
|
/**
|
|
* @generated from protobuf field: string JsonFormatModel = 1
|
|
*/
|
|
JsonFormatModel: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.GetSiteEntityModelRequest
|
|
*/
|
|
export interface GetSiteEntityModelRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestSiteHeader Header = 1
|
|
*/
|
|
Header?: RequestSiteHeader;
|
|
/**
|
|
* @generated from protobuf field: string Entity = 2
|
|
*/
|
|
Entity: string;
|
|
/**
|
|
* @generated from protobuf field: string Domain = 3
|
|
*/
|
|
Domain: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.GetSiteEntityModelResult
|
|
*/
|
|
export interface GetSiteEntityModelResult {
|
|
/**
|
|
* @generated from protobuf field: string JsonFormatModel = 1
|
|
*/
|
|
JsonFormatModel: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.GetEntitiesRequest
|
|
*/
|
|
export interface GetEntitiesRequest {
|
|
/**
|
|
* @generated from protobuf field: string Domain = 2
|
|
*/
|
|
Domain: string;
|
|
/**
|
|
* @generated from protobuf field: api.ResourceType RscType = 3
|
|
*/
|
|
RscType: ResourceType; // Resource Type : RESOURCE_TYPE_PROJECT or RESOURCE_TYPE_SITE
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.GetEntitiesResult
|
|
*/
|
|
export interface GetEntitiesResult {
|
|
/**
|
|
* @generated from protobuf field: repeated string Entities = 1
|
|
*/
|
|
Entities: string[];
|
|
}
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DataFilters$Type extends MessageType<DataFilters> {
|
|
constructor() {
|
|
super("api.DataFilters", [
|
|
{ no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["trade", "collab"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } },
|
|
{ no: 3, name: "Entity", kind: "scalar", localName: "Entity", jsonName: "Entity", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Entity where the metadata will be created. It can be \"executionflow\", \"handlingunit\", \"item\", \"order\", \"stock\"", example: "\"order\"" } } },
|
|
{ no: 4, name: "Screen", kind: "scalar", localName: "Screen", jsonName: "Screen", T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<DataFilters>): DataFilters {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Domain = "";
|
|
message.Entity = "";
|
|
message.Screen = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DataFilters>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DataFilters): DataFilters {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string Domain */ 2:
|
|
message.Domain = reader.string();
|
|
break;
|
|
case /* string Entity */ 3:
|
|
message.Entity = reader.string();
|
|
break;
|
|
case /* string Screen */ 4:
|
|
message.Screen = reader.string();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: DataFilters, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string Domain = 2; */
|
|
if (message.Domain !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.Domain);
|
|
/* string Entity = 3; */
|
|
if (message.Entity !== "")
|
|
writer.tag(3, WireType.LengthDelimited).string(message.Entity);
|
|
/* string Screen = 4; */
|
|
if (message.Screen !== "")
|
|
writer.tag(4, WireType.LengthDelimited).string(message.Screen);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.DataFilters
|
|
*/
|
|
export const DataFilters = new DataFilters$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GetDataModelRequest$Type extends MessageType<GetDataModelRequest> {
|
|
constructor() {
|
|
super("api.GetDataModelRequest", [
|
|
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "Filters", kind: "message", localName: "Filters", jsonName: "Filters", T: () => DataFilters, options: { "validate.rules": { message: { required: true } } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Filters"] } } });
|
|
}
|
|
create(value?: PartialMessage<GetDataModelRequest>): GetDataModelRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GetDataModelRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetDataModelRequest): GetDataModelRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.RequestProjectHeader Header */ 1:
|
|
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
break;
|
|
case /* api.DataFilters Filters */ 2:
|
|
message.Filters = DataFilters.internalBinaryRead(reader, reader.uint32(), options, message.Filters);
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: GetDataModelRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.RequestProjectHeader Header = 1; */
|
|
if (message.Header)
|
|
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.DataFilters Filters = 2; */
|
|
if (message.Filters)
|
|
DataFilters.internalBinaryWrite(message.Filters, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @deprecated
|
|
* @generated MessageType for protobuf message api.GetDataModelRequest
|
|
*/
|
|
export const GetDataModelRequest = new GetDataModelRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GetDataModelResult$Type extends MessageType<GetDataModelResult> {
|
|
constructor() {
|
|
super("api.GetDataModelResult", [
|
|
{ no: 1, name: "DataModel", kind: "scalar", localName: "DataModel", jsonName: "DataModel", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<GetDataModelResult>): GetDataModelResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.DataModel = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GetDataModelResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetDataModelResult): GetDataModelResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* repeated string DataModel */ 1:
|
|
message.DataModel.push(reader.string());
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: GetDataModelResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* repeated string DataModel = 1; */
|
|
for (let i = 0; i < message.DataModel.length; i++)
|
|
writer.tag(1, WireType.LengthDelimited).string(message.DataModel[i]);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @deprecated
|
|
* @generated MessageType for protobuf message api.GetDataModelResult
|
|
*/
|
|
export const GetDataModelResult = new GetDataModelResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GetProjectDataModelRequest$Type extends MessageType<GetProjectDataModelRequest> {
|
|
constructor() {
|
|
super("api.GetProjectDataModelRequest", [
|
|
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "Filters", kind: "message", localName: "Filters", jsonName: "Filters", T: () => DataFilters, options: { "validate.rules": { message: { required: true } } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Filters"] } } });
|
|
}
|
|
create(value?: PartialMessage<GetProjectDataModelRequest>): GetProjectDataModelRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GetProjectDataModelRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetProjectDataModelRequest): GetProjectDataModelRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.RequestProjectHeader Header */ 1:
|
|
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
break;
|
|
case /* api.DataFilters Filters */ 2:
|
|
message.Filters = DataFilters.internalBinaryRead(reader, reader.uint32(), options, message.Filters);
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: GetProjectDataModelRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.RequestProjectHeader Header = 1; */
|
|
if (message.Header)
|
|
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.DataFilters Filters = 2; */
|
|
if (message.Filters)
|
|
DataFilters.internalBinaryWrite(message.Filters, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.GetProjectDataModelRequest
|
|
*/
|
|
export const GetProjectDataModelRequest = new GetProjectDataModelRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GetProjectDataModelResult$Type extends MessageType<GetProjectDataModelResult> {
|
|
constructor() {
|
|
super("api.GetProjectDataModelResult", [
|
|
{ no: 1, name: "DataModel", kind: "scalar", localName: "DataModel", jsonName: "DataModel", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<GetProjectDataModelResult>): GetProjectDataModelResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.DataModel = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GetProjectDataModelResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetProjectDataModelResult): GetProjectDataModelResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* repeated string DataModel */ 1:
|
|
message.DataModel.push(reader.string());
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: GetProjectDataModelResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* repeated string DataModel = 1; */
|
|
for (let i = 0; i < message.DataModel.length; i++)
|
|
writer.tag(1, WireType.LengthDelimited).string(message.DataModel[i]);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.GetProjectDataModelResult
|
|
*/
|
|
export const GetProjectDataModelResult = new GetProjectDataModelResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GetSiteDataModelRequest$Type extends MessageType<GetSiteDataModelRequest> {
|
|
constructor() {
|
|
super("api.GetSiteDataModelRequest", [
|
|
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "Filters", kind: "message", localName: "Filters", jsonName: "Filters", T: () => DataFilters, options: { "validate.rules": { message: { required: true } } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Filters"] } } });
|
|
}
|
|
create(value?: PartialMessage<GetSiteDataModelRequest>): GetSiteDataModelRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GetSiteDataModelRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSiteDataModelRequest): GetSiteDataModelRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.RequestSiteHeader Header */ 1:
|
|
message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
break;
|
|
case /* api.DataFilters Filters */ 2:
|
|
message.Filters = DataFilters.internalBinaryRead(reader, reader.uint32(), options, message.Filters);
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: GetSiteDataModelRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.RequestSiteHeader Header = 1; */
|
|
if (message.Header)
|
|
RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.DataFilters Filters = 2; */
|
|
if (message.Filters)
|
|
DataFilters.internalBinaryWrite(message.Filters, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.GetSiteDataModelRequest
|
|
*/
|
|
export const GetSiteDataModelRequest = new GetSiteDataModelRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GetSiteDataModelResult$Type extends MessageType<GetSiteDataModelResult> {
|
|
constructor() {
|
|
super("api.GetSiteDataModelResult", [
|
|
{ no: 1, name: "DataModel", kind: "scalar", localName: "DataModel", jsonName: "DataModel", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<GetSiteDataModelResult>): GetSiteDataModelResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.DataModel = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GetSiteDataModelResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSiteDataModelResult): GetSiteDataModelResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* repeated string DataModel */ 1:
|
|
message.DataModel.push(reader.string());
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: GetSiteDataModelResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* repeated string DataModel = 1; */
|
|
for (let i = 0; i < message.DataModel.length; i++)
|
|
writer.tag(1, WireType.LengthDelimited).string(message.DataModel[i]);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.GetSiteDataModelResult
|
|
*/
|
|
export const GetSiteDataModelResult = new GetSiteDataModelResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GetEntityModelRequest$Type extends MessageType<GetEntityModelRequest> {
|
|
constructor() {
|
|
super("api.GetEntityModelRequest", [
|
|
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "Entity", kind: "scalar", localName: "Entity", jsonName: "Entity", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Entity to get the model", example: "\"order\"" } } },
|
|
{ no: 3, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["trade", "collab"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Domain of the entity to get the model", example: "\"trade\"" } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Domain", "Entity"] } } });
|
|
}
|
|
create(value?: PartialMessage<GetEntityModelRequest>): GetEntityModelRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Entity = "";
|
|
message.Domain = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GetEntityModelRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetEntityModelRequest): GetEntityModelRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.RequestProjectHeader Header */ 1:
|
|
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
break;
|
|
case /* string Entity */ 2:
|
|
message.Entity = reader.string();
|
|
break;
|
|
case /* string Domain */ 3:
|
|
message.Domain = reader.string();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: GetEntityModelRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.RequestProjectHeader Header = 1; */
|
|
if (message.Header)
|
|
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* string Entity = 2; */
|
|
if (message.Entity !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.Entity);
|
|
/* string Domain = 3; */
|
|
if (message.Domain !== "")
|
|
writer.tag(3, WireType.LengthDelimited).string(message.Domain);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @deprecated
|
|
* @generated MessageType for protobuf message api.GetEntityModelRequest
|
|
*/
|
|
export const GetEntityModelRequest = new GetEntityModelRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GetEntityModelResult$Type extends MessageType<GetEntityModelResult> {
|
|
constructor() {
|
|
super("api.GetEntityModelResult", [
|
|
{ no: 1, name: "JsonFormatModel", kind: "scalar", localName: "JsonFormatModel", jsonName: "JsonFormatModel", T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<GetEntityModelResult>): GetEntityModelResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.JsonFormatModel = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GetEntityModelResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetEntityModelResult): GetEntityModelResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string JsonFormatModel */ 1:
|
|
message.JsonFormatModel = reader.string();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: GetEntityModelResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string JsonFormatModel = 1; */
|
|
if (message.JsonFormatModel !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.JsonFormatModel);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @deprecated
|
|
* @generated MessageType for protobuf message api.GetEntityModelResult
|
|
*/
|
|
export const GetEntityModelResult = new GetEntityModelResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GetProjectEntityModelRequest$Type extends MessageType<GetProjectEntityModelRequest> {
|
|
constructor() {
|
|
super("api.GetProjectEntityModelRequest", [
|
|
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "Entity", kind: "scalar", localName: "Entity", jsonName: "Entity", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Entity to get the model", example: "\"order\"" } } },
|
|
{ no: 3, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["trade", "collab"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Domain of the entity to get the model", example: "\"trade\"" } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Domain", "Entity"] } } });
|
|
}
|
|
create(value?: PartialMessage<GetProjectEntityModelRequest>): GetProjectEntityModelRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Entity = "";
|
|
message.Domain = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GetProjectEntityModelRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetProjectEntityModelRequest): GetProjectEntityModelRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.RequestProjectHeader Header */ 1:
|
|
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
break;
|
|
case /* string Entity */ 2:
|
|
message.Entity = reader.string();
|
|
break;
|
|
case /* string Domain */ 3:
|
|
message.Domain = reader.string();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: GetProjectEntityModelRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.RequestProjectHeader Header = 1; */
|
|
if (message.Header)
|
|
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* string Entity = 2; */
|
|
if (message.Entity !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.Entity);
|
|
/* string Domain = 3; */
|
|
if (message.Domain !== "")
|
|
writer.tag(3, WireType.LengthDelimited).string(message.Domain);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.GetProjectEntityModelRequest
|
|
*/
|
|
export const GetProjectEntityModelRequest = new GetProjectEntityModelRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GetProjectEntityModelResult$Type extends MessageType<GetProjectEntityModelResult> {
|
|
constructor() {
|
|
super("api.GetProjectEntityModelResult", [
|
|
{ no: 1, name: "JsonFormatModel", kind: "scalar", localName: "JsonFormatModel", jsonName: "JsonFormatModel", T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<GetProjectEntityModelResult>): GetProjectEntityModelResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.JsonFormatModel = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GetProjectEntityModelResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetProjectEntityModelResult): GetProjectEntityModelResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string JsonFormatModel */ 1:
|
|
message.JsonFormatModel = reader.string();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: GetProjectEntityModelResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string JsonFormatModel = 1; */
|
|
if (message.JsonFormatModel !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.JsonFormatModel);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.GetProjectEntityModelResult
|
|
*/
|
|
export const GetProjectEntityModelResult = new GetProjectEntityModelResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GetSiteEntityModelRequest$Type extends MessageType<GetSiteEntityModelRequest> {
|
|
constructor() {
|
|
super("api.GetSiteEntityModelRequest", [
|
|
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "Entity", kind: "scalar", localName: "Entity", jsonName: "Entity", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Entity to get the model", example: "\"order\"" } } },
|
|
{ no: 3, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["trade", "collab"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Domain of the entity to get the model", example: "\"trade\"" } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Domain", "Entity"] } } });
|
|
}
|
|
create(value?: PartialMessage<GetSiteEntityModelRequest>): GetSiteEntityModelRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Entity = "";
|
|
message.Domain = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GetSiteEntityModelRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSiteEntityModelRequest): GetSiteEntityModelRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.RequestSiteHeader Header */ 1:
|
|
message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
break;
|
|
case /* string Entity */ 2:
|
|
message.Entity = reader.string();
|
|
break;
|
|
case /* string Domain */ 3:
|
|
message.Domain = reader.string();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: GetSiteEntityModelRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.RequestSiteHeader Header = 1; */
|
|
if (message.Header)
|
|
RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* string Entity = 2; */
|
|
if (message.Entity !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.Entity);
|
|
/* string Domain = 3; */
|
|
if (message.Domain !== "")
|
|
writer.tag(3, WireType.LengthDelimited).string(message.Domain);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.GetSiteEntityModelRequest
|
|
*/
|
|
export const GetSiteEntityModelRequest = new GetSiteEntityModelRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GetSiteEntityModelResult$Type extends MessageType<GetSiteEntityModelResult> {
|
|
constructor() {
|
|
super("api.GetSiteEntityModelResult", [
|
|
{ no: 1, name: "JsonFormatModel", kind: "scalar", localName: "JsonFormatModel", jsonName: "JsonFormatModel", T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<GetSiteEntityModelResult>): GetSiteEntityModelResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.JsonFormatModel = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GetSiteEntityModelResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSiteEntityModelResult): GetSiteEntityModelResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string JsonFormatModel */ 1:
|
|
message.JsonFormatModel = reader.string();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: GetSiteEntityModelResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string JsonFormatModel = 1; */
|
|
if (message.JsonFormatModel !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.JsonFormatModel);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.GetSiteEntityModelResult
|
|
*/
|
|
export const GetSiteEntityModelResult = new GetSiteEntityModelResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GetEntitiesRequest$Type extends MessageType<GetEntitiesRequest> {
|
|
constructor() {
|
|
super("api.GetEntitiesRequest", [
|
|
{ no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["trade", "collab"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } },
|
|
{ no: 3, name: "RscType", kind: "enum", localName: "RscType", jsonName: "RscType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { in: [30, 80] } } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Domain"] } } });
|
|
}
|
|
create(value?: PartialMessage<GetEntitiesRequest>): GetEntitiesRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Domain = "";
|
|
message.RscType = 0;
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GetEntitiesRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetEntitiesRequest): GetEntitiesRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string Domain */ 2:
|
|
message.Domain = reader.string();
|
|
break;
|
|
case /* api.ResourceType RscType */ 3:
|
|
message.RscType = reader.int32();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: GetEntitiesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string Domain = 2; */
|
|
if (message.Domain !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.Domain);
|
|
/* api.ResourceType RscType = 3; */
|
|
if (message.RscType !== 0)
|
|
writer.tag(3, WireType.Varint).int32(message.RscType);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.GetEntitiesRequest
|
|
*/
|
|
export const GetEntitiesRequest = new GetEntitiesRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GetEntitiesResult$Type extends MessageType<GetEntitiesResult> {
|
|
constructor() {
|
|
super("api.GetEntitiesResult", [
|
|
{ no: 1, name: "Entities", kind: "scalar", localName: "Entities", jsonName: "Entities", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<GetEntitiesResult>): GetEntitiesResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Entities = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GetEntitiesResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetEntitiesResult): GetEntitiesResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* repeated string Entities */ 1:
|
|
message.Entities.push(reader.string());
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: GetEntitiesResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* repeated string Entities = 1; */
|
|
for (let i = 0; i < message.Entities.length; i++)
|
|
writer.tag(1, WireType.LengthDelimited).string(message.Entities[i]);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.GetEntitiesResult
|
|
*/
|
|
export const GetEntitiesResult = new GetEntitiesResult$Type();
|
|
/**
|
|
* @generated ServiceType for protobuf service api.ModelService
|
|
*/
|
|
export const ModelService = new ServiceType("api.ModelService", [
|
|
{ name: "GetDataModel", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Model"], description: "DEPRECATED : replaced by GetProjectDataModel. Get project data model" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetDataModelRequest, O: GetDataModelResult },
|
|
{ name: "GetEntityModel", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Model"], description: "DEPRECATED : replaced by GetProjectEntityModel. Get entity data model with project metadata in Json Format" }, "api.rscType": "Project", "api.roles": "Platform.Project-Model", "google.api.method_visibility": { restriction: "SDK" } }, I: GetEntityModelRequest, O: GetEntityModelResult },
|
|
{ name: "GetProjectDataModel", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Model"], description: "Get project data model" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetProjectDataModelRequest, O: GetProjectDataModelResult },
|
|
{ name: "GetProjectEntityModel", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Model"], description: "Get entity data model with project metadata in Json Format" }, "api.rscType": "Project", "api.roles": "Platform.Project-Model", "google.api.method_visibility": { restriction: "SDK" } }, I: GetProjectEntityModelRequest, O: GetProjectEntityModelResult },
|
|
{ name: "GetSiteDataModel", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Model"], description: "Get site data model" }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetSiteDataModelRequest, O: GetSiteDataModelResult },
|
|
{ name: "GetSiteEntityModel", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Model"], description: "Get entity data model with site metadata in Json Format" }, "api.rscType": "Site", "api.roles": "Platform.Site-Model", "google.api.method_visibility": { restriction: "SDK" } }, I: GetSiteEntityModelRequest, O: GetSiteEntityModelResult },
|
|
{ name: "GetEntities", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Model"], description: "Get entities" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetEntitiesRequest, O: GetEntitiesResult },
|
|
{ name: "GetEntitiesWithMetadata", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Model"], description: "Get entities with metadata" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetEntitiesRequest, O: GetEntitiesResult },
|
|
{ name: "GetEntitiesWithDataRestriction", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Model"], description: "Get entities with data restriction" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetEntitiesRequest, O: GetEntitiesResult }
|
|
], { "api.k8sService": "project-model-server" });
|