You've already forked npm-core-sdk
Latest generation
This commit is contained in:
552
model.ts
552
model.ts
@@ -11,6 +11,8 @@ 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;
|
||||
@@ -64,6 +66,7 @@ export interface DataFilters {
|
||||
Screen: string;
|
||||
}
|
||||
/**
|
||||
* @deprecated
|
||||
* @generated from protobuf message api.GetDataModelRequest
|
||||
*/
|
||||
export interface GetDataModelRequest {
|
||||
@@ -77,6 +80,7 @@ export interface GetDataModelRequest {
|
||||
Filters?: DataFilters;
|
||||
}
|
||||
/**
|
||||
* @deprecated
|
||||
* @generated from protobuf message api.GetDataModelResult
|
||||
*/
|
||||
export interface GetDataModelResult {
|
||||
@@ -86,6 +90,51 @@ export interface GetDataModelResult {
|
||||
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 {
|
||||
@@ -103,6 +152,7 @@ export interface GetEntityModelRequest {
|
||||
Domain: string;
|
||||
}
|
||||
/**
|
||||
* @deprecated
|
||||
* @generated from protobuf message api.GetEntityModelResult
|
||||
*/
|
||||
export interface GetEntityModelResult {
|
||||
@@ -111,6 +161,58 @@ export interface GetEntityModelResult {
|
||||
*/
|
||||
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
|
||||
*/
|
||||
@@ -119,6 +221,10 @@ 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
|
||||
@@ -242,6 +348,7 @@ class GetDataModelRequest$Type extends MessageType<GetDataModelRequest> {
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @deprecated
|
||||
* @generated MessageType for protobuf message api.GetDataModelRequest
|
||||
*/
|
||||
export const GetDataModelRequest = new GetDataModelRequest$Type();
|
||||
@@ -289,10 +396,211 @@ class GetDataModelResult$Type extends MessageType<GetDataModelResult> {
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @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", [
|
||||
@@ -351,6 +659,7 @@ class GetEntityModelRequest$Type extends MessageType<GetEntityModelRequest> {
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @deprecated
|
||||
* @generated MessageType for protobuf message api.GetEntityModelRequest
|
||||
*/
|
||||
export const GetEntityModelRequest = new GetEntityModelRequest$Type();
|
||||
@@ -398,19 +707,240 @@ class GetEntityModelResult$Type extends MessageType<GetEntityModelResult> {
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @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: 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;
|
||||
@@ -423,6 +953,9 @@ class GetEntitiesRequest$Type extends MessageType<GetEntitiesRequest> {
|
||||
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")
|
||||
@@ -438,6 +971,9 @@ class GetEntitiesRequest$Type extends MessageType<GetEntitiesRequest> {
|
||||
/* 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);
|
||||
@@ -499,9 +1035,13 @@ 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 }
|
||||
{ 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" });
|
||||
|
||||
Reference in New Issue
Block a user