You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -1059,5 +1059,5 @@ export const AppointmentQuery = new ServiceType("api.AppointmentQuery", [
|
|||||||
{ name: "CountLines", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Query"], description: "Count lines in database for project" }, "api.rscType": "Platform", "api.roles": "Platform.Project-Query", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: CountLinesQuery, O: CountLinesResult },
|
{ name: "CountLines", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Query"], description: "Count lines in database for project" }, "api.rscType": "Platform", "api.roles": "Platform.Project-Query", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: CountLinesQuery, O: CountLinesResult },
|
||||||
{ name: "FindMine", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Query"], description: "Find user's all Appointments across all sites in all organisations" }, "api.customQuery": true, "api.rscType": "Platform", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: FindMineQuery, O: FindMineResult },
|
{ name: "FindMine", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Query"], description: "Find user's all Appointments across all sites in all organisations" }, "api.customQuery": true, "api.rscType": "Platform", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: FindMineQuery, O: FindMineResult },
|
||||||
{ name: "FindMineMatchingFieldValues", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Query"], description: "Using search criteria & a main field word, find the list of fields containing the searched word (used for auto completion purposes ...) " }, "api.rscType": "Platform", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: FindMineByMatchQuery, O: AppointmentByMatchResult },
|
{ name: "FindMineMatchingFieldValues", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Query"], description: "Using search criteria & a main field word, find the list of fields containing the searched word (used for auto completion purposes ...) " }, "api.rscType": "Platform", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: FindMineByMatchQuery, O: AppointmentByMatchResult },
|
||||||
{ name: "FindByCommission", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Query"], description: "Find Appointments using search criterias" }, "api.customQuery": true, "api.rscType": "Project", "api.roles": "Platform.Project-Query", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: FindByCommissionQuery, O: FindByCommissionResult }
|
{ name: "FindByCommission", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Query"], description: "Find Appointments using search criterias" }, "api.customQuery": true, "api.rscType": "Project", "api.roles": "Platform.Project-Query", "api.moduleID": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: FindByCommissionQuery, O: FindByCommissionResult }
|
||||||
], { "api.serviceType": "Query", "api.k8sService": "collab-query-server" });
|
], { "api.serviceType": "Query", "api.k8sService": "collab-query-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 2025 Google LLC
|
// Copyright 2020 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,40 +73,5 @@ 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 2025 Google LLC
|
// Copyright 2020 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,8 +95,9 @@ export interface Http {
|
|||||||
*
|
*
|
||||||
* This enables an HTTP REST to gRPC mapping as below:
|
* This enables an HTTP REST to gRPC mapping as below:
|
||||||
*
|
*
|
||||||
* - HTTP: `GET /v1/messages/123456`
|
* HTTP | gRPC
|
||||||
* - 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.
|
||||||
@@ -120,9 +121,11 @@ export interface Http {
|
|||||||
*
|
*
|
||||||
* This enables a HTTP JSON to RPC mapping as below:
|
* This enables a HTTP JSON to RPC mapping as below:
|
||||||
*
|
*
|
||||||
* - HTTP: `GET /v1/messages/123456?revision=2&sub.subfield=foo`
|
* HTTP | gRPC
|
||||||
* - gRPC: `GetMessage(message_id: "123456" revision: 2 sub:
|
* -----|-----
|
||||||
* SubMessage(subfield: "foo"))`
|
* `GET /v1/messages/123456?revision=2&sub.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.
|
||||||
@@ -152,8 +155,10 @@ 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: `PATCH /v1/messages/123456 { "text": "Hi!" }`
|
* HTTP | gRPC
|
||||||
* - 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
|
||||||
@@ -176,8 +181,10 @@ export interface Http {
|
|||||||
*
|
*
|
||||||
* The following HTTP JSON to RPC mapping is enabled:
|
* The following HTTP JSON to RPC mapping is enabled:
|
||||||
*
|
*
|
||||||
* - HTTP: `PATCH /v1/messages/123456 { "text": "Hi!" }`
|
* HTTP | gRPC
|
||||||
* - 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
|
||||||
@@ -205,32 +212,29 @@ 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: `GET /v1/messages/123456`
|
* HTTP | gRPC
|
||||||
* - 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")`
|
||||||
*
|
*
|
||||||
* - HTTP: `GET /v1/users/me/messages/123456`
|
* ## Rules for HTTP mapping
|
||||||
* - 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
|
* - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They are passed via the HTTP
|
||||||
* 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
|
* 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL query parameter, all fields
|
||||||
* 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
|
* 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP request body, all
|
||||||
* 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 } ;
|
||||||
@@ -269,7 +273,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
|
||||||
@@ -284,14 +288,15 @@ 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.
|
||||||
*
|
*
|
||||||
* The following example selects a gRPC method and applies an `HttpRule` to it:
|
* Example:
|
||||||
*
|
*
|
||||||
* 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
|
||||||
@@ -325,8 +330,7 @@ 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
|
* Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
|
||||||
* 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 2025 Google LLC
|
// Copyright 2020 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,15 +47,12 @@ 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)
|
* rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
|
||||||
* returns (google.api.HttpBody);
|
* rpc UpdateResource(google.api.HttpBody) returns
|
||||||
* rpc UpdateResource(google.api.HttpBody)
|
* (google.protobuf.Empty);
|
||||||
* returns (google.protobuf.Empty);
|
|
||||||
*
|
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* Example with streaming methods:
|
* Example with streaming methods:
|
||||||
@@ -65,7 +62,6 @@ 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,10 +73,6 @@ 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.
|
||||||
*
|
*
|
||||||
@@ -91,13 +87,10 @@ 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 := anypb.New(foo)
|
* any, err := ptypes.MarshalAny(foo)
|
||||||
* if err != nil {
|
|
||||||
* ...
|
|
||||||
* }
|
|
||||||
* ...
|
* ...
|
||||||
* foo := &pb.Foo{}
|
* foo := &pb.Foo{}
|
||||||
* if err := any.UnmarshalTo(foo); err != nil {
|
* if err := ptypes.UnmarshalAny(any, foo); err != nil {
|
||||||
* ...
|
* ...
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
@@ -107,6 +100,7 @@ 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
|
||||||
@@ -163,8 +157,7 @@ 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. As of May 2023, there are no widely used type server
|
* type.googleapis.com.
|
||||||
* 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,11 +55,6 @@ 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 {
|
||||||
@@ -104,6 +99,7 @@ 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;
|
||||||
@@ -126,21 +122,10 @@ 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 {
|
||||||
@@ -183,23 +168,9 @@ export interface Method {
|
|||||||
/**
|
/**
|
||||||
* The source syntax of this method.
|
* The source syntax of this method.
|
||||||
*
|
*
|
||||||
* This field should be ignored, instead the syntax should be inherited from
|
* @generated from protobuf field: google.protobuf.Syntax syntax = 7
|
||||||
* 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
|
||||||
@@ -249,7 +220,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 inheriting
|
* see the effective `Storage.GetAcl` method after inherting
|
||||||
* documentation and annotations as follows:
|
* documentation and annotations as follows:
|
||||||
*
|
*
|
||||||
* service Storage {
|
* service Storage {
|
||||||
@@ -308,8 +279,7 @@ 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] },
|
{ no: 7, name: "syntax", kind: "enum", T: () => ["google.protobuf.Syntax", Syntax] }
|
||||||
{ no: 8, name: "edition", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value?: PartialMessage<Api>): Api {
|
create(value?: PartialMessage<Api>): Api {
|
||||||
@@ -320,7 +290,6 @@ 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;
|
||||||
@@ -351,9 +320,6 @@ 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")
|
||||||
@@ -387,9 +353,6 @@ 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);
|
||||||
@@ -410,8 +373,7 @@ 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] },
|
{ no: 7, name: "syntax", kind: "enum", T: () => ["google.protobuf.Syntax", Syntax] }
|
||||||
{ no: 8, name: "edition", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value?: PartialMessage<Method>): Method {
|
create(value?: PartialMessage<Method>): Method {
|
||||||
@@ -423,7 +385,6 @@ 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;
|
||||||
@@ -451,12 +412,9 @@ 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 [deprecated = true] */ 7:
|
case /* google.protobuf.Syntax syntax */ 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")
|
||||||
@@ -487,12 +445,9 @@ 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 [deprecated = true]; */
|
/* 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 [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,14 +4,40 @@
|
|||||||
//
|
//
|
||||||
// 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/
|
||||||
//
|
//
|
||||||
// Use of this source code is governed by a BSD-style
|
// Redistribution and use in source and binary forms, with or without
|
||||||
// license that can be found in the LICENSE file or at
|
// modification, are permitted provided that the following conditions are
|
||||||
// https://developers.google.com/open-source/licenses/bsd
|
// met:
|
||||||
|
//
|
||||||
|
// * 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.
|
||||||
@@ -32,7 +58,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 { GeneratedCodeInfo } from "../descriptor";
|
|
||||||
import { FileDescriptorProto } from "../descriptor";
|
import { FileDescriptorProto } from "../descriptor";
|
||||||
/**
|
/**
|
||||||
* The version number of protocol compiler.
|
* The version number of protocol compiler.
|
||||||
@@ -85,11 +110,6 @@ 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
|
||||||
@@ -104,14 +124,6 @@ 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.
|
||||||
*
|
*
|
||||||
@@ -138,31 +150,6 @@ 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
|
||||||
*/
|
*/
|
||||||
@@ -238,33 +225,6 @@ 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;
|
|
||||||
*/
|
|
||||||
FEATURE_NONE = 0,
|
|
||||||
/**
|
|
||||||
* @generated from protobuf enum value: FEATURE_PROTO3_OPTIONAL = 1;
|
|
||||||
*/
|
|
||||||
FEATURE_PROTO3_OPTIONAL = 1,
|
|
||||||
/**
|
|
||||||
* @generated from protobuf enum value: FEATURE_SUPPORTS_EDITIONS = 2;
|
|
||||||
*/
|
|
||||||
FEATURE_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> {
|
||||||
@@ -340,7 +300,6 @@ 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 }
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
@@ -348,7 +307,6 @@ 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;
|
||||||
@@ -367,9 +325,6 @@ 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;
|
||||||
@@ -397,9 +352,6 @@ 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);
|
||||||
@@ -415,9 +367,6 @@ 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 }
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
@@ -436,15 +385,6 @@ 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;
|
||||||
@@ -463,15 +403,6 @@ 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();
|
||||||
@@ -491,8 +422,7 @@ 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 {
|
||||||
@@ -515,9 +445,6 @@ 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")
|
||||||
@@ -539,9 +466,6 @@ 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,6 +107,7 @@ 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,6 +49,7 @@ 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 these
|
* list of values. A producer of value is expected to set one of that
|
||||||
* 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,15 +97,8 @@ 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()`.
|
|
||||||
*
|
*
|
||||||
* Instant now = Instant.now();
|
* Example 5: Compute Timestamp from current time in Python.
|
||||||
*
|
|
||||||
* 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()
|
||||||
@@ -119,8 +112,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 ProtoJSON serializer should always use UTC (as indicated by
|
* is required. A proto3 JSON serializer should always use UTC (as indicated by
|
||||||
* "Z") when printing the Timestamp type and a ProtoJSON parser should be
|
* "Z") when printing the Timestamp type and a proto3 JSON 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
|
||||||
@@ -134,26 +127,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://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
|
* http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
|
||||||
* ) 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 1970-01-01T00:00:00Z. Must
|
* Represents seconds of UTC time since Unix epoch
|
||||||
* be between -62135596800 and 253402300799 inclusive (which corresponds to
|
* 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
|
||||||
* 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z).
|
* 9999-12-31T23:59:59Z inclusive.
|
||||||
*
|
*
|
||||||
* @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. This field is
|
* Non-negative fractions of a second at nanosecond resolution. Negative
|
||||||
* the nanosecond portion of the duration, not an alternative to seconds.
|
* second values with fractions must still have non-negative nanos values
|
||||||
* Negative second values with fractions must still have non-negative nanos
|
* that count forward in time. Must be from 0 to 999,999,999
|
||||||
* 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,11 +46,6 @@ 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 {
|
||||||
@@ -90,21 +85,10 @@ 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 {
|
||||||
@@ -326,11 +310,6 @@ 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 {
|
||||||
@@ -364,21 +343,10 @@ 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 {
|
||||||
@@ -405,10 +373,6 @@ 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 {
|
||||||
@@ -448,13 +412,7 @@ export enum Syntax {
|
|||||||
*
|
*
|
||||||
* @generated from protobuf enum value: SYNTAX_PROTO3 = 1;
|
* @generated from protobuf enum value: SYNTAX_PROTO3 = 1;
|
||||||
*/
|
*/
|
||||||
SYNTAX_PROTO3 = 1,
|
SYNTAX_PROTO3 = 1
|
||||||
/**
|
|
||||||
* Syntax `editions`.
|
|
||||||
*
|
|
||||||
* @generated from protobuf enum value: SYNTAX_EDITIONS = 2;
|
|
||||||
*/
|
|
||||||
SYNTAX_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> {
|
||||||
@@ -465,8 +423,7 @@ 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] },
|
{ no: 6, name: "syntax", kind: "enum", T: () => ["google.protobuf.Syntax", Syntax] }
|
||||||
{ no: 7, name: "edition", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value?: PartialMessage<Type>): Type {
|
create(value?: PartialMessage<Type>): Type {
|
||||||
@@ -476,7 +433,6 @@ 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;
|
||||||
@@ -504,9 +460,6 @@ 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")
|
||||||
@@ -537,9 +490,6 @@ 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);
|
||||||
@@ -677,8 +627,7 @@ 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] },
|
{ no: 5, name: "syntax", kind: "enum", T: () => ["google.protobuf.Syntax", Syntax] }
|
||||||
{ no: 6, name: "edition", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value?: PartialMessage<Enum>): Enum {
|
create(value?: PartialMessage<Enum>): Enum {
|
||||||
@@ -687,7 +636,6 @@ 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;
|
||||||
@@ -712,9 +660,6 @@ 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")
|
||||||
@@ -742,9 +687,6 @@ 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,17 +32,11 @@
|
|||||||
// (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.
|
|
||||||
//
|
//
|
||||||
// Historically these wrappers were useful to have presence on proto3 primitive
|
// Wrappers for primitive (non-message) types. These types are useful
|
||||||
// fields, but proto3 syntax has been updated to support the `optional` keyword.
|
// for embedding primitives in the `google.protobuf.Any` type and for places
|
||||||
// Using that keyword is now the strongly preferred way to add presence to
|
// where we need to distinguish between the absence of a primitive
|
||||||
// proto3 primitive fields.
|
// typed field and its default value.
|
||||||
//
|
|
||||||
// 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.
|
||||||
@@ -68,9 +62,6 @@ 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 {
|
||||||
@@ -86,9 +77,6 @@ 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 {
|
||||||
@@ -104,9 +92,6 @@ 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 {
|
||||||
@@ -122,9 +107,6 @@ 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 {
|
||||||
@@ -140,9 +122,6 @@ 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 {
|
||||||
@@ -158,9 +137,6 @@ 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 {
|
||||||
@@ -176,9 +152,6 @@ 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 {
|
||||||
@@ -194,9 +167,6 @@ 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 {
|
||||||
@@ -212,9 +182,6 @@ 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 {
|
||||||
|
|||||||
457
openapiv2.ts
457
openapiv2.ts
@@ -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/main/LICENSE";
|
* url: "https://github.com/grpc-ecosystem/grpc-gateway/blob/master/LICENSE.txt";
|
||||||
* };
|
* };
|
||||||
* };
|
* };
|
||||||
* schemes: HTTPS;
|
* schemes: HTTPS;
|
||||||
@@ -278,99 +278,6 @@ export interface Operation {
|
|||||||
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.
|
||||||
@@ -486,7 +393,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/main/LICENSE";
|
* url: "https://github.com/grpc-ecosystem/grpc-gateway/blob/master/LICENSE.txt";
|
||||||
* };
|
* };
|
||||||
* };
|
* };
|
||||||
* ...
|
* ...
|
||||||
@@ -602,7 +509,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/main/LICENSE";
|
* url: "https://github.com/grpc-ecosystem/grpc-gateway/blob/master/LICENSE.txt";
|
||||||
* };
|
* };
|
||||||
* ...
|
* ...
|
||||||
* };
|
* };
|
||||||
@@ -709,82 +616,6 @@ 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.
|
||||||
@@ -974,13 +805,6 @@ export interface JSONSchema_FieldConfiguration {
|
|||||||
* @generated from protobuf field: string path_param_name = 47
|
* @generated from protobuf field: string path_param_name = 47
|
||||||
*/
|
*/
|
||||||
path_param_name: string;
|
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
|
||||||
@@ -1530,8 +1354,7 @@ 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 {
|
||||||
@@ -1596,9 +1419,6 @@ 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")
|
||||||
@@ -1691,9 +1511,6 @@ 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);
|
||||||
@@ -1705,132 +1522,6 @@ 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", [
|
||||||
@@ -2407,136 +2098,6 @@ 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", [
|
||||||
@@ -2814,14 +2375,12 @@ export const JSONSchema = new JSONSchema$Type();
|
|||||||
class JSONSchema_FieldConfiguration$Type extends MessageType<JSONSchema_FieldConfiguration> {
|
class JSONSchema_FieldConfiguration$Type extends MessageType<JSONSchema_FieldConfiguration> {
|
||||||
constructor() {
|
constructor() {
|
||||||
super("grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration", [
|
super("grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration", [
|
||||||
{ no: 47, name: "path_param_name", kind: "scalar", localName: "path_param_name", T: 9 /*ScalarType.STRING*/ },
|
{ no: 47, name: "path_param_name", kind: "scalar", localName: "path_param_name", T: 9 /*ScalarType.STRING*/ }
|
||||||
{ no: 49, name: "deprecated", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value?: PartialMessage<JSONSchema_FieldConfiguration>): JSONSchema_FieldConfiguration {
|
create(value?: PartialMessage<JSONSchema_FieldConfiguration>): JSONSchema_FieldConfiguration {
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
const message = globalThis.Object.create((this.messagePrototype!));
|
||||||
message.path_param_name = "";
|
message.path_param_name = "";
|
||||||
message.deprecated = false;
|
|
||||||
if (value !== undefined)
|
if (value !== undefined)
|
||||||
reflectionMergePartial<JSONSchema_FieldConfiguration>(this, message, value);
|
reflectionMergePartial<JSONSchema_FieldConfiguration>(this, message, value);
|
||||||
return message;
|
return message;
|
||||||
@@ -2834,9 +2393,6 @@ class JSONSchema_FieldConfiguration$Type extends MessageType<JSONSchema_FieldCon
|
|||||||
case /* string path_param_name */ 47:
|
case /* string path_param_name */ 47:
|
||||||
message.path_param_name = reader.string();
|
message.path_param_name = reader.string();
|
||||||
break;
|
break;
|
||||||
case /* bool deprecated */ 49:
|
|
||||||
message.deprecated = reader.bool();
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -2852,9 +2408,6 @@ class JSONSchema_FieldConfiguration$Type extends MessageType<JSONSchema_FieldCon
|
|||||||
/* string path_param_name = 47; */
|
/* string path_param_name = 47; */
|
||||||
if (message.path_param_name !== "")
|
if (message.path_param_name !== "")
|
||||||
writer.tag(47, WireType.LengthDelimited).string(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;
|
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-core-sdk",
|
"name": "@reflex-platform/npm-core-sdk",
|
||||||
"version": "1.13.0-SNAPSHOT-dev",
|
"version": "1.13.0-SNAPSHOT-260115154358",
|
||||||
"description": "npm libs from core model proto files",
|
"description": "npm libs from core model proto files",
|
||||||
"homepage": "",
|
"homepage": "",
|
||||||
"main": "index.ts",
|
"main": "index.ts",
|
||||||
|
|||||||
173
role.ts
173
role.ts
@@ -4,10 +4,10 @@
|
|||||||
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
||||||
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
||||||
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
||||||
import { WireType } from "@protobuf-ts/runtime";
|
|
||||||
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
||||||
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
||||||
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
||||||
|
import { WireType } 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";
|
||||||
@@ -68,6 +68,10 @@ export interface Role {
|
|||||||
* @generated from protobuf field: repeated api.ExternalPermission ExternalPermissions = 14
|
* @generated from protobuf field: repeated api.ExternalPermission ExternalPermissions = 14
|
||||||
*/
|
*/
|
||||||
ExternalPermissions: ExternalPermission[];
|
ExternalPermissions: ExternalPermission[];
|
||||||
|
/**
|
||||||
|
* @generated from protobuf field: repeated api.RoleTag Tags = 15
|
||||||
|
*/
|
||||||
|
Tags: RoleTag[];
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf message api.ExternalPermission
|
* @generated from protobuf message api.ExternalPermission
|
||||||
@@ -110,6 +114,10 @@ export interface CreatePlatformRoleRequest {
|
|||||||
* @generated from protobuf field: string Description = 8
|
* @generated from protobuf field: string Description = 8
|
||||||
*/
|
*/
|
||||||
Description: string;
|
Description: string;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf field: repeated api.RoleTag Tags = 9
|
||||||
|
*/
|
||||||
|
Tags: RoleTag[];
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf message api.CreatePlatformRoleResult
|
* @generated from protobuf message api.CreatePlatformRoleResult
|
||||||
@@ -148,6 +156,10 @@ export interface CreateOrganisationRoleRequest {
|
|||||||
* @generated from protobuf field: string Description = 7
|
* @generated from protobuf field: string Description = 7
|
||||||
*/
|
*/
|
||||||
Description: string;
|
Description: string;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf field: repeated api.RoleTag Tags = 9
|
||||||
|
*/
|
||||||
|
Tags: RoleTag[];
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf message api.CreateOrganisationRoleResult
|
* @generated from protobuf message api.CreateOrganisationRoleResult
|
||||||
@@ -186,6 +198,10 @@ export interface CreateProjectRoleRequest {
|
|||||||
* @generated from protobuf field: string Description = 7
|
* @generated from protobuf field: string Description = 7
|
||||||
*/
|
*/
|
||||||
Description: string;
|
Description: string;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf field: repeated api.RoleTag Tags = 9
|
||||||
|
*/
|
||||||
|
Tags: RoleTag[];
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf message api.CreateProjectRoleResult
|
* @generated from protobuf message api.CreateProjectRoleResult
|
||||||
@@ -224,6 +240,10 @@ export interface UpdatePlatformRoleRequest {
|
|||||||
* @generated from protobuf field: string Description = 8
|
* @generated from protobuf field: string Description = 8
|
||||||
*/
|
*/
|
||||||
Description: string;
|
Description: string;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf field: repeated api.RoleTag Tags = 9
|
||||||
|
*/
|
||||||
|
Tags: RoleTag[];
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf message api.UpdatePlatformRoleResult
|
* @generated from protobuf message api.UpdatePlatformRoleResult
|
||||||
@@ -262,6 +282,10 @@ export interface UpdateOrganisationRoleRequest {
|
|||||||
* @generated from protobuf field: string Description = 7
|
* @generated from protobuf field: string Description = 7
|
||||||
*/
|
*/
|
||||||
Description: string;
|
Description: string;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf field: repeated api.RoleTag Tags = 9
|
||||||
|
*/
|
||||||
|
Tags: RoleTag[];
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf message api.UpdateOrganisationRoleResult
|
* @generated from protobuf message api.UpdateOrganisationRoleResult
|
||||||
@@ -300,6 +324,10 @@ export interface UpdateProjectRoleRequest {
|
|||||||
* @generated from protobuf field: string Description = 7
|
* @generated from protobuf field: string Description = 7
|
||||||
*/
|
*/
|
||||||
Description: string;
|
Description: string;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf field: repeated api.RoleTag Tags = 9
|
||||||
|
*/
|
||||||
|
Tags: RoleTag[];
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf message api.UpdateProjectRoleResult
|
* @generated from protobuf message api.UpdateProjectRoleResult
|
||||||
@@ -678,6 +706,23 @@ export enum RoleType {
|
|||||||
*/
|
*/
|
||||||
ROLE_TYPE_COMPOSITE = 20
|
ROLE_TYPE_COMPOSITE = 20
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* @generated from protobuf enum api.RoleTag
|
||||||
|
*/
|
||||||
|
export enum RoleTag {
|
||||||
|
/**
|
||||||
|
* @generated from protobuf enum value: ROLE_TAG_UNKNOWN = 0;
|
||||||
|
*/
|
||||||
|
ROLE_TAG_UNKNOWN = 0,
|
||||||
|
/**
|
||||||
|
* @generated from protobuf enum value: ROLE_TAG_PROJECT_ACTIVITY = 10;
|
||||||
|
*/
|
||||||
|
ROLE_TAG_PROJECT_ACTIVITY = 10,
|
||||||
|
/**
|
||||||
|
* @generated from protobuf enum value: ROLE_TAG_PROJECT_SITE = 20;
|
||||||
|
*/
|
||||||
|
ROLE_TAG_PROJECT_SITE = 20
|
||||||
|
}
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
// @generated message type with reflection information, may provide speed optimized methods
|
||||||
class Role$Type extends MessageType<Role> {
|
class Role$Type extends MessageType<Role> {
|
||||||
constructor() {
|
constructor() {
|
||||||
@@ -693,7 +738,8 @@ class Role$Type extends MessageType<Role> {
|
|||||||
{ no: 11, name: "CreatedAt", kind: "scalar", localName: "CreatedAt", jsonName: "CreatedAt", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in <a href='https://en.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format" }, "api.kpi": true } },
|
{ no: 11, name: "CreatedAt", kind: "scalar", localName: "CreatedAt", jsonName: "CreatedAt", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in <a href='https://en.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format" }, "api.kpi": true } },
|
||||||
{ no: 12, name: "CreatedBy", kind: "scalar", localName: "CreatedBy", jsonName: "CreatedBy", T: 9 /*ScalarType.STRING*/ },
|
{ no: 12, name: "CreatedBy", kind: "scalar", localName: "CreatedBy", jsonName: "CreatedBy", T: 9 /*ScalarType.STRING*/ },
|
||||||
{ no: 13, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ },
|
{ no: 13, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ },
|
||||||
{ no: 14, name: "ExternalPermissions", kind: "message", localName: "ExternalPermissions", jsonName: "ExternalPermissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExternalPermission }
|
{ no: 14, name: "ExternalPermissions", kind: "message", localName: "ExternalPermissions", jsonName: "ExternalPermissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExternalPermission },
|
||||||
|
{ no: 15, name: "Tags", kind: "enum", localName: "Tags", jsonName: "Tags", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.RoleTag", RoleTag] }
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value?: PartialMessage<Role>): Role {
|
create(value?: PartialMessage<Role>): Role {
|
||||||
@@ -710,6 +756,7 @@ class Role$Type extends MessageType<Role> {
|
|||||||
message.CreatedBy = "";
|
message.CreatedBy = "";
|
||||||
message.Description = "";
|
message.Description = "";
|
||||||
message.ExternalPermissions = [];
|
message.ExternalPermissions = [];
|
||||||
|
message.Tags = [];
|
||||||
if (value !== undefined)
|
if (value !== undefined)
|
||||||
reflectionMergePartial<Role>(this, message, value);
|
reflectionMergePartial<Role>(this, message, value);
|
||||||
return message;
|
return message;
|
||||||
@@ -755,6 +802,13 @@ class Role$Type extends MessageType<Role> {
|
|||||||
case /* repeated api.ExternalPermission ExternalPermissions */ 14:
|
case /* repeated api.ExternalPermission ExternalPermissions */ 14:
|
||||||
message.ExternalPermissions.push(ExternalPermission.internalBinaryRead(reader, reader.uint32(), options));
|
message.ExternalPermissions.push(ExternalPermission.internalBinaryRead(reader, reader.uint32(), options));
|
||||||
break;
|
break;
|
||||||
|
case /* repeated api.RoleTag Tags */ 15:
|
||||||
|
if (wireType === WireType.LengthDelimited)
|
||||||
|
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
||||||
|
message.Tags.push(reader.int32());
|
||||||
|
else
|
||||||
|
message.Tags.push(reader.int32());
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -803,6 +857,13 @@ class Role$Type extends MessageType<Role> {
|
|||||||
/* repeated api.ExternalPermission ExternalPermissions = 14; */
|
/* repeated api.ExternalPermission ExternalPermissions = 14; */
|
||||||
for (let i = 0; i < message.ExternalPermissions.length; i++)
|
for (let i = 0; i < message.ExternalPermissions.length; i++)
|
||||||
ExternalPermission.internalBinaryWrite(message.ExternalPermissions[i], writer.tag(14, WireType.LengthDelimited).fork(), options).join();
|
ExternalPermission.internalBinaryWrite(message.ExternalPermissions[i], writer.tag(14, WireType.LengthDelimited).fork(), options).join();
|
||||||
|
/* repeated api.RoleTag Tags = 15; */
|
||||||
|
if (message.Tags.length) {
|
||||||
|
writer.tag(15, WireType.LengthDelimited).fork();
|
||||||
|
for (let i = 0; i < message.Tags.length; i++)
|
||||||
|
writer.int32(message.Tags[i]);
|
||||||
|
writer.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);
|
||||||
@@ -877,7 +938,8 @@ class CreatePlatformRoleRequest$Type extends MessageType<CreatePlatformRoleReque
|
|||||||
{ no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission },
|
{ no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission },
|
||||||
{ no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
{ no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||||
{ no: 7, name: "ApplicationType", kind: "enum", localName: "ApplicationType", jsonName: "ApplicationType", T: () => ["api.ApplicationType", ApplicationType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
{ no: 7, name: "ApplicationType", kind: "enum", localName: "ApplicationType", jsonName: "ApplicationType", T: () => ["api.ApplicationType", ApplicationType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||||
{ no: 8, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }
|
{ no: 8, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ },
|
||||||
|
{ no: 9, name: "Tags", kind: "enum", localName: "Tags", jsonName: "Tags", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.RoleTag", RoleTag] }
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value?: PartialMessage<CreatePlatformRoleRequest>): CreatePlatformRoleRequest {
|
create(value?: PartialMessage<CreatePlatformRoleRequest>): CreatePlatformRoleRequest {
|
||||||
@@ -888,6 +950,7 @@ class CreatePlatformRoleRequest$Type extends MessageType<CreatePlatformRoleReque
|
|||||||
message.Type = 0;
|
message.Type = 0;
|
||||||
message.ApplicationType = 0;
|
message.ApplicationType = 0;
|
||||||
message.Description = "";
|
message.Description = "";
|
||||||
|
message.Tags = [];
|
||||||
if (value !== undefined)
|
if (value !== undefined)
|
||||||
reflectionMergePartial<CreatePlatformRoleRequest>(this, message, value);
|
reflectionMergePartial<CreatePlatformRoleRequest>(this, message, value);
|
||||||
return message;
|
return message;
|
||||||
@@ -915,6 +978,13 @@ class CreatePlatformRoleRequest$Type extends MessageType<CreatePlatformRoleReque
|
|||||||
case /* string Description */ 8:
|
case /* string Description */ 8:
|
||||||
message.Description = reader.string();
|
message.Description = reader.string();
|
||||||
break;
|
break;
|
||||||
|
case /* repeated api.RoleTag Tags */ 9:
|
||||||
|
if (wireType === WireType.LengthDelimited)
|
||||||
|
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
||||||
|
message.Tags.push(reader.int32());
|
||||||
|
else
|
||||||
|
message.Tags.push(reader.int32());
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -945,6 +1015,13 @@ class CreatePlatformRoleRequest$Type extends MessageType<CreatePlatformRoleReque
|
|||||||
/* string Description = 8; */
|
/* string Description = 8; */
|
||||||
if (message.Description !== "")
|
if (message.Description !== "")
|
||||||
writer.tag(8, WireType.LengthDelimited).string(message.Description);
|
writer.tag(8, WireType.LengthDelimited).string(message.Description);
|
||||||
|
/* repeated api.RoleTag Tags = 9; */
|
||||||
|
if (message.Tags.length) {
|
||||||
|
writer.tag(9, WireType.LengthDelimited).fork();
|
||||||
|
for (let i = 0; i < message.Tags.length; i++)
|
||||||
|
writer.int32(message.Tags[i]);
|
||||||
|
writer.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);
|
||||||
@@ -1010,7 +1087,8 @@ class CreateOrganisationRoleRequest$Type extends MessageType<CreateOrganisationR
|
|||||||
{ no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
{ no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||||
{ no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission },
|
{ no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission },
|
||||||
{ no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
{ no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||||
{ no: 7, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }
|
{ no: 7, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ },
|
||||||
|
{ no: 9, name: "Tags", kind: "enum", localName: "Tags", jsonName: "Tags", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.RoleTag", RoleTag] }
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value?: PartialMessage<CreateOrganisationRoleRequest>): CreateOrganisationRoleRequest {
|
create(value?: PartialMessage<CreateOrganisationRoleRequest>): CreateOrganisationRoleRequest {
|
||||||
@@ -1020,6 +1098,7 @@ class CreateOrganisationRoleRequest$Type extends MessageType<CreateOrganisationR
|
|||||||
message.Permissions = [];
|
message.Permissions = [];
|
||||||
message.Type = 0;
|
message.Type = 0;
|
||||||
message.Description = "";
|
message.Description = "";
|
||||||
|
message.Tags = [];
|
||||||
if (value !== undefined)
|
if (value !== undefined)
|
||||||
reflectionMergePartial<CreateOrganisationRoleRequest>(this, message, value);
|
reflectionMergePartial<CreateOrganisationRoleRequest>(this, message, value);
|
||||||
return message;
|
return message;
|
||||||
@@ -1047,6 +1126,13 @@ class CreateOrganisationRoleRequest$Type extends MessageType<CreateOrganisationR
|
|||||||
case /* string Description */ 7:
|
case /* string Description */ 7:
|
||||||
message.Description = reader.string();
|
message.Description = reader.string();
|
||||||
break;
|
break;
|
||||||
|
case /* repeated api.RoleTag Tags */ 9:
|
||||||
|
if (wireType === WireType.LengthDelimited)
|
||||||
|
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
||||||
|
message.Tags.push(reader.int32());
|
||||||
|
else
|
||||||
|
message.Tags.push(reader.int32());
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -1077,6 +1163,13 @@ class CreateOrganisationRoleRequest$Type extends MessageType<CreateOrganisationR
|
|||||||
/* string Description = 7; */
|
/* string Description = 7; */
|
||||||
if (message.Description !== "")
|
if (message.Description !== "")
|
||||||
writer.tag(7, WireType.LengthDelimited).string(message.Description);
|
writer.tag(7, WireType.LengthDelimited).string(message.Description);
|
||||||
|
/* repeated api.RoleTag Tags = 9; */
|
||||||
|
if (message.Tags.length) {
|
||||||
|
writer.tag(9, WireType.LengthDelimited).fork();
|
||||||
|
for (let i = 0; i < message.Tags.length; i++)
|
||||||
|
writer.int32(message.Tags[i]);
|
||||||
|
writer.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);
|
||||||
@@ -1142,7 +1235,8 @@ class CreateProjectRoleRequest$Type extends MessageType<CreateProjectRoleRequest
|
|||||||
{ no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
{ no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||||
{ no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission },
|
{ no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission },
|
||||||
{ no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
{ no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||||
{ no: 7, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }
|
{ no: 7, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ },
|
||||||
|
{ no: 9, name: "Tags", kind: "enum", localName: "Tags", jsonName: "Tags", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.RoleTag", RoleTag] }
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value?: PartialMessage<CreateProjectRoleRequest>): CreateProjectRoleRequest {
|
create(value?: PartialMessage<CreateProjectRoleRequest>): CreateProjectRoleRequest {
|
||||||
@@ -1152,6 +1246,7 @@ class CreateProjectRoleRequest$Type extends MessageType<CreateProjectRoleRequest
|
|||||||
message.Permissions = [];
|
message.Permissions = [];
|
||||||
message.Type = 0;
|
message.Type = 0;
|
||||||
message.Description = "";
|
message.Description = "";
|
||||||
|
message.Tags = [];
|
||||||
if (value !== undefined)
|
if (value !== undefined)
|
||||||
reflectionMergePartial<CreateProjectRoleRequest>(this, message, value);
|
reflectionMergePartial<CreateProjectRoleRequest>(this, message, value);
|
||||||
return message;
|
return message;
|
||||||
@@ -1179,6 +1274,13 @@ class CreateProjectRoleRequest$Type extends MessageType<CreateProjectRoleRequest
|
|||||||
case /* string Description */ 7:
|
case /* string Description */ 7:
|
||||||
message.Description = reader.string();
|
message.Description = reader.string();
|
||||||
break;
|
break;
|
||||||
|
case /* repeated api.RoleTag Tags */ 9:
|
||||||
|
if (wireType === WireType.LengthDelimited)
|
||||||
|
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
||||||
|
message.Tags.push(reader.int32());
|
||||||
|
else
|
||||||
|
message.Tags.push(reader.int32());
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -1209,6 +1311,13 @@ class CreateProjectRoleRequest$Type extends MessageType<CreateProjectRoleRequest
|
|||||||
/* string Description = 7; */
|
/* string Description = 7; */
|
||||||
if (message.Description !== "")
|
if (message.Description !== "")
|
||||||
writer.tag(7, WireType.LengthDelimited).string(message.Description);
|
writer.tag(7, WireType.LengthDelimited).string(message.Description);
|
||||||
|
/* repeated api.RoleTag Tags = 9; */
|
||||||
|
if (message.Tags.length) {
|
||||||
|
writer.tag(9, WireType.LengthDelimited).fork();
|
||||||
|
for (let i = 0; i < message.Tags.length; i++)
|
||||||
|
writer.int32(message.Tags[i]);
|
||||||
|
writer.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);
|
||||||
@@ -1274,7 +1383,8 @@ class UpdatePlatformRoleRequest$Type extends MessageType<UpdatePlatformRoleReque
|
|||||||
{ no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission },
|
{ no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission },
|
||||||
{ no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
{ no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||||
{ no: 7, name: "ApplicationType", kind: "enum", localName: "ApplicationType", jsonName: "ApplicationType", T: () => ["api.ApplicationType", ApplicationType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
{ no: 7, name: "ApplicationType", kind: "enum", localName: "ApplicationType", jsonName: "ApplicationType", T: () => ["api.ApplicationType", ApplicationType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||||
{ no: 8, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }
|
{ no: 8, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ },
|
||||||
|
{ no: 9, name: "Tags", kind: "enum", localName: "Tags", jsonName: "Tags", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.RoleTag", RoleTag] }
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value?: PartialMessage<UpdatePlatformRoleRequest>): UpdatePlatformRoleRequest {
|
create(value?: PartialMessage<UpdatePlatformRoleRequest>): UpdatePlatformRoleRequest {
|
||||||
@@ -1285,6 +1395,7 @@ class UpdatePlatformRoleRequest$Type extends MessageType<UpdatePlatformRoleReque
|
|||||||
message.Type = 0;
|
message.Type = 0;
|
||||||
message.ApplicationType = 0;
|
message.ApplicationType = 0;
|
||||||
message.Description = "";
|
message.Description = "";
|
||||||
|
message.Tags = [];
|
||||||
if (value !== undefined)
|
if (value !== undefined)
|
||||||
reflectionMergePartial<UpdatePlatformRoleRequest>(this, message, value);
|
reflectionMergePartial<UpdatePlatformRoleRequest>(this, message, value);
|
||||||
return message;
|
return message;
|
||||||
@@ -1312,6 +1423,13 @@ class UpdatePlatformRoleRequest$Type extends MessageType<UpdatePlatformRoleReque
|
|||||||
case /* string Description */ 8:
|
case /* string Description */ 8:
|
||||||
message.Description = reader.string();
|
message.Description = reader.string();
|
||||||
break;
|
break;
|
||||||
|
case /* repeated api.RoleTag Tags */ 9:
|
||||||
|
if (wireType === WireType.LengthDelimited)
|
||||||
|
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
||||||
|
message.Tags.push(reader.int32());
|
||||||
|
else
|
||||||
|
message.Tags.push(reader.int32());
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -1342,6 +1460,13 @@ class UpdatePlatformRoleRequest$Type extends MessageType<UpdatePlatformRoleReque
|
|||||||
/* string Description = 8; */
|
/* string Description = 8; */
|
||||||
if (message.Description !== "")
|
if (message.Description !== "")
|
||||||
writer.tag(8, WireType.LengthDelimited).string(message.Description);
|
writer.tag(8, WireType.LengthDelimited).string(message.Description);
|
||||||
|
/* repeated api.RoleTag Tags = 9; */
|
||||||
|
if (message.Tags.length) {
|
||||||
|
writer.tag(9, WireType.LengthDelimited).fork();
|
||||||
|
for (let i = 0; i < message.Tags.length; i++)
|
||||||
|
writer.int32(message.Tags[i]);
|
||||||
|
writer.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);
|
||||||
@@ -1407,7 +1532,8 @@ class UpdateOrganisationRoleRequest$Type extends MessageType<UpdateOrganisationR
|
|||||||
{ no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
{ no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||||
{ no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission, options: { "validate.rules": { repeated: { minItems: "1" } } } },
|
{ no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission, options: { "validate.rules": { repeated: { minItems: "1" } } } },
|
||||||
{ no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
{ no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||||
{ no: 7, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }
|
{ no: 7, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ },
|
||||||
|
{ no: 9, name: "Tags", kind: "enum", localName: "Tags", jsonName: "Tags", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.RoleTag", RoleTag] }
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value?: PartialMessage<UpdateOrganisationRoleRequest>): UpdateOrganisationRoleRequest {
|
create(value?: PartialMessage<UpdateOrganisationRoleRequest>): UpdateOrganisationRoleRequest {
|
||||||
@@ -1417,6 +1543,7 @@ class UpdateOrganisationRoleRequest$Type extends MessageType<UpdateOrganisationR
|
|||||||
message.Permissions = [];
|
message.Permissions = [];
|
||||||
message.Type = 0;
|
message.Type = 0;
|
||||||
message.Description = "";
|
message.Description = "";
|
||||||
|
message.Tags = [];
|
||||||
if (value !== undefined)
|
if (value !== undefined)
|
||||||
reflectionMergePartial<UpdateOrganisationRoleRequest>(this, message, value);
|
reflectionMergePartial<UpdateOrganisationRoleRequest>(this, message, value);
|
||||||
return message;
|
return message;
|
||||||
@@ -1444,6 +1571,13 @@ class UpdateOrganisationRoleRequest$Type extends MessageType<UpdateOrganisationR
|
|||||||
case /* string Description */ 7:
|
case /* string Description */ 7:
|
||||||
message.Description = reader.string();
|
message.Description = reader.string();
|
||||||
break;
|
break;
|
||||||
|
case /* repeated api.RoleTag Tags */ 9:
|
||||||
|
if (wireType === WireType.LengthDelimited)
|
||||||
|
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
||||||
|
message.Tags.push(reader.int32());
|
||||||
|
else
|
||||||
|
message.Tags.push(reader.int32());
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -1474,6 +1608,13 @@ class UpdateOrganisationRoleRequest$Type extends MessageType<UpdateOrganisationR
|
|||||||
/* string Description = 7; */
|
/* string Description = 7; */
|
||||||
if (message.Description !== "")
|
if (message.Description !== "")
|
||||||
writer.tag(7, WireType.LengthDelimited).string(message.Description);
|
writer.tag(7, WireType.LengthDelimited).string(message.Description);
|
||||||
|
/* repeated api.RoleTag Tags = 9; */
|
||||||
|
if (message.Tags.length) {
|
||||||
|
writer.tag(9, WireType.LengthDelimited).fork();
|
||||||
|
for (let i = 0; i < message.Tags.length; i++)
|
||||||
|
writer.int32(message.Tags[i]);
|
||||||
|
writer.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);
|
||||||
@@ -1539,7 +1680,8 @@ class UpdateProjectRoleRequest$Type extends MessageType<UpdateProjectRoleRequest
|
|||||||
{ no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
{ no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||||
{ no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission },
|
{ no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission },
|
||||||
{ no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
{ no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||||
{ no: 7, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }
|
{ no: 7, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ },
|
||||||
|
{ no: 9, name: "Tags", kind: "enum", localName: "Tags", jsonName: "Tags", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.RoleTag", RoleTag] }
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value?: PartialMessage<UpdateProjectRoleRequest>): UpdateProjectRoleRequest {
|
create(value?: PartialMessage<UpdateProjectRoleRequest>): UpdateProjectRoleRequest {
|
||||||
@@ -1549,6 +1691,7 @@ class UpdateProjectRoleRequest$Type extends MessageType<UpdateProjectRoleRequest
|
|||||||
message.Permissions = [];
|
message.Permissions = [];
|
||||||
message.Type = 0;
|
message.Type = 0;
|
||||||
message.Description = "";
|
message.Description = "";
|
||||||
|
message.Tags = [];
|
||||||
if (value !== undefined)
|
if (value !== undefined)
|
||||||
reflectionMergePartial<UpdateProjectRoleRequest>(this, message, value);
|
reflectionMergePartial<UpdateProjectRoleRequest>(this, message, value);
|
||||||
return message;
|
return message;
|
||||||
@@ -1576,6 +1719,13 @@ class UpdateProjectRoleRequest$Type extends MessageType<UpdateProjectRoleRequest
|
|||||||
case /* string Description */ 7:
|
case /* string Description */ 7:
|
||||||
message.Description = reader.string();
|
message.Description = reader.string();
|
||||||
break;
|
break;
|
||||||
|
case /* repeated api.RoleTag Tags */ 9:
|
||||||
|
if (wireType === WireType.LengthDelimited)
|
||||||
|
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
||||||
|
message.Tags.push(reader.int32());
|
||||||
|
else
|
||||||
|
message.Tags.push(reader.int32());
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -1606,6 +1756,13 @@ class UpdateProjectRoleRequest$Type extends MessageType<UpdateProjectRoleRequest
|
|||||||
/* string Description = 7; */
|
/* string Description = 7; */
|
||||||
if (message.Description !== "")
|
if (message.Description !== "")
|
||||||
writer.tag(7, WireType.LengthDelimited).string(message.Description);
|
writer.tag(7, WireType.LengthDelimited).string(message.Description);
|
||||||
|
/* repeated api.RoleTag Tags = 9; */
|
||||||
|
if (message.Tags.length) {
|
||||||
|
writer.tag(9, WireType.LengthDelimited).fork();
|
||||||
|
for (let i = 0; i < message.Tags.length; i++)
|
||||||
|
writer.int32(message.Tags[i]);
|
||||||
|
writer.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);
|
||||||
|
|||||||
Reference in New Issue
Block a user