You've already forked npm-core-sdk
508 lines
26 KiB
TypeScript
508 lines
26 KiB
TypeScript
// @generated by protobuf-ts 2.9.6
|
|
// @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 { 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 [json_name = "Domain"];
|
|
*/
|
|
domain: string;
|
|
/**
|
|
* Entity where the metadata will be created. It can be \"executionflow\", \"handlingunit\", \"item\", \"order\", \"stock\"
|
|
*
|
|
* @generated from protobuf field: string Entity = 3 [json_name = "Entity"];
|
|
*/
|
|
entity: string;
|
|
/**
|
|
* @generated from protobuf field: string Screen = 4 [json_name = "Screen"];
|
|
*/
|
|
screen: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.GetDataModelRequest
|
|
*/
|
|
export interface GetDataModelRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
|
|
*/
|
|
header?: RequestProjectHeader;
|
|
/**
|
|
* @generated from protobuf field: api.DataFilters Filters = 2 [json_name = "Filters"];
|
|
*/
|
|
filters?: DataFilters;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.GetDataModelResult
|
|
*/
|
|
export interface GetDataModelResult {
|
|
/**
|
|
* @generated from protobuf field: repeated string DataModel = 1 [json_name = "DataModel"];
|
|
*/
|
|
dataModel: string[];
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.GetEntityModelRequest
|
|
*/
|
|
export interface GetEntityModelRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
|
|
*/
|
|
header?: RequestProjectHeader;
|
|
/**
|
|
* @generated from protobuf field: string Entity = 2 [json_name = "Entity"];
|
|
*/
|
|
entity: string;
|
|
/**
|
|
* @generated from protobuf field: string Domain = 3 [json_name = "Domain"];
|
|
*/
|
|
domain: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.GetEntityModelResult
|
|
*/
|
|
export interface GetEntityModelResult {
|
|
/**
|
|
* @generated from protobuf field: string JsonFormatModel = 1 [json_name = "JsonFormatModel"];
|
|
*/
|
|
jsonFormatModel: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.GetEntitiesRequest
|
|
*/
|
|
export interface GetEntitiesRequest {
|
|
/**
|
|
* @generated from protobuf field: string Domain = 2 [json_name = "Domain"];
|
|
*/
|
|
domain: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.GetEntitiesResult
|
|
*/
|
|
export interface GetEntitiesResult {
|
|
/**
|
|
* @generated from protobuf field: repeated string Entities = 1 [json_name = "Entities"];
|
|
*/
|
|
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", 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", 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", 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 [json_name = "Domain"];*/ 2:
|
|
message.domain = reader.string();
|
|
break;
|
|
case /* string Entity = 3 [json_name = "Entity"];*/ 3:
|
|
message.entity = reader.string();
|
|
break;
|
|
case /* string Screen = 4 [json_name = "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 [json_name = "Domain"]; */
|
|
if (message.domain !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.domain);
|
|
/* string Entity = 3 [json_name = "Entity"]; */
|
|
if (message.entity !== "")
|
|
writer.tag(3, WireType.LengthDelimited).string(message.entity);
|
|
/* string Screen = 4 [json_name = "Screen"]; */
|
|
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", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "Filters", kind: "message", 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 [json_name = "Header"];*/ 1:
|
|
message.header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.header);
|
|
break;
|
|
case /* api.DataFilters Filters = 2 [json_name = "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 [json_name = "Header"]; */
|
|
if (message.header)
|
|
RequestProjectHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.DataFilters Filters = 2 [json_name = "Filters"]; */
|
|
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.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", 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 [json_name = "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 [json_name = "DataModel"]; */
|
|
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.GetDataModelResult
|
|
*/
|
|
export const GetDataModelResult = new GetDataModelResult$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", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "Entity", kind: "scalar", 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", 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 [json_name = "Header"];*/ 1:
|
|
message.header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.header);
|
|
break;
|
|
case /* string Entity = 2 [json_name = "Entity"];*/ 2:
|
|
message.entity = reader.string();
|
|
break;
|
|
case /* string Domain = 3 [json_name = "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 [json_name = "Header"]; */
|
|
if (message.header)
|
|
RequestProjectHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* string Entity = 2 [json_name = "Entity"]; */
|
|
if (message.entity !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.entity);
|
|
/* string Domain = 3 [json_name = "Domain"]; */
|
|
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.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", 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 [json_name = "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 [json_name = "JsonFormatModel"]; */
|
|
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.GetEntityModelResult
|
|
*/
|
|
export const GetEntityModelResult = new GetEntityModelResult$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", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["trade", "collab"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } }
|
|
], { "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 = "";
|
|
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 [json_name = "Domain"];*/ 2:
|
|
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: GetEntitiesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string Domain = 2 [json_name = "Domain"]; */
|
|
if (message.domain !== "")
|
|
writer.tag(2, 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.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", 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 [json_name = "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 [json_name = "Entities"]; */
|
|
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: ["Project Model"], description: "Get 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: ["Project 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: GetEntityModelRequest, O: GetEntityModelResult },
|
|
{ name: "GetEntities", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Project 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: ["Project 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: ["Project 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" });
|