You've already forked npm-viz-sdk
Compare commits
17 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f4d5ffcf79 | ||
|
|
acbd306f09 | ||
|
|
318710916b | ||
|
|
c36481fd5d | ||
|
|
94cd1a7eb7 | ||
|
|
a20bad69f6 | ||
|
|
9a52960d02 | ||
|
|
dff2d83857 | ||
|
|
5e2f47ce62 | ||
|
|
6afb2d4b98 | ||
|
|
3f3b1b5ec7 | ||
|
|
3eae1a3fe4 | ||
|
|
960da1be11 | ||
|
|
1273fa56e0 | ||
|
|
dd49b39806 | ||
|
|
60a9eaf55f | ||
|
|
19bb7c93a4 |
643
core/shared.ts
643
core/shared.ts
@@ -69,29 +69,6 @@ export interface RequestProjectHeader {
|
|||||||
*/
|
*/
|
||||||
TechnicalID: string;
|
TechnicalID: string;
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* Header for all requests on site resources
|
|
||||||
*
|
|
||||||
* @generated from protobuf message api.RequestSiteHeader
|
|
||||||
*/
|
|
||||||
export interface RequestSiteHeader {
|
|
||||||
/**
|
|
||||||
* Identifier of the site
|
|
||||||
*
|
|
||||||
* @generated from protobuf field: string SiteID = 1
|
|
||||||
*/
|
|
||||||
SiteID: string;
|
|
||||||
/**
|
|
||||||
* DateTime ActualDate = 2 ;
|
|
||||||
*
|
|
||||||
* @generated from protobuf field: string CorrelationID = 3
|
|
||||||
*/
|
|
||||||
CorrelationID: string;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: string TechnicalID = 4
|
|
||||||
*/
|
|
||||||
TechnicalID: string;
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* Header for all requests on organisation resources
|
* Header for all requests on organisation resources
|
||||||
*
|
*
|
||||||
@@ -218,27 +195,6 @@ export interface ResponseHeader {
|
|||||||
*/
|
*/
|
||||||
TechnicalID: string;
|
TechnicalID: string;
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* Header for all site response messages
|
|
||||||
*
|
|
||||||
* @generated from protobuf message api.ResponseSiteHeader
|
|
||||||
*/
|
|
||||||
export interface ResponseSiteHeader {
|
|
||||||
/**
|
|
||||||
* Identifier of the site
|
|
||||||
*
|
|
||||||
* @generated from protobuf field: string SiteID = 1
|
|
||||||
*/
|
|
||||||
SiteID: string;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: string CorrelationID = 2
|
|
||||||
*/
|
|
||||||
CorrelationID: string;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: string TechnicalID = 3
|
|
||||||
*/
|
|
||||||
TechnicalID: string;
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* Header for all response messages
|
* Header for all response messages
|
||||||
*
|
*
|
||||||
@@ -316,37 +272,6 @@ export interface QueryProjectHeader {
|
|||||||
*/
|
*/
|
||||||
LocalizedLabel: boolean;
|
LocalizedLabel: boolean;
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* Header for all query site messages
|
|
||||||
*
|
|
||||||
* @generated from protobuf message api.QuerySiteHeader
|
|
||||||
*/
|
|
||||||
export interface QuerySiteHeader {
|
|
||||||
/**
|
|
||||||
* Identifier of the site
|
|
||||||
*
|
|
||||||
* @generated from protobuf field: string SiteID = 1
|
|
||||||
*/
|
|
||||||
SiteID: string;
|
|
||||||
/**
|
|
||||||
* Number of elements displayed
|
|
||||||
*
|
|
||||||
* @generated from protobuf field: string PagingState = 3
|
|
||||||
*/
|
|
||||||
PagingState: string;
|
|
||||||
/**
|
|
||||||
* Number of additional elements to display
|
|
||||||
*
|
|
||||||
* @generated from protobuf field: string Limit = 4
|
|
||||||
*/
|
|
||||||
Limit: string;
|
|
||||||
/**
|
|
||||||
* Return the message in the user's language
|
|
||||||
*
|
|
||||||
* @generated from protobuf field: bool LocalizedLabel = 5
|
|
||||||
*/
|
|
||||||
LocalizedLabel: boolean;
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf message api.ResultHeader
|
* @generated from protobuf message api.ResultHeader
|
||||||
*/
|
*/
|
||||||
@@ -378,10 +303,6 @@ export interface CommandHeader {
|
|||||||
* @generated from protobuf field: string Project = 3
|
* @generated from protobuf field: string Project = 3
|
||||||
*/
|
*/
|
||||||
Project: string;
|
Project: string;
|
||||||
/**
|
|
||||||
* @generated from protobuf field: string Site = 9
|
|
||||||
*/
|
|
||||||
Site: string;
|
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf field: string FromDomain = 4
|
* @generated from protobuf field: string FromDomain = 4
|
||||||
*/
|
*/
|
||||||
@@ -425,12 +346,6 @@ export interface EventHeader {
|
|||||||
* @generated from protobuf field: string Project = 3
|
* @generated from protobuf field: string Project = 3
|
||||||
*/
|
*/
|
||||||
Project: string;
|
Project: string;
|
||||||
/**
|
|
||||||
* Contains the ID of the parent site if entity belongs to site rscType
|
|
||||||
*
|
|
||||||
* @generated from protobuf field: string Site = 8
|
|
||||||
*/
|
|
||||||
Site: string;
|
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf field: string Author = 4
|
* @generated from protobuf field: string Author = 4
|
||||||
*/
|
*/
|
||||||
@@ -1684,67 +1599,6 @@ export interface ExtractQuery {
|
|||||||
*/
|
*/
|
||||||
TimeFormat: TimeFormat;
|
TimeFormat: TimeFormat;
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* @generated from protobuf message api.ExtractSiteQuery
|
|
||||||
*/
|
|
||||||
export interface ExtractSiteQuery {
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: api.QuerySiteHeader Header = 1
|
|
||||||
*/
|
|
||||||
Header?: QuerySiteHeader;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: string UserId = 2
|
|
||||||
*/
|
|
||||||
UserId: string;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: repeated api.BlockFilter BlockFilters = 3
|
|
||||||
*/
|
|
||||||
BlockFilters: BlockFilter[];
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: repeated string Fields = 4
|
|
||||||
*/
|
|
||||||
Fields: string[];
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: string ListSeparator = 5
|
|
||||||
*/
|
|
||||||
ListSeparator: string;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: string DecimalSeparator = 6
|
|
||||||
*/
|
|
||||||
DecimalSeparator: string;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: repeated string ColumnNames = 7
|
|
||||||
*/
|
|
||||||
ColumnNames: string[];
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: map<string, api.TranslationMap> ColumnTranslationMaps = 8
|
|
||||||
*/
|
|
||||||
ColumnTranslationMaps: {
|
|
||||||
[key: string]: TranslationMap;
|
|
||||||
};
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: map<int32, api.ExtractColumnFormat> ColumnFormats = 9
|
|
||||||
*/
|
|
||||||
ColumnFormats: {
|
|
||||||
[key: number]: ExtractColumnFormat;
|
|
||||||
};
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: string TargetTimeZone = 10
|
|
||||||
*/
|
|
||||||
TargetTimeZone: string;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: string DateFormat = 11
|
|
||||||
*/
|
|
||||||
DateFormat: string;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: string NumberFormat = 12
|
|
||||||
*/
|
|
||||||
NumberFormat: string;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: api.TimeFormat TimeFormat = 13
|
|
||||||
*/
|
|
||||||
TimeFormat: TimeFormat;
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf message api.ExtractResult
|
* @generated from protobuf message api.ExtractResult
|
||||||
*/
|
*/
|
||||||
@@ -1885,27 +1739,6 @@ export interface ElementByMatchQuery {
|
|||||||
*/
|
*/
|
||||||
MatchElementField?: MatchElementField;
|
MatchElementField?: MatchElementField;
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* @generated from protobuf message api.ElementByMatchSiteQuery
|
|
||||||
*/
|
|
||||||
export interface ElementByMatchSiteQuery {
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: api.QuerySiteHeader Header = 1
|
|
||||||
*/
|
|
||||||
Header?: QuerySiteHeader;
|
|
||||||
/**
|
|
||||||
* list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query
|
|
||||||
*
|
|
||||||
* @generated from protobuf field: repeated api.BlockFilter BlockFilters = 2
|
|
||||||
*/
|
|
||||||
BlockFilters: BlockFilter[];
|
|
||||||
/**
|
|
||||||
* MatchElementField structure, containing wanted match string, and the fields to get.
|
|
||||||
*
|
|
||||||
* @generated from protobuf field: api.MatchElementField MatchElementField = 3
|
|
||||||
*/
|
|
||||||
MatchElementField?: MatchElementField;
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf message api.ElementByMatchResult
|
* @generated from protobuf message api.ElementByMatchResult
|
||||||
*/
|
*/
|
||||||
@@ -2313,7 +2146,19 @@ export enum SharePolicy {
|
|||||||
/**
|
/**
|
||||||
* @generated from protobuf enum value: SHARE_POLICY_1MONTH = 25;
|
* @generated from protobuf enum value: SHARE_POLICY_1MONTH = 25;
|
||||||
*/
|
*/
|
||||||
SHARE_POLICY_1MONTH = 25
|
SHARE_POLICY_1MONTH = 25,
|
||||||
|
/**
|
||||||
|
* @generated from protobuf enum value: SHARE_POLICY_3MONTHS = 26;
|
||||||
|
*/
|
||||||
|
SHARE_POLICY_3MONTHS = 26,
|
||||||
|
/**
|
||||||
|
* @generated from protobuf enum value: SHARE_POLICY_6MONTHS = 27;
|
||||||
|
*/
|
||||||
|
SHARE_POLICY_6MONTHS = 27,
|
||||||
|
/**
|
||||||
|
* @generated from protobuf enum value: SHARE_POLICY_1YEAR = 28;
|
||||||
|
*/
|
||||||
|
SHARE_POLICY_1YEAR = 28
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf enum api.EntityType
|
* @generated from protobuf enum api.EntityType
|
||||||
@@ -2625,11 +2470,7 @@ export enum ResourceType {
|
|||||||
/**
|
/**
|
||||||
* @generated from protobuf enum value: RESOURCE_TYPE_CLAIMTYPE = 70;
|
* @generated from protobuf enum value: RESOURCE_TYPE_CLAIMTYPE = 70;
|
||||||
*/
|
*/
|
||||||
CLAIMTYPE = 70,
|
CLAIMTYPE = 70
|
||||||
/**
|
|
||||||
* @generated from protobuf enum value: RESOURCE_TYPE_SITE = 80;
|
|
||||||
*/
|
|
||||||
SITE = 80
|
|
||||||
}
|
}
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
// @generated message type with reflection information, may provide speed optimized methods
|
||||||
class RequestHeader$Type extends MessageType<RequestHeader> {
|
class RequestHeader$Type extends MessageType<RequestHeader> {
|
||||||
@@ -2797,69 +2638,6 @@ class RequestProjectHeader$Type extends MessageType<RequestProjectHeader> {
|
|||||||
*/
|
*/
|
||||||
export const RequestProjectHeader = new RequestProjectHeader$Type();
|
export const RequestProjectHeader = new RequestProjectHeader$Type();
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
// @generated message type with reflection information, may provide speed optimized methods
|
||||||
class RequestSiteHeader$Type extends MessageType<RequestSiteHeader> {
|
|
||||||
constructor() {
|
|
||||||
super("api.RequestSiteHeader", [
|
|
||||||
{ no: 1, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the site", example: "\"Your_Site_ID\"" }, "validate.rules": { string: { minLen: "1", notContains: " " } } } },
|
|
||||||
{ no: 3, name: "CorrelationID", kind: "scalar", localName: "CorrelationID", jsonName: "CorrelationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"CorrID_A\"" } } },
|
|
||||||
{ no: 4, name: "TechnicalID", kind: "scalar", localName: "TechnicalID", jsonName: "TechnicalID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"TechID_A\"" } } }
|
|
||||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["SiteID"] } } });
|
|
||||||
}
|
|
||||||
create(value?: PartialMessage<RequestSiteHeader>): RequestSiteHeader {
|
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
|
||||||
message.SiteID = "";
|
|
||||||
message.CorrelationID = "";
|
|
||||||
message.TechnicalID = "";
|
|
||||||
if (value !== undefined)
|
|
||||||
reflectionMergePartial<RequestSiteHeader>(this, message, value);
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RequestSiteHeader): RequestSiteHeader {
|
|
||||||
let message = target ?? this.create(), end = reader.pos + length;
|
|
||||||
while (reader.pos < end) {
|
|
||||||
let [fieldNo, wireType] = reader.tag();
|
|
||||||
switch (fieldNo) {
|
|
||||||
case /* string SiteID */ 1:
|
|
||||||
message.SiteID = reader.string();
|
|
||||||
break;
|
|
||||||
case /* string CorrelationID */ 3:
|
|
||||||
message.CorrelationID = reader.string();
|
|
||||||
break;
|
|
||||||
case /* string TechnicalID */ 4:
|
|
||||||
message.TechnicalID = 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: RequestSiteHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
||||||
/* string SiteID = 1; */
|
|
||||||
if (message.SiteID !== "")
|
|
||||||
writer.tag(1, WireType.LengthDelimited).string(message.SiteID);
|
|
||||||
/* string CorrelationID = 3; */
|
|
||||||
if (message.CorrelationID !== "")
|
|
||||||
writer.tag(3, WireType.LengthDelimited).string(message.CorrelationID);
|
|
||||||
/* string TechnicalID = 4; */
|
|
||||||
if (message.TechnicalID !== "")
|
|
||||||
writer.tag(4, WireType.LengthDelimited).string(message.TechnicalID);
|
|
||||||
let u = options.writeUnknownFields;
|
|
||||||
if (u !== false)
|
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
||||||
return writer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated MessageType for protobuf message api.RequestSiteHeader
|
|
||||||
*/
|
|
||||||
export const RequestSiteHeader = new RequestSiteHeader$Type();
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
|
||||||
class RequestOrganisationHeader$Type extends MessageType<RequestOrganisationHeader> {
|
class RequestOrganisationHeader$Type extends MessageType<RequestOrganisationHeader> {
|
||||||
constructor() {
|
constructor() {
|
||||||
super("api.RequestOrganisationHeader", [
|
super("api.RequestOrganisationHeader", [
|
||||||
@@ -3238,69 +3016,6 @@ class ResponseHeader$Type extends MessageType<ResponseHeader> {
|
|||||||
*/
|
*/
|
||||||
export const ResponseHeader = new ResponseHeader$Type();
|
export const ResponseHeader = new ResponseHeader$Type();
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
// @generated message type with reflection information, may provide speed optimized methods
|
||||||
class ResponseSiteHeader$Type extends MessageType<ResponseSiteHeader> {
|
|
||||||
constructor() {
|
|
||||||
super("api.ResponseSiteHeader", [
|
|
||||||
{ no: 1, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the site" } } },
|
|
||||||
{ no: 2, name: "CorrelationID", kind: "scalar", localName: "CorrelationID", jsonName: "CorrelationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is filled using the request CorrelationID if provided in order to be able to correlate request and response", example: "\"CorrID_A\"" } } },
|
|
||||||
{ no: 3, name: "TechnicalID", kind: "scalar", localName: "TechnicalID", jsonName: "TechnicalID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is filled using the request TechnicalID if provided in order to be able to correlate request and response", example: "\"TechID_A\"" } } }
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
create(value?: PartialMessage<ResponseSiteHeader>): ResponseSiteHeader {
|
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
|
||||||
message.SiteID = "";
|
|
||||||
message.CorrelationID = "";
|
|
||||||
message.TechnicalID = "";
|
|
||||||
if (value !== undefined)
|
|
||||||
reflectionMergePartial<ResponseSiteHeader>(this, message, value);
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResponseSiteHeader): ResponseSiteHeader {
|
|
||||||
let message = target ?? this.create(), end = reader.pos + length;
|
|
||||||
while (reader.pos < end) {
|
|
||||||
let [fieldNo, wireType] = reader.tag();
|
|
||||||
switch (fieldNo) {
|
|
||||||
case /* string SiteID */ 1:
|
|
||||||
message.SiteID = reader.string();
|
|
||||||
break;
|
|
||||||
case /* string CorrelationID */ 2:
|
|
||||||
message.CorrelationID = reader.string();
|
|
||||||
break;
|
|
||||||
case /* string TechnicalID */ 3:
|
|
||||||
message.TechnicalID = 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: ResponseSiteHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
||||||
/* string SiteID = 1; */
|
|
||||||
if (message.SiteID !== "")
|
|
||||||
writer.tag(1, WireType.LengthDelimited).string(message.SiteID);
|
|
||||||
/* string CorrelationID = 2; */
|
|
||||||
if (message.CorrelationID !== "")
|
|
||||||
writer.tag(2, WireType.LengthDelimited).string(message.CorrelationID);
|
|
||||||
/* string TechnicalID = 3; */
|
|
||||||
if (message.TechnicalID !== "")
|
|
||||||
writer.tag(3, WireType.LengthDelimited).string(message.TechnicalID);
|
|
||||||
let u = options.writeUnknownFields;
|
|
||||||
if (u !== false)
|
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
||||||
return writer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated MessageType for protobuf message api.ResponseSiteHeader
|
|
||||||
*/
|
|
||||||
export const ResponseSiteHeader = new ResponseSiteHeader$Type();
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
|
||||||
class AttachmentTypeResponseHeader$Type extends MessageType<AttachmentTypeResponseHeader> {
|
class AttachmentTypeResponseHeader$Type extends MessageType<AttachmentTypeResponseHeader> {
|
||||||
constructor() {
|
constructor() {
|
||||||
super("api.AttachmentTypeResponseHeader", [
|
super("api.AttachmentTypeResponseHeader", [
|
||||||
@@ -3506,77 +3221,6 @@ class QueryProjectHeader$Type extends MessageType<QueryProjectHeader> {
|
|||||||
*/
|
*/
|
||||||
export const QueryProjectHeader = new QueryProjectHeader$Type();
|
export const QueryProjectHeader = new QueryProjectHeader$Type();
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
// @generated message type with reflection information, may provide speed optimized methods
|
||||||
class QuerySiteHeader$Type extends MessageType<QuerySiteHeader> {
|
|
||||||
constructor() {
|
|
||||||
super("api.QuerySiteHeader", [
|
|
||||||
{ no: 1, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the site" }, "validate.rules": { string: { minLen: "1", notContains: " " } } } },
|
|
||||||
{ no: 3, name: "PagingState", kind: "scalar", localName: "PagingState", jsonName: "PagingState", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Start position of the query result page. Pagination disabled if equal to -1.", example: "\"50\"" } } },
|
|
||||||
{ no: 4, name: "Limit", kind: "scalar", localName: "Limit", jsonName: "Limit", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Length of the query result page", example: "\"50\"" } } },
|
|
||||||
{ no: 5, name: "LocalizedLabel", kind: "scalar", localName: "LocalizedLabel", jsonName: "LocalizedLabel", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Return the message in the user's language" } } }
|
|
||||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["SiteID"] } } });
|
|
||||||
}
|
|
||||||
create(value?: PartialMessage<QuerySiteHeader>): QuerySiteHeader {
|
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
|
||||||
message.SiteID = "";
|
|
||||||
message.PagingState = "";
|
|
||||||
message.Limit = "";
|
|
||||||
message.LocalizedLabel = false;
|
|
||||||
if (value !== undefined)
|
|
||||||
reflectionMergePartial<QuerySiteHeader>(this, message, value);
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QuerySiteHeader): QuerySiteHeader {
|
|
||||||
let message = target ?? this.create(), end = reader.pos + length;
|
|
||||||
while (reader.pos < end) {
|
|
||||||
let [fieldNo, wireType] = reader.tag();
|
|
||||||
switch (fieldNo) {
|
|
||||||
case /* string SiteID */ 1:
|
|
||||||
message.SiteID = reader.string();
|
|
||||||
break;
|
|
||||||
case /* string PagingState */ 3:
|
|
||||||
message.PagingState = reader.string();
|
|
||||||
break;
|
|
||||||
case /* string Limit */ 4:
|
|
||||||
message.Limit = reader.string();
|
|
||||||
break;
|
|
||||||
case /* bool LocalizedLabel */ 5:
|
|
||||||
message.LocalizedLabel = reader.bool();
|
|
||||||
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: QuerySiteHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
||||||
/* string SiteID = 1; */
|
|
||||||
if (message.SiteID !== "")
|
|
||||||
writer.tag(1, WireType.LengthDelimited).string(message.SiteID);
|
|
||||||
/* string PagingState = 3; */
|
|
||||||
if (message.PagingState !== "")
|
|
||||||
writer.tag(3, WireType.LengthDelimited).string(message.PagingState);
|
|
||||||
/* string Limit = 4; */
|
|
||||||
if (message.Limit !== "")
|
|
||||||
writer.tag(4, WireType.LengthDelimited).string(message.Limit);
|
|
||||||
/* bool LocalizedLabel = 5; */
|
|
||||||
if (message.LocalizedLabel !== false)
|
|
||||||
writer.tag(5, WireType.Varint).bool(message.LocalizedLabel);
|
|
||||||
let u = options.writeUnknownFields;
|
|
||||||
if (u !== false)
|
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
||||||
return writer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated MessageType for protobuf message api.QuerySiteHeader
|
|
||||||
*/
|
|
||||||
export const QuerySiteHeader = new QuerySiteHeader$Type();
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
|
||||||
class ResultHeader$Type extends MessageType<ResultHeader> {
|
class ResultHeader$Type extends MessageType<ResultHeader> {
|
||||||
constructor() {
|
constructor() {
|
||||||
super("api.ResultHeader", [
|
super("api.ResultHeader", [
|
||||||
@@ -3630,7 +3274,6 @@ class CommandHeader$Type extends MessageType<CommandHeader> {
|
|||||||
{ no: 1, name: "ActionCommand", kind: "scalar", localName: "ActionCommand", jsonName: "ActionCommand", T: 9 /*ScalarType.STRING*/ },
|
{ no: 1, name: "ActionCommand", kind: "scalar", localName: "ActionCommand", jsonName: "ActionCommand", T: 9 /*ScalarType.STRING*/ },
|
||||||
{ no: 2, name: "CommandTS", kind: "message", localName: "CommandTS", jsonName: "CommandTS", T: () => DateTime },
|
{ no: 2, name: "CommandTS", kind: "message", localName: "CommandTS", jsonName: "CommandTS", T: () => DateTime },
|
||||||
{ no: 3, name: "Project", kind: "scalar", localName: "Project", jsonName: "Project", T: 9 /*ScalarType.STRING*/ },
|
{ no: 3, name: "Project", kind: "scalar", localName: "Project", jsonName: "Project", T: 9 /*ScalarType.STRING*/ },
|
||||||
{ no: 9, name: "Site", kind: "scalar", localName: "Site", jsonName: "Site", T: 9 /*ScalarType.STRING*/ },
|
|
||||||
{ no: 4, name: "FromDomain", kind: "scalar", localName: "FromDomain", jsonName: "FromDomain", T: 9 /*ScalarType.STRING*/ },
|
{ no: 4, name: "FromDomain", kind: "scalar", localName: "FromDomain", jsonName: "FromDomain", T: 9 /*ScalarType.STRING*/ },
|
||||||
{ no: 5, name: "FromObject", kind: "scalar", localName: "FromObject", jsonName: "FromObject", T: 9 /*ScalarType.STRING*/ },
|
{ no: 5, name: "FromObject", kind: "scalar", localName: "FromObject", jsonName: "FromObject", T: 9 /*ScalarType.STRING*/ },
|
||||||
{ no: 6, name: "FromRule", kind: "scalar", localName: "FromRule", jsonName: "FromRule", T: 9 /*ScalarType.STRING*/ },
|
{ no: 6, name: "FromRule", kind: "scalar", localName: "FromRule", jsonName: "FromRule", T: 9 /*ScalarType.STRING*/ },
|
||||||
@@ -3642,7 +3285,6 @@ class CommandHeader$Type extends MessageType<CommandHeader> {
|
|||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
const message = globalThis.Object.create((this.messagePrototype!));
|
||||||
message.ActionCommand = "";
|
message.ActionCommand = "";
|
||||||
message.Project = "";
|
message.Project = "";
|
||||||
message.Site = "";
|
|
||||||
message.FromDomain = "";
|
message.FromDomain = "";
|
||||||
message.FromObject = "";
|
message.FromObject = "";
|
||||||
message.FromRule = "";
|
message.FromRule = "";
|
||||||
@@ -3666,9 +3308,6 @@ class CommandHeader$Type extends MessageType<CommandHeader> {
|
|||||||
case /* string Project */ 3:
|
case /* string Project */ 3:
|
||||||
message.Project = reader.string();
|
message.Project = reader.string();
|
||||||
break;
|
break;
|
||||||
case /* string Site */ 9:
|
|
||||||
message.Site = reader.string();
|
|
||||||
break;
|
|
||||||
case /* string FromDomain */ 4:
|
case /* string FromDomain */ 4:
|
||||||
message.FromDomain = reader.string();
|
message.FromDomain = reader.string();
|
||||||
break;
|
break;
|
||||||
@@ -3720,9 +3359,6 @@ class CommandHeader$Type extends MessageType<CommandHeader> {
|
|||||||
/* string FromAuthor = 8; */
|
/* string FromAuthor = 8; */
|
||||||
if (message.FromAuthor !== "")
|
if (message.FromAuthor !== "")
|
||||||
writer.tag(8, WireType.LengthDelimited).string(message.FromAuthor);
|
writer.tag(8, WireType.LengthDelimited).string(message.FromAuthor);
|
||||||
/* string Site = 9; */
|
|
||||||
if (message.Site !== "")
|
|
||||||
writer.tag(9, WireType.LengthDelimited).string(message.Site);
|
|
||||||
let u = options.writeUnknownFields;
|
let u = options.writeUnknownFields;
|
||||||
if (u !== false)
|
if (u !== false)
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
@@ -3740,7 +3376,6 @@ class EventHeader$Type extends MessageType<EventHeader> {
|
|||||||
{ no: 1, name: "InputEvent", kind: "scalar", localName: "InputEvent", jsonName: "InputEvent", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
{ no: 1, name: "InputEvent", kind: "scalar", localName: "InputEvent", jsonName: "InputEvent", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||||
{ no: 2, name: "EventTS", kind: "message", localName: "EventTS", jsonName: "EventTS", T: () => DateTime, options: { "validate.rules": { message: { required: true } } } },
|
{ no: 2, name: "EventTS", kind: "message", localName: "EventTS", jsonName: "EventTS", T: () => DateTime, options: { "validate.rules": { message: { required: true } } } },
|
||||||
{ no: 3, name: "Project", kind: "scalar", localName: "Project", jsonName: "Project", T: 9 /*ScalarType.STRING*/ },
|
{ no: 3, name: "Project", kind: "scalar", localName: "Project", jsonName: "Project", T: 9 /*ScalarType.STRING*/ },
|
||||||
{ no: 8, name: "Site", kind: "scalar", localName: "Site", jsonName: "Site", T: 9 /*ScalarType.STRING*/ },
|
|
||||||
{ no: 4, name: "Author", kind: "scalar", localName: "Author", jsonName: "Author", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.viewType": { Types: [{ Context: "*", Type: "user" }] } } },
|
{ no: 4, name: "Author", kind: "scalar", localName: "Author", jsonName: "Author", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.viewType": { Types: [{ Context: "*", Type: "user" }] } } },
|
||||||
{ no: 5, name: "EventID", kind: "scalar", localName: "EventID", jsonName: "EventID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
{ no: 5, name: "EventID", kind: "scalar", localName: "EventID", jsonName: "EventID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||||
{ no: 6, name: "CreatedBy", kind: "scalar", localName: "CreatedBy", jsonName: "CreatedBy", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "text" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Claim", Group: "claim", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "user" }] } } },
|
{ no: 6, name: "CreatedBy", kind: "scalar", localName: "CreatedBy", jsonName: "CreatedBy", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "text" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Claim", Group: "claim", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "user" }] } } },
|
||||||
@@ -3751,7 +3386,6 @@ class EventHeader$Type extends MessageType<EventHeader> {
|
|||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
const message = globalThis.Object.create((this.messagePrototype!));
|
||||||
message.InputEvent = "";
|
message.InputEvent = "";
|
||||||
message.Project = "";
|
message.Project = "";
|
||||||
message.Site = "";
|
|
||||||
message.Author = "";
|
message.Author = "";
|
||||||
message.EventID = "";
|
message.EventID = "";
|
||||||
message.CreatedBy = "";
|
message.CreatedBy = "";
|
||||||
@@ -3774,9 +3408,6 @@ class EventHeader$Type extends MessageType<EventHeader> {
|
|||||||
case /* string Project */ 3:
|
case /* string Project */ 3:
|
||||||
message.Project = reader.string();
|
message.Project = reader.string();
|
||||||
break;
|
break;
|
||||||
case /* string Site */ 8:
|
|
||||||
message.Site = reader.string();
|
|
||||||
break;
|
|
||||||
case /* string Author */ 4:
|
case /* string Author */ 4:
|
||||||
message.Author = reader.string();
|
message.Author = reader.string();
|
||||||
break;
|
break;
|
||||||
@@ -3822,9 +3453,6 @@ class EventHeader$Type extends MessageType<EventHeader> {
|
|||||||
/* uint32 Version = 7; */
|
/* uint32 Version = 7; */
|
||||||
if (message.Version !== 0)
|
if (message.Version !== 0)
|
||||||
writer.tag(7, WireType.Varint).uint32(message.Version);
|
writer.tag(7, WireType.Varint).uint32(message.Version);
|
||||||
/* string Site = 8; */
|
|
||||||
if (message.Site !== "")
|
|
||||||
writer.tag(8, WireType.LengthDelimited).string(message.Site);
|
|
||||||
let u = options.writeUnknownFields;
|
let u = options.writeUnknownFields;
|
||||||
if (u !== false)
|
if (u !== false)
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
@@ -7254,188 +6882,6 @@ class ExtractQuery$Type extends MessageType<ExtractQuery> {
|
|||||||
*/
|
*/
|
||||||
export const ExtractQuery = new ExtractQuery$Type();
|
export const ExtractQuery = new ExtractQuery$Type();
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
// @generated message type with reflection information, may provide speed optimized methods
|
||||||
class ExtractSiteQuery$Type extends MessageType<ExtractSiteQuery> {
|
|
||||||
constructor() {
|
|
||||||
super("api.ExtractSiteQuery", [
|
|
||||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QuerySiteHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
||||||
{ no: 2, name: "UserId", kind: "scalar", localName: "UserId", jsonName: "UserId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
|
||||||
{ no: 3, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter },
|
|
||||||
{ no: 4, name: "Fields", kind: "scalar", localName: "Fields", jsonName: "Fields", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
||||||
{ no: 5, name: "ListSeparator", kind: "scalar", localName: "ListSeparator", jsonName: "ListSeparator", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
|
||||||
{ no: 6, name: "DecimalSeparator", kind: "scalar", localName: "DecimalSeparator", jsonName: "DecimalSeparator", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
|
||||||
{ no: 7, name: "ColumnNames", kind: "scalar", localName: "ColumnNames", jsonName: "ColumnNames", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
||||||
{ no: 8, name: "ColumnTranslationMaps", kind: "map", localName: "ColumnTranslationMaps", jsonName: "ColumnTranslationMaps", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => TranslationMap } },
|
|
||||||
{ no: 9, name: "ColumnFormats", kind: "map", localName: "ColumnFormats", jsonName: "ColumnFormats", K: 5 /*ScalarType.INT32*/, V: { kind: "message", T: () => ExtractColumnFormat } },
|
|
||||||
{ no: 10, name: "TargetTimeZone", kind: "scalar", localName: "TargetTimeZone", jsonName: "TargetTimeZone", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Target user time zone <a href='https://en.wikipedia.org/wiki/List_of_tz_database_time_zones'>format</a>", example: "\"Europe/Paris\"" }, "validate.rules": { string: { minLen: "1", tzData: true } } } },
|
|
||||||
{ no: 11, name: "DateFormat", kind: "scalar", localName: "DateFormat", jsonName: "DateFormat", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Language code to format dates <a href='https://en.wikipedia.org/wiki/ISO_639'>format</a>", example: "\"en-US\"" } } },
|
|
||||||
{ no: 12, name: "NumberFormat", kind: "scalar", localName: "NumberFormat", jsonName: "NumberFormat", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Language code to format numbers <a href='https://en.wikipedia.org/wiki/ISO_639'>format</a>", example: "\"en-US\"" } } },
|
|
||||||
{ no: 13, name: "TimeFormat", kind: "enum", localName: "TimeFormat", jsonName: "TimeFormat", T: () => ["api.TimeFormat", TimeFormat], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Hour clock time format" } } }
|
|
||||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "UserId", "Fields", "ListSeparator", "DecimalSeparator", "ColumnName"] } } });
|
|
||||||
}
|
|
||||||
create(value?: PartialMessage<ExtractSiteQuery>): ExtractSiteQuery {
|
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
|
||||||
message.UserId = "";
|
|
||||||
message.BlockFilters = [];
|
|
||||||
message.Fields = [];
|
|
||||||
message.ListSeparator = "";
|
|
||||||
message.DecimalSeparator = "";
|
|
||||||
message.ColumnNames = [];
|
|
||||||
message.ColumnTranslationMaps = {};
|
|
||||||
message.ColumnFormats = {};
|
|
||||||
message.TargetTimeZone = "";
|
|
||||||
message.DateFormat = "";
|
|
||||||
message.NumberFormat = "";
|
|
||||||
message.TimeFormat = 0;
|
|
||||||
if (value !== undefined)
|
|
||||||
reflectionMergePartial<ExtractSiteQuery>(this, message, value);
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExtractSiteQuery): ExtractSiteQuery {
|
|
||||||
let message = target ?? this.create(), end = reader.pos + length;
|
|
||||||
while (reader.pos < end) {
|
|
||||||
let [fieldNo, wireType] = reader.tag();
|
|
||||||
switch (fieldNo) {
|
|
||||||
case /* api.QuerySiteHeader Header */ 1:
|
|
||||||
message.Header = QuerySiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
||||||
break;
|
|
||||||
case /* string UserId */ 2:
|
|
||||||
message.UserId = reader.string();
|
|
||||||
break;
|
|
||||||
case /* repeated api.BlockFilter BlockFilters */ 3:
|
|
||||||
message.BlockFilters.push(BlockFilter.internalBinaryRead(reader, reader.uint32(), options));
|
|
||||||
break;
|
|
||||||
case /* repeated string Fields */ 4:
|
|
||||||
message.Fields.push(reader.string());
|
|
||||||
break;
|
|
||||||
case /* string ListSeparator */ 5:
|
|
||||||
message.ListSeparator = reader.string();
|
|
||||||
break;
|
|
||||||
case /* string DecimalSeparator */ 6:
|
|
||||||
message.DecimalSeparator = reader.string();
|
|
||||||
break;
|
|
||||||
case /* repeated string ColumnNames */ 7:
|
|
||||||
message.ColumnNames.push(reader.string());
|
|
||||||
break;
|
|
||||||
case /* map<string, api.TranslationMap> ColumnTranslationMaps */ 8:
|
|
||||||
this.binaryReadMap8(message.ColumnTranslationMaps, reader, options);
|
|
||||||
break;
|
|
||||||
case /* map<int32, api.ExtractColumnFormat> ColumnFormats */ 9:
|
|
||||||
this.binaryReadMap9(message.ColumnFormats, reader, options);
|
|
||||||
break;
|
|
||||||
case /* string TargetTimeZone */ 10:
|
|
||||||
message.TargetTimeZone = reader.string();
|
|
||||||
break;
|
|
||||||
case /* string DateFormat */ 11:
|
|
||||||
message.DateFormat = reader.string();
|
|
||||||
break;
|
|
||||||
case /* string NumberFormat */ 12:
|
|
||||||
message.NumberFormat = reader.string();
|
|
||||||
break;
|
|
||||||
case /* api.TimeFormat TimeFormat */ 13:
|
|
||||||
message.TimeFormat = 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;
|
|
||||||
}
|
|
||||||
private binaryReadMap8(map: ExtractSiteQuery["ColumnTranslationMaps"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
|
||||||
let len = reader.uint32(), end = reader.pos + len, key: keyof ExtractSiteQuery["ColumnTranslationMaps"] | undefined, val: ExtractSiteQuery["ColumnTranslationMaps"][any] | undefined;
|
|
||||||
while (reader.pos < end) {
|
|
||||||
let [fieldNo, wireType] = reader.tag();
|
|
||||||
switch (fieldNo) {
|
|
||||||
case 1:
|
|
||||||
key = reader.string();
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
val = TranslationMap.internalBinaryRead(reader, reader.uint32(), options);
|
|
||||||
break;
|
|
||||||
default: throw new globalThis.Error("unknown map entry field for api.ExtractSiteQuery.ColumnTranslationMaps");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
map[key ?? ""] = val ?? TranslationMap.create();
|
|
||||||
}
|
|
||||||
private binaryReadMap9(map: ExtractSiteQuery["ColumnFormats"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
|
||||||
let len = reader.uint32(), end = reader.pos + len, key: keyof ExtractSiteQuery["ColumnFormats"] | undefined, val: ExtractSiteQuery["ColumnFormats"][any] | undefined;
|
|
||||||
while (reader.pos < end) {
|
|
||||||
let [fieldNo, wireType] = reader.tag();
|
|
||||||
switch (fieldNo) {
|
|
||||||
case 1:
|
|
||||||
key = reader.int32();
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
val = ExtractColumnFormat.internalBinaryRead(reader, reader.uint32(), options);
|
|
||||||
break;
|
|
||||||
default: throw new globalThis.Error("unknown map entry field for api.ExtractSiteQuery.ColumnFormats");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
map[key ?? 0] = val ?? ExtractColumnFormat.create();
|
|
||||||
}
|
|
||||||
internalBinaryWrite(message: ExtractSiteQuery, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
||||||
/* api.QuerySiteHeader Header = 1; */
|
|
||||||
if (message.Header)
|
|
||||||
QuerySiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
||||||
/* string UserId = 2; */
|
|
||||||
if (message.UserId !== "")
|
|
||||||
writer.tag(2, WireType.LengthDelimited).string(message.UserId);
|
|
||||||
/* repeated api.BlockFilter BlockFilters = 3; */
|
|
||||||
for (let i = 0; i < message.BlockFilters.length; i++)
|
|
||||||
BlockFilter.internalBinaryWrite(message.BlockFilters[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
||||||
/* repeated string Fields = 4; */
|
|
||||||
for (let i = 0; i < message.Fields.length; i++)
|
|
||||||
writer.tag(4, WireType.LengthDelimited).string(message.Fields[i]);
|
|
||||||
/* string ListSeparator = 5; */
|
|
||||||
if (message.ListSeparator !== "")
|
|
||||||
writer.tag(5, WireType.LengthDelimited).string(message.ListSeparator);
|
|
||||||
/* string DecimalSeparator = 6; */
|
|
||||||
if (message.DecimalSeparator !== "")
|
|
||||||
writer.tag(6, WireType.LengthDelimited).string(message.DecimalSeparator);
|
|
||||||
/* repeated string ColumnNames = 7; */
|
|
||||||
for (let i = 0; i < message.ColumnNames.length; i++)
|
|
||||||
writer.tag(7, WireType.LengthDelimited).string(message.ColumnNames[i]);
|
|
||||||
/* map<string, api.TranslationMap> ColumnTranslationMaps = 8; */
|
|
||||||
for (let k of globalThis.Object.keys(message.ColumnTranslationMaps)) {
|
|
||||||
writer.tag(8, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
|
||||||
writer.tag(2, WireType.LengthDelimited).fork();
|
|
||||||
TranslationMap.internalBinaryWrite(message.ColumnTranslationMaps[k], writer, options);
|
|
||||||
writer.join().join();
|
|
||||||
}
|
|
||||||
/* map<int32, api.ExtractColumnFormat> ColumnFormats = 9; */
|
|
||||||
for (let k of globalThis.Object.keys(message.ColumnFormats)) {
|
|
||||||
writer.tag(9, WireType.LengthDelimited).fork().tag(1, WireType.Varint).int32(parseInt(k));
|
|
||||||
writer.tag(2, WireType.LengthDelimited).fork();
|
|
||||||
ExtractColumnFormat.internalBinaryWrite(message.ColumnFormats[k as any], writer, options);
|
|
||||||
writer.join().join();
|
|
||||||
}
|
|
||||||
/* string TargetTimeZone = 10; */
|
|
||||||
if (message.TargetTimeZone !== "")
|
|
||||||
writer.tag(10, WireType.LengthDelimited).string(message.TargetTimeZone);
|
|
||||||
/* string DateFormat = 11; */
|
|
||||||
if (message.DateFormat !== "")
|
|
||||||
writer.tag(11, WireType.LengthDelimited).string(message.DateFormat);
|
|
||||||
/* string NumberFormat = 12; */
|
|
||||||
if (message.NumberFormat !== "")
|
|
||||||
writer.tag(12, WireType.LengthDelimited).string(message.NumberFormat);
|
|
||||||
/* api.TimeFormat TimeFormat = 13; */
|
|
||||||
if (message.TimeFormat !== 0)
|
|
||||||
writer.tag(13, WireType.Varint).int32(message.TimeFormat);
|
|
||||||
let u = options.writeUnknownFields;
|
|
||||||
if (u !== false)
|
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
||||||
return writer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated MessageType for protobuf message api.ExtractSiteQuery
|
|
||||||
*/
|
|
||||||
export const ExtractSiteQuery = new ExtractSiteQuery$Type();
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
|
||||||
class ExtractResult$Type extends MessageType<ExtractResult> {
|
class ExtractResult$Type extends MessageType<ExtractResult> {
|
||||||
constructor() {
|
constructor() {
|
||||||
super("api.ExtractResult", [
|
super("api.ExtractResult", [
|
||||||
@@ -7937,67 +7383,6 @@ class ElementByMatchQuery$Type extends MessageType<ElementByMatchQuery> {
|
|||||||
*/
|
*/
|
||||||
export const ElementByMatchQuery = new ElementByMatchQuery$Type();
|
export const ElementByMatchQuery = new ElementByMatchQuery$Type();
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
// @generated message type with reflection information, may provide speed optimized methods
|
||||||
class ElementByMatchSiteQuery$Type extends MessageType<ElementByMatchSiteQuery> {
|
|
||||||
constructor() {
|
|
||||||
super("api.ElementByMatchSiteQuery", [
|
|
||||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QuerySiteHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
||||||
{ no: 2, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter },
|
|
||||||
{ no: 3, name: "MatchElementField", kind: "message", localName: "MatchElementField", jsonName: "MatchElementField", T: () => MatchElementField, options: { "validate.rules": { message: { required: true } } } }
|
|
||||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
|
|
||||||
}
|
|
||||||
create(value?: PartialMessage<ElementByMatchSiteQuery>): ElementByMatchSiteQuery {
|
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
|
||||||
message.BlockFilters = [];
|
|
||||||
if (value !== undefined)
|
|
||||||
reflectionMergePartial<ElementByMatchSiteQuery>(this, message, value);
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ElementByMatchSiteQuery): ElementByMatchSiteQuery {
|
|
||||||
let message = target ?? this.create(), end = reader.pos + length;
|
|
||||||
while (reader.pos < end) {
|
|
||||||
let [fieldNo, wireType] = reader.tag();
|
|
||||||
switch (fieldNo) {
|
|
||||||
case /* api.QuerySiteHeader Header */ 1:
|
|
||||||
message.Header = QuerySiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
||||||
break;
|
|
||||||
case /* repeated api.BlockFilter BlockFilters */ 2:
|
|
||||||
message.BlockFilters.push(BlockFilter.internalBinaryRead(reader, reader.uint32(), options));
|
|
||||||
break;
|
|
||||||
case /* api.MatchElementField MatchElementField */ 3:
|
|
||||||
message.MatchElementField = MatchElementField.internalBinaryRead(reader, reader.uint32(), options, message.MatchElementField);
|
|
||||||
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: ElementByMatchSiteQuery, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
||||||
/* api.QuerySiteHeader Header = 1; */
|
|
||||||
if (message.Header)
|
|
||||||
QuerySiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
||||||
/* repeated api.BlockFilter BlockFilters = 2; */
|
|
||||||
for (let i = 0; i < message.BlockFilters.length; i++)
|
|
||||||
BlockFilter.internalBinaryWrite(message.BlockFilters[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
||||||
/* api.MatchElementField MatchElementField = 3; */
|
|
||||||
if (message.MatchElementField)
|
|
||||||
MatchElementField.internalBinaryWrite(message.MatchElementField, writer.tag(3, 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.ElementByMatchSiteQuery
|
|
||||||
*/
|
|
||||||
export const ElementByMatchSiteQuery = new ElementByMatchSiteQuery$Type();
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
|
||||||
class ElementByMatchResult$Type extends MessageType<ElementByMatchResult> {
|
class ElementByMatchResult$Type extends MessageType<ElementByMatchResult> {
|
||||||
constructor() {
|
constructor() {
|
||||||
super("api.ElementByMatchResult", [
|
super("api.ElementByMatchResult", [
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
||||||
// @generated from protobuf file "counter.proto" (package "vizapi", syntax proto3)
|
// @generated from protobuf file "counter.proto" (package "vizapi", syntax proto3)
|
||||||
// tslint:disable
|
// tslint:disable
|
||||||
import { SiteCountersService } from "./counter";
|
|
||||||
import type { NextSiteCounterRequest } from "./counter";
|
|
||||||
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
||||||
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
||||||
import { ProjectCountersService } from "./counter";
|
import { ProjectCountersService } from "./counter";
|
||||||
@@ -37,29 +35,3 @@ export class ProjectCountersServiceClient implements IProjectCountersServiceClie
|
|||||||
return stackIntercept<NextProjectCounterRequest, NextCounterResult>("unary", this._transport, method, opt, input);
|
return stackIntercept<NextProjectCounterRequest, NextCounterResult>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* @generated from protobuf service vizapi.SiteCountersService
|
|
||||||
*/
|
|
||||||
export interface ISiteCountersServiceClient {
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: Next
|
|
||||||
*/
|
|
||||||
next(input: NextSiteCounterRequest, options?: RpcOptions): UnaryCall<NextSiteCounterRequest, NextCounterResult>;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf service vizapi.SiteCountersService
|
|
||||||
*/
|
|
||||||
export class SiteCountersServiceClient implements ISiteCountersServiceClient, ServiceInfo {
|
|
||||||
typeName = SiteCountersService.typeName;
|
|
||||||
methods = SiteCountersService.methods;
|
|
||||||
options = SiteCountersService.options;
|
|
||||||
constructor(private readonly _transport: RpcTransport) {
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: Next
|
|
||||||
*/
|
|
||||||
next(input: NextSiteCounterRequest, options?: RpcOptions): UnaryCall<NextSiteCounterRequest, NextCounterResult> {
|
|
||||||
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<NextSiteCounterRequest, NextCounterResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
76
counter.ts
76
counter.ts
@@ -11,7 +11,6 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|||||||
import type { PartialMessage } from "@protobuf-ts/runtime";
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
||||||
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
||||||
import { MessageType } from "@protobuf-ts/runtime";
|
import { MessageType } from "@protobuf-ts/runtime";
|
||||||
import { RequestSiteHeader } from "./core/shared";
|
|
||||||
import { RequestProjectHeader } from "./core/shared";
|
import { RequestProjectHeader } from "./core/shared";
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf message vizapi.NextProjectCounterRequest
|
* @generated from protobuf message vizapi.NextProjectCounterRequest
|
||||||
@@ -35,19 +34,6 @@ export interface NextCounterResult {
|
|||||||
*/
|
*/
|
||||||
Value: bigint;
|
Value: bigint;
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* @generated from protobuf message vizapi.NextSiteCounterRequest
|
|
||||||
*/
|
|
||||||
export interface NextSiteCounterRequest {
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: api.RequestSiteHeader Header = 1
|
|
||||||
*/
|
|
||||||
Header?: RequestSiteHeader;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: string Key = 2
|
|
||||||
*/
|
|
||||||
Key: string;
|
|
||||||
}
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
// @generated message type with reflection information, may provide speed optimized methods
|
||||||
class NextProjectCounterRequest$Type extends MessageType<NextProjectCounterRequest> {
|
class NextProjectCounterRequest$Type extends MessageType<NextProjectCounterRequest> {
|
||||||
constructor() {
|
constructor() {
|
||||||
@@ -149,69 +135,9 @@ class NextCounterResult$Type extends MessageType<NextCounterResult> {
|
|||||||
* @generated MessageType for protobuf message vizapi.NextCounterResult
|
* @generated MessageType for protobuf message vizapi.NextCounterResult
|
||||||
*/
|
*/
|
||||||
export const NextCounterResult = new NextCounterResult$Type();
|
export const NextCounterResult = new NextCounterResult$Type();
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
|
||||||
class NextSiteCounterRequest$Type extends MessageType<NextSiteCounterRequest> {
|
|
||||||
constructor() {
|
|
||||||
super("vizapi.NextSiteCounterRequest", [
|
|
||||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
||||||
{ no: 2, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"appointment\"" }, "validate.rules": { string: { minLen: "1" } } } }
|
|
||||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Key"] } } });
|
|
||||||
}
|
|
||||||
create(value?: PartialMessage<NextSiteCounterRequest>): NextSiteCounterRequest {
|
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
|
||||||
message.Key = "";
|
|
||||||
if (value !== undefined)
|
|
||||||
reflectionMergePartial<NextSiteCounterRequest>(this, message, value);
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: NextSiteCounterRequest): NextSiteCounterRequest {
|
|
||||||
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 Key */ 2:
|
|
||||||
message.Key = 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: NextSiteCounterRequest, 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 Key = 2; */
|
|
||||||
if (message.Key !== "")
|
|
||||||
writer.tag(2, WireType.LengthDelimited).string(message.Key);
|
|
||||||
let u = options.writeUnknownFields;
|
|
||||||
if (u !== false)
|
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
||||||
return writer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated MessageType for protobuf message vizapi.NextSiteCounterRequest
|
|
||||||
*/
|
|
||||||
export const NextSiteCounterRequest = new NextSiteCounterRequest$Type();
|
|
||||||
/**
|
/**
|
||||||
* @generated ServiceType for protobuf service vizapi.ProjectCountersService
|
* @generated ServiceType for protobuf service vizapi.ProjectCountersService
|
||||||
*/
|
*/
|
||||||
export const ProjectCountersService = new ServiceType("vizapi.ProjectCountersService", [
|
export const ProjectCountersService = new ServiceType("vizapi.ProjectCountersService", [
|
||||||
{ name: "Next", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Project Counters"], summary: "Get the next value for a project key", description: "Get the next value for a project key" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: NextProjectCounterRequest, O: NextCounterResult }
|
{ name: "Next", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Project Counters"], summary: "Get the next value for a project key", description: "Get the next value for a project key" }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: NextProjectCounterRequest, O: NextCounterResult }
|
||||||
], { "api.k8sService": "settings-server" });
|
|
||||||
/**
|
|
||||||
* @generated ServiceType for protobuf service vizapi.SiteCountersService
|
|
||||||
*/
|
|
||||||
export const SiteCountersService = new ServiceType("vizapi.SiteCountersService", [
|
|
||||||
{ name: "Next", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site Counters"], summary: "Get the next value for a Site key", description: "Get the next value for a Site key" }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "SLOTBOOKING_PUBLIC" } }, I: NextSiteCounterRequest, O: NextCounterResult }
|
|
||||||
], { "api.k8sService": "settings-server" });
|
], { "api.k8sService": "settings-server" });
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// @generated from protobuf file "google/api/field_behavior.proto" (package "google.api", syntax proto3)
|
// @generated from protobuf file "google/api/field_behavior.proto" (package "google.api", syntax proto3)
|
||||||
// tslint:disable
|
// tslint:disable
|
||||||
//
|
//
|
||||||
// Copyright 2020 Google LLC
|
// Copyright 2025 Google LLC
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
@@ -73,5 +73,40 @@ export enum FieldBehavior {
|
|||||||
*
|
*
|
||||||
* @generated from protobuf enum value: IMMUTABLE = 5;
|
* @generated from protobuf enum value: IMMUTABLE = 5;
|
||||||
*/
|
*/
|
||||||
IMMUTABLE = 5
|
IMMUTABLE = 5,
|
||||||
|
/**
|
||||||
|
* Denotes that a (repeated) field is an unordered list.
|
||||||
|
* This indicates that the service may provide the elements of the list
|
||||||
|
* in any arbitrary order, rather than the order the user originally
|
||||||
|
* provided. Additionally, the list's order may or may not be stable.
|
||||||
|
*
|
||||||
|
* @generated from protobuf enum value: UNORDERED_LIST = 6;
|
||||||
|
*/
|
||||||
|
UNORDERED_LIST = 6,
|
||||||
|
/**
|
||||||
|
* Denotes that this field returns a non-empty default value if not set.
|
||||||
|
* This indicates that if the user provides the empty value in a request,
|
||||||
|
* a non-empty value will be returned. The user will not be aware of what
|
||||||
|
* non-empty value to expect.
|
||||||
|
*
|
||||||
|
* @generated from protobuf enum value: NON_EMPTY_DEFAULT = 7;
|
||||||
|
*/
|
||||||
|
NON_EMPTY_DEFAULT = 7,
|
||||||
|
/**
|
||||||
|
* Denotes that the field in a resource (a message annotated with
|
||||||
|
* google.api.resource) is used in the resource name to uniquely identify the
|
||||||
|
* resource. For AIP-compliant APIs, this should only be applied to the
|
||||||
|
* `name` field on the resource.
|
||||||
|
*
|
||||||
|
* This behavior should not be applied to references to other resources within
|
||||||
|
* the message.
|
||||||
|
*
|
||||||
|
* The identifier field of resources often have different field behavior
|
||||||
|
* depending on the request it is embedded in (e.g. for Create methods name
|
||||||
|
* is optional and unused, while for Update methods it is required). Instead
|
||||||
|
* of method-specific annotations, only `IDENTIFIER` is required.
|
||||||
|
*
|
||||||
|
* @generated from protobuf enum value: IDENTIFIER = 8;
|
||||||
|
*/
|
||||||
|
IDENTIFIER = 8
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// @generated from protobuf file "google/api/http.proto" (package "google.api", syntax proto3)
|
// @generated from protobuf file "google/api/http.proto" (package "google.api", syntax proto3)
|
||||||
// tslint:disable
|
// tslint:disable
|
||||||
//
|
//
|
||||||
// Copyright 2020 Google LLC
|
// Copyright 2025 Google LLC
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
@@ -54,7 +54,7 @@ export interface Http {
|
|||||||
fully_decode_reserved_expansion: boolean;
|
fully_decode_reserved_expansion: boolean;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* # gRPC Transcoding
|
* gRPC Transcoding
|
||||||
*
|
*
|
||||||
* gRPC Transcoding is a feature for mapping between a gRPC method and one or
|
* gRPC Transcoding is a feature for mapping between a gRPC method and one or
|
||||||
* more HTTP REST endpoints. It allows developers to build a single API service
|
* more HTTP REST endpoints. It allows developers to build a single API service
|
||||||
@@ -95,9 +95,8 @@ export interface Http {
|
|||||||
*
|
*
|
||||||
* This enables an HTTP REST to gRPC mapping as below:
|
* This enables an HTTP REST to gRPC mapping as below:
|
||||||
*
|
*
|
||||||
* HTTP | gRPC
|
* - HTTP: `GET /v1/messages/123456`
|
||||||
* -----|-----
|
* - gRPC: `GetMessage(name: "messages/123456")`
|
||||||
* `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")`
|
|
||||||
*
|
*
|
||||||
* Any fields in the request message which are not bound by the path template
|
* Any fields in the request message which are not bound by the path template
|
||||||
* automatically become HTTP query parameters if there is no HTTP request body.
|
* automatically become HTTP query parameters if there is no HTTP request body.
|
||||||
@@ -121,11 +120,9 @@ export interface Http {
|
|||||||
*
|
*
|
||||||
* This enables a HTTP JSON to RPC mapping as below:
|
* This enables a HTTP JSON to RPC mapping as below:
|
||||||
*
|
*
|
||||||
* HTTP | gRPC
|
* - HTTP: `GET /v1/messages/123456?revision=2&sub.subfield=foo`
|
||||||
* -----|-----
|
* - gRPC: `GetMessage(message_id: "123456" revision: 2 sub:
|
||||||
* `GET /v1/messages/123456?revision=2&sub.subfield=foo` |
|
* SubMessage(subfield: "foo"))`
|
||||||
* `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield:
|
|
||||||
* "foo"))`
|
|
||||||
*
|
*
|
||||||
* Note that fields which are mapped to URL query parameters must have a
|
* Note that fields which are mapped to URL query parameters must have a
|
||||||
* primitive type or a repeated primitive type or a non-repeated message type.
|
* primitive type or a repeated primitive type or a non-repeated message type.
|
||||||
@@ -155,10 +152,8 @@ export interface Http {
|
|||||||
* representation of the JSON in the request body is determined by
|
* representation of the JSON in the request body is determined by
|
||||||
* protos JSON encoding:
|
* protos JSON encoding:
|
||||||
*
|
*
|
||||||
* HTTP | gRPC
|
* - HTTP: `PATCH /v1/messages/123456 { "text": "Hi!" }`
|
||||||
* -----|-----
|
* - gRPC: `UpdateMessage(message_id: "123456" message { text: "Hi!" })`
|
||||||
* `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
|
|
||||||
* "123456" message { text: "Hi!" })`
|
|
||||||
*
|
*
|
||||||
* The special name `*` can be used in the body mapping to define that
|
* The special name `*` can be used in the body mapping to define that
|
||||||
* every field not bound by the path template should be mapped to the
|
* every field not bound by the path template should be mapped to the
|
||||||
@@ -181,10 +176,8 @@ export interface Http {
|
|||||||
*
|
*
|
||||||
* The following HTTP JSON to RPC mapping is enabled:
|
* The following HTTP JSON to RPC mapping is enabled:
|
||||||
*
|
*
|
||||||
* HTTP | gRPC
|
* - HTTP: `PATCH /v1/messages/123456 { "text": "Hi!" }`
|
||||||
* -----|-----
|
* - gRPC: `UpdateMessage(message_id: "123456" text: "Hi!")`
|
||||||
* `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
|
|
||||||
* "123456" text: "Hi!")`
|
|
||||||
*
|
*
|
||||||
* Note that when using `*` in the body mapping, it is not possible to
|
* Note that when using `*` in the body mapping, it is not possible to
|
||||||
* have HTTP parameters, as all fields not bound by the path end in
|
* have HTTP parameters, as all fields not bound by the path end in
|
||||||
@@ -212,29 +205,32 @@ export interface Http {
|
|||||||
*
|
*
|
||||||
* This enables the following two alternative HTTP JSON to RPC mappings:
|
* This enables the following two alternative HTTP JSON to RPC mappings:
|
||||||
*
|
*
|
||||||
* HTTP | gRPC
|
* - HTTP: `GET /v1/messages/123456`
|
||||||
* -----|-----
|
* - gRPC: `GetMessage(message_id: "123456")`
|
||||||
* `GET /v1/messages/123456` | `GetMessage(message_id: "123456")`
|
|
||||||
* `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id:
|
|
||||||
* "123456")`
|
|
||||||
*
|
*
|
||||||
* ## Rules for HTTP mapping
|
* - HTTP: `GET /v1/users/me/messages/123456`
|
||||||
|
* - gRPC: `GetMessage(user_id: "me" message_id: "123456")`
|
||||||
|
*
|
||||||
|
* Rules for HTTP mapping
|
||||||
*
|
*
|
||||||
* 1. Leaf request fields (recursive expansion nested messages in the request
|
* 1. Leaf request fields (recursive expansion nested messages in the request
|
||||||
* message) are classified into three categories:
|
* message) are classified into three categories:
|
||||||
* - Fields referred by the path template. They are passed via the URL path.
|
* - Fields referred by the path template. They are passed via the URL path.
|
||||||
* - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They are passed via the HTTP
|
* - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They
|
||||||
|
* are passed via the HTTP
|
||||||
* request body.
|
* request body.
|
||||||
* - All other fields are passed via the URL query parameters, and the
|
* - All other fields are passed via the URL query parameters, and the
|
||||||
* parameter name is the field path in the request message. A repeated
|
* parameter name is the field path in the request message. A repeated
|
||||||
* field can be represented as multiple query parameters under the same
|
* field can be represented as multiple query parameters under the same
|
||||||
* name.
|
* name.
|
||||||
* 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL query parameter, all fields
|
* 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL
|
||||||
|
* query parameter, all fields
|
||||||
* are passed via URL path and HTTP request body.
|
* are passed via URL path and HTTP request body.
|
||||||
* 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP request body, all
|
* 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP
|
||||||
|
* request body, all
|
||||||
* fields are passed via URL path and URL query parameters.
|
* fields are passed via URL path and URL query parameters.
|
||||||
*
|
*
|
||||||
* ### Path template syntax
|
* Path template syntax
|
||||||
*
|
*
|
||||||
* Template = "/" Segments [ Verb ] ;
|
* Template = "/" Segments [ Verb ] ;
|
||||||
* Segments = Segment { "/" Segment } ;
|
* Segments = Segment { "/" Segment } ;
|
||||||
@@ -273,7 +269,7 @@ export interface Http {
|
|||||||
* Document](https://developers.google.com/discovery/v1/reference/apis) as
|
* Document](https://developers.google.com/discovery/v1/reference/apis) as
|
||||||
* `{+var}`.
|
* `{+var}`.
|
||||||
*
|
*
|
||||||
* ## Using gRPC API Service Configuration
|
* Using gRPC API Service Configuration
|
||||||
*
|
*
|
||||||
* gRPC API Service Configuration (service config) is a configuration language
|
* gRPC API Service Configuration (service config) is a configuration language
|
||||||
* for configuring a gRPC service to become a user-facing product. The
|
* for configuring a gRPC service to become a user-facing product. The
|
||||||
@@ -288,15 +284,14 @@ export interface Http {
|
|||||||
* specified in the service config will override any matching transcoding
|
* specified in the service config will override any matching transcoding
|
||||||
* configuration in the proto.
|
* configuration in the proto.
|
||||||
*
|
*
|
||||||
* Example:
|
* The following example selects a gRPC method and applies an `HttpRule` to it:
|
||||||
*
|
*
|
||||||
* http:
|
* http:
|
||||||
* rules:
|
* rules:
|
||||||
* # Selects a gRPC method and applies HttpRule to it.
|
|
||||||
* - selector: example.v1.Messaging.GetMessage
|
* - selector: example.v1.Messaging.GetMessage
|
||||||
* get: /v1/messages/{message_id}/{sub.subfield}
|
* get: /v1/messages/{message_id}/{sub.subfield}
|
||||||
*
|
*
|
||||||
* ## Special notes
|
* Special notes
|
||||||
*
|
*
|
||||||
* When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the
|
* When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the
|
||||||
* proto to JSON conversion must follow the [proto3
|
* proto to JSON conversion must follow the [proto3
|
||||||
@@ -330,7 +325,8 @@ export interface HttpRule {
|
|||||||
/**
|
/**
|
||||||
* Selects a method to which this rule applies.
|
* Selects a method to which this rule applies.
|
||||||
*
|
*
|
||||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
|
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
||||||
|
* details.
|
||||||
*
|
*
|
||||||
* @generated from protobuf field: string selector = 1
|
* @generated from protobuf field: string selector = 1
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// @generated from protobuf file "google/api/httpbody.proto" (package "google.api", syntax proto3)
|
// @generated from protobuf file "google/api/httpbody.proto" (package "google.api", syntax proto3)
|
||||||
// tslint:disable
|
// tslint:disable
|
||||||
//
|
//
|
||||||
// Copyright 2020 Google LLC
|
// Copyright 2025 Google LLC
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
@@ -47,12 +47,15 @@ import { Any } from "../protobuf/any";
|
|||||||
*
|
*
|
||||||
* // The raw HTTP body is bound to this field.
|
* // The raw HTTP body is bound to this field.
|
||||||
* google.api.HttpBody http_body = 2;
|
* google.api.HttpBody http_body = 2;
|
||||||
|
*
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* service ResourceService {
|
* service ResourceService {
|
||||||
* rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
|
* rpc GetResource(GetResourceRequest)
|
||||||
* rpc UpdateResource(google.api.HttpBody) returns
|
* returns (google.api.HttpBody);
|
||||||
* (google.protobuf.Empty);
|
* rpc UpdateResource(google.api.HttpBody)
|
||||||
|
* returns (google.protobuf.Empty);
|
||||||
|
*
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* Example with streaming methods:
|
* Example with streaming methods:
|
||||||
@@ -62,6 +65,7 @@ import { Any } from "../protobuf/any";
|
|||||||
* returns (stream google.api.HttpBody);
|
* returns (stream google.api.HttpBody);
|
||||||
* rpc UpdateCalendar(stream google.api.HttpBody)
|
* rpc UpdateCalendar(stream google.api.HttpBody)
|
||||||
* returns (stream google.api.HttpBody);
|
* returns (stream google.api.HttpBody);
|
||||||
|
*
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* Use of this type only changes how the request and response bodies are
|
* Use of this type only changes how the request and response bodies are
|
||||||
|
|||||||
@@ -73,6 +73,10 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|||||||
* if (any.is(Foo.class)) {
|
* if (any.is(Foo.class)) {
|
||||||
* foo = any.unpack(Foo.class);
|
* foo = any.unpack(Foo.class);
|
||||||
* }
|
* }
|
||||||
|
* // or ...
|
||||||
|
* if (any.isSameTypeAs(Foo.getDefaultInstance())) {
|
||||||
|
* foo = any.unpack(Foo.getDefaultInstance());
|
||||||
|
* }
|
||||||
*
|
*
|
||||||
* Example 3: Pack and unpack a message in Python.
|
* Example 3: Pack and unpack a message in Python.
|
||||||
*
|
*
|
||||||
@@ -87,10 +91,13 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|||||||
* Example 4: Pack and unpack a message in Go
|
* Example 4: Pack and unpack a message in Go
|
||||||
*
|
*
|
||||||
* foo := &pb.Foo{...}
|
* foo := &pb.Foo{...}
|
||||||
* any, err := ptypes.MarshalAny(foo)
|
* any, err := anypb.New(foo)
|
||||||
|
* if err != nil {
|
||||||
|
* ...
|
||||||
|
* }
|
||||||
* ...
|
* ...
|
||||||
* foo := &pb.Foo{}
|
* foo := &pb.Foo{}
|
||||||
* if err := ptypes.UnmarshalAny(any, foo); err != nil {
|
* if err := any.UnmarshalTo(foo); err != nil {
|
||||||
* ...
|
* ...
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
@@ -100,7 +107,6 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|||||||
* in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
* in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
||||||
* name "y.z".
|
* name "y.z".
|
||||||
*
|
*
|
||||||
*
|
|
||||||
* JSON
|
* JSON
|
||||||
* ====
|
* ====
|
||||||
* The JSON representation of an `Any` value uses the regular
|
* The JSON representation of an `Any` value uses the regular
|
||||||
@@ -157,7 +163,8 @@ export interface Any {
|
|||||||
*
|
*
|
||||||
* Note: this functionality is not currently available in the official
|
* Note: this functionality is not currently available in the official
|
||||||
* protobuf release, and it is not used for type URLs beginning with
|
* protobuf release, and it is not used for type URLs beginning with
|
||||||
* type.googleapis.com.
|
* type.googleapis.com. As of May 2023, there are no widely used type server
|
||||||
|
* implementations and no plans to implement one.
|
||||||
*
|
*
|
||||||
* Schemes other than `http`, `https` (or the empty scheme) might be
|
* Schemes other than `http`, `https` (or the empty scheme) might be
|
||||||
* used with implementation specific semantics.
|
* used with implementation specific semantics.
|
||||||
|
|||||||
@@ -55,6 +55,11 @@ import { Option } from "./type";
|
|||||||
* this message itself. See https://cloud.google.com/apis/design/glossary for
|
* this message itself. See https://cloud.google.com/apis/design/glossary for
|
||||||
* detailed terminology.
|
* detailed terminology.
|
||||||
*
|
*
|
||||||
|
* New usages of this message as an alternative to ServiceDescriptorProto are
|
||||||
|
* strongly discouraged. This message does not reliability preserve all
|
||||||
|
* information necessary to model the schema and preserve semantics. Instead
|
||||||
|
* make use of FileDescriptorSet which preserves the necessary information.
|
||||||
|
*
|
||||||
* @generated from protobuf message google.protobuf.Api
|
* @generated from protobuf message google.protobuf.Api
|
||||||
*/
|
*/
|
||||||
export interface Api {
|
export interface Api {
|
||||||
@@ -99,7 +104,6 @@ export interface Api {
|
|||||||
* experimental, non-GA interfaces.
|
* experimental, non-GA interfaces.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
|
||||||
* @generated from protobuf field: string version = 4
|
* @generated from protobuf field: string version = 4
|
||||||
*/
|
*/
|
||||||
version: string;
|
version: string;
|
||||||
@@ -122,10 +126,21 @@ export interface Api {
|
|||||||
* @generated from protobuf field: google.protobuf.Syntax syntax = 7
|
* @generated from protobuf field: google.protobuf.Syntax syntax = 7
|
||||||
*/
|
*/
|
||||||
syntax: Syntax;
|
syntax: Syntax;
|
||||||
|
/**
|
||||||
|
* The source edition string, only valid when syntax is SYNTAX_EDITIONS.
|
||||||
|
*
|
||||||
|
* @generated from protobuf field: string edition = 8
|
||||||
|
*/
|
||||||
|
edition: string;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Method represents a method of an API interface.
|
* Method represents a method of an API interface.
|
||||||
*
|
*
|
||||||
|
* New usages of this message as an alternative to MethodDescriptorProto are
|
||||||
|
* strongly discouraged. This message does not reliability preserve all
|
||||||
|
* information necessary to model the schema and preserve semantics. Instead
|
||||||
|
* make use of FileDescriptorSet which preserves the necessary information.
|
||||||
|
*
|
||||||
* @generated from protobuf message google.protobuf.Method
|
* @generated from protobuf message google.protobuf.Method
|
||||||
*/
|
*/
|
||||||
export interface Method {
|
export interface Method {
|
||||||
@@ -168,9 +183,23 @@ export interface Method {
|
|||||||
/**
|
/**
|
||||||
* The source syntax of this method.
|
* The source syntax of this method.
|
||||||
*
|
*
|
||||||
* @generated from protobuf field: google.protobuf.Syntax syntax = 7
|
* This field should be ignored, instead the syntax should be inherited from
|
||||||
|
* Api. This is similar to Field and EnumValue.
|
||||||
|
*
|
||||||
|
* @deprecated
|
||||||
|
* @generated from protobuf field: google.protobuf.Syntax syntax = 7 [deprecated = true]
|
||||||
*/
|
*/
|
||||||
syntax: Syntax;
|
syntax: Syntax;
|
||||||
|
/**
|
||||||
|
* The source edition string, only valid when syntax is SYNTAX_EDITIONS.
|
||||||
|
*
|
||||||
|
* This field should be ignored, instead the edition should be inherited from
|
||||||
|
* Api. This is similar to Field and EnumValue.
|
||||||
|
*
|
||||||
|
* @deprecated
|
||||||
|
* @generated from protobuf field: string edition = 8 [deprecated = true]
|
||||||
|
*/
|
||||||
|
edition: string;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Declares an API Interface to be included in this interface. The including
|
* Declares an API Interface to be included in this interface. The including
|
||||||
@@ -220,7 +249,7 @@ export interface Method {
|
|||||||
* The mixin construct implies that all methods in `AccessControl` are
|
* The mixin construct implies that all methods in `AccessControl` are
|
||||||
* also declared with same name and request/response types in
|
* also declared with same name and request/response types in
|
||||||
* `Storage`. A documentation generator or annotation processor will
|
* `Storage`. A documentation generator or annotation processor will
|
||||||
* see the effective `Storage.GetAcl` method after inherting
|
* see the effective `Storage.GetAcl` method after inheriting
|
||||||
* documentation and annotations as follows:
|
* documentation and annotations as follows:
|
||||||
*
|
*
|
||||||
* service Storage {
|
* service Storage {
|
||||||
@@ -279,7 +308,8 @@ class Api$Type extends MessageType<Api> {
|
|||||||
{ no: 4, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
{ no: 4, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||||
{ no: 5, name: "source_context", kind: "message", localName: "source_context", T: () => SourceContext },
|
{ no: 5, name: "source_context", kind: "message", localName: "source_context", T: () => SourceContext },
|
||||||
{ no: 6, name: "mixins", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Mixin },
|
{ no: 6, name: "mixins", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Mixin },
|
||||||
{ no: 7, name: "syntax", kind: "enum", T: () => ["google.protobuf.Syntax", Syntax, "SYNTAX_"] }
|
{ no: 7, name: "syntax", kind: "enum", T: () => ["google.protobuf.Syntax", Syntax, "SYNTAX_"] },
|
||||||
|
{ no: 8, name: "edition", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value?: PartialMessage<Api>): Api {
|
create(value?: PartialMessage<Api>): Api {
|
||||||
@@ -290,6 +320,7 @@ class Api$Type extends MessageType<Api> {
|
|||||||
message.version = "";
|
message.version = "";
|
||||||
message.mixins = [];
|
message.mixins = [];
|
||||||
message.syntax = 0;
|
message.syntax = 0;
|
||||||
|
message.edition = "";
|
||||||
if (value !== undefined)
|
if (value !== undefined)
|
||||||
reflectionMergePartial<Api>(this, message, value);
|
reflectionMergePartial<Api>(this, message, value);
|
||||||
return message;
|
return message;
|
||||||
@@ -320,6 +351,9 @@ class Api$Type extends MessageType<Api> {
|
|||||||
case /* google.protobuf.Syntax syntax */ 7:
|
case /* google.protobuf.Syntax syntax */ 7:
|
||||||
message.syntax = reader.int32();
|
message.syntax = reader.int32();
|
||||||
break;
|
break;
|
||||||
|
case /* string edition */ 8:
|
||||||
|
message.edition = reader.string();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -353,6 +387,9 @@ class Api$Type extends MessageType<Api> {
|
|||||||
/* google.protobuf.Syntax syntax = 7; */
|
/* google.protobuf.Syntax syntax = 7; */
|
||||||
if (message.syntax !== 0)
|
if (message.syntax !== 0)
|
||||||
writer.tag(7, WireType.Varint).int32(message.syntax);
|
writer.tag(7, WireType.Varint).int32(message.syntax);
|
||||||
|
/* string edition = 8; */
|
||||||
|
if (message.edition !== "")
|
||||||
|
writer.tag(8, WireType.LengthDelimited).string(message.edition);
|
||||||
let u = options.writeUnknownFields;
|
let u = options.writeUnknownFields;
|
||||||
if (u !== false)
|
if (u !== false)
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
@@ -373,7 +410,8 @@ class Method$Type extends MessageType<Method> {
|
|||||||
{ no: 4, name: "response_type_url", kind: "scalar", localName: "response_type_url", T: 9 /*ScalarType.STRING*/ },
|
{ no: 4, name: "response_type_url", kind: "scalar", localName: "response_type_url", T: 9 /*ScalarType.STRING*/ },
|
||||||
{ no: 5, name: "response_streaming", kind: "scalar", localName: "response_streaming", T: 8 /*ScalarType.BOOL*/ },
|
{ no: 5, name: "response_streaming", kind: "scalar", localName: "response_streaming", T: 8 /*ScalarType.BOOL*/ },
|
||||||
{ no: 6, name: "options", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Option },
|
{ no: 6, name: "options", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Option },
|
||||||
{ no: 7, name: "syntax", kind: "enum", T: () => ["google.protobuf.Syntax", Syntax, "SYNTAX_"] }
|
{ no: 7, name: "syntax", kind: "enum", T: () => ["google.protobuf.Syntax", Syntax, "SYNTAX_"] },
|
||||||
|
{ no: 8, name: "edition", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value?: PartialMessage<Method>): Method {
|
create(value?: PartialMessage<Method>): Method {
|
||||||
@@ -385,6 +423,7 @@ class Method$Type extends MessageType<Method> {
|
|||||||
message.response_streaming = false;
|
message.response_streaming = false;
|
||||||
message.options = [];
|
message.options = [];
|
||||||
message.syntax = 0;
|
message.syntax = 0;
|
||||||
|
message.edition = "";
|
||||||
if (value !== undefined)
|
if (value !== undefined)
|
||||||
reflectionMergePartial<Method>(this, message, value);
|
reflectionMergePartial<Method>(this, message, value);
|
||||||
return message;
|
return message;
|
||||||
@@ -412,9 +451,12 @@ class Method$Type extends MessageType<Method> {
|
|||||||
case /* repeated google.protobuf.Option options */ 6:
|
case /* repeated google.protobuf.Option options */ 6:
|
||||||
message.options.push(Option.internalBinaryRead(reader, reader.uint32(), options));
|
message.options.push(Option.internalBinaryRead(reader, reader.uint32(), options));
|
||||||
break;
|
break;
|
||||||
case /* google.protobuf.Syntax syntax */ 7:
|
case /* google.protobuf.Syntax syntax = 7 [deprecated = true] */ 7:
|
||||||
message.syntax = reader.int32();
|
message.syntax = reader.int32();
|
||||||
break;
|
break;
|
||||||
|
case /* string edition = 8 [deprecated = true] */ 8:
|
||||||
|
message.edition = reader.string();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -445,9 +487,12 @@ class Method$Type extends MessageType<Method> {
|
|||||||
/* repeated google.protobuf.Option options = 6; */
|
/* repeated google.protobuf.Option options = 6; */
|
||||||
for (let i = 0; i < message.options.length; i++)
|
for (let i = 0; i < message.options.length; i++)
|
||||||
Option.internalBinaryWrite(message.options[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
Option.internalBinaryWrite(message.options[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
||||||
/* google.protobuf.Syntax syntax = 7; */
|
/* google.protobuf.Syntax syntax = 7 [deprecated = true]; */
|
||||||
if (message.syntax !== 0)
|
if (message.syntax !== 0)
|
||||||
writer.tag(7, WireType.Varint).int32(message.syntax);
|
writer.tag(7, WireType.Varint).int32(message.syntax);
|
||||||
|
/* string edition = 8 [deprecated = true]; */
|
||||||
|
if (message.edition !== "")
|
||||||
|
writer.tag(8, WireType.LengthDelimited).string(message.edition);
|
||||||
let u = options.writeUnknownFields;
|
let u = options.writeUnknownFields;
|
||||||
if (u !== false)
|
if (u !== false)
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
|
|||||||
@@ -4,40 +4,14 @@
|
|||||||
//
|
//
|
||||||
// Protocol Buffers - Google's data interchange format
|
// Protocol Buffers - Google's data interchange format
|
||||||
// Copyright 2008 Google Inc. All rights reserved.
|
// Copyright 2008 Google Inc. All rights reserved.
|
||||||
// https://developers.google.com/protocol-buffers/
|
|
||||||
//
|
//
|
||||||
// Redistribution and use in source and binary forms, with or without
|
// Use of this source code is governed by a BSD-style
|
||||||
// modification, are permitted provided that the following conditions are
|
// license that can be found in the LICENSE file or at
|
||||||
// met:
|
// https://developers.google.com/open-source/licenses/bsd
|
||||||
//
|
|
||||||
// * Redistributions of source code must retain the above copyright
|
|
||||||
// notice, this list of conditions and the following disclaimer.
|
|
||||||
// * Redistributions in binary form must reproduce the above
|
|
||||||
// copyright notice, this list of conditions and the following disclaimer
|
|
||||||
// in the documentation and/or other materials provided with the
|
|
||||||
// distribution.
|
|
||||||
// * Neither the name of Google Inc. nor the names of its
|
|
||||||
// contributors may be used to endorse or promote products derived from
|
|
||||||
// this software without specific prior written permission.
|
|
||||||
//
|
|
||||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
||||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
||||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
||||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
||||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
||||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
||||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
// Author: kenton@google.com (Kenton Varda)
|
// Author: kenton@google.com (Kenton Varda)
|
||||||
//
|
//
|
||||||
// WARNING: The plugin interface is currently EXPERIMENTAL and is subject to
|
|
||||||
// change.
|
|
||||||
//
|
|
||||||
// protoc (aka the Protocol Compiler) can be extended via plugins. A plugin is
|
// protoc (aka the Protocol Compiler) can be extended via plugins. A plugin is
|
||||||
// just a program that reads a CodeGeneratorRequest from stdin and writes a
|
// just a program that reads a CodeGeneratorRequest from stdin and writes a
|
||||||
// CodeGeneratorResponse to stdout.
|
// CodeGeneratorResponse to stdout.
|
||||||
@@ -58,6 +32,7 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|||||||
import type { PartialMessage } from "@protobuf-ts/runtime";
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
||||||
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
||||||
import { MessageType } from "@protobuf-ts/runtime";
|
import { MessageType } from "@protobuf-ts/runtime";
|
||||||
|
import { GeneratedCodeInfo } from "../descriptor";
|
||||||
import { FileDescriptorProto } from "../descriptor";
|
import { FileDescriptorProto } from "../descriptor";
|
||||||
/**
|
/**
|
||||||
* The version number of protocol compiler.
|
* The version number of protocol compiler.
|
||||||
@@ -110,6 +85,11 @@ export interface CodeGeneratorRequest {
|
|||||||
* they import. The files will appear in topological order, so each file
|
* they import. The files will appear in topological order, so each file
|
||||||
* appears before any file that imports it.
|
* appears before any file that imports it.
|
||||||
*
|
*
|
||||||
|
* Note: the files listed in files_to_generate will include runtime-retention
|
||||||
|
* options only, but all other files will include source-retention options.
|
||||||
|
* The source_file_descriptors field below is available in case you need
|
||||||
|
* source-retention options for files_to_generate.
|
||||||
|
*
|
||||||
* protoc guarantees that all proto_files will be written after
|
* protoc guarantees that all proto_files will be written after
|
||||||
* the fields above, even though this is not technically guaranteed by the
|
* the fields above, even though this is not technically guaranteed by the
|
||||||
* protobuf wire format. This theoretically could allow a plugin to stream
|
* protobuf wire format. This theoretically could allow a plugin to stream
|
||||||
@@ -124,6 +104,14 @@ export interface CodeGeneratorRequest {
|
|||||||
* @generated from protobuf field: repeated google.protobuf.FileDescriptorProto proto_file = 15
|
* @generated from protobuf field: repeated google.protobuf.FileDescriptorProto proto_file = 15
|
||||||
*/
|
*/
|
||||||
proto_file: FileDescriptorProto[];
|
proto_file: FileDescriptorProto[];
|
||||||
|
/**
|
||||||
|
* File descriptors with all options, including source-retention options.
|
||||||
|
* These descriptors are only provided for the files listed in
|
||||||
|
* files_to_generate.
|
||||||
|
*
|
||||||
|
* @generated from protobuf field: repeated google.protobuf.FileDescriptorProto source_file_descriptors = 17
|
||||||
|
*/
|
||||||
|
source_file_descriptors: FileDescriptorProto[];
|
||||||
/**
|
/**
|
||||||
* The version number of protocol compiler.
|
* The version number of protocol compiler.
|
||||||
*
|
*
|
||||||
@@ -150,6 +138,31 @@ export interface CodeGeneratorResponse {
|
|||||||
* @generated from protobuf field: optional string error = 1
|
* @generated from protobuf field: optional string error = 1
|
||||||
*/
|
*/
|
||||||
error?: string;
|
error?: string;
|
||||||
|
/**
|
||||||
|
* A bitmask of supported features that the code generator supports.
|
||||||
|
* This is a bitwise "or" of values from the Feature enum.
|
||||||
|
*
|
||||||
|
* @generated from protobuf field: optional uint64 supported_features = 2
|
||||||
|
*/
|
||||||
|
supported_features?: bigint;
|
||||||
|
/**
|
||||||
|
* The minimum edition this plugin supports. This will be treated as an
|
||||||
|
* Edition enum, but we want to allow unknown values. It should be specified
|
||||||
|
* according the edition enum value, *not* the edition number. Only takes
|
||||||
|
* effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.
|
||||||
|
*
|
||||||
|
* @generated from protobuf field: optional int32 minimum_edition = 3
|
||||||
|
*/
|
||||||
|
minimum_edition?: number;
|
||||||
|
/**
|
||||||
|
* The maximum edition this plugin supports. This will be treated as an
|
||||||
|
* Edition enum, but we want to allow unknown values. It should be specified
|
||||||
|
* according the edition enum value, *not* the edition number. Only takes
|
||||||
|
* effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.
|
||||||
|
*
|
||||||
|
* @generated from protobuf field: optional int32 maximum_edition = 4
|
||||||
|
*/
|
||||||
|
maximum_edition?: number;
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf field: repeated google.protobuf.compiler.CodeGeneratorResponse.File file = 15
|
* @generated from protobuf field: repeated google.protobuf.compiler.CodeGeneratorResponse.File file = 15
|
||||||
*/
|
*/
|
||||||
@@ -225,6 +238,33 @@ export interface CodeGeneratorResponse_File {
|
|||||||
* @generated from protobuf field: optional string content = 15
|
* @generated from protobuf field: optional string content = 15
|
||||||
*/
|
*/
|
||||||
content?: string;
|
content?: string;
|
||||||
|
/**
|
||||||
|
* Information describing the file content being inserted. If an insertion
|
||||||
|
* point is used, this information will be appropriately offset and inserted
|
||||||
|
* into the code generation metadata for the generated files.
|
||||||
|
*
|
||||||
|
* @generated from protobuf field: optional google.protobuf.GeneratedCodeInfo generated_code_info = 16
|
||||||
|
*/
|
||||||
|
generated_code_info?: GeneratedCodeInfo;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Sync with code_generator.h.
|
||||||
|
*
|
||||||
|
* @generated from protobuf enum google.protobuf.compiler.CodeGeneratorResponse.Feature
|
||||||
|
*/
|
||||||
|
export enum CodeGeneratorResponse_Feature {
|
||||||
|
/**
|
||||||
|
* @generated from protobuf enum value: FEATURE_NONE = 0;
|
||||||
|
*/
|
||||||
|
NONE = 0,
|
||||||
|
/**
|
||||||
|
* @generated from protobuf enum value: FEATURE_PROTO3_OPTIONAL = 1;
|
||||||
|
*/
|
||||||
|
PROTO3_OPTIONAL = 1,
|
||||||
|
/**
|
||||||
|
* @generated from protobuf enum value: FEATURE_SUPPORTS_EDITIONS = 2;
|
||||||
|
*/
|
||||||
|
SUPPORTS_EDITIONS = 2
|
||||||
}
|
}
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
// @generated message type with reflection information, may provide speed optimized methods
|
||||||
class Version$Type extends MessageType<Version> {
|
class Version$Type extends MessageType<Version> {
|
||||||
@@ -300,6 +340,7 @@ class CodeGeneratorRequest$Type extends MessageType<CodeGeneratorRequest> {
|
|||||||
{ no: 1, name: "file_to_generate", kind: "scalar", localName: "file_to_generate", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
{ no: 1, name: "file_to_generate", kind: "scalar", localName: "file_to_generate", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||||
{ no: 2, name: "parameter", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
{ no: 2, name: "parameter", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
||||||
{ no: 15, name: "proto_file", kind: "message", localName: "proto_file", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FileDescriptorProto },
|
{ no: 15, name: "proto_file", kind: "message", localName: "proto_file", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FileDescriptorProto },
|
||||||
|
{ no: 17, name: "source_file_descriptors", kind: "message", localName: "source_file_descriptors", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FileDescriptorProto },
|
||||||
{ no: 3, name: "compiler_version", kind: "message", localName: "compiler_version", T: () => Version }
|
{ no: 3, name: "compiler_version", kind: "message", localName: "compiler_version", T: () => Version }
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
@@ -307,6 +348,7 @@ class CodeGeneratorRequest$Type extends MessageType<CodeGeneratorRequest> {
|
|||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
const message = globalThis.Object.create((this.messagePrototype!));
|
||||||
message.file_to_generate = [];
|
message.file_to_generate = [];
|
||||||
message.proto_file = [];
|
message.proto_file = [];
|
||||||
|
message.source_file_descriptors = [];
|
||||||
if (value !== undefined)
|
if (value !== undefined)
|
||||||
reflectionMergePartial<CodeGeneratorRequest>(this, message, value);
|
reflectionMergePartial<CodeGeneratorRequest>(this, message, value);
|
||||||
return message;
|
return message;
|
||||||
@@ -325,6 +367,9 @@ class CodeGeneratorRequest$Type extends MessageType<CodeGeneratorRequest> {
|
|||||||
case /* repeated google.protobuf.FileDescriptorProto proto_file */ 15:
|
case /* repeated google.protobuf.FileDescriptorProto proto_file */ 15:
|
||||||
message.proto_file.push(FileDescriptorProto.internalBinaryRead(reader, reader.uint32(), options));
|
message.proto_file.push(FileDescriptorProto.internalBinaryRead(reader, reader.uint32(), options));
|
||||||
break;
|
break;
|
||||||
|
case /* repeated google.protobuf.FileDescriptorProto source_file_descriptors */ 17:
|
||||||
|
message.source_file_descriptors.push(FileDescriptorProto.internalBinaryRead(reader, reader.uint32(), options));
|
||||||
|
break;
|
||||||
case /* optional google.protobuf.compiler.Version compiler_version */ 3:
|
case /* optional google.protobuf.compiler.Version compiler_version */ 3:
|
||||||
message.compiler_version = Version.internalBinaryRead(reader, reader.uint32(), options, message.compiler_version);
|
message.compiler_version = Version.internalBinaryRead(reader, reader.uint32(), options, message.compiler_version);
|
||||||
break;
|
break;
|
||||||
@@ -352,6 +397,9 @@ class CodeGeneratorRequest$Type extends MessageType<CodeGeneratorRequest> {
|
|||||||
/* repeated google.protobuf.FileDescriptorProto proto_file = 15; */
|
/* repeated google.protobuf.FileDescriptorProto proto_file = 15; */
|
||||||
for (let i = 0; i < message.proto_file.length; i++)
|
for (let i = 0; i < message.proto_file.length; i++)
|
||||||
FileDescriptorProto.internalBinaryWrite(message.proto_file[i], writer.tag(15, WireType.LengthDelimited).fork(), options).join();
|
FileDescriptorProto.internalBinaryWrite(message.proto_file[i], writer.tag(15, WireType.LengthDelimited).fork(), options).join();
|
||||||
|
/* repeated google.protobuf.FileDescriptorProto source_file_descriptors = 17; */
|
||||||
|
for (let i = 0; i < message.source_file_descriptors.length; i++)
|
||||||
|
FileDescriptorProto.internalBinaryWrite(message.source_file_descriptors[i], writer.tag(17, WireType.LengthDelimited).fork(), options).join();
|
||||||
let u = options.writeUnknownFields;
|
let u = options.writeUnknownFields;
|
||||||
if (u !== false)
|
if (u !== false)
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
@@ -367,6 +415,9 @@ class CodeGeneratorResponse$Type extends MessageType<CodeGeneratorResponse> {
|
|||||||
constructor() {
|
constructor() {
|
||||||
super("google.protobuf.compiler.CodeGeneratorResponse", [
|
super("google.protobuf.compiler.CodeGeneratorResponse", [
|
||||||
{ no: 1, name: "error", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
{ no: 1, name: "error", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
||||||
|
{ no: 2, name: "supported_features", kind: "scalar", localName: "supported_features", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
||||||
|
{ no: 3, name: "minimum_edition", kind: "scalar", localName: "minimum_edition", opt: true, T: 5 /*ScalarType.INT32*/ },
|
||||||
|
{ no: 4, name: "maximum_edition", kind: "scalar", localName: "maximum_edition", opt: true, T: 5 /*ScalarType.INT32*/ },
|
||||||
{ no: 15, name: "file", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CodeGeneratorResponse_File }
|
{ no: 15, name: "file", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CodeGeneratorResponse_File }
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
@@ -385,6 +436,15 @@ class CodeGeneratorResponse$Type extends MessageType<CodeGeneratorResponse> {
|
|||||||
case /* optional string error */ 1:
|
case /* optional string error */ 1:
|
||||||
message.error = reader.string();
|
message.error = reader.string();
|
||||||
break;
|
break;
|
||||||
|
case /* optional uint64 supported_features */ 2:
|
||||||
|
message.supported_features = reader.uint64().toBigInt();
|
||||||
|
break;
|
||||||
|
case /* optional int32 minimum_edition */ 3:
|
||||||
|
message.minimum_edition = reader.int32();
|
||||||
|
break;
|
||||||
|
case /* optional int32 maximum_edition */ 4:
|
||||||
|
message.maximum_edition = reader.int32();
|
||||||
|
break;
|
||||||
case /* repeated google.protobuf.compiler.CodeGeneratorResponse.File file */ 15:
|
case /* repeated google.protobuf.compiler.CodeGeneratorResponse.File file */ 15:
|
||||||
message.file.push(CodeGeneratorResponse_File.internalBinaryRead(reader, reader.uint32(), options));
|
message.file.push(CodeGeneratorResponse_File.internalBinaryRead(reader, reader.uint32(), options));
|
||||||
break;
|
break;
|
||||||
@@ -403,6 +463,15 @@ class CodeGeneratorResponse$Type extends MessageType<CodeGeneratorResponse> {
|
|||||||
/* optional string error = 1; */
|
/* optional string error = 1; */
|
||||||
if (message.error !== undefined)
|
if (message.error !== undefined)
|
||||||
writer.tag(1, WireType.LengthDelimited).string(message.error);
|
writer.tag(1, WireType.LengthDelimited).string(message.error);
|
||||||
|
/* optional uint64 supported_features = 2; */
|
||||||
|
if (message.supported_features !== undefined)
|
||||||
|
writer.tag(2, WireType.Varint).uint64(message.supported_features);
|
||||||
|
/* optional int32 minimum_edition = 3; */
|
||||||
|
if (message.minimum_edition !== undefined)
|
||||||
|
writer.tag(3, WireType.Varint).int32(message.minimum_edition);
|
||||||
|
/* optional int32 maximum_edition = 4; */
|
||||||
|
if (message.maximum_edition !== undefined)
|
||||||
|
writer.tag(4, WireType.Varint).int32(message.maximum_edition);
|
||||||
/* repeated google.protobuf.compiler.CodeGeneratorResponse.File file = 15; */
|
/* repeated google.protobuf.compiler.CodeGeneratorResponse.File file = 15; */
|
||||||
for (let i = 0; i < message.file.length; i++)
|
for (let i = 0; i < message.file.length; i++)
|
||||||
CodeGeneratorResponse_File.internalBinaryWrite(message.file[i], writer.tag(15, WireType.LengthDelimited).fork(), options).join();
|
CodeGeneratorResponse_File.internalBinaryWrite(message.file[i], writer.tag(15, WireType.LengthDelimited).fork(), options).join();
|
||||||
@@ -422,7 +491,8 @@ class CodeGeneratorResponse_File$Type extends MessageType<CodeGeneratorResponse_
|
|||||||
super("google.protobuf.compiler.CodeGeneratorResponse.File", [
|
super("google.protobuf.compiler.CodeGeneratorResponse.File", [
|
||||||
{ no: 1, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
{ no: 1, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
||||||
{ no: 2, name: "insertion_point", kind: "scalar", localName: "insertion_point", opt: true, T: 9 /*ScalarType.STRING*/ },
|
{ no: 2, name: "insertion_point", kind: "scalar", localName: "insertion_point", opt: true, T: 9 /*ScalarType.STRING*/ },
|
||||||
{ no: 15, name: "content", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
{ no: 15, name: "content", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
||||||
|
{ no: 16, name: "generated_code_info", kind: "message", localName: "generated_code_info", T: () => GeneratedCodeInfo }
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value?: PartialMessage<CodeGeneratorResponse_File>): CodeGeneratorResponse_File {
|
create(value?: PartialMessage<CodeGeneratorResponse_File>): CodeGeneratorResponse_File {
|
||||||
@@ -445,6 +515,9 @@ class CodeGeneratorResponse_File$Type extends MessageType<CodeGeneratorResponse_
|
|||||||
case /* optional string content */ 15:
|
case /* optional string content */ 15:
|
||||||
message.content = reader.string();
|
message.content = reader.string();
|
||||||
break;
|
break;
|
||||||
|
case /* optional google.protobuf.GeneratedCodeInfo generated_code_info */ 16:
|
||||||
|
message.generated_code_info = GeneratedCodeInfo.internalBinaryRead(reader, reader.uint32(), options, message.generated_code_info);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -466,6 +539,9 @@ class CodeGeneratorResponse_File$Type extends MessageType<CodeGeneratorResponse_
|
|||||||
/* optional string content = 15; */
|
/* optional string content = 15; */
|
||||||
if (message.content !== undefined)
|
if (message.content !== undefined)
|
||||||
writer.tag(15, WireType.LengthDelimited).string(message.content);
|
writer.tag(15, WireType.LengthDelimited).string(message.content);
|
||||||
|
/* optional google.protobuf.GeneratedCodeInfo generated_code_info = 16; */
|
||||||
|
if (message.generated_code_info)
|
||||||
|
GeneratedCodeInfo.internalBinaryWrite(message.generated_code_info, writer.tag(16, WireType.LengthDelimited).fork(), options).join();
|
||||||
let u = options.writeUnknownFields;
|
let u = options.writeUnknownFields;
|
||||||
if (u !== false)
|
if (u !== false)
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -107,7 +107,6 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|||||||
* microsecond should be expressed in JSON format as "3.000001s".
|
* microsecond should be expressed in JSON format as "3.000001s".
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
|
||||||
* @generated from protobuf message google.protobuf.Duration
|
* @generated from protobuf message google.protobuf.Duration
|
||||||
*/
|
*/
|
||||||
export interface Duration {
|
export interface Duration {
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|||||||
* rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
* rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* The JSON representation for `Empty` is empty JSON object `{}`.
|
|
||||||
*
|
*
|
||||||
* @generated from protobuf message google.protobuf.Empty
|
* @generated from protobuf message google.protobuf.Empty
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -72,8 +72,8 @@ export interface Struct {
|
|||||||
/**
|
/**
|
||||||
* `Value` represents a dynamically typed value which can be either
|
* `Value` represents a dynamically typed value which can be either
|
||||||
* null, a number, a string, a boolean, a recursive struct value, or a
|
* null, a number, a string, a boolean, a recursive struct value, or a
|
||||||
* list of values. A producer of value is expected to set one of that
|
* list of values. A producer of value is expected to set one of these
|
||||||
* variants, absence of any variant indicates an error.
|
* variants. Absence of any variant indicates an error.
|
||||||
*
|
*
|
||||||
* The JSON representation for `Value` is JSON value.
|
* The JSON representation for `Value` is JSON value.
|
||||||
*
|
*
|
||||||
@@ -156,7 +156,7 @@ export interface ListValue {
|
|||||||
* `NullValue` is a singleton enumeration to represent the null value for the
|
* `NullValue` is a singleton enumeration to represent the null value for the
|
||||||
* `Value` type union.
|
* `Value` type union.
|
||||||
*
|
*
|
||||||
* The JSON representation for `NullValue` is JSON `null`.
|
* The JSON representation for `NullValue` is JSON `null`.
|
||||||
*
|
*
|
||||||
* @generated from protobuf enum google.protobuf.NullValue
|
* @generated from protobuf enum google.protobuf.NullValue
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -97,8 +97,15 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|||||||
* Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
* Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
||||||
* .setNanos((int) ((millis % 1000) * 1000000)).build();
|
* .setNanos((int) ((millis % 1000) * 1000000)).build();
|
||||||
*
|
*
|
||||||
|
* Example 5: Compute Timestamp from Java `Instant.now()`.
|
||||||
*
|
*
|
||||||
* Example 5: Compute Timestamp from current time in Python.
|
* Instant now = Instant.now();
|
||||||
|
*
|
||||||
|
* Timestamp timestamp =
|
||||||
|
* Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
||||||
|
* .setNanos(now.getNano()).build();
|
||||||
|
*
|
||||||
|
* Example 6: Compute Timestamp from current time in Python.
|
||||||
*
|
*
|
||||||
* timestamp = Timestamp()
|
* timestamp = Timestamp()
|
||||||
* timestamp.GetCurrentTime()
|
* timestamp.GetCurrentTime()
|
||||||
@@ -112,8 +119,8 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|||||||
* {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
|
* {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
|
||||||
* seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
|
* seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
|
||||||
* are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
|
* are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
|
||||||
* is required. A proto3 JSON serializer should always use UTC (as indicated by
|
* is required. A ProtoJSON serializer should always use UTC (as indicated by
|
||||||
* "Z") when printing the Timestamp type and a proto3 JSON parser should be
|
* "Z") when printing the Timestamp type and a ProtoJSON parser should be
|
||||||
* able to accept both UTC and other timezones (as indicated by an offset).
|
* able to accept both UTC and other timezones (as indicated by an offset).
|
||||||
*
|
*
|
||||||
* For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
|
* For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
|
||||||
@@ -127,26 +134,26 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|||||||
* [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
* [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
||||||
* the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
* the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
||||||
* the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
* the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
||||||
* http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
|
* http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
|
||||||
* ) to obtain a formatter capable of generating timestamps in this format.
|
* ) to obtain a formatter capable of generating timestamps in this format.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
|
||||||
* @generated from protobuf message google.protobuf.Timestamp
|
* @generated from protobuf message google.protobuf.Timestamp
|
||||||
*/
|
*/
|
||||||
export interface Timestamp {
|
export interface Timestamp {
|
||||||
/**
|
/**
|
||||||
* Represents seconds of UTC time since Unix epoch
|
* Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must
|
||||||
* 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
|
* be between -62135596800 and 253402300799 inclusive (which corresponds to
|
||||||
* 9999-12-31T23:59:59Z inclusive.
|
* 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z).
|
||||||
*
|
*
|
||||||
* @generated from protobuf field: int64 seconds = 1
|
* @generated from protobuf field: int64 seconds = 1
|
||||||
*/
|
*/
|
||||||
seconds: bigint;
|
seconds: bigint;
|
||||||
/**
|
/**
|
||||||
* Non-negative fractions of a second at nanosecond resolution. Negative
|
* Non-negative fractions of a second at nanosecond resolution. This field is
|
||||||
* second values with fractions must still have non-negative nanos values
|
* the nanosecond portion of the duration, not an alternative to seconds.
|
||||||
* that count forward in time. Must be from 0 to 999,999,999
|
* Negative second values with fractions must still have non-negative nanos
|
||||||
|
* values that count forward in time. Must be between 0 and 999,999,999
|
||||||
* inclusive.
|
* inclusive.
|
||||||
*
|
*
|
||||||
* @generated from protobuf field: int32 nanos = 2
|
* @generated from protobuf field: int32 nanos = 2
|
||||||
|
|||||||
@@ -46,6 +46,11 @@ import { SourceContext } from "./source_context";
|
|||||||
/**
|
/**
|
||||||
* A protocol buffer message type.
|
* A protocol buffer message type.
|
||||||
*
|
*
|
||||||
|
* New usages of this message as an alternative to DescriptorProto are strongly
|
||||||
|
* discouraged. This message does not reliability preserve all information
|
||||||
|
* necessary to model the schema and preserve semantics. Instead make use of
|
||||||
|
* FileDescriptorSet which preserves the necessary information.
|
||||||
|
*
|
||||||
* @generated from protobuf message google.protobuf.Type
|
* @generated from protobuf message google.protobuf.Type
|
||||||
*/
|
*/
|
||||||
export interface Type {
|
export interface Type {
|
||||||
@@ -85,10 +90,21 @@ export interface Type {
|
|||||||
* @generated from protobuf field: google.protobuf.Syntax syntax = 6
|
* @generated from protobuf field: google.protobuf.Syntax syntax = 6
|
||||||
*/
|
*/
|
||||||
syntax: Syntax;
|
syntax: Syntax;
|
||||||
|
/**
|
||||||
|
* The source edition string, only valid when syntax is SYNTAX_EDITIONS.
|
||||||
|
*
|
||||||
|
* @generated from protobuf field: string edition = 7
|
||||||
|
*/
|
||||||
|
edition: string;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* A single field of a message type.
|
* A single field of a message type.
|
||||||
*
|
*
|
||||||
|
* New usages of this message as an alternative to FieldDescriptorProto are
|
||||||
|
* strongly discouraged. This message does not reliability preserve all
|
||||||
|
* information necessary to model the schema and preserve semantics. Instead
|
||||||
|
* make use of FileDescriptorSet which preserves the necessary information.
|
||||||
|
*
|
||||||
* @generated from protobuf message google.protobuf.Field
|
* @generated from protobuf message google.protobuf.Field
|
||||||
*/
|
*/
|
||||||
export interface Field {
|
export interface Field {
|
||||||
@@ -310,6 +326,11 @@ export enum Field_Cardinality {
|
|||||||
/**
|
/**
|
||||||
* Enum type definition.
|
* Enum type definition.
|
||||||
*
|
*
|
||||||
|
* New usages of this message as an alternative to EnumDescriptorProto are
|
||||||
|
* strongly discouraged. This message does not reliability preserve all
|
||||||
|
* information necessary to model the schema and preserve semantics. Instead
|
||||||
|
* make use of FileDescriptorSet which preserves the necessary information.
|
||||||
|
*
|
||||||
* @generated from protobuf message google.protobuf.Enum
|
* @generated from protobuf message google.protobuf.Enum
|
||||||
*/
|
*/
|
||||||
export interface Enum {
|
export interface Enum {
|
||||||
@@ -343,10 +364,21 @@ export interface Enum {
|
|||||||
* @generated from protobuf field: google.protobuf.Syntax syntax = 5
|
* @generated from protobuf field: google.protobuf.Syntax syntax = 5
|
||||||
*/
|
*/
|
||||||
syntax: Syntax;
|
syntax: Syntax;
|
||||||
|
/**
|
||||||
|
* The source edition string, only valid when syntax is SYNTAX_EDITIONS.
|
||||||
|
*
|
||||||
|
* @generated from protobuf field: string edition = 6
|
||||||
|
*/
|
||||||
|
edition: string;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Enum value definition.
|
* Enum value definition.
|
||||||
*
|
*
|
||||||
|
* New usages of this message as an alternative to EnumValueDescriptorProto are
|
||||||
|
* strongly discouraged. This message does not reliability preserve all
|
||||||
|
* information necessary to model the schema and preserve semantics. Instead
|
||||||
|
* make use of FileDescriptorSet which preserves the necessary information.
|
||||||
|
*
|
||||||
* @generated from protobuf message google.protobuf.EnumValue
|
* @generated from protobuf message google.protobuf.EnumValue
|
||||||
*/
|
*/
|
||||||
export interface EnumValue {
|
export interface EnumValue {
|
||||||
@@ -373,6 +405,10 @@ export interface EnumValue {
|
|||||||
* A protocol buffer option, which can be attached to a message, field,
|
* A protocol buffer option, which can be attached to a message, field,
|
||||||
* enumeration, etc.
|
* enumeration, etc.
|
||||||
*
|
*
|
||||||
|
* New usages of this message as an alternative to FileOptions, MessageOptions,
|
||||||
|
* FieldOptions, EnumOptions, EnumValueOptions, ServiceOptions, or MethodOptions
|
||||||
|
* are strongly discouraged.
|
||||||
|
*
|
||||||
* @generated from protobuf message google.protobuf.Option
|
* @generated from protobuf message google.protobuf.Option
|
||||||
*/
|
*/
|
||||||
export interface Option {
|
export interface Option {
|
||||||
@@ -412,7 +448,13 @@ export enum Syntax {
|
|||||||
*
|
*
|
||||||
* @generated from protobuf enum value: SYNTAX_PROTO3 = 1;
|
* @generated from protobuf enum value: SYNTAX_PROTO3 = 1;
|
||||||
*/
|
*/
|
||||||
PROTO3 = 1
|
PROTO3 = 1,
|
||||||
|
/**
|
||||||
|
* Syntax `editions`.
|
||||||
|
*
|
||||||
|
* @generated from protobuf enum value: SYNTAX_EDITIONS = 2;
|
||||||
|
*/
|
||||||
|
EDITIONS = 2
|
||||||
}
|
}
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
// @generated message type with reflection information, may provide speed optimized methods
|
||||||
class Type$Type extends MessageType<Type> {
|
class Type$Type extends MessageType<Type> {
|
||||||
@@ -423,7 +465,8 @@ class Type$Type extends MessageType<Type> {
|
|||||||
{ no: 3, name: "oneofs", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
{ no: 3, name: "oneofs", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||||
{ no: 4, name: "options", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Option },
|
{ no: 4, name: "options", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Option },
|
||||||
{ no: 5, name: "source_context", kind: "message", localName: "source_context", T: () => SourceContext },
|
{ no: 5, name: "source_context", kind: "message", localName: "source_context", T: () => SourceContext },
|
||||||
{ no: 6, name: "syntax", kind: "enum", T: () => ["google.protobuf.Syntax", Syntax, "SYNTAX_"] }
|
{ no: 6, name: "syntax", kind: "enum", T: () => ["google.protobuf.Syntax", Syntax, "SYNTAX_"] },
|
||||||
|
{ no: 7, name: "edition", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value?: PartialMessage<Type>): Type {
|
create(value?: PartialMessage<Type>): Type {
|
||||||
@@ -433,6 +476,7 @@ class Type$Type extends MessageType<Type> {
|
|||||||
message.oneofs = [];
|
message.oneofs = [];
|
||||||
message.options = [];
|
message.options = [];
|
||||||
message.syntax = 0;
|
message.syntax = 0;
|
||||||
|
message.edition = "";
|
||||||
if (value !== undefined)
|
if (value !== undefined)
|
||||||
reflectionMergePartial<Type>(this, message, value);
|
reflectionMergePartial<Type>(this, message, value);
|
||||||
return message;
|
return message;
|
||||||
@@ -460,6 +504,9 @@ class Type$Type extends MessageType<Type> {
|
|||||||
case /* google.protobuf.Syntax syntax */ 6:
|
case /* google.protobuf.Syntax syntax */ 6:
|
||||||
message.syntax = reader.int32();
|
message.syntax = reader.int32();
|
||||||
break;
|
break;
|
||||||
|
case /* string edition */ 7:
|
||||||
|
message.edition = reader.string();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -490,6 +537,9 @@ class Type$Type extends MessageType<Type> {
|
|||||||
/* google.protobuf.Syntax syntax = 6; */
|
/* google.protobuf.Syntax syntax = 6; */
|
||||||
if (message.syntax !== 0)
|
if (message.syntax !== 0)
|
||||||
writer.tag(6, WireType.Varint).int32(message.syntax);
|
writer.tag(6, WireType.Varint).int32(message.syntax);
|
||||||
|
/* string edition = 7; */
|
||||||
|
if (message.edition !== "")
|
||||||
|
writer.tag(7, WireType.LengthDelimited).string(message.edition);
|
||||||
let u = options.writeUnknownFields;
|
let u = options.writeUnknownFields;
|
||||||
if (u !== false)
|
if (u !== false)
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
@@ -627,7 +677,8 @@ class Enum$Type extends MessageType<Enum> {
|
|||||||
{ no: 2, name: "enumvalue", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => EnumValue },
|
{ no: 2, name: "enumvalue", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => EnumValue },
|
||||||
{ no: 3, name: "options", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Option },
|
{ no: 3, name: "options", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Option },
|
||||||
{ no: 4, name: "source_context", kind: "message", localName: "source_context", T: () => SourceContext },
|
{ no: 4, name: "source_context", kind: "message", localName: "source_context", T: () => SourceContext },
|
||||||
{ no: 5, name: "syntax", kind: "enum", T: () => ["google.protobuf.Syntax", Syntax, "SYNTAX_"] }
|
{ no: 5, name: "syntax", kind: "enum", T: () => ["google.protobuf.Syntax", Syntax, "SYNTAX_"] },
|
||||||
|
{ no: 6, name: "edition", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value?: PartialMessage<Enum>): Enum {
|
create(value?: PartialMessage<Enum>): Enum {
|
||||||
@@ -636,6 +687,7 @@ class Enum$Type extends MessageType<Enum> {
|
|||||||
message.enumvalue = [];
|
message.enumvalue = [];
|
||||||
message.options = [];
|
message.options = [];
|
||||||
message.syntax = 0;
|
message.syntax = 0;
|
||||||
|
message.edition = "";
|
||||||
if (value !== undefined)
|
if (value !== undefined)
|
||||||
reflectionMergePartial<Enum>(this, message, value);
|
reflectionMergePartial<Enum>(this, message, value);
|
||||||
return message;
|
return message;
|
||||||
@@ -660,6 +712,9 @@ class Enum$Type extends MessageType<Enum> {
|
|||||||
case /* google.protobuf.Syntax syntax */ 5:
|
case /* google.protobuf.Syntax syntax */ 5:
|
||||||
message.syntax = reader.int32();
|
message.syntax = reader.int32();
|
||||||
break;
|
break;
|
||||||
|
case /* string edition */ 6:
|
||||||
|
message.edition = reader.string();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -687,6 +742,9 @@ class Enum$Type extends MessageType<Enum> {
|
|||||||
/* google.protobuf.Syntax syntax = 5; */
|
/* google.protobuf.Syntax syntax = 5; */
|
||||||
if (message.syntax !== 0)
|
if (message.syntax !== 0)
|
||||||
writer.tag(5, WireType.Varint).int32(message.syntax);
|
writer.tag(5, WireType.Varint).int32(message.syntax);
|
||||||
|
/* string edition = 6; */
|
||||||
|
if (message.edition !== "")
|
||||||
|
writer.tag(6, WireType.LengthDelimited).string(message.edition);
|
||||||
let u = options.writeUnknownFields;
|
let u = options.writeUnknownFields;
|
||||||
if (u !== false)
|
if (u !== false)
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
|
|||||||
@@ -32,11 +32,17 @@
|
|||||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
//
|
//
|
||||||
|
// Wrappers for primitive (non-message) types. These types were needed
|
||||||
|
// for legacy reasons and are not recommended for use in new APIs.
|
||||||
//
|
//
|
||||||
// Wrappers for primitive (non-message) types. These types are useful
|
// Historically these wrappers were useful to have presence on proto3 primitive
|
||||||
// for embedding primitives in the `google.protobuf.Any` type and for places
|
// fields, but proto3 syntax has been updated to support the `optional` keyword.
|
||||||
// where we need to distinguish between the absence of a primitive
|
// Using that keyword is now the strongly preferred way to add presence to
|
||||||
// typed field and its default value.
|
// proto3 primitive fields.
|
||||||
|
//
|
||||||
|
// A secondary usecase was to embed primitives in the `google.protobuf.Any`
|
||||||
|
// type: it is now recommended that you embed your value in your own wrapper
|
||||||
|
// message which can be specifically documented.
|
||||||
//
|
//
|
||||||
// These wrappers have no meaningful use within repeated fields as they lack
|
// These wrappers have no meaningful use within repeated fields as they lack
|
||||||
// the ability to detect presence on individual elements.
|
// the ability to detect presence on individual elements.
|
||||||
@@ -62,6 +68,9 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|||||||
*
|
*
|
||||||
* The JSON representation for `DoubleValue` is JSON number.
|
* The JSON representation for `DoubleValue` is JSON number.
|
||||||
*
|
*
|
||||||
|
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
||||||
|
* has no plan to be removed.
|
||||||
|
*
|
||||||
* @generated from protobuf message google.protobuf.DoubleValue
|
* @generated from protobuf message google.protobuf.DoubleValue
|
||||||
*/
|
*/
|
||||||
export interface DoubleValue {
|
export interface DoubleValue {
|
||||||
@@ -77,6 +86,9 @@ export interface DoubleValue {
|
|||||||
*
|
*
|
||||||
* The JSON representation for `FloatValue` is JSON number.
|
* The JSON representation for `FloatValue` is JSON number.
|
||||||
*
|
*
|
||||||
|
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
||||||
|
* has no plan to be removed.
|
||||||
|
*
|
||||||
* @generated from protobuf message google.protobuf.FloatValue
|
* @generated from protobuf message google.protobuf.FloatValue
|
||||||
*/
|
*/
|
||||||
export interface FloatValue {
|
export interface FloatValue {
|
||||||
@@ -92,6 +104,9 @@ export interface FloatValue {
|
|||||||
*
|
*
|
||||||
* The JSON representation for `Int64Value` is JSON string.
|
* The JSON representation for `Int64Value` is JSON string.
|
||||||
*
|
*
|
||||||
|
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
||||||
|
* has no plan to be removed.
|
||||||
|
*
|
||||||
* @generated from protobuf message google.protobuf.Int64Value
|
* @generated from protobuf message google.protobuf.Int64Value
|
||||||
*/
|
*/
|
||||||
export interface Int64Value {
|
export interface Int64Value {
|
||||||
@@ -107,6 +122,9 @@ export interface Int64Value {
|
|||||||
*
|
*
|
||||||
* The JSON representation for `UInt64Value` is JSON string.
|
* The JSON representation for `UInt64Value` is JSON string.
|
||||||
*
|
*
|
||||||
|
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
||||||
|
* has no plan to be removed.
|
||||||
|
*
|
||||||
* @generated from protobuf message google.protobuf.UInt64Value
|
* @generated from protobuf message google.protobuf.UInt64Value
|
||||||
*/
|
*/
|
||||||
export interface UInt64Value {
|
export interface UInt64Value {
|
||||||
@@ -122,6 +140,9 @@ export interface UInt64Value {
|
|||||||
*
|
*
|
||||||
* The JSON representation for `Int32Value` is JSON number.
|
* The JSON representation for `Int32Value` is JSON number.
|
||||||
*
|
*
|
||||||
|
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
||||||
|
* has no plan to be removed.
|
||||||
|
*
|
||||||
* @generated from protobuf message google.protobuf.Int32Value
|
* @generated from protobuf message google.protobuf.Int32Value
|
||||||
*/
|
*/
|
||||||
export interface Int32Value {
|
export interface Int32Value {
|
||||||
@@ -137,6 +158,9 @@ export interface Int32Value {
|
|||||||
*
|
*
|
||||||
* The JSON representation for `UInt32Value` is JSON number.
|
* The JSON representation for `UInt32Value` is JSON number.
|
||||||
*
|
*
|
||||||
|
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
||||||
|
* has no plan to be removed.
|
||||||
|
*
|
||||||
* @generated from protobuf message google.protobuf.UInt32Value
|
* @generated from protobuf message google.protobuf.UInt32Value
|
||||||
*/
|
*/
|
||||||
export interface UInt32Value {
|
export interface UInt32Value {
|
||||||
@@ -152,6 +176,9 @@ export interface UInt32Value {
|
|||||||
*
|
*
|
||||||
* The JSON representation for `BoolValue` is JSON `true` and `false`.
|
* The JSON representation for `BoolValue` is JSON `true` and `false`.
|
||||||
*
|
*
|
||||||
|
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
||||||
|
* has no plan to be removed.
|
||||||
|
*
|
||||||
* @generated from protobuf message google.protobuf.BoolValue
|
* @generated from protobuf message google.protobuf.BoolValue
|
||||||
*/
|
*/
|
||||||
export interface BoolValue {
|
export interface BoolValue {
|
||||||
@@ -167,6 +194,9 @@ export interface BoolValue {
|
|||||||
*
|
*
|
||||||
* The JSON representation for `StringValue` is JSON string.
|
* The JSON representation for `StringValue` is JSON string.
|
||||||
*
|
*
|
||||||
|
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
||||||
|
* has no plan to be removed.
|
||||||
|
*
|
||||||
* @generated from protobuf message google.protobuf.StringValue
|
* @generated from protobuf message google.protobuf.StringValue
|
||||||
*/
|
*/
|
||||||
export interface StringValue {
|
export interface StringValue {
|
||||||
@@ -182,6 +212,9 @@ export interface StringValue {
|
|||||||
*
|
*
|
||||||
* The JSON representation for `BytesValue` is JSON string.
|
* The JSON representation for `BytesValue` is JSON string.
|
||||||
*
|
*
|
||||||
|
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
||||||
|
* has no plan to be removed.
|
||||||
|
*
|
||||||
* @generated from protobuf message google.protobuf.BytesValue
|
* @generated from protobuf message google.protobuf.BytesValue
|
||||||
*/
|
*/
|
||||||
export interface BytesValue {
|
export interface BytesValue {
|
||||||
|
|||||||
2
index.ts
2
index.ts
@@ -19,8 +19,6 @@
|
|||||||
export * from './viz-project-settings'
|
export * from './viz-project-settings'
|
||||||
export * from './viz-tab.client'
|
export * from './viz-tab.client'
|
||||||
export * from './viz-tab'
|
export * from './viz-tab'
|
||||||
export * from './viz-translations.client'
|
|
||||||
export * from './viz-translations'
|
|
||||||
export * from './viz-user-settings.client'
|
export * from './viz-user-settings.client'
|
||||||
export * from './viz-user-settings'
|
export * from './viz-user-settings'
|
||||||
export * from './viz-view.client'
|
export * from './viz-view.client'
|
||||||
|
|||||||
692
openapiv2.ts
692
openapiv2.ts
@@ -22,7 +22,7 @@ import { Value } from "./google/protobuf/struct";
|
|||||||
* info: {
|
* info: {
|
||||||
* title: "Echo API";
|
* title: "Echo API";
|
||||||
* version: "1.0";
|
* version: "1.0";
|
||||||
* description: ";
|
* description: "";
|
||||||
* contact: {
|
* contact: {
|
||||||
* name: "gRPC-Gateway project";
|
* name: "gRPC-Gateway project";
|
||||||
* url: "https://github.com/grpc-ecosystem/grpc-gateway";
|
* url: "https://github.com/grpc-ecosystem/grpc-gateway";
|
||||||
@@ -30,7 +30,7 @@ import { Value } from "./google/protobuf/struct";
|
|||||||
* };
|
* };
|
||||||
* license: {
|
* license: {
|
||||||
* name: "BSD 3-Clause License";
|
* name: "BSD 3-Clause License";
|
||||||
* url: "https://github.com/grpc-ecosystem/grpc-gateway/blob/master/LICENSE.txt";
|
* url: "https://github.com/grpc-ecosystem/grpc-gateway/blob/main/LICENSE";
|
||||||
* };
|
* };
|
||||||
* };
|
* };
|
||||||
* schemes: HTTPS;
|
* schemes: HTTPS;
|
||||||
@@ -128,6 +128,13 @@ export interface Swagger {
|
|||||||
* @generated from protobuf field: repeated grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12
|
* @generated from protobuf field: repeated grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12
|
||||||
*/
|
*/
|
||||||
security: SecurityRequirement[];
|
security: SecurityRequirement[];
|
||||||
|
/**
|
||||||
|
* A list of tags for API documentation control. Tags can be used for logical
|
||||||
|
* grouping of operations by resources or any other qualifier.
|
||||||
|
*
|
||||||
|
* @generated from protobuf field: repeated grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13
|
||||||
|
*/
|
||||||
|
tags: Tag[];
|
||||||
/**
|
/**
|
||||||
* Additional external documentation.
|
* Additional external documentation.
|
||||||
*
|
*
|
||||||
@@ -135,6 +142,10 @@ export interface Swagger {
|
|||||||
*/
|
*/
|
||||||
external_docs?: ExternalDocumentation;
|
external_docs?: ExternalDocumentation;
|
||||||
/**
|
/**
|
||||||
|
* Custom properties that start with "x-" such as "x-foo" used to describe
|
||||||
|
* extra functionality that is not covered by the standard OpenAPI Specification.
|
||||||
|
* See: https://swagger.io/docs/specification/2-0/swagger-extensions/
|
||||||
|
*
|
||||||
* @generated from protobuf field: map<string, google.protobuf.Value> extensions = 15
|
* @generated from protobuf field: map<string, google.protobuf.Value> extensions = 15
|
||||||
*/
|
*/
|
||||||
extensions: {
|
extensions: {
|
||||||
@@ -258,11 +269,108 @@ export interface Operation {
|
|||||||
*/
|
*/
|
||||||
security: SecurityRequirement[];
|
security: SecurityRequirement[];
|
||||||
/**
|
/**
|
||||||
|
* Custom properties that start with "x-" such as "x-foo" used to describe
|
||||||
|
* extra functionality that is not covered by the standard OpenAPI Specification.
|
||||||
|
* See: https://swagger.io/docs/specification/2-0/swagger-extensions/
|
||||||
|
*
|
||||||
* @generated from protobuf field: map<string, google.protobuf.Value> extensions = 13
|
* @generated from protobuf field: map<string, google.protobuf.Value> extensions = 13
|
||||||
*/
|
*/
|
||||||
extensions: {
|
extensions: {
|
||||||
[key: string]: Value;
|
[key: string]: Value;
|
||||||
};
|
};
|
||||||
|
/**
|
||||||
|
* Custom parameters such as HTTP request headers.
|
||||||
|
* See: https://swagger.io/docs/specification/2-0/describing-parameters/
|
||||||
|
* and https://swagger.io/specification/v2/#parameter-object.
|
||||||
|
*
|
||||||
|
* @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.Parameters parameters = 14
|
||||||
|
*/
|
||||||
|
parameters?: Parameters;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* `Parameters` is a representation of OpenAPI v2 specification's parameters object.
|
||||||
|
* Note: This technically breaks compatibility with the OpenAPI 2 definition structure as we only
|
||||||
|
* allow header parameters to be set here since we do not want users specifying custom non-header
|
||||||
|
* parameters beyond those inferred from the Protobuf schema.
|
||||||
|
* See: https://swagger.io/specification/v2/#parameter-object
|
||||||
|
*
|
||||||
|
* @generated from protobuf message grpc.gateway.protoc_gen_openapiv2.options.Parameters
|
||||||
|
*/
|
||||||
|
export interface Parameters {
|
||||||
|
/**
|
||||||
|
* `Headers` is one or more HTTP header parameter.
|
||||||
|
* See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
|
||||||
|
*
|
||||||
|
* @generated from protobuf field: repeated grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1
|
||||||
|
*/
|
||||||
|
headers: HeaderParameter[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* `HeaderParameter` a HTTP header parameter.
|
||||||
|
* See: https://swagger.io/specification/v2/#parameter-object
|
||||||
|
*
|
||||||
|
* @generated from protobuf message grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter
|
||||||
|
*/
|
||||||
|
export interface HeaderParameter {
|
||||||
|
/**
|
||||||
|
* `Name` is the header name.
|
||||||
|
*
|
||||||
|
* @generated from protobuf field: string name = 1
|
||||||
|
*/
|
||||||
|
name: string;
|
||||||
|
/**
|
||||||
|
* `Description` is a short description of the header.
|
||||||
|
*
|
||||||
|
* @generated from protobuf field: string description = 2
|
||||||
|
*/
|
||||||
|
description: string;
|
||||||
|
/**
|
||||||
|
* `Type` is the type of the object. The value MUST be one of "string", "number", "integer", or "boolean". The "array" type is not supported.
|
||||||
|
* See: https://swagger.io/specification/v2/#parameterType.
|
||||||
|
*
|
||||||
|
* @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type type = 3
|
||||||
|
*/
|
||||||
|
type: HeaderParameter_Type;
|
||||||
|
/**
|
||||||
|
* `Format` The extending format for the previously mentioned type.
|
||||||
|
*
|
||||||
|
* @generated from protobuf field: string format = 4
|
||||||
|
*/
|
||||||
|
format: string;
|
||||||
|
/**
|
||||||
|
* `Required` indicates if the header is optional
|
||||||
|
*
|
||||||
|
* @generated from protobuf field: bool required = 5
|
||||||
|
*/
|
||||||
|
required: boolean;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* `Type` is a supported HTTP header type.
|
||||||
|
* See https://swagger.io/specification/v2/#parameterType.
|
||||||
|
*
|
||||||
|
* @generated from protobuf enum grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type
|
||||||
|
*/
|
||||||
|
export enum HeaderParameter_Type {
|
||||||
|
/**
|
||||||
|
* @generated from protobuf enum value: UNKNOWN = 0;
|
||||||
|
*/
|
||||||
|
UNKNOWN = 0,
|
||||||
|
/**
|
||||||
|
* @generated from protobuf enum value: STRING = 1;
|
||||||
|
*/
|
||||||
|
STRING = 1,
|
||||||
|
/**
|
||||||
|
* @generated from protobuf enum value: NUMBER = 2;
|
||||||
|
*/
|
||||||
|
NUMBER = 2,
|
||||||
|
/**
|
||||||
|
* @generated from protobuf enum value: INTEGER = 3;
|
||||||
|
*/
|
||||||
|
INTEGER = 3,
|
||||||
|
/**
|
||||||
|
* @generated from protobuf enum value: BOOLEAN = 4;
|
||||||
|
*/
|
||||||
|
BOOLEAN = 4
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* `Header` is a representation of OpenAPI v2 specification's Header object.
|
* `Header` is a representation of OpenAPI v2 specification's Header object.
|
||||||
@@ -349,6 +457,10 @@ export interface Response {
|
|||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
|
* Custom properties that start with "x-" such as "x-foo" used to describe
|
||||||
|
* extra functionality that is not covered by the standard OpenAPI Specification.
|
||||||
|
* See: https://swagger.io/docs/specification/2-0/swagger-extensions/
|
||||||
|
*
|
||||||
* @generated from protobuf field: map<string, google.protobuf.Value> extensions = 5
|
* @generated from protobuf field: map<string, google.protobuf.Value> extensions = 5
|
||||||
*/
|
*/
|
||||||
extensions: {
|
extensions: {
|
||||||
@@ -366,7 +478,7 @@ export interface Response {
|
|||||||
* info: {
|
* info: {
|
||||||
* title: "Echo API";
|
* title: "Echo API";
|
||||||
* version: "1.0";
|
* version: "1.0";
|
||||||
* description: ";
|
* description: "";
|
||||||
* contact: {
|
* contact: {
|
||||||
* name: "gRPC-Gateway project";
|
* name: "gRPC-Gateway project";
|
||||||
* url: "https://github.com/grpc-ecosystem/grpc-gateway";
|
* url: "https://github.com/grpc-ecosystem/grpc-gateway";
|
||||||
@@ -374,7 +486,7 @@ export interface Response {
|
|||||||
* };
|
* };
|
||||||
* license: {
|
* license: {
|
||||||
* name: "BSD 3-Clause License";
|
* name: "BSD 3-Clause License";
|
||||||
* url: "https://github.com/grpc-ecosystem/grpc-gateway/blob/master/LICENSE.txt";
|
* url: "https://github.com/grpc-ecosystem/grpc-gateway/blob/main/LICENSE";
|
||||||
* };
|
* };
|
||||||
* };
|
* };
|
||||||
* ...
|
* ...
|
||||||
@@ -423,6 +535,10 @@ export interface Info {
|
|||||||
*/
|
*/
|
||||||
version: string;
|
version: string;
|
||||||
/**
|
/**
|
||||||
|
* Custom properties that start with "x-" such as "x-foo" used to describe
|
||||||
|
* extra functionality that is not covered by the standard OpenAPI Specification.
|
||||||
|
* See: https://swagger.io/docs/specification/2-0/swagger-extensions/
|
||||||
|
*
|
||||||
* @generated from protobuf field: map<string, google.protobuf.Value> extensions = 7
|
* @generated from protobuf field: map<string, google.protobuf.Value> extensions = 7
|
||||||
*/
|
*/
|
||||||
extensions: {
|
extensions: {
|
||||||
@@ -486,7 +602,7 @@ export interface Contact {
|
|||||||
* ...
|
* ...
|
||||||
* license: {
|
* license: {
|
||||||
* name: "BSD 3-Clause License";
|
* name: "BSD 3-Clause License";
|
||||||
* url: "https://github.com/grpc-ecosystem/grpc-gateway/blob/master/LICENSE.txt";
|
* url: "https://github.com/grpc-ecosystem/grpc-gateway/blob/main/LICENSE";
|
||||||
* };
|
* };
|
||||||
* ...
|
* ...
|
||||||
* };
|
* };
|
||||||
@@ -593,6 +709,82 @@ export interface Schema {
|
|||||||
*/
|
*/
|
||||||
example: string;
|
example: string;
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* `EnumSchema` is subset of fields from the OpenAPI v2 specification's Schema object.
|
||||||
|
* Only fields that are applicable to Enums are included
|
||||||
|
* See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject
|
||||||
|
*
|
||||||
|
* Example:
|
||||||
|
*
|
||||||
|
* option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_enum) = {
|
||||||
|
* ...
|
||||||
|
* title: "MyEnum";
|
||||||
|
* description:"This is my nice enum";
|
||||||
|
* example: "ZERO";
|
||||||
|
* required: true;
|
||||||
|
* ...
|
||||||
|
* };
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @generated from protobuf message grpc.gateway.protoc_gen_openapiv2.options.EnumSchema
|
||||||
|
*/
|
||||||
|
export interface EnumSchema {
|
||||||
|
/**
|
||||||
|
* A short description of the schema.
|
||||||
|
*
|
||||||
|
* @generated from protobuf field: string description = 1
|
||||||
|
*/
|
||||||
|
description: string;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf field: string default = 2
|
||||||
|
*/
|
||||||
|
default: string;
|
||||||
|
/**
|
||||||
|
* The title of the schema.
|
||||||
|
*
|
||||||
|
* @generated from protobuf field: string title = 3
|
||||||
|
*/
|
||||||
|
title: string;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf field: bool required = 4
|
||||||
|
*/
|
||||||
|
required: boolean;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf field: bool read_only = 5
|
||||||
|
*/
|
||||||
|
read_only: boolean;
|
||||||
|
/**
|
||||||
|
* Additional external documentation for this schema.
|
||||||
|
*
|
||||||
|
* @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 6
|
||||||
|
*/
|
||||||
|
external_docs?: ExternalDocumentation;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf field: string example = 7
|
||||||
|
*/
|
||||||
|
example: string;
|
||||||
|
/**
|
||||||
|
* Ref is used to define an external reference to include in the message.
|
||||||
|
* This could be a fully qualified proto message reference, and that type must
|
||||||
|
* be imported into the protofile. If no message is identified, the Ref will
|
||||||
|
* be used verbatim in the output.
|
||||||
|
* For example:
|
||||||
|
* `ref: ".google.protobuf.Timestamp"`.
|
||||||
|
*
|
||||||
|
* @generated from protobuf field: string ref = 8
|
||||||
|
*/
|
||||||
|
ref: string;
|
||||||
|
/**
|
||||||
|
* Custom properties that start with "x-" such as "x-foo" used to describe
|
||||||
|
* extra functionality that is not covered by the standard OpenAPI Specification.
|
||||||
|
* See: https://swagger.io/docs/specification/2-0/swagger-extensions/
|
||||||
|
*
|
||||||
|
* @generated from protobuf field: map<string, google.protobuf.Value> extensions = 9
|
||||||
|
*/
|
||||||
|
extensions: {
|
||||||
|
[key: string]: Value;
|
||||||
|
};
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* `JSONSchema` represents properties from JSON Schema taken, and as used, in
|
* `JSONSchema` represents properties from JSON Schema taken, and as used, in
|
||||||
* the OpenAPI v2 spec.
|
* the OpenAPI v2 spec.
|
||||||
@@ -617,9 +809,8 @@ export interface Schema {
|
|||||||
*
|
*
|
||||||
* // Id represents the message identifier.
|
* // Id represents the message identifier.
|
||||||
* string id = 1; [
|
* string id = 1; [
|
||||||
* The unique identifier of the simple message.
|
|
||||||
* (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
* (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||||
* {description: "The unique identifier of the simple message."
|
* description: "The unique identifier of the simple message."
|
||||||
* }];
|
* }];
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
@@ -750,6 +941,46 @@ export interface JSONSchema {
|
|||||||
* @generated from protobuf field: repeated string enum = 46
|
* @generated from protobuf field: repeated string enum = 46
|
||||||
*/
|
*/
|
||||||
enum: string[];
|
enum: string[];
|
||||||
|
/**
|
||||||
|
* Additional field level properties used when generating the OpenAPI v2 file.
|
||||||
|
*
|
||||||
|
* @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001
|
||||||
|
*/
|
||||||
|
field_configuration?: JSONSchema_FieldConfiguration;
|
||||||
|
/**
|
||||||
|
* Custom properties that start with "x-" such as "x-foo" used to describe
|
||||||
|
* extra functionality that is not covered by the standard OpenAPI Specification.
|
||||||
|
* See: https://swagger.io/docs/specification/2-0/swagger-extensions/
|
||||||
|
*
|
||||||
|
* @generated from protobuf field: map<string, google.protobuf.Value> extensions = 48
|
||||||
|
*/
|
||||||
|
extensions: {
|
||||||
|
[key: string]: Value;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 'FieldConfiguration' provides additional field level properties used when generating the OpenAPI v2 file.
|
||||||
|
* These properties are not defined by OpenAPIv2, but they are used to control the generation.
|
||||||
|
*
|
||||||
|
* @generated from protobuf message grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration
|
||||||
|
*/
|
||||||
|
export interface JSONSchema_FieldConfiguration {
|
||||||
|
/**
|
||||||
|
* Alternative parameter name when used as path parameter. If set, this will
|
||||||
|
* be used as the complete parameter name when this field is used as a path
|
||||||
|
* parameter. Use this to avoid having auto generated path parameter names
|
||||||
|
* for overlapping paths.
|
||||||
|
*
|
||||||
|
* @generated from protobuf field: string path_param_name = 47
|
||||||
|
*/
|
||||||
|
path_param_name: string;
|
||||||
|
/**
|
||||||
|
* Declares this field to be deprecated. Allows for the generated OpenAPI
|
||||||
|
* parameter to be marked as deprecated without affecting the proto field.
|
||||||
|
*
|
||||||
|
* @generated from protobuf field: bool deprecated = 49
|
||||||
|
*/
|
||||||
|
deprecated: boolean;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf enum grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes
|
* @generated from protobuf enum grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes
|
||||||
@@ -797,6 +1028,14 @@ export enum JSONSchema_JSONSchemaSimpleTypes {
|
|||||||
* @generated from protobuf message grpc.gateway.protoc_gen_openapiv2.options.Tag
|
* @generated from protobuf message grpc.gateway.protoc_gen_openapiv2.options.Tag
|
||||||
*/
|
*/
|
||||||
export interface Tag {
|
export interface Tag {
|
||||||
|
/**
|
||||||
|
* The name of the tag. Use it to allow override of the name of a
|
||||||
|
* global Tag object, then use that name to reference the tag throughout the
|
||||||
|
* OpenAPI file.
|
||||||
|
*
|
||||||
|
* @generated from protobuf field: string name = 1
|
||||||
|
*/
|
||||||
|
name: string;
|
||||||
/**
|
/**
|
||||||
* A short description for the tag. GFM syntax can be used for rich text
|
* A short description for the tag. GFM syntax can be used for rich text
|
||||||
* representation.
|
* representation.
|
||||||
@@ -810,6 +1049,16 @@ export interface Tag {
|
|||||||
* @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3
|
* @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3
|
||||||
*/
|
*/
|
||||||
external_docs?: ExternalDocumentation;
|
external_docs?: ExternalDocumentation;
|
||||||
|
/**
|
||||||
|
* Custom properties that start with "x-" such as "x-foo" used to describe
|
||||||
|
* extra functionality that is not covered by the standard OpenAPI Specification.
|
||||||
|
* See: https://swagger.io/docs/specification/2-0/swagger-extensions/
|
||||||
|
*
|
||||||
|
* @generated from protobuf field: map<string, google.protobuf.Value> extensions = 4
|
||||||
|
*/
|
||||||
|
extensions: {
|
||||||
|
[key: string]: Value;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* `SecurityDefinitions` is a representation of OpenAPI v2 specification's
|
* `SecurityDefinitions` is a representation of OpenAPI v2 specification's
|
||||||
@@ -908,6 +1157,10 @@ export interface SecurityScheme {
|
|||||||
*/
|
*/
|
||||||
scopes?: Scopes;
|
scopes?: Scopes;
|
||||||
/**
|
/**
|
||||||
|
* Custom properties that start with "x-" such as "x-foo" used to describe
|
||||||
|
* extra functionality that is not covered by the standard OpenAPI Specification.
|
||||||
|
* See: https://swagger.io/docs/specification/2-0/swagger-extensions/
|
||||||
|
*
|
||||||
* @generated from protobuf field: map<string, google.protobuf.Value> extensions = 9
|
* @generated from protobuf field: map<string, google.protobuf.Value> extensions = 9
|
||||||
*/
|
*/
|
||||||
extensions: {
|
extensions: {
|
||||||
@@ -1088,6 +1341,7 @@ class Swagger$Type extends MessageType<Swagger> {
|
|||||||
{ no: 10, name: "responses", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => Response } },
|
{ no: 10, name: "responses", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => Response } },
|
||||||
{ no: 11, name: "security_definitions", kind: "message", localName: "security_definitions", T: () => SecurityDefinitions },
|
{ no: 11, name: "security_definitions", kind: "message", localName: "security_definitions", T: () => SecurityDefinitions },
|
||||||
{ no: 12, name: "security", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SecurityRequirement },
|
{ no: 12, name: "security", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SecurityRequirement },
|
||||||
|
{ no: 13, name: "tags", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Tag },
|
||||||
{ no: 14, name: "external_docs", kind: "message", localName: "external_docs", T: () => ExternalDocumentation },
|
{ no: 14, name: "external_docs", kind: "message", localName: "external_docs", T: () => ExternalDocumentation },
|
||||||
{ no: 15, name: "extensions", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => Value } }
|
{ no: 15, name: "extensions", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => Value } }
|
||||||
]);
|
]);
|
||||||
@@ -1102,6 +1356,7 @@ class Swagger$Type extends MessageType<Swagger> {
|
|||||||
message.produces = [];
|
message.produces = [];
|
||||||
message.responses = {};
|
message.responses = {};
|
||||||
message.security = [];
|
message.security = [];
|
||||||
|
message.tags = [];
|
||||||
message.extensions = {};
|
message.extensions = {};
|
||||||
if (value !== undefined)
|
if (value !== undefined)
|
||||||
reflectionMergePartial<Swagger>(this, message, value);
|
reflectionMergePartial<Swagger>(this, message, value);
|
||||||
@@ -1146,6 +1401,9 @@ class Swagger$Type extends MessageType<Swagger> {
|
|||||||
case /* repeated grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security */ 12:
|
case /* repeated grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security */ 12:
|
||||||
message.security.push(SecurityRequirement.internalBinaryRead(reader, reader.uint32(), options));
|
message.security.push(SecurityRequirement.internalBinaryRead(reader, reader.uint32(), options));
|
||||||
break;
|
break;
|
||||||
|
case /* repeated grpc.gateway.protoc_gen_openapiv2.options.Tag tags */ 13:
|
||||||
|
message.tags.push(Tag.internalBinaryRead(reader, reader.uint32(), options));
|
||||||
|
break;
|
||||||
case /* grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs */ 14:
|
case /* grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs */ 14:
|
||||||
message.external_docs = ExternalDocumentation.internalBinaryRead(reader, reader.uint32(), options, message.external_docs);
|
message.external_docs = ExternalDocumentation.internalBinaryRead(reader, reader.uint32(), options, message.external_docs);
|
||||||
break;
|
break;
|
||||||
@@ -1234,6 +1492,9 @@ class Swagger$Type extends MessageType<Swagger> {
|
|||||||
/* repeated grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */
|
/* repeated grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */
|
||||||
for (let i = 0; i < message.security.length; i++)
|
for (let i = 0; i < message.security.length; i++)
|
||||||
SecurityRequirement.internalBinaryWrite(message.security[i], writer.tag(12, WireType.LengthDelimited).fork(), options).join();
|
SecurityRequirement.internalBinaryWrite(message.security[i], writer.tag(12, WireType.LengthDelimited).fork(), options).join();
|
||||||
|
/* repeated grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13; */
|
||||||
|
for (let i = 0; i < message.tags.length; i++)
|
||||||
|
Tag.internalBinaryWrite(message.tags[i], writer.tag(13, WireType.LengthDelimited).fork(), options).join();
|
||||||
/* grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14; */
|
/* grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14; */
|
||||||
if (message.external_docs)
|
if (message.external_docs)
|
||||||
ExternalDocumentation.internalBinaryWrite(message.external_docs, writer.tag(14, WireType.LengthDelimited).fork(), options).join();
|
ExternalDocumentation.internalBinaryWrite(message.external_docs, writer.tag(14, WireType.LengthDelimited).fork(), options).join();
|
||||||
@@ -1269,7 +1530,8 @@ class Operation$Type extends MessageType<Operation> {
|
|||||||
{ no: 10, name: "schemes", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["grpc.gateway.protoc_gen_openapiv2.options.Scheme", Scheme] },
|
{ no: 10, name: "schemes", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["grpc.gateway.protoc_gen_openapiv2.options.Scheme", Scheme] },
|
||||||
{ no: 11, name: "deprecated", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
{ no: 11, name: "deprecated", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
||||||
{ no: 12, name: "security", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SecurityRequirement },
|
{ no: 12, name: "security", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SecurityRequirement },
|
||||||
{ no: 13, name: "extensions", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => Value } }
|
{ no: 13, name: "extensions", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => Value } },
|
||||||
|
{ no: 14, name: "parameters", kind: "message", T: () => Parameters }
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value?: PartialMessage<Operation>): Operation {
|
create(value?: PartialMessage<Operation>): Operation {
|
||||||
@@ -1334,6 +1596,9 @@ class Operation$Type extends MessageType<Operation> {
|
|||||||
case /* map<string, google.protobuf.Value> extensions */ 13:
|
case /* map<string, google.protobuf.Value> extensions */ 13:
|
||||||
this.binaryReadMap13(message.extensions, reader, options);
|
this.binaryReadMap13(message.extensions, reader, options);
|
||||||
break;
|
break;
|
||||||
|
case /* grpc.gateway.protoc_gen_openapiv2.options.Parameters parameters */ 14:
|
||||||
|
message.parameters = Parameters.internalBinaryRead(reader, reader.uint32(), options, message.parameters);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -1426,6 +1691,9 @@ class Operation$Type extends MessageType<Operation> {
|
|||||||
Value.internalBinaryWrite(message.extensions[k], writer, options);
|
Value.internalBinaryWrite(message.extensions[k], writer, options);
|
||||||
writer.join().join();
|
writer.join().join();
|
||||||
}
|
}
|
||||||
|
/* grpc.gateway.protoc_gen_openapiv2.options.Parameters parameters = 14; */
|
||||||
|
if (message.parameters)
|
||||||
|
Parameters.internalBinaryWrite(message.parameters, writer.tag(14, WireType.LengthDelimited).fork(), options).join();
|
||||||
let u = options.writeUnknownFields;
|
let u = options.writeUnknownFields;
|
||||||
if (u !== false)
|
if (u !== false)
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
@@ -1437,6 +1705,132 @@ class Operation$Type extends MessageType<Operation> {
|
|||||||
*/
|
*/
|
||||||
export const Operation = new Operation$Type();
|
export const Operation = new Operation$Type();
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
// @generated message type with reflection information, may provide speed optimized methods
|
||||||
|
class Parameters$Type extends MessageType<Parameters> {
|
||||||
|
constructor() {
|
||||||
|
super("grpc.gateway.protoc_gen_openapiv2.options.Parameters", [
|
||||||
|
{ no: 1, name: "headers", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => HeaderParameter }
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
create(value?: PartialMessage<Parameters>): Parameters {
|
||||||
|
const message = globalThis.Object.create((this.messagePrototype!));
|
||||||
|
message.headers = [];
|
||||||
|
if (value !== undefined)
|
||||||
|
reflectionMergePartial<Parameters>(this, message, value);
|
||||||
|
return message;
|
||||||
|
}
|
||||||
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Parameters): Parameters {
|
||||||
|
let message = target ?? this.create(), end = reader.pos + length;
|
||||||
|
while (reader.pos < end) {
|
||||||
|
let [fieldNo, wireType] = reader.tag();
|
||||||
|
switch (fieldNo) {
|
||||||
|
case /* repeated grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers */ 1:
|
||||||
|
message.headers.push(HeaderParameter.internalBinaryRead(reader, reader.uint32(), options));
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
let u = options.readUnknownField;
|
||||||
|
if (u === "throw")
|
||||||
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||||
|
let d = reader.skip(wireType);
|
||||||
|
if (u !== false)
|
||||||
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return message;
|
||||||
|
}
|
||||||
|
internalBinaryWrite(message: Parameters, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||||
|
/* repeated grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1; */
|
||||||
|
for (let i = 0; i < message.headers.length; i++)
|
||||||
|
HeaderParameter.internalBinaryWrite(message.headers[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||||
|
let u = options.writeUnknownFields;
|
||||||
|
if (u !== false)
|
||||||
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
|
return writer;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @generated MessageType for protobuf message grpc.gateway.protoc_gen_openapiv2.options.Parameters
|
||||||
|
*/
|
||||||
|
export const Parameters = new Parameters$Type();
|
||||||
|
// @generated message type with reflection information, may provide speed optimized methods
|
||||||
|
class HeaderParameter$Type extends MessageType<HeaderParameter> {
|
||||||
|
constructor() {
|
||||||
|
super("grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter", [
|
||||||
|
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||||
|
{ no: 2, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||||
|
{ no: 3, name: "type", kind: "enum", T: () => ["grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type", HeaderParameter_Type] },
|
||||||
|
{ no: 4, name: "format", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||||
|
{ no: 5, name: "required", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
create(value?: PartialMessage<HeaderParameter>): HeaderParameter {
|
||||||
|
const message = globalThis.Object.create((this.messagePrototype!));
|
||||||
|
message.name = "";
|
||||||
|
message.description = "";
|
||||||
|
message.type = 0;
|
||||||
|
message.format = "";
|
||||||
|
message.required = false;
|
||||||
|
if (value !== undefined)
|
||||||
|
reflectionMergePartial<HeaderParameter>(this, message, value);
|
||||||
|
return message;
|
||||||
|
}
|
||||||
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: HeaderParameter): HeaderParameter {
|
||||||
|
let message = target ?? this.create(), end = reader.pos + length;
|
||||||
|
while (reader.pos < end) {
|
||||||
|
let [fieldNo, wireType] = reader.tag();
|
||||||
|
switch (fieldNo) {
|
||||||
|
case /* string name */ 1:
|
||||||
|
message.name = reader.string();
|
||||||
|
break;
|
||||||
|
case /* string description */ 2:
|
||||||
|
message.description = reader.string();
|
||||||
|
break;
|
||||||
|
case /* grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type type */ 3:
|
||||||
|
message.type = reader.int32();
|
||||||
|
break;
|
||||||
|
case /* string format */ 4:
|
||||||
|
message.format = reader.string();
|
||||||
|
break;
|
||||||
|
case /* bool required */ 5:
|
||||||
|
message.required = reader.bool();
|
||||||
|
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: HeaderParameter, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||||
|
/* string name = 1; */
|
||||||
|
if (message.name !== "")
|
||||||
|
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
||||||
|
/* string description = 2; */
|
||||||
|
if (message.description !== "")
|
||||||
|
writer.tag(2, WireType.LengthDelimited).string(message.description);
|
||||||
|
/* grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type type = 3; */
|
||||||
|
if (message.type !== 0)
|
||||||
|
writer.tag(3, WireType.Varint).int32(message.type);
|
||||||
|
/* string format = 4; */
|
||||||
|
if (message.format !== "")
|
||||||
|
writer.tag(4, WireType.LengthDelimited).string(message.format);
|
||||||
|
/* bool required = 5; */
|
||||||
|
if (message.required !== false)
|
||||||
|
writer.tag(5, WireType.Varint).bool(message.required);
|
||||||
|
let u = options.writeUnknownFields;
|
||||||
|
if (u !== false)
|
||||||
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
|
return writer;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @generated MessageType for protobuf message grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter
|
||||||
|
*/
|
||||||
|
export const HeaderParameter = new HeaderParameter$Type();
|
||||||
|
// @generated message type with reflection information, may provide speed optimized methods
|
||||||
class Header$Type extends MessageType<Header> {
|
class Header$Type extends MessageType<Header> {
|
||||||
constructor() {
|
constructor() {
|
||||||
super("grpc.gateway.protoc_gen_openapiv2.options.Header", [
|
super("grpc.gateway.protoc_gen_openapiv2.options.Header", [
|
||||||
@@ -2013,6 +2407,136 @@ class Schema$Type extends MessageType<Schema> {
|
|||||||
*/
|
*/
|
||||||
export const Schema = new Schema$Type();
|
export const Schema = new Schema$Type();
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
// @generated message type with reflection information, may provide speed optimized methods
|
||||||
|
class EnumSchema$Type extends MessageType<EnumSchema> {
|
||||||
|
constructor() {
|
||||||
|
super("grpc.gateway.protoc_gen_openapiv2.options.EnumSchema", [
|
||||||
|
{ no: 1, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||||
|
{ no: 2, name: "default", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||||
|
{ no: 3, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||||
|
{ no: 4, name: "required", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
||||||
|
{ no: 5, name: "read_only", kind: "scalar", localName: "read_only", T: 8 /*ScalarType.BOOL*/ },
|
||||||
|
{ no: 6, name: "external_docs", kind: "message", localName: "external_docs", T: () => ExternalDocumentation },
|
||||||
|
{ no: 7, name: "example", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||||
|
{ no: 8, name: "ref", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||||
|
{ no: 9, name: "extensions", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => Value } }
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
create(value?: PartialMessage<EnumSchema>): EnumSchema {
|
||||||
|
const message = globalThis.Object.create((this.messagePrototype!));
|
||||||
|
message.description = "";
|
||||||
|
message.default = "";
|
||||||
|
message.title = "";
|
||||||
|
message.required = false;
|
||||||
|
message.read_only = false;
|
||||||
|
message.example = "";
|
||||||
|
message.ref = "";
|
||||||
|
message.extensions = {};
|
||||||
|
if (value !== undefined)
|
||||||
|
reflectionMergePartial<EnumSchema>(this, message, value);
|
||||||
|
return message;
|
||||||
|
}
|
||||||
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EnumSchema): EnumSchema {
|
||||||
|
let message = target ?? this.create(), end = reader.pos + length;
|
||||||
|
while (reader.pos < end) {
|
||||||
|
let [fieldNo, wireType] = reader.tag();
|
||||||
|
switch (fieldNo) {
|
||||||
|
case /* string description */ 1:
|
||||||
|
message.description = reader.string();
|
||||||
|
break;
|
||||||
|
case /* string default */ 2:
|
||||||
|
message.default = reader.string();
|
||||||
|
break;
|
||||||
|
case /* string title */ 3:
|
||||||
|
message.title = reader.string();
|
||||||
|
break;
|
||||||
|
case /* bool required */ 4:
|
||||||
|
message.required = reader.bool();
|
||||||
|
break;
|
||||||
|
case /* bool read_only */ 5:
|
||||||
|
message.read_only = reader.bool();
|
||||||
|
break;
|
||||||
|
case /* grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs */ 6:
|
||||||
|
message.external_docs = ExternalDocumentation.internalBinaryRead(reader, reader.uint32(), options, message.external_docs);
|
||||||
|
break;
|
||||||
|
case /* string example */ 7:
|
||||||
|
message.example = reader.string();
|
||||||
|
break;
|
||||||
|
case /* string ref */ 8:
|
||||||
|
message.ref = reader.string();
|
||||||
|
break;
|
||||||
|
case /* map<string, google.protobuf.Value> extensions */ 9:
|
||||||
|
this.binaryReadMap9(message.extensions, reader, options);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
let u = options.readUnknownField;
|
||||||
|
if (u === "throw")
|
||||||
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||||
|
let d = reader.skip(wireType);
|
||||||
|
if (u !== false)
|
||||||
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return message;
|
||||||
|
}
|
||||||
|
private binaryReadMap9(map: EnumSchema["extensions"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
||||||
|
let len = reader.uint32(), end = reader.pos + len, key: keyof EnumSchema["extensions"] | undefined, val: EnumSchema["extensions"][any] | undefined;
|
||||||
|
while (reader.pos < end) {
|
||||||
|
let [fieldNo, wireType] = reader.tag();
|
||||||
|
switch (fieldNo) {
|
||||||
|
case 1:
|
||||||
|
key = reader.string();
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
val = Value.internalBinaryRead(reader, reader.uint32(), options);
|
||||||
|
break;
|
||||||
|
default: throw new globalThis.Error("unknown map entry field for grpc.gateway.protoc_gen_openapiv2.options.EnumSchema.extensions");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
map[key ?? ""] = val ?? Value.create();
|
||||||
|
}
|
||||||
|
internalBinaryWrite(message: EnumSchema, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||||
|
/* string description = 1; */
|
||||||
|
if (message.description !== "")
|
||||||
|
writer.tag(1, WireType.LengthDelimited).string(message.description);
|
||||||
|
/* string default = 2; */
|
||||||
|
if (message.default !== "")
|
||||||
|
writer.tag(2, WireType.LengthDelimited).string(message.default);
|
||||||
|
/* string title = 3; */
|
||||||
|
if (message.title !== "")
|
||||||
|
writer.tag(3, WireType.LengthDelimited).string(message.title);
|
||||||
|
/* bool required = 4; */
|
||||||
|
if (message.required !== false)
|
||||||
|
writer.tag(4, WireType.Varint).bool(message.required);
|
||||||
|
/* bool read_only = 5; */
|
||||||
|
if (message.read_only !== false)
|
||||||
|
writer.tag(5, WireType.Varint).bool(message.read_only);
|
||||||
|
/* grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 6; */
|
||||||
|
if (message.external_docs)
|
||||||
|
ExternalDocumentation.internalBinaryWrite(message.external_docs, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
||||||
|
/* string example = 7; */
|
||||||
|
if (message.example !== "")
|
||||||
|
writer.tag(7, WireType.LengthDelimited).string(message.example);
|
||||||
|
/* string ref = 8; */
|
||||||
|
if (message.ref !== "")
|
||||||
|
writer.tag(8, WireType.LengthDelimited).string(message.ref);
|
||||||
|
/* map<string, google.protobuf.Value> extensions = 9; */
|
||||||
|
for (let k of globalThis.Object.keys(message.extensions)) {
|
||||||
|
writer.tag(9, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
||||||
|
writer.tag(2, WireType.LengthDelimited).fork();
|
||||||
|
Value.internalBinaryWrite(message.extensions[k], writer, options);
|
||||||
|
writer.join().join();
|
||||||
|
}
|
||||||
|
let u = options.writeUnknownFields;
|
||||||
|
if (u !== false)
|
||||||
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
|
return writer;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @generated MessageType for protobuf message grpc.gateway.protoc_gen_openapiv2.options.EnumSchema
|
||||||
|
*/
|
||||||
|
export const EnumSchema = new EnumSchema$Type();
|
||||||
|
// @generated message type with reflection information, may provide speed optimized methods
|
||||||
class JSONSchema$Type extends MessageType<JSONSchema> {
|
class JSONSchema$Type extends MessageType<JSONSchema> {
|
||||||
constructor() {
|
constructor() {
|
||||||
super("grpc.gateway.protoc_gen_openapiv2.options.JSONSchema", [
|
super("grpc.gateway.protoc_gen_openapiv2.options.JSONSchema", [
|
||||||
@@ -2039,7 +2563,9 @@ class JSONSchema$Type extends MessageType<JSONSchema> {
|
|||||||
{ no: 34, name: "array", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
{ no: 34, name: "array", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||||
{ no: 35, name: "type", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes", JSONSchema_JSONSchemaSimpleTypes] },
|
{ no: 35, name: "type", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes", JSONSchema_JSONSchemaSimpleTypes] },
|
||||||
{ no: 36, name: "format", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
{ no: 36, name: "format", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||||
{ no: 46, name: "enum", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
{ no: 46, name: "enum", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||||
|
{ no: 1001, name: "field_configuration", kind: "message", localName: "field_configuration", T: () => JSONSchema_FieldConfiguration },
|
||||||
|
{ no: 48, name: "extensions", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => Value } }
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value?: PartialMessage<JSONSchema>): JSONSchema {
|
create(value?: PartialMessage<JSONSchema>): JSONSchema {
|
||||||
@@ -2068,6 +2594,7 @@ class JSONSchema$Type extends MessageType<JSONSchema> {
|
|||||||
message.type = [];
|
message.type = [];
|
||||||
message.format = "";
|
message.format = "";
|
||||||
message.enum = [];
|
message.enum = [];
|
||||||
|
message.extensions = {};
|
||||||
if (value !== undefined)
|
if (value !== undefined)
|
||||||
reflectionMergePartial<JSONSchema>(this, message, value);
|
reflectionMergePartial<JSONSchema>(this, message, value);
|
||||||
return message;
|
return message;
|
||||||
@@ -2153,6 +2680,12 @@ class JSONSchema$Type extends MessageType<JSONSchema> {
|
|||||||
case /* repeated string enum */ 46:
|
case /* repeated string enum */ 46:
|
||||||
message.enum.push(reader.string());
|
message.enum.push(reader.string());
|
||||||
break;
|
break;
|
||||||
|
case /* grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration */ 1001:
|
||||||
|
message.field_configuration = JSONSchema_FieldConfiguration.internalBinaryRead(reader, reader.uint32(), options, message.field_configuration);
|
||||||
|
break;
|
||||||
|
case /* map<string, google.protobuf.Value> extensions */ 48:
|
||||||
|
this.binaryReadMap48(message.extensions, reader, options);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -2164,6 +2697,22 @@ class JSONSchema$Type extends MessageType<JSONSchema> {
|
|||||||
}
|
}
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
|
private binaryReadMap48(map: JSONSchema["extensions"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
||||||
|
let len = reader.uint32(), end = reader.pos + len, key: keyof JSONSchema["extensions"] | undefined, val: JSONSchema["extensions"][any] | undefined;
|
||||||
|
while (reader.pos < end) {
|
||||||
|
let [fieldNo, wireType] = reader.tag();
|
||||||
|
switch (fieldNo) {
|
||||||
|
case 1:
|
||||||
|
key = reader.string();
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
val = Value.internalBinaryRead(reader, reader.uint32(), options);
|
||||||
|
break;
|
||||||
|
default: throw new globalThis.Error("unknown map entry field for grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.extensions");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
map[key ?? ""] = val ?? Value.create();
|
||||||
|
}
|
||||||
internalBinaryWrite(message: JSONSchema, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
internalBinaryWrite(message: JSONSchema, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||||
/* string ref = 3; */
|
/* string ref = 3; */
|
||||||
if (message.ref !== "")
|
if (message.ref !== "")
|
||||||
@@ -2241,6 +2790,16 @@ class JSONSchema$Type extends MessageType<JSONSchema> {
|
|||||||
/* repeated string enum = 46; */
|
/* repeated string enum = 46; */
|
||||||
for (let i = 0; i < message.enum.length; i++)
|
for (let i = 0; i < message.enum.length; i++)
|
||||||
writer.tag(46, WireType.LengthDelimited).string(message.enum[i]);
|
writer.tag(46, WireType.LengthDelimited).string(message.enum[i]);
|
||||||
|
/* map<string, google.protobuf.Value> extensions = 48; */
|
||||||
|
for (let k of globalThis.Object.keys(message.extensions)) {
|
||||||
|
writer.tag(48, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
||||||
|
writer.tag(2, WireType.LengthDelimited).fork();
|
||||||
|
Value.internalBinaryWrite(message.extensions[k], writer, options);
|
||||||
|
writer.join().join();
|
||||||
|
}
|
||||||
|
/* grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001; */
|
||||||
|
if (message.field_configuration)
|
||||||
|
JSONSchema_FieldConfiguration.internalBinaryWrite(message.field_configuration, writer.tag(1001, WireType.LengthDelimited).fork(), options).join();
|
||||||
let u = options.writeUnknownFields;
|
let u = options.writeUnknownFields;
|
||||||
if (u !== false)
|
if (u !== false)
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
@@ -2252,30 +2811,31 @@ class JSONSchema$Type extends MessageType<JSONSchema> {
|
|||||||
*/
|
*/
|
||||||
export const JSONSchema = new JSONSchema$Type();
|
export const JSONSchema = new JSONSchema$Type();
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
// @generated message type with reflection information, may provide speed optimized methods
|
||||||
class Tag$Type extends MessageType<Tag> {
|
class JSONSchema_FieldConfiguration$Type extends MessageType<JSONSchema_FieldConfiguration> {
|
||||||
constructor() {
|
constructor() {
|
||||||
super("grpc.gateway.protoc_gen_openapiv2.options.Tag", [
|
super("grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration", [
|
||||||
{ no: 2, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
{ no: 47, name: "path_param_name", kind: "scalar", localName: "path_param_name", T: 9 /*ScalarType.STRING*/ },
|
||||||
{ no: 3, name: "external_docs", kind: "message", localName: "external_docs", T: () => ExternalDocumentation }
|
{ no: 49, name: "deprecated", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value?: PartialMessage<Tag>): Tag {
|
create(value?: PartialMessage<JSONSchema_FieldConfiguration>): JSONSchema_FieldConfiguration {
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
const message = globalThis.Object.create((this.messagePrototype!));
|
||||||
message.description = "";
|
message.path_param_name = "";
|
||||||
|
message.deprecated = false;
|
||||||
if (value !== undefined)
|
if (value !== undefined)
|
||||||
reflectionMergePartial<Tag>(this, message, value);
|
reflectionMergePartial<JSONSchema_FieldConfiguration>(this, message, value);
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Tag): Tag {
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: JSONSchema_FieldConfiguration): JSONSchema_FieldConfiguration {
|
||||||
let message = target ?? this.create(), end = reader.pos + length;
|
let message = target ?? this.create(), end = reader.pos + length;
|
||||||
while (reader.pos < end) {
|
while (reader.pos < end) {
|
||||||
let [fieldNo, wireType] = reader.tag();
|
let [fieldNo, wireType] = reader.tag();
|
||||||
switch (fieldNo) {
|
switch (fieldNo) {
|
||||||
case /* string description */ 2:
|
case /* string path_param_name */ 47:
|
||||||
message.description = reader.string();
|
message.path_param_name = reader.string();
|
||||||
break;
|
break;
|
||||||
case /* grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs */ 3:
|
case /* bool deprecated */ 49:
|
||||||
message.external_docs = ExternalDocumentation.internalBinaryRead(reader, reader.uint32(), options, message.external_docs);
|
message.deprecated = reader.bool();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
@@ -2288,13 +2848,103 @@ class Tag$Type extends MessageType<Tag> {
|
|||||||
}
|
}
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
|
internalBinaryWrite(message: JSONSchema_FieldConfiguration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||||
|
/* string path_param_name = 47; */
|
||||||
|
if (message.path_param_name !== "")
|
||||||
|
writer.tag(47, WireType.LengthDelimited).string(message.path_param_name);
|
||||||
|
/* bool deprecated = 49; */
|
||||||
|
if (message.deprecated !== false)
|
||||||
|
writer.tag(49, WireType.Varint).bool(message.deprecated);
|
||||||
|
let u = options.writeUnknownFields;
|
||||||
|
if (u !== false)
|
||||||
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
|
return writer;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @generated MessageType for protobuf message grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration
|
||||||
|
*/
|
||||||
|
export const JSONSchema_FieldConfiguration = new JSONSchema_FieldConfiguration$Type();
|
||||||
|
// @generated message type with reflection information, may provide speed optimized methods
|
||||||
|
class Tag$Type extends MessageType<Tag> {
|
||||||
|
constructor() {
|
||||||
|
super("grpc.gateway.protoc_gen_openapiv2.options.Tag", [
|
||||||
|
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||||
|
{ no: 2, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||||
|
{ no: 3, name: "external_docs", kind: "message", localName: "external_docs", T: () => ExternalDocumentation },
|
||||||
|
{ no: 4, name: "extensions", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => Value } }
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
create(value?: PartialMessage<Tag>): Tag {
|
||||||
|
const message = globalThis.Object.create((this.messagePrototype!));
|
||||||
|
message.name = "";
|
||||||
|
message.description = "";
|
||||||
|
message.extensions = {};
|
||||||
|
if (value !== undefined)
|
||||||
|
reflectionMergePartial<Tag>(this, message, value);
|
||||||
|
return message;
|
||||||
|
}
|
||||||
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Tag): Tag {
|
||||||
|
let message = target ?? this.create(), end = reader.pos + length;
|
||||||
|
while (reader.pos < end) {
|
||||||
|
let [fieldNo, wireType] = reader.tag();
|
||||||
|
switch (fieldNo) {
|
||||||
|
case /* string name */ 1:
|
||||||
|
message.name = reader.string();
|
||||||
|
break;
|
||||||
|
case /* string description */ 2:
|
||||||
|
message.description = reader.string();
|
||||||
|
break;
|
||||||
|
case /* grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs */ 3:
|
||||||
|
message.external_docs = ExternalDocumentation.internalBinaryRead(reader, reader.uint32(), options, message.external_docs);
|
||||||
|
break;
|
||||||
|
case /* map<string, google.protobuf.Value> extensions */ 4:
|
||||||
|
this.binaryReadMap4(message.extensions, reader, options);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
let u = options.readUnknownField;
|
||||||
|
if (u === "throw")
|
||||||
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||||
|
let d = reader.skip(wireType);
|
||||||
|
if (u !== false)
|
||||||
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return message;
|
||||||
|
}
|
||||||
|
private binaryReadMap4(map: Tag["extensions"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
||||||
|
let len = reader.uint32(), end = reader.pos + len, key: keyof Tag["extensions"] | undefined, val: Tag["extensions"][any] | undefined;
|
||||||
|
while (reader.pos < end) {
|
||||||
|
let [fieldNo, wireType] = reader.tag();
|
||||||
|
switch (fieldNo) {
|
||||||
|
case 1:
|
||||||
|
key = reader.string();
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
val = Value.internalBinaryRead(reader, reader.uint32(), options);
|
||||||
|
break;
|
||||||
|
default: throw new globalThis.Error("unknown map entry field for grpc.gateway.protoc_gen_openapiv2.options.Tag.extensions");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
map[key ?? ""] = val ?? Value.create();
|
||||||
|
}
|
||||||
internalBinaryWrite(message: Tag, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
internalBinaryWrite(message: Tag, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||||
|
/* string name = 1; */
|
||||||
|
if (message.name !== "")
|
||||||
|
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
||||||
/* string description = 2; */
|
/* string description = 2; */
|
||||||
if (message.description !== "")
|
if (message.description !== "")
|
||||||
writer.tag(2, WireType.LengthDelimited).string(message.description);
|
writer.tag(2, WireType.LengthDelimited).string(message.description);
|
||||||
/* grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; */
|
/* grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; */
|
||||||
if (message.external_docs)
|
if (message.external_docs)
|
||||||
ExternalDocumentation.internalBinaryWrite(message.external_docs, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
ExternalDocumentation.internalBinaryWrite(message.external_docs, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||||
|
/* map<string, google.protobuf.Value> extensions = 4; */
|
||||||
|
for (let k of globalThis.Object.keys(message.extensions)) {
|
||||||
|
writer.tag(4, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
||||||
|
writer.tag(2, WireType.LengthDelimited).fork();
|
||||||
|
Value.internalBinaryWrite(message.extensions[k], writer, options);
|
||||||
|
writer.join().join();
|
||||||
|
}
|
||||||
let u = options.writeUnknownFields;
|
let u = options.writeUnknownFields;
|
||||||
if (u !== false)
|
if (u !== false)
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@reflex-platform/npm-viz-sdk",
|
"name": "@reflex-platform/npm-viz-sdk",
|
||||||
"version": "1.12.0-SNAPSHOT-250825131217",
|
"version": "1.13.2",
|
||||||
"description": "npm libs from visibility model proto files",
|
"description": "npm libs from visibility model proto files",
|
||||||
"homepage": "",
|
"homepage": "",
|
||||||
"main": "index.ts",
|
"main": "index.ts",
|
||||||
|
|||||||
@@ -4,16 +4,6 @@
|
|||||||
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
||||||
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
||||||
import { ComposedFieldService } from "./viz-composed-field";
|
import { ComposedFieldService } from "./viz-composed-field";
|
||||||
import type { ListSiteComposedFieldResult } from "./viz-composed-field";
|
|
||||||
import type { ListSiteComposedFieldRequest } from "./viz-composed-field";
|
|
||||||
import type { DeleteSiteComposedFieldResult } from "./viz-composed-field";
|
|
||||||
import type { DeleteSiteComposedFieldRequest } from "./viz-composed-field";
|
|
||||||
import type { UpdateSiteComposedFieldResult } from "./viz-composed-field";
|
|
||||||
import type { UpdateSiteComposedFieldRequest } from "./viz-composed-field";
|
|
||||||
import type { CreateSiteComposedFieldResult } from "./viz-composed-field";
|
|
||||||
import type { CreateSiteComposedFieldRequest } from "./viz-composed-field";
|
|
||||||
import type { GetSiteComposedFieldResult } from "./viz-composed-field";
|
|
||||||
import type { GetSiteComposedFieldRequest } from "./viz-composed-field";
|
|
||||||
import type { ListProjectComposedFieldResult } from "./viz-composed-field";
|
import type { ListProjectComposedFieldResult } from "./viz-composed-field";
|
||||||
import type { ListProjectComposedFieldRequest } from "./viz-composed-field";
|
import type { ListProjectComposedFieldRequest } from "./viz-composed-field";
|
||||||
import type { DeleteProjectComposedFieldResult } from "./viz-composed-field";
|
import type { DeleteProjectComposedFieldResult } from "./viz-composed-field";
|
||||||
@@ -81,26 +71,6 @@ export interface IComposedFieldServiceClient {
|
|||||||
* @generated from protobuf rpc: ListProject
|
* @generated from protobuf rpc: ListProject
|
||||||
*/
|
*/
|
||||||
listProject(input: ListProjectComposedFieldRequest, options?: RpcOptions): UnaryCall<ListProjectComposedFieldRequest, ListProjectComposedFieldResult>;
|
listProject(input: ListProjectComposedFieldRequest, options?: RpcOptions): UnaryCall<ListProjectComposedFieldRequest, ListProjectComposedFieldResult>;
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: GetSite
|
|
||||||
*/
|
|
||||||
getSite(input: GetSiteComposedFieldRequest, options?: RpcOptions): UnaryCall<GetSiteComposedFieldRequest, GetSiteComposedFieldResult>;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: CreateSite
|
|
||||||
*/
|
|
||||||
createSite(input: CreateSiteComposedFieldRequest, options?: RpcOptions): UnaryCall<CreateSiteComposedFieldRequest, CreateSiteComposedFieldResult>;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: UpdateSite
|
|
||||||
*/
|
|
||||||
updateSite(input: UpdateSiteComposedFieldRequest, options?: RpcOptions): UnaryCall<UpdateSiteComposedFieldRequest, UpdateSiteComposedFieldResult>;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: DeleteSite
|
|
||||||
*/
|
|
||||||
deleteSite(input: DeleteSiteComposedFieldRequest, options?: RpcOptions): UnaryCall<DeleteSiteComposedFieldRequest, DeleteSiteComposedFieldResult>;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: ListSite
|
|
||||||
*/
|
|
||||||
listSite(input: ListSiteComposedFieldRequest, options?: RpcOptions): UnaryCall<ListSiteComposedFieldRequest, ListSiteComposedFieldResult>;
|
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf service vizapi.ComposedFieldService
|
* @generated from protobuf service vizapi.ComposedFieldService
|
||||||
@@ -181,39 +151,4 @@ export class ComposedFieldServiceClient implements IComposedFieldServiceClient,
|
|||||||
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
||||||
return stackIntercept<ListProjectComposedFieldRequest, ListProjectComposedFieldResult>("unary", this._transport, method, opt, input);
|
return stackIntercept<ListProjectComposedFieldRequest, ListProjectComposedFieldResult>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: GetSite
|
|
||||||
*/
|
|
||||||
getSite(input: GetSiteComposedFieldRequest, options?: RpcOptions): UnaryCall<GetSiteComposedFieldRequest, GetSiteComposedFieldResult> {
|
|
||||||
const method = this.methods[10], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<GetSiteComposedFieldRequest, GetSiteComposedFieldResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: CreateSite
|
|
||||||
*/
|
|
||||||
createSite(input: CreateSiteComposedFieldRequest, options?: RpcOptions): UnaryCall<CreateSiteComposedFieldRequest, CreateSiteComposedFieldResult> {
|
|
||||||
const method = this.methods[11], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<CreateSiteComposedFieldRequest, CreateSiteComposedFieldResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: UpdateSite
|
|
||||||
*/
|
|
||||||
updateSite(input: UpdateSiteComposedFieldRequest, options?: RpcOptions): UnaryCall<UpdateSiteComposedFieldRequest, UpdateSiteComposedFieldResult> {
|
|
||||||
const method = this.methods[12], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<UpdateSiteComposedFieldRequest, UpdateSiteComposedFieldResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: DeleteSite
|
|
||||||
*/
|
|
||||||
deleteSite(input: DeleteSiteComposedFieldRequest, options?: RpcOptions): UnaryCall<DeleteSiteComposedFieldRequest, DeleteSiteComposedFieldResult> {
|
|
||||||
const method = this.methods[13], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<DeleteSiteComposedFieldRequest, DeleteSiteComposedFieldResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: ListSite
|
|
||||||
*/
|
|
||||||
listSite(input: ListSiteComposedFieldRequest, options?: RpcOptions): UnaryCall<ListSiteComposedFieldRequest, ListSiteComposedFieldResult> {
|
|
||||||
const method = this.methods[14], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<ListSiteComposedFieldRequest, ListSiteComposedFieldResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|||||||
import type { PartialMessage } from "@protobuf-ts/runtime";
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
||||||
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
||||||
import { MessageType } from "@protobuf-ts/runtime";
|
import { MessageType } from "@protobuf-ts/runtime";
|
||||||
import { RequestSiteHeader } from "./core/shared";
|
|
||||||
import { RequestProjectHeader } from "./core/shared";
|
import { RequestProjectHeader } from "./core/shared";
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf message vizapi.ComposedField
|
* @generated from protobuf message vizapi.ComposedField
|
||||||
@@ -450,192 +449,6 @@ export interface ListProjectComposedFieldResult {
|
|||||||
*/
|
*/
|
||||||
Results: ComposedField[];
|
Results: ComposedField[];
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* IDs of the Composed Field
|
|
||||||
*
|
|
||||||
* @generated from protobuf message vizapi.GetSiteComposedFieldRequest
|
|
||||||
*/
|
|
||||||
export interface GetSiteComposedFieldRequest {
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: api.RequestSiteHeader Header = 1
|
|
||||||
*/
|
|
||||||
Header?: RequestSiteHeader;
|
|
||||||
/**
|
|
||||||
* Identifier of the Composed Field
|
|
||||||
*
|
|
||||||
* @generated from protobuf field: string ComposedFieldID = 2
|
|
||||||
*/
|
|
||||||
ComposedFieldID: string;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* All the Content about the composed field
|
|
||||||
*
|
|
||||||
* @generated from protobuf message vizapi.GetSiteComposedFieldResult
|
|
||||||
*/
|
|
||||||
export interface GetSiteComposedFieldResult {
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: vizapi.ComposedField Result = 1
|
|
||||||
*/
|
|
||||||
Result?: ComposedField;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Content that needs to be stored
|
|
||||||
*
|
|
||||||
* @generated from protobuf message vizapi.CreateSiteComposedFieldRequest
|
|
||||||
*/
|
|
||||||
export interface CreateSiteComposedFieldRequest {
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: api.RequestSiteHeader Header = 1
|
|
||||||
*/
|
|
||||||
Header?: RequestSiteHeader;
|
|
||||||
/**
|
|
||||||
* Name of the Composed Field
|
|
||||||
*
|
|
||||||
* @generated from protobuf field: string Name = 2
|
|
||||||
*/
|
|
||||||
Name: string;
|
|
||||||
/**
|
|
||||||
* Identifier of the Screen
|
|
||||||
*
|
|
||||||
* @generated from protobuf field: string ScreenID = 3
|
|
||||||
*/
|
|
||||||
ScreenID: string;
|
|
||||||
/**
|
|
||||||
* Identifier of the Tab
|
|
||||||
*
|
|
||||||
* @generated from protobuf field: string TabID = 4
|
|
||||||
*/
|
|
||||||
TabID: string;
|
|
||||||
/**
|
|
||||||
* Content in the Composed Field
|
|
||||||
*
|
|
||||||
* @generated from protobuf field: string Payload = 5
|
|
||||||
*/
|
|
||||||
Payload: string;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* ID of the created Composed Field
|
|
||||||
*
|
|
||||||
* @generated from protobuf message vizapi.CreateSiteComposedFieldResult
|
|
||||||
*/
|
|
||||||
export interface CreateSiteComposedFieldResult {
|
|
||||||
/**
|
|
||||||
* Identifier of the Composed Field
|
|
||||||
*
|
|
||||||
* @generated from protobuf field: string ComposedFieldID = 1
|
|
||||||
*/
|
|
||||||
ComposedFieldID: string;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Content that needs to be updated
|
|
||||||
*
|
|
||||||
* @generated from protobuf message vizapi.UpdateSiteComposedFieldRequest
|
|
||||||
*/
|
|
||||||
export interface UpdateSiteComposedFieldRequest {
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: api.RequestSiteHeader Header = 1
|
|
||||||
*/
|
|
||||||
Header?: RequestSiteHeader;
|
|
||||||
/**
|
|
||||||
* Identifier of the Composed Field
|
|
||||||
*
|
|
||||||
* @generated from protobuf field: string ComposedFieldID = 2
|
|
||||||
*/
|
|
||||||
ComposedFieldID: string;
|
|
||||||
/**
|
|
||||||
* Name of the Composed Field
|
|
||||||
*
|
|
||||||
* @generated from protobuf field: string Name = 3
|
|
||||||
*/
|
|
||||||
Name: string;
|
|
||||||
/**
|
|
||||||
* Identifier of the Screen
|
|
||||||
*
|
|
||||||
* @generated from protobuf field: string ScreenID = 4
|
|
||||||
*/
|
|
||||||
ScreenID: string;
|
|
||||||
/**
|
|
||||||
* Identifier of the Tab
|
|
||||||
*
|
|
||||||
* @generated from protobuf field: string TabID = 5
|
|
||||||
*/
|
|
||||||
TabID: string;
|
|
||||||
/**
|
|
||||||
* Content in the Composed Field
|
|
||||||
*
|
|
||||||
* @generated from protobuf field: string Payload = 6
|
|
||||||
*/
|
|
||||||
Payload: string;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Updated dashboard ID
|
|
||||||
*
|
|
||||||
* @generated from protobuf message vizapi.UpdateSiteComposedFieldResult
|
|
||||||
*/
|
|
||||||
export interface UpdateSiteComposedFieldResult {
|
|
||||||
/**
|
|
||||||
* Identifier of the Composed Field
|
|
||||||
*
|
|
||||||
* @generated from protobuf field: string ComposedFieldID = 1
|
|
||||||
*/
|
|
||||||
ComposedFieldID: string;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* IDs of the Composed Field to be deleted
|
|
||||||
*
|
|
||||||
* @generated from protobuf message vizapi.DeleteSiteComposedFieldRequest
|
|
||||||
*/
|
|
||||||
export interface DeleteSiteComposedFieldRequest {
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: api.RequestSiteHeader Header = 1
|
|
||||||
*/
|
|
||||||
Header?: RequestSiteHeader;
|
|
||||||
/**
|
|
||||||
* Identifier of the Composed Field
|
|
||||||
*
|
|
||||||
* @generated from protobuf field: string ComposedFieldID = 2
|
|
||||||
*/
|
|
||||||
ComposedFieldID: string;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf message vizapi.DeleteSiteComposedFieldResult
|
|
||||||
*/
|
|
||||||
export interface DeleteSiteComposedFieldResult {
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf message vizapi.ListSiteComposedFieldRequest
|
|
||||||
*/
|
|
||||||
export interface ListSiteComposedFieldRequest {
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: api.RequestSiteHeader Header = 1
|
|
||||||
*/
|
|
||||||
Header?: RequestSiteHeader;
|
|
||||||
/**
|
|
||||||
* Identifier of the Screen
|
|
||||||
*
|
|
||||||
* @generated from protobuf field: string ScreenID = 2
|
|
||||||
*/
|
|
||||||
ScreenID: string;
|
|
||||||
/**
|
|
||||||
* Identifier of the Tab
|
|
||||||
*
|
|
||||||
* @generated from protobuf field: string TabID = 3
|
|
||||||
*/
|
|
||||||
TabID: string;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* List of Composed Fields
|
|
||||||
*
|
|
||||||
* @generated from protobuf message vizapi.ListSiteComposedFieldResult
|
|
||||||
*/
|
|
||||||
export interface ListSiteComposedFieldResult {
|
|
||||||
/**
|
|
||||||
* All Content in a Composed Field
|
|
||||||
*
|
|
||||||
* @generated from protobuf field: repeated vizapi.ComposedField Results = 1
|
|
||||||
*/
|
|
||||||
Results: ComposedField[];
|
|
||||||
}
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
// @generated message type with reflection information, may provide speed optimized methods
|
||||||
class ComposedField$Type extends MessageType<ComposedField> {
|
class ComposedField$Type extends MessageType<ComposedField> {
|
||||||
constructor() {
|
constructor() {
|
||||||
@@ -1873,565 +1686,6 @@ class ListProjectComposedFieldResult$Type extends MessageType<ListProjectCompose
|
|||||||
* @generated MessageType for protobuf message vizapi.ListProjectComposedFieldResult
|
* @generated MessageType for protobuf message vizapi.ListProjectComposedFieldResult
|
||||||
*/
|
*/
|
||||||
export const ListProjectComposedFieldResult = new ListProjectComposedFieldResult$Type();
|
export const ListProjectComposedFieldResult = new ListProjectComposedFieldResult$Type();
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
|
||||||
class GetSiteComposedFieldRequest$Type extends MessageType<GetSiteComposedFieldRequest> {
|
|
||||||
constructor() {
|
|
||||||
super("vizapi.GetSiteComposedFieldRequest", [
|
|
||||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
||||||
{ no: 2, name: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } }
|
|
||||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "IDs of the Composed Field", required: ["Header", "ComposedFieldID"] } } });
|
|
||||||
}
|
|
||||||
create(value?: PartialMessage<GetSiteComposedFieldRequest>): GetSiteComposedFieldRequest {
|
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
|
||||||
message.ComposedFieldID = "";
|
|
||||||
if (value !== undefined)
|
|
||||||
reflectionMergePartial<GetSiteComposedFieldRequest>(this, message, value);
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSiteComposedFieldRequest): GetSiteComposedFieldRequest {
|
|
||||||
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 ComposedFieldID */ 2:
|
|
||||||
message.ComposedFieldID = 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: GetSiteComposedFieldRequest, 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 ComposedFieldID = 2; */
|
|
||||||
if (message.ComposedFieldID !== "")
|
|
||||||
writer.tag(2, WireType.LengthDelimited).string(message.ComposedFieldID);
|
|
||||||
let u = options.writeUnknownFields;
|
|
||||||
if (u !== false)
|
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
||||||
return writer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated MessageType for protobuf message vizapi.GetSiteComposedFieldRequest
|
|
||||||
*/
|
|
||||||
export const GetSiteComposedFieldRequest = new GetSiteComposedFieldRequest$Type();
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
|
||||||
class GetSiteComposedFieldResult$Type extends MessageType<GetSiteComposedFieldResult> {
|
|
||||||
constructor() {
|
|
||||||
super("vizapi.GetSiteComposedFieldResult", [
|
|
||||||
{ no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => ComposedField }
|
|
||||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "All the Content about the composed field" } } });
|
|
||||||
}
|
|
||||||
create(value?: PartialMessage<GetSiteComposedFieldResult>): GetSiteComposedFieldResult {
|
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
|
||||||
if (value !== undefined)
|
|
||||||
reflectionMergePartial<GetSiteComposedFieldResult>(this, message, value);
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSiteComposedFieldResult): GetSiteComposedFieldResult {
|
|
||||||
let message = target ?? this.create(), end = reader.pos + length;
|
|
||||||
while (reader.pos < end) {
|
|
||||||
let [fieldNo, wireType] = reader.tag();
|
|
||||||
switch (fieldNo) {
|
|
||||||
case /* vizapi.ComposedField Result */ 1:
|
|
||||||
message.Result = ComposedField.internalBinaryRead(reader, reader.uint32(), options, message.Result);
|
|
||||||
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: GetSiteComposedFieldResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
||||||
/* vizapi.ComposedField Result = 1; */
|
|
||||||
if (message.Result)
|
|
||||||
ComposedField.internalBinaryWrite(message.Result, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
||||||
let u = options.writeUnknownFields;
|
|
||||||
if (u !== false)
|
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
||||||
return writer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated MessageType for protobuf message vizapi.GetSiteComposedFieldResult
|
|
||||||
*/
|
|
||||||
export const GetSiteComposedFieldResult = new GetSiteComposedFieldResult$Type();
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
|
||||||
class CreateSiteComposedFieldRequest$Type extends MessageType<CreateSiteComposedFieldRequest> {
|
|
||||||
constructor() {
|
|
||||||
super("vizapi.CreateSiteComposedFieldRequest", [
|
|
||||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
||||||
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } },
|
|
||||||
{ no: 3, name: "ScreenID", kind: "scalar", localName: "ScreenID", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Screen" }, "validate.rules": { string: { minLen: "1" } } } },
|
|
||||||
{ no: 4, name: "TabID", kind: "scalar", localName: "TabID", jsonName: "TabID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Tab" }, "validate.rules": { string: { minLen: "1" } } } },
|
|
||||||
{ no: 5, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content in the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } }
|
|
||||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Content that needs to be stored ", required: ["Header", "Name", "ScreenID", "TabID", "Payload"] } } });
|
|
||||||
}
|
|
||||||
create(value?: PartialMessage<CreateSiteComposedFieldRequest>): CreateSiteComposedFieldRequest {
|
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
|
||||||
message.Name = "";
|
|
||||||
message.ScreenID = "";
|
|
||||||
message.TabID = "";
|
|
||||||
message.Payload = "";
|
|
||||||
if (value !== undefined)
|
|
||||||
reflectionMergePartial<CreateSiteComposedFieldRequest>(this, message, value);
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateSiteComposedFieldRequest): CreateSiteComposedFieldRequest {
|
|
||||||
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 Name */ 2:
|
|
||||||
message.Name = reader.string();
|
|
||||||
break;
|
|
||||||
case /* string ScreenID */ 3:
|
|
||||||
message.ScreenID = reader.string();
|
|
||||||
break;
|
|
||||||
case /* string TabID */ 4:
|
|
||||||
message.TabID = reader.string();
|
|
||||||
break;
|
|
||||||
case /* string Payload */ 5:
|
|
||||||
message.Payload = 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: CreateSiteComposedFieldRequest, 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 Name = 2; */
|
|
||||||
if (message.Name !== "")
|
|
||||||
writer.tag(2, WireType.LengthDelimited).string(message.Name);
|
|
||||||
/* string ScreenID = 3; */
|
|
||||||
if (message.ScreenID !== "")
|
|
||||||
writer.tag(3, WireType.LengthDelimited).string(message.ScreenID);
|
|
||||||
/* string TabID = 4; */
|
|
||||||
if (message.TabID !== "")
|
|
||||||
writer.tag(4, WireType.LengthDelimited).string(message.TabID);
|
|
||||||
/* string Payload = 5; */
|
|
||||||
if (message.Payload !== "")
|
|
||||||
writer.tag(5, WireType.LengthDelimited).string(message.Payload);
|
|
||||||
let u = options.writeUnknownFields;
|
|
||||||
if (u !== false)
|
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
||||||
return writer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated MessageType for protobuf message vizapi.CreateSiteComposedFieldRequest
|
|
||||||
*/
|
|
||||||
export const CreateSiteComposedFieldRequest = new CreateSiteComposedFieldRequest$Type();
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
|
||||||
class CreateSiteComposedFieldResult$Type extends MessageType<CreateSiteComposedFieldResult> {
|
|
||||||
constructor() {
|
|
||||||
super("vizapi.CreateSiteComposedFieldResult", [
|
|
||||||
{ no: 1, name: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" } } }
|
|
||||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "ID of the created Composed Field" } } });
|
|
||||||
}
|
|
||||||
create(value?: PartialMessage<CreateSiteComposedFieldResult>): CreateSiteComposedFieldResult {
|
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
|
||||||
message.ComposedFieldID = "";
|
|
||||||
if (value !== undefined)
|
|
||||||
reflectionMergePartial<CreateSiteComposedFieldResult>(this, message, value);
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateSiteComposedFieldResult): CreateSiteComposedFieldResult {
|
|
||||||
let message = target ?? this.create(), end = reader.pos + length;
|
|
||||||
while (reader.pos < end) {
|
|
||||||
let [fieldNo, wireType] = reader.tag();
|
|
||||||
switch (fieldNo) {
|
|
||||||
case /* string ComposedFieldID */ 1:
|
|
||||||
message.ComposedFieldID = 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: CreateSiteComposedFieldResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
||||||
/* string ComposedFieldID = 1; */
|
|
||||||
if (message.ComposedFieldID !== "")
|
|
||||||
writer.tag(1, WireType.LengthDelimited).string(message.ComposedFieldID);
|
|
||||||
let u = options.writeUnknownFields;
|
|
||||||
if (u !== false)
|
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
||||||
return writer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated MessageType for protobuf message vizapi.CreateSiteComposedFieldResult
|
|
||||||
*/
|
|
||||||
export const CreateSiteComposedFieldResult = new CreateSiteComposedFieldResult$Type();
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
|
||||||
class UpdateSiteComposedFieldRequest$Type extends MessageType<UpdateSiteComposedFieldRequest> {
|
|
||||||
constructor() {
|
|
||||||
super("vizapi.UpdateSiteComposedFieldRequest", [
|
|
||||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
||||||
{ no: 2, name: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } },
|
|
||||||
{ no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } },
|
|
||||||
{ no: 4, name: "ScreenID", kind: "scalar", localName: "ScreenID", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Screen" }, "validate.rules": { string: { minLen: "1" } } } },
|
|
||||||
{ no: 5, name: "TabID", kind: "scalar", localName: "TabID", jsonName: "TabID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Tab" }, "validate.rules": { string: { minLen: "1" } } } },
|
|
||||||
{ no: 6, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content in the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } }
|
|
||||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Content that needs to be updated", required: ["Header", "ComposedFieldID", "Name", "ScreenID", "TabID", "Payload"] } } });
|
|
||||||
}
|
|
||||||
create(value?: PartialMessage<UpdateSiteComposedFieldRequest>): UpdateSiteComposedFieldRequest {
|
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
|
||||||
message.ComposedFieldID = "";
|
|
||||||
message.Name = "";
|
|
||||||
message.ScreenID = "";
|
|
||||||
message.TabID = "";
|
|
||||||
message.Payload = "";
|
|
||||||
if (value !== undefined)
|
|
||||||
reflectionMergePartial<UpdateSiteComposedFieldRequest>(this, message, value);
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateSiteComposedFieldRequest): UpdateSiteComposedFieldRequest {
|
|
||||||
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 ComposedFieldID */ 2:
|
|
||||||
message.ComposedFieldID = reader.string();
|
|
||||||
break;
|
|
||||||
case /* string Name */ 3:
|
|
||||||
message.Name = reader.string();
|
|
||||||
break;
|
|
||||||
case /* string ScreenID */ 4:
|
|
||||||
message.ScreenID = reader.string();
|
|
||||||
break;
|
|
||||||
case /* string TabID */ 5:
|
|
||||||
message.TabID = reader.string();
|
|
||||||
break;
|
|
||||||
case /* string Payload */ 6:
|
|
||||||
message.Payload = 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: UpdateSiteComposedFieldRequest, 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 ComposedFieldID = 2; */
|
|
||||||
if (message.ComposedFieldID !== "")
|
|
||||||
writer.tag(2, WireType.LengthDelimited).string(message.ComposedFieldID);
|
|
||||||
/* string Name = 3; */
|
|
||||||
if (message.Name !== "")
|
|
||||||
writer.tag(3, WireType.LengthDelimited).string(message.Name);
|
|
||||||
/* string ScreenID = 4; */
|
|
||||||
if (message.ScreenID !== "")
|
|
||||||
writer.tag(4, WireType.LengthDelimited).string(message.ScreenID);
|
|
||||||
/* string TabID = 5; */
|
|
||||||
if (message.TabID !== "")
|
|
||||||
writer.tag(5, WireType.LengthDelimited).string(message.TabID);
|
|
||||||
/* string Payload = 6; */
|
|
||||||
if (message.Payload !== "")
|
|
||||||
writer.tag(6, WireType.LengthDelimited).string(message.Payload);
|
|
||||||
let u = options.writeUnknownFields;
|
|
||||||
if (u !== false)
|
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
||||||
return writer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated MessageType for protobuf message vizapi.UpdateSiteComposedFieldRequest
|
|
||||||
*/
|
|
||||||
export const UpdateSiteComposedFieldRequest = new UpdateSiteComposedFieldRequest$Type();
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
|
||||||
class UpdateSiteComposedFieldResult$Type extends MessageType<UpdateSiteComposedFieldResult> {
|
|
||||||
constructor() {
|
|
||||||
super("vizapi.UpdateSiteComposedFieldResult", [
|
|
||||||
{ no: 1, name: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" } } }
|
|
||||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Updated dashboard ID" } } });
|
|
||||||
}
|
|
||||||
create(value?: PartialMessage<UpdateSiteComposedFieldResult>): UpdateSiteComposedFieldResult {
|
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
|
||||||
message.ComposedFieldID = "";
|
|
||||||
if (value !== undefined)
|
|
||||||
reflectionMergePartial<UpdateSiteComposedFieldResult>(this, message, value);
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateSiteComposedFieldResult): UpdateSiteComposedFieldResult {
|
|
||||||
let message = target ?? this.create(), end = reader.pos + length;
|
|
||||||
while (reader.pos < end) {
|
|
||||||
let [fieldNo, wireType] = reader.tag();
|
|
||||||
switch (fieldNo) {
|
|
||||||
case /* string ComposedFieldID */ 1:
|
|
||||||
message.ComposedFieldID = 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: UpdateSiteComposedFieldResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
||||||
/* string ComposedFieldID = 1; */
|
|
||||||
if (message.ComposedFieldID !== "")
|
|
||||||
writer.tag(1, WireType.LengthDelimited).string(message.ComposedFieldID);
|
|
||||||
let u = options.writeUnknownFields;
|
|
||||||
if (u !== false)
|
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
||||||
return writer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated MessageType for protobuf message vizapi.UpdateSiteComposedFieldResult
|
|
||||||
*/
|
|
||||||
export const UpdateSiteComposedFieldResult = new UpdateSiteComposedFieldResult$Type();
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
|
||||||
class DeleteSiteComposedFieldRequest$Type extends MessageType<DeleteSiteComposedFieldRequest> {
|
|
||||||
constructor() {
|
|
||||||
super("vizapi.DeleteSiteComposedFieldRequest", [
|
|
||||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
||||||
{ no: 2, name: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } }
|
|
||||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "IDs of the Composed Field to be deleted", required: ["Header", "ComposedFieldID"] } } });
|
|
||||||
}
|
|
||||||
create(value?: PartialMessage<DeleteSiteComposedFieldRequest>): DeleteSiteComposedFieldRequest {
|
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
|
||||||
message.ComposedFieldID = "";
|
|
||||||
if (value !== undefined)
|
|
||||||
reflectionMergePartial<DeleteSiteComposedFieldRequest>(this, message, value);
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteSiteComposedFieldRequest): DeleteSiteComposedFieldRequest {
|
|
||||||
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 ComposedFieldID */ 2:
|
|
||||||
message.ComposedFieldID = 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: DeleteSiteComposedFieldRequest, 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 ComposedFieldID = 2; */
|
|
||||||
if (message.ComposedFieldID !== "")
|
|
||||||
writer.tag(2, WireType.LengthDelimited).string(message.ComposedFieldID);
|
|
||||||
let u = options.writeUnknownFields;
|
|
||||||
if (u !== false)
|
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
||||||
return writer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated MessageType for protobuf message vizapi.DeleteSiteComposedFieldRequest
|
|
||||||
*/
|
|
||||||
export const DeleteSiteComposedFieldRequest = new DeleteSiteComposedFieldRequest$Type();
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
|
||||||
class DeleteSiteComposedFieldResult$Type extends MessageType<DeleteSiteComposedFieldResult> {
|
|
||||||
constructor() {
|
|
||||||
super("vizapi.DeleteSiteComposedFieldResult", []);
|
|
||||||
}
|
|
||||||
create(value?: PartialMessage<DeleteSiteComposedFieldResult>): DeleteSiteComposedFieldResult {
|
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
|
||||||
if (value !== undefined)
|
|
||||||
reflectionMergePartial<DeleteSiteComposedFieldResult>(this, message, value);
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteSiteComposedFieldResult): DeleteSiteComposedFieldResult {
|
|
||||||
let message = target ?? this.create(), end = reader.pos + length;
|
|
||||||
while (reader.pos < end) {
|
|
||||||
let [fieldNo, wireType] = reader.tag();
|
|
||||||
switch (fieldNo) {
|
|
||||||
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: DeleteSiteComposedFieldResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
||||||
let u = options.writeUnknownFields;
|
|
||||||
if (u !== false)
|
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
||||||
return writer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated MessageType for protobuf message vizapi.DeleteSiteComposedFieldResult
|
|
||||||
*/
|
|
||||||
export const DeleteSiteComposedFieldResult = new DeleteSiteComposedFieldResult$Type();
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
|
||||||
class ListSiteComposedFieldRequest$Type extends MessageType<ListSiteComposedFieldRequest> {
|
|
||||||
constructor() {
|
|
||||||
super("vizapi.ListSiteComposedFieldRequest", [
|
|
||||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
||||||
{ no: 2, name: "ScreenID", kind: "scalar", localName: "ScreenID", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Screen" } } },
|
|
||||||
{ no: 3, name: "TabID", kind: "scalar", localName: "TabID", jsonName: "TabID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Tab" } } }
|
|
||||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
|
|
||||||
}
|
|
||||||
create(value?: PartialMessage<ListSiteComposedFieldRequest>): ListSiteComposedFieldRequest {
|
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
|
||||||
message.ScreenID = "";
|
|
||||||
message.TabID = "";
|
|
||||||
if (value !== undefined)
|
|
||||||
reflectionMergePartial<ListSiteComposedFieldRequest>(this, message, value);
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListSiteComposedFieldRequest): ListSiteComposedFieldRequest {
|
|
||||||
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 ScreenID */ 2:
|
|
||||||
message.ScreenID = reader.string();
|
|
||||||
break;
|
|
||||||
case /* string TabID */ 3:
|
|
||||||
message.TabID = 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: ListSiteComposedFieldRequest, 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 ScreenID = 2; */
|
|
||||||
if (message.ScreenID !== "")
|
|
||||||
writer.tag(2, WireType.LengthDelimited).string(message.ScreenID);
|
|
||||||
/* string TabID = 3; */
|
|
||||||
if (message.TabID !== "")
|
|
||||||
writer.tag(3, WireType.LengthDelimited).string(message.TabID);
|
|
||||||
let u = options.writeUnknownFields;
|
|
||||||
if (u !== false)
|
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
||||||
return writer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated MessageType for protobuf message vizapi.ListSiteComposedFieldRequest
|
|
||||||
*/
|
|
||||||
export const ListSiteComposedFieldRequest = new ListSiteComposedFieldRequest$Type();
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
|
||||||
class ListSiteComposedFieldResult$Type extends MessageType<ListSiteComposedFieldResult> {
|
|
||||||
constructor() {
|
|
||||||
super("vizapi.ListSiteComposedFieldResult", [
|
|
||||||
{ no: 1, name: "Results", kind: "message", localName: "Results", jsonName: "Results", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ComposedField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "All Content in a Composed Field" } } }
|
|
||||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "List of Composed Fields" } } });
|
|
||||||
}
|
|
||||||
create(value?: PartialMessage<ListSiteComposedFieldResult>): ListSiteComposedFieldResult {
|
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
|
||||||
message.Results = [];
|
|
||||||
if (value !== undefined)
|
|
||||||
reflectionMergePartial<ListSiteComposedFieldResult>(this, message, value);
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListSiteComposedFieldResult): ListSiteComposedFieldResult {
|
|
||||||
let message = target ?? this.create(), end = reader.pos + length;
|
|
||||||
while (reader.pos < end) {
|
|
||||||
let [fieldNo, wireType] = reader.tag();
|
|
||||||
switch (fieldNo) {
|
|
||||||
case /* repeated vizapi.ComposedField Results */ 1:
|
|
||||||
message.Results.push(ComposedField.internalBinaryRead(reader, reader.uint32(), options));
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
let u = options.readUnknownField;
|
|
||||||
if (u === "throw")
|
|
||||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
||||||
let d = reader.skip(wireType);
|
|
||||||
if (u !== false)
|
|
||||||
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryWrite(message: ListSiteComposedFieldResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
||||||
/* repeated vizapi.ComposedField Results = 1; */
|
|
||||||
for (let i = 0; i < message.Results.length; i++)
|
|
||||||
ComposedField.internalBinaryWrite(message.Results[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
||||||
let u = options.writeUnknownFields;
|
|
||||||
if (u !== false)
|
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
||||||
return writer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated MessageType for protobuf message vizapi.ListSiteComposedFieldResult
|
|
||||||
*/
|
|
||||||
export const ListSiteComposedFieldResult = new ListSiteComposedFieldResult$Type();
|
|
||||||
/**
|
/**
|
||||||
* @generated ServiceType for protobuf service vizapi.ComposedFieldService
|
* @generated ServiceType for protobuf service vizapi.ComposedFieldService
|
||||||
*/
|
*/
|
||||||
@@ -2445,10 +1699,5 @@ export const ComposedFieldService = new ServiceType("vizapi.ComposedFieldService
|
|||||||
{ name: "CreateProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Composed Field"], summary: "Create a composed field", description: "TODO" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: CreateProjectComposedFieldRequest, O: CreateProjectComposedFieldResult },
|
{ name: "CreateProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Composed Field"], summary: "Create a composed field", description: "TODO" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: CreateProjectComposedFieldRequest, O: CreateProjectComposedFieldResult },
|
||||||
{ name: "UpdateProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Composed Field"], summary: "Update a composed field", description: "TODO" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: UpdateProjectComposedFieldRequest, O: UpdateProjectComposedFieldResult },
|
{ name: "UpdateProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Composed Field"], summary: "Update a composed field", description: "TODO" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: UpdateProjectComposedFieldRequest, O: UpdateProjectComposedFieldResult },
|
||||||
{ name: "DeleteProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Composed Field"], summary: "Delete a composed field", description: "TODO" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: DeleteProjectComposedFieldRequest, O: DeleteProjectComposedFieldResult },
|
{ name: "DeleteProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Composed Field"], summary: "Delete a composed field", description: "TODO" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: DeleteProjectComposedFieldRequest, O: DeleteProjectComposedFieldResult },
|
||||||
{ name: "ListProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Composed Field"], summary: "List composed fields", description: "List all composed fields present under the same Project and with the same Screen and Tab IDs" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ListProjectComposedFieldRequest, O: ListProjectComposedFieldResult },
|
{ name: "ListProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Composed Field"], summary: "List composed fields", description: "List all composed fields present under the same Project and with the same Screen and Tab IDs" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ListProjectComposedFieldRequest, O: ListProjectComposedFieldResult }
|
||||||
{ name: "GetSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Composed Field"], summary: "Get a composed field" }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: GetSiteComposedFieldRequest, O: GetSiteComposedFieldResult },
|
|
||||||
{ name: "CreateSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Composed Field"], summary: "Create a composed field", description: "TODO" }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: CreateSiteComposedFieldRequest, O: CreateSiteComposedFieldResult },
|
|
||||||
{ name: "UpdateSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Composed Field"], summary: "Update a composed field", description: "TODO" }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: UpdateSiteComposedFieldRequest, O: UpdateSiteComposedFieldResult },
|
|
||||||
{ name: "DeleteSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Composed Field"], summary: "Delete a composed field", description: "TODO" }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: DeleteSiteComposedFieldRequest, O: DeleteSiteComposedFieldResult },
|
|
||||||
{ name: "ListSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Composed Field"], summary: "List composed fields", description: "List all composed fields present under the same Site and with the same Screen and Tab IDs" }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ListSiteComposedFieldRequest, O: ListSiteComposedFieldResult }
|
|
||||||
], { "api.k8sService": "views-server" });
|
], { "api.k8sService": "views-server" });
|
||||||
|
|||||||
@@ -4,20 +4,6 @@
|
|||||||
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
||||||
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
||||||
import { DashboardService } from "./viz-dashboard";
|
import { DashboardService } from "./viz-dashboard";
|
||||||
import type { CopySiteDashboardResult } from "./viz-dashboard";
|
|
||||||
import type { CopySiteDashboardRequest } from "./viz-dashboard";
|
|
||||||
import type { GetSiteDashboardResult } from "./viz-dashboard";
|
|
||||||
import type { GetSiteDashboardRequest } from "./viz-dashboard";
|
|
||||||
import type { UpdateSiteDashboardResult } from "./viz-dashboard";
|
|
||||||
import type { UpdateSiteDashboardRequest } from "./viz-dashboard";
|
|
||||||
import type { DeleteDashboardsForSiteResult } from "./viz-dashboard";
|
|
||||||
import type { DeleteDashboardsForSiteRequest } from "./viz-dashboard";
|
|
||||||
import type { DeleteSiteDashboardResult } from "./viz-dashboard";
|
|
||||||
import type { DeleteSiteDashboardRequest } from "./viz-dashboard";
|
|
||||||
import type { ListSiteDashboardResult } from "./viz-dashboard";
|
|
||||||
import type { ListSiteDashboardRequest } from "./viz-dashboard";
|
|
||||||
import type { CreateSiteDashboardResult } from "./viz-dashboard";
|
|
||||||
import type { CreateSiteDashboardRequest } from "./viz-dashboard";
|
|
||||||
import type { CopyProjectDashboardResult } from "./viz-dashboard";
|
import type { CopyProjectDashboardResult } from "./viz-dashboard";
|
||||||
import type { CopyProjectDashboardRequest } from "./viz-dashboard";
|
import type { CopyProjectDashboardRequest } from "./viz-dashboard";
|
||||||
import type { GetProjectDashboardResult } from "./viz-dashboard";
|
import type { GetProjectDashboardResult } from "./viz-dashboard";
|
||||||
@@ -30,6 +16,8 @@ import type { ListProjectDashboardResult } from "./viz-dashboard";
|
|||||||
import type { ListProjectDashboardRequest } from "./viz-dashboard";
|
import type { ListProjectDashboardRequest } from "./viz-dashboard";
|
||||||
import type { CreateProjectDashboardResult } from "./viz-dashboard";
|
import type { CreateProjectDashboardResult } from "./viz-dashboard";
|
||||||
import type { CreateProjectDashboardRequest } from "./viz-dashboard";
|
import type { CreateProjectDashboardRequest } from "./viz-dashboard";
|
||||||
|
import type { SetOwnerDashboardResult } from "./viz-dashboard";
|
||||||
|
import type { SetOwnerDashboardRequest } from "./viz-dashboard";
|
||||||
import type { CopyDashboardResult } from "./viz-dashboard";
|
import type { CopyDashboardResult } from "./viz-dashboard";
|
||||||
import type { CopyDashboardRequest } from "./viz-dashboard";
|
import type { CopyDashboardRequest } from "./viz-dashboard";
|
||||||
import type { GetDashboardResult } from "./viz-dashboard";
|
import type { GetDashboardResult } from "./viz-dashboard";
|
||||||
@@ -85,6 +73,10 @@ export interface IDashboardServiceClient {
|
|||||||
* @generated from protobuf rpc: Copy
|
* @generated from protobuf rpc: Copy
|
||||||
*/
|
*/
|
||||||
copy(input: CopyDashboardRequest, options?: RpcOptions): UnaryCall<CopyDashboardRequest, CopyDashboardResult>;
|
copy(input: CopyDashboardRequest, options?: RpcOptions): UnaryCall<CopyDashboardRequest, CopyDashboardResult>;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: SetOwner
|
||||||
|
*/
|
||||||
|
setOwner(input: SetOwnerDashboardRequest, options?: RpcOptions): UnaryCall<SetOwnerDashboardRequest, SetOwnerDashboardResult>;
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf rpc: CreateProject
|
* @generated from protobuf rpc: CreateProject
|
||||||
*/
|
*/
|
||||||
@@ -109,34 +101,6 @@ export interface IDashboardServiceClient {
|
|||||||
* @generated from protobuf rpc: CopyProject
|
* @generated from protobuf rpc: CopyProject
|
||||||
*/
|
*/
|
||||||
copyProject(input: CopyProjectDashboardRequest, options?: RpcOptions): UnaryCall<CopyProjectDashboardRequest, CopyProjectDashboardResult>;
|
copyProject(input: CopyProjectDashboardRequest, options?: RpcOptions): UnaryCall<CopyProjectDashboardRequest, CopyProjectDashboardResult>;
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: CreateSite
|
|
||||||
*/
|
|
||||||
createSite(input: CreateSiteDashboardRequest, options?: RpcOptions): UnaryCall<CreateSiteDashboardRequest, CreateSiteDashboardResult>;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: ListSite
|
|
||||||
*/
|
|
||||||
listSite(input: ListSiteDashboardRequest, options?: RpcOptions): UnaryCall<ListSiteDashboardRequest, ListSiteDashboardResult>;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: DeleteSite
|
|
||||||
*/
|
|
||||||
deleteSite(input: DeleteSiteDashboardRequest, options?: RpcOptions): UnaryCall<DeleteSiteDashboardRequest, DeleteSiteDashboardResult>;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: DeleteDashboardsForSite
|
|
||||||
*/
|
|
||||||
deleteDashboardsForSite(input: DeleteDashboardsForSiteRequest, options?: RpcOptions): UnaryCall<DeleteDashboardsForSiteRequest, DeleteDashboardsForSiteResult>;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: UpdateSite
|
|
||||||
*/
|
|
||||||
updateSite(input: UpdateSiteDashboardRequest, options?: RpcOptions): UnaryCall<UpdateSiteDashboardRequest, UpdateSiteDashboardResult>;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: GetSite
|
|
||||||
*/
|
|
||||||
getSite(input: GetSiteDashboardRequest, options?: RpcOptions): UnaryCall<GetSiteDashboardRequest, GetSiteDashboardResult>;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: CopySite
|
|
||||||
*/
|
|
||||||
copySite(input: CopySiteDashboardRequest, options?: RpcOptions): UnaryCall<CopySiteDashboardRequest, CopySiteDashboardResult>;
|
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf service vizapi.DashboardService
|
* @generated from protobuf service vizapi.DashboardService
|
||||||
@@ -203,95 +167,53 @@ export class DashboardServiceClient implements IDashboardServiceClient, ServiceI
|
|||||||
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
||||||
return stackIntercept<CopyDashboardRequest, CopyDashboardResult>("unary", this._transport, method, opt, input);
|
return stackIntercept<CopyDashboardRequest, CopyDashboardResult>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: SetOwner
|
||||||
|
*/
|
||||||
|
setOwner(input: SetOwnerDashboardRequest, options?: RpcOptions): UnaryCall<SetOwnerDashboardRequest, SetOwnerDashboardResult> {
|
||||||
|
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
||||||
|
return stackIntercept<SetOwnerDashboardRequest, SetOwnerDashboardResult>("unary", this._transport, method, opt, input);
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf rpc: CreateProject
|
* @generated from protobuf rpc: CreateProject
|
||||||
*/
|
*/
|
||||||
createProject(input: CreateProjectDashboardRequest, options?: RpcOptions): UnaryCall<CreateProjectDashboardRequest, CreateProjectDashboardResult> {
|
createProject(input: CreateProjectDashboardRequest, options?: RpcOptions): UnaryCall<CreateProjectDashboardRequest, CreateProjectDashboardResult> {
|
||||||
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
||||||
return stackIntercept<CreateProjectDashboardRequest, CreateProjectDashboardResult>("unary", this._transport, method, opt, input);
|
return stackIntercept<CreateProjectDashboardRequest, CreateProjectDashboardResult>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf rpc: ListProject
|
* @generated from protobuf rpc: ListProject
|
||||||
*/
|
*/
|
||||||
listProject(input: ListProjectDashboardRequest, options?: RpcOptions): UnaryCall<ListProjectDashboardRequest, ListProjectDashboardResult> {
|
listProject(input: ListProjectDashboardRequest, options?: RpcOptions): UnaryCall<ListProjectDashboardRequest, ListProjectDashboardResult> {
|
||||||
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
const method = this.methods[10], opt = this._transport.mergeOptions(options);
|
||||||
return stackIntercept<ListProjectDashboardRequest, ListProjectDashboardResult>("unary", this._transport, method, opt, input);
|
return stackIntercept<ListProjectDashboardRequest, ListProjectDashboardResult>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf rpc: DeleteProject
|
* @generated from protobuf rpc: DeleteProject
|
||||||
*/
|
*/
|
||||||
deleteProject(input: DeleteProjectDashboardRequest, options?: RpcOptions): UnaryCall<DeleteProjectDashboardRequest, DeleteProjectDashboardResult> {
|
deleteProject(input: DeleteProjectDashboardRequest, options?: RpcOptions): UnaryCall<DeleteProjectDashboardRequest, DeleteProjectDashboardResult> {
|
||||||
const method = this.methods[10], opt = this._transport.mergeOptions(options);
|
const method = this.methods[11], opt = this._transport.mergeOptions(options);
|
||||||
return stackIntercept<DeleteProjectDashboardRequest, DeleteProjectDashboardResult>("unary", this._transport, method, opt, input);
|
return stackIntercept<DeleteProjectDashboardRequest, DeleteProjectDashboardResult>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf rpc: UpdateProject
|
* @generated from protobuf rpc: UpdateProject
|
||||||
*/
|
*/
|
||||||
updateProject(input: UpdateProjectDashboardRequest, options?: RpcOptions): UnaryCall<UpdateProjectDashboardRequest, UpdateProjectDashboardResult> {
|
updateProject(input: UpdateProjectDashboardRequest, options?: RpcOptions): UnaryCall<UpdateProjectDashboardRequest, UpdateProjectDashboardResult> {
|
||||||
const method = this.methods[11], opt = this._transport.mergeOptions(options);
|
const method = this.methods[12], opt = this._transport.mergeOptions(options);
|
||||||
return stackIntercept<UpdateProjectDashboardRequest, UpdateProjectDashboardResult>("unary", this._transport, method, opt, input);
|
return stackIntercept<UpdateProjectDashboardRequest, UpdateProjectDashboardResult>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf rpc: GetProject
|
* @generated from protobuf rpc: GetProject
|
||||||
*/
|
*/
|
||||||
getProject(input: GetProjectDashboardRequest, options?: RpcOptions): UnaryCall<GetProjectDashboardRequest, GetProjectDashboardResult> {
|
getProject(input: GetProjectDashboardRequest, options?: RpcOptions): UnaryCall<GetProjectDashboardRequest, GetProjectDashboardResult> {
|
||||||
const method = this.methods[12], opt = this._transport.mergeOptions(options);
|
const method = this.methods[13], opt = this._transport.mergeOptions(options);
|
||||||
return stackIntercept<GetProjectDashboardRequest, GetProjectDashboardResult>("unary", this._transport, method, opt, input);
|
return stackIntercept<GetProjectDashboardRequest, GetProjectDashboardResult>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf rpc: CopyProject
|
* @generated from protobuf rpc: CopyProject
|
||||||
*/
|
*/
|
||||||
copyProject(input: CopyProjectDashboardRequest, options?: RpcOptions): UnaryCall<CopyProjectDashboardRequest, CopyProjectDashboardResult> {
|
copyProject(input: CopyProjectDashboardRequest, options?: RpcOptions): UnaryCall<CopyProjectDashboardRequest, CopyProjectDashboardResult> {
|
||||||
const method = this.methods[13], opt = this._transport.mergeOptions(options);
|
const method = this.methods[14], opt = this._transport.mergeOptions(options);
|
||||||
return stackIntercept<CopyProjectDashboardRequest, CopyProjectDashboardResult>("unary", this._transport, method, opt, input);
|
return stackIntercept<CopyProjectDashboardRequest, CopyProjectDashboardResult>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: CreateSite
|
|
||||||
*/
|
|
||||||
createSite(input: CreateSiteDashboardRequest, options?: RpcOptions): UnaryCall<CreateSiteDashboardRequest, CreateSiteDashboardResult> {
|
|
||||||
const method = this.methods[14], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<CreateSiteDashboardRequest, CreateSiteDashboardResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: ListSite
|
|
||||||
*/
|
|
||||||
listSite(input: ListSiteDashboardRequest, options?: RpcOptions): UnaryCall<ListSiteDashboardRequest, ListSiteDashboardResult> {
|
|
||||||
const method = this.methods[15], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<ListSiteDashboardRequest, ListSiteDashboardResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: DeleteSite
|
|
||||||
*/
|
|
||||||
deleteSite(input: DeleteSiteDashboardRequest, options?: RpcOptions): UnaryCall<DeleteSiteDashboardRequest, DeleteSiteDashboardResult> {
|
|
||||||
const method = this.methods[16], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<DeleteSiteDashboardRequest, DeleteSiteDashboardResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: DeleteDashboardsForSite
|
|
||||||
*/
|
|
||||||
deleteDashboardsForSite(input: DeleteDashboardsForSiteRequest, options?: RpcOptions): UnaryCall<DeleteDashboardsForSiteRequest, DeleteDashboardsForSiteResult> {
|
|
||||||
const method = this.methods[17], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<DeleteDashboardsForSiteRequest, DeleteDashboardsForSiteResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: UpdateSite
|
|
||||||
*/
|
|
||||||
updateSite(input: UpdateSiteDashboardRequest, options?: RpcOptions): UnaryCall<UpdateSiteDashboardRequest, UpdateSiteDashboardResult> {
|
|
||||||
const method = this.methods[18], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<UpdateSiteDashboardRequest, UpdateSiteDashboardResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: GetSite
|
|
||||||
*/
|
|
||||||
getSite(input: GetSiteDashboardRequest, options?: RpcOptions): UnaryCall<GetSiteDashboardRequest, GetSiteDashboardResult> {
|
|
||||||
const method = this.methods[19], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<GetSiteDashboardRequest, GetSiteDashboardResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: CopySite
|
|
||||||
*/
|
|
||||||
copySite(input: CopySiteDashboardRequest, options?: RpcOptions): UnaryCall<CopySiteDashboardRequest, CopySiteDashboardResult> {
|
|
||||||
const method = this.methods[20], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<CopySiteDashboardRequest, CopySiteDashboardResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
901
viz-dashboard.ts
901
viz-dashboard.ts
File diff suppressed because it is too large
Load Diff
@@ -1,110 +0,0 @@
|
|||||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
|
||||||
// @generated from protobuf file "viz-translations.proto" (package "vizapi", syntax proto3)
|
|
||||||
// tslint:disable
|
|
||||||
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
||||||
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
||||||
import { TranslationsService } from "./viz-translations";
|
|
||||||
import type { GetLanguagesResult } from "./viz-translations";
|
|
||||||
import type { GetLanguagesRequest } from "./viz-translations";
|
|
||||||
import type { DeleteAllTranslationsResult } from "./viz-translations";
|
|
||||||
import type { DeleteAllTranslationsRequest } from "./viz-translations";
|
|
||||||
import type { ListTranslationsResult } from "./viz-translations";
|
|
||||||
import type { ListTranslationsRequest } from "./viz-translations";
|
|
||||||
import type { DeleteTranslationsResult } from "./viz-translations";
|
|
||||||
import type { DeleteTranslationsRequest } from "./viz-translations";
|
|
||||||
import type { PutTranslationsResult } from "./viz-translations";
|
|
||||||
import type { PutTranslationsRequest } from "./viz-translations";
|
|
||||||
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
||||||
import type { GetTranslationsResult } from "./viz-translations";
|
|
||||||
import type { GetTranslationsRequest } from "./viz-translations";
|
|
||||||
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
||||||
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
||||||
// ===================================
|
|
||||||
// ============= Service =============
|
|
||||||
// ===================================
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from protobuf service vizapi.TranslationsService
|
|
||||||
*/
|
|
||||||
export interface ITranslationsServiceClient {
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: Get
|
|
||||||
*/
|
|
||||||
get(input: GetTranslationsRequest, options?: RpcOptions): UnaryCall<GetTranslationsRequest, GetTranslationsResult>;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: Put
|
|
||||||
*/
|
|
||||||
put(input: PutTranslationsRequest, options?: RpcOptions): UnaryCall<PutTranslationsRequest, PutTranslationsResult>;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: Delete
|
|
||||||
*/
|
|
||||||
delete(input: DeleteTranslationsRequest, options?: RpcOptions): UnaryCall<DeleteTranslationsRequest, DeleteTranslationsResult>;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: List
|
|
||||||
*/
|
|
||||||
list(input: ListTranslationsRequest, options?: RpcOptions): UnaryCall<ListTranslationsRequest, ListTranslationsResult>;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: DeleteAll
|
|
||||||
*/
|
|
||||||
deleteAll(input: DeleteAllTranslationsRequest, options?: RpcOptions): UnaryCall<DeleteAllTranslationsRequest, DeleteAllTranslationsResult>;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: GetLanguages
|
|
||||||
*/
|
|
||||||
getLanguages(input: GetLanguagesRequest, options?: RpcOptions): UnaryCall<GetLanguagesRequest, GetLanguagesResult>;
|
|
||||||
}
|
|
||||||
// ===================================
|
|
||||||
// ============= Service =============
|
|
||||||
// ===================================
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from protobuf service vizapi.TranslationsService
|
|
||||||
*/
|
|
||||||
export class TranslationsServiceClient implements ITranslationsServiceClient, ServiceInfo {
|
|
||||||
typeName = TranslationsService.typeName;
|
|
||||||
methods = TranslationsService.methods;
|
|
||||||
options = TranslationsService.options;
|
|
||||||
constructor(private readonly _transport: RpcTransport) {
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: Get
|
|
||||||
*/
|
|
||||||
get(input: GetTranslationsRequest, options?: RpcOptions): UnaryCall<GetTranslationsRequest, GetTranslationsResult> {
|
|
||||||
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<GetTranslationsRequest, GetTranslationsResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: Put
|
|
||||||
*/
|
|
||||||
put(input: PutTranslationsRequest, options?: RpcOptions): UnaryCall<PutTranslationsRequest, PutTranslationsResult> {
|
|
||||||
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<PutTranslationsRequest, PutTranslationsResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: Delete
|
|
||||||
*/
|
|
||||||
delete(input: DeleteTranslationsRequest, options?: RpcOptions): UnaryCall<DeleteTranslationsRequest, DeleteTranslationsResult> {
|
|
||||||
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<DeleteTranslationsRequest, DeleteTranslationsResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: List
|
|
||||||
*/
|
|
||||||
list(input: ListTranslationsRequest, options?: RpcOptions): UnaryCall<ListTranslationsRequest, ListTranslationsResult> {
|
|
||||||
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<ListTranslationsRequest, ListTranslationsResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: DeleteAll
|
|
||||||
*/
|
|
||||||
deleteAll(input: DeleteAllTranslationsRequest, options?: RpcOptions): UnaryCall<DeleteAllTranslationsRequest, DeleteAllTranslationsResult> {
|
|
||||||
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<DeleteAllTranslationsRequest, DeleteAllTranslationsResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: GetLanguages
|
|
||||||
*/
|
|
||||||
getLanguages(input: GetLanguagesRequest, options?: RpcOptions): UnaryCall<GetLanguagesRequest, GetLanguagesResult> {
|
|
||||||
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<GetLanguagesRequest, GetLanguagesResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
1193
viz-translations.ts
1193
viz-translations.ts
File diff suppressed because it is too large
Load Diff
@@ -4,34 +4,11 @@
|
|||||||
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
||||||
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
||||||
import { ViewService } from "./viz-view";
|
import { ViewService } from "./viz-view";
|
||||||
import type { DeleteViewsForSiteResult } from "./viz-view";
|
import type { CrossExtractRequest } from "./viz-view";
|
||||||
import type { DeleteViewsForSiteRequest } from "./viz-view";
|
|
||||||
import type { ExtractSiteResult } from "./viz-view";
|
|
||||||
import type { ExtractSiteRequest } from "./viz-view";
|
|
||||||
import type { ListSiteViewResult } from "./viz-view";
|
|
||||||
import type { ListSiteViewRequest } from "./viz-view";
|
|
||||||
import type { DeleteSiteViewResult } from "./viz-view";
|
|
||||||
import type { DeleteSiteViewRequest } from "./viz-view";
|
|
||||||
import type { UpdateSiteViewResult } from "./viz-view";
|
|
||||||
import type { UpdateSiteViewRequest } from "./viz-view";
|
|
||||||
import type { CreateSiteViewResult } from "./viz-view";
|
|
||||||
import type { CreateSiteViewRequest } from "./viz-view";
|
|
||||||
import type { GetSiteViewResult } from "./viz-view";
|
|
||||||
import type { GetSiteViewRequest } from "./viz-view";
|
|
||||||
import type { ExtractProjectResult } from "./viz-view";
|
|
||||||
import type { ExtractProjectRequest } from "./viz-view";
|
|
||||||
import type { ListProjectViewResult } from "./viz-view";
|
|
||||||
import type { ListProjectViewRequest } from "./viz-view";
|
|
||||||
import type { DeleteProjectViewResult } from "./viz-view";
|
|
||||||
import type { DeleteProjectViewRequest } from "./viz-view";
|
|
||||||
import type { UpdateProjectViewResult } from "./viz-view";
|
|
||||||
import type { UpdateProjectViewRequest } from "./viz-view";
|
|
||||||
import type { CreateProjectViewResult } from "./viz-view";
|
|
||||||
import type { CreateProjectViewRequest } from "./viz-view";
|
|
||||||
import type { GetProjectViewResult } from "./viz-view";
|
|
||||||
import type { GetProjectViewRequest } from "./viz-view";
|
|
||||||
import type { ExtractResult } from "./viz-view";
|
import type { ExtractResult } from "./viz-view";
|
||||||
import type { ExtractRequest } from "./viz-view";
|
import type { ExtractRequest } from "./viz-view";
|
||||||
|
import type { SetOwnerViewResult } from "./viz-view";
|
||||||
|
import type { SetOwnerViewRequest } from "./viz-view";
|
||||||
import type { DeleteViewsForProjectResult } from "./viz-view";
|
import type { DeleteViewsForProjectResult } from "./viz-view";
|
||||||
import type { DeleteViewsForProjectRequest } from "./viz-view";
|
import type { DeleteViewsForProjectRequest } from "./viz-view";
|
||||||
import type { ListViewResult } from "./viz-view";
|
import type { ListViewResult } from "./viz-view";
|
||||||
@@ -75,62 +52,18 @@ export interface IViewServiceClient {
|
|||||||
* @generated from protobuf rpc: DeleteViewsForProject
|
* @generated from protobuf rpc: DeleteViewsForProject
|
||||||
*/
|
*/
|
||||||
deleteViewsForProject(input: DeleteViewsForProjectRequest, options?: RpcOptions): UnaryCall<DeleteViewsForProjectRequest, DeleteViewsForProjectResult>;
|
deleteViewsForProject(input: DeleteViewsForProjectRequest, options?: RpcOptions): UnaryCall<DeleteViewsForProjectRequest, DeleteViewsForProjectResult>;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: SetOwner
|
||||||
|
*/
|
||||||
|
setOwner(input: SetOwnerViewRequest, options?: RpcOptions): UnaryCall<SetOwnerViewRequest, SetOwnerViewResult>;
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf rpc: Extract
|
* @generated from protobuf rpc: Extract
|
||||||
*/
|
*/
|
||||||
extract(input: ExtractRequest, options?: RpcOptions): UnaryCall<ExtractRequest, ExtractResult>;
|
extract(input: ExtractRequest, options?: RpcOptions): UnaryCall<ExtractRequest, ExtractResult>;
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf rpc: GetProject
|
* @generated from protobuf rpc: CrossExtract
|
||||||
*/
|
*/
|
||||||
getProject(input: GetProjectViewRequest, options?: RpcOptions): UnaryCall<GetProjectViewRequest, GetProjectViewResult>;
|
crossExtract(input: CrossExtractRequest, options?: RpcOptions): UnaryCall<CrossExtractRequest, ExtractResult>;
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: CreateProject
|
|
||||||
*/
|
|
||||||
createProject(input: CreateProjectViewRequest, options?: RpcOptions): UnaryCall<CreateProjectViewRequest, CreateProjectViewResult>;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: UpdateProject
|
|
||||||
*/
|
|
||||||
updateProject(input: UpdateProjectViewRequest, options?: RpcOptions): UnaryCall<UpdateProjectViewRequest, UpdateProjectViewResult>;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: DeleteProject
|
|
||||||
*/
|
|
||||||
deleteProject(input: DeleteProjectViewRequest, options?: RpcOptions): UnaryCall<DeleteProjectViewRequest, DeleteProjectViewResult>;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: ListProject
|
|
||||||
*/
|
|
||||||
listProject(input: ListProjectViewRequest, options?: RpcOptions): UnaryCall<ListProjectViewRequest, ListProjectViewResult>;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: ExtractProject
|
|
||||||
*/
|
|
||||||
extractProject(input: ExtractProjectRequest, options?: RpcOptions): UnaryCall<ExtractProjectRequest, ExtractProjectResult>;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: GetSite
|
|
||||||
*/
|
|
||||||
getSite(input: GetSiteViewRequest, options?: RpcOptions): UnaryCall<GetSiteViewRequest, GetSiteViewResult>;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: CreateSite
|
|
||||||
*/
|
|
||||||
createSite(input: CreateSiteViewRequest, options?: RpcOptions): UnaryCall<CreateSiteViewRequest, CreateSiteViewResult>;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: UpdateSite
|
|
||||||
*/
|
|
||||||
updateSite(input: UpdateSiteViewRequest, options?: RpcOptions): UnaryCall<UpdateSiteViewRequest, UpdateSiteViewResult>;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: DeleteSite
|
|
||||||
*/
|
|
||||||
deleteSite(input: DeleteSiteViewRequest, options?: RpcOptions): UnaryCall<DeleteSiteViewRequest, DeleteSiteViewResult>;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: ListSite
|
|
||||||
*/
|
|
||||||
listSite(input: ListSiteViewRequest, options?: RpcOptions): UnaryCall<ListSiteViewRequest, ListSiteViewResult>;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: ExtractSite
|
|
||||||
*/
|
|
||||||
extractSite(input: ExtractSiteRequest, options?: RpcOptions): UnaryCall<ExtractSiteRequest, ExtractSiteResult>;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: DeleteViewsForSite
|
|
||||||
*/
|
|
||||||
deleteViewsForSite(input: DeleteViewsForSiteRequest, options?: RpcOptions): UnaryCall<DeleteViewsForSiteRequest, DeleteViewsForSiteResult>;
|
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf service vizapi.ViewService
|
* @generated from protobuf service vizapi.ViewService
|
||||||
@@ -183,102 +116,25 @@ export class ViewServiceClient implements IViewServiceClient, ServiceInfo {
|
|||||||
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
||||||
return stackIntercept<DeleteViewsForProjectRequest, DeleteViewsForProjectResult>("unary", this._transport, method, opt, input);
|
return stackIntercept<DeleteViewsForProjectRequest, DeleteViewsForProjectResult>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: SetOwner
|
||||||
|
*/
|
||||||
|
setOwner(input: SetOwnerViewRequest, options?: RpcOptions): UnaryCall<SetOwnerViewRequest, SetOwnerViewResult> {
|
||||||
|
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
||||||
|
return stackIntercept<SetOwnerViewRequest, SetOwnerViewResult>("unary", this._transport, method, opt, input);
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf rpc: Extract
|
* @generated from protobuf rpc: Extract
|
||||||
*/
|
*/
|
||||||
extract(input: ExtractRequest, options?: RpcOptions): UnaryCall<ExtractRequest, ExtractResult> {
|
extract(input: ExtractRequest, options?: RpcOptions): UnaryCall<ExtractRequest, ExtractResult> {
|
||||||
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
||||||
return stackIntercept<ExtractRequest, ExtractResult>("unary", this._transport, method, opt, input);
|
return stackIntercept<ExtractRequest, ExtractResult>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf rpc: GetProject
|
* @generated from protobuf rpc: CrossExtract
|
||||||
*/
|
*/
|
||||||
getProject(input: GetProjectViewRequest, options?: RpcOptions): UnaryCall<GetProjectViewRequest, GetProjectViewResult> {
|
crossExtract(input: CrossExtractRequest, options?: RpcOptions): UnaryCall<CrossExtractRequest, ExtractResult> {
|
||||||
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<GetProjectViewRequest, GetProjectViewResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: CreateProject
|
|
||||||
*/
|
|
||||||
createProject(input: CreateProjectViewRequest, options?: RpcOptions): UnaryCall<CreateProjectViewRequest, CreateProjectViewResult> {
|
|
||||||
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
||||||
return stackIntercept<CreateProjectViewRequest, CreateProjectViewResult>("unary", this._transport, method, opt, input);
|
return stackIntercept<CrossExtractRequest, ExtractResult>("unary", this._transport, method, opt, input);
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: UpdateProject
|
|
||||||
*/
|
|
||||||
updateProject(input: UpdateProjectViewRequest, options?: RpcOptions): UnaryCall<UpdateProjectViewRequest, UpdateProjectViewResult> {
|
|
||||||
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<UpdateProjectViewRequest, UpdateProjectViewResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: DeleteProject
|
|
||||||
*/
|
|
||||||
deleteProject(input: DeleteProjectViewRequest, options?: RpcOptions): UnaryCall<DeleteProjectViewRequest, DeleteProjectViewResult> {
|
|
||||||
const method = this.methods[10], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<DeleteProjectViewRequest, DeleteProjectViewResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: ListProject
|
|
||||||
*/
|
|
||||||
listProject(input: ListProjectViewRequest, options?: RpcOptions): UnaryCall<ListProjectViewRequest, ListProjectViewResult> {
|
|
||||||
const method = this.methods[11], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<ListProjectViewRequest, ListProjectViewResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: ExtractProject
|
|
||||||
*/
|
|
||||||
extractProject(input: ExtractProjectRequest, options?: RpcOptions): UnaryCall<ExtractProjectRequest, ExtractProjectResult> {
|
|
||||||
const method = this.methods[12], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<ExtractProjectRequest, ExtractProjectResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: GetSite
|
|
||||||
*/
|
|
||||||
getSite(input: GetSiteViewRequest, options?: RpcOptions): UnaryCall<GetSiteViewRequest, GetSiteViewResult> {
|
|
||||||
const method = this.methods[13], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<GetSiteViewRequest, GetSiteViewResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: CreateSite
|
|
||||||
*/
|
|
||||||
createSite(input: CreateSiteViewRequest, options?: RpcOptions): UnaryCall<CreateSiteViewRequest, CreateSiteViewResult> {
|
|
||||||
const method = this.methods[14], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<CreateSiteViewRequest, CreateSiteViewResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: UpdateSite
|
|
||||||
*/
|
|
||||||
updateSite(input: UpdateSiteViewRequest, options?: RpcOptions): UnaryCall<UpdateSiteViewRequest, UpdateSiteViewResult> {
|
|
||||||
const method = this.methods[15], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<UpdateSiteViewRequest, UpdateSiteViewResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: DeleteSite
|
|
||||||
*/
|
|
||||||
deleteSite(input: DeleteSiteViewRequest, options?: RpcOptions): UnaryCall<DeleteSiteViewRequest, DeleteSiteViewResult> {
|
|
||||||
const method = this.methods[16], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<DeleteSiteViewRequest, DeleteSiteViewResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: ListSite
|
|
||||||
*/
|
|
||||||
listSite(input: ListSiteViewRequest, options?: RpcOptions): UnaryCall<ListSiteViewRequest, ListSiteViewResult> {
|
|
||||||
const method = this.methods[17], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<ListSiteViewRequest, ListSiteViewResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: ExtractSite
|
|
||||||
*/
|
|
||||||
extractSite(input: ExtractSiteRequest, options?: RpcOptions): UnaryCall<ExtractSiteRequest, ExtractSiteResult> {
|
|
||||||
const method = this.methods[18], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<ExtractSiteRequest, ExtractSiteResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: DeleteViewsForSite
|
|
||||||
*/
|
|
||||||
deleteViewsForSite(input: DeleteViewsForSiteRequest, options?: RpcOptions): UnaryCall<DeleteViewsForSiteRequest, DeleteViewsForSiteResult> {
|
|
||||||
const method = this.methods[19], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<DeleteViewsForSiteRequest, DeleteViewsForSiteResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
2342
viz-view.ts
2342
viz-view.ts
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user