@bufbuild/protobuf 2.0.0-alpha.4 → 2.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/README.md +2 -3
  2. package/dist/cjs/clone.d.ts +1 -1
  3. package/dist/cjs/clone.js +5 -16
  4. package/dist/cjs/codegenv1/embed.js +25 -25
  5. package/dist/cjs/codegenv1/enum.d.ts +2 -1
  6. package/dist/cjs/codegenv1/file.js +1 -1
  7. package/dist/cjs/codegenv1/message.d.ts +2 -1
  8. package/dist/cjs/codegenv1/scalar.d.ts +4 -0
  9. package/dist/cjs/codegenv1/scalar.js +30 -1
  10. package/dist/cjs/codegenv1/symbols.d.ts +10 -0
  11. package/dist/cjs/codegenv1/symbols.js +2 -0
  12. package/dist/cjs/codegenv1/types.d.ts +7 -5
  13. package/dist/cjs/codegenv1/types.js +2 -1
  14. package/dist/cjs/create.d.ts +1 -1
  15. package/dist/cjs/create.js +47 -20
  16. package/dist/cjs/equals.d.ts +1 -1
  17. package/dist/cjs/equals.js +8 -15
  18. package/dist/cjs/from-binary.d.ts +2 -2
  19. package/dist/cjs/from-binary.js +6 -6
  20. package/dist/cjs/from-json.d.ts +14 -6
  21. package/dist/cjs/from-json.js +35 -33
  22. package/dist/cjs/is-message.d.ts +1 -1
  23. package/dist/cjs/is-message.js +3 -3
  24. package/dist/cjs/reflect/reflect-types.d.ts +13 -42
  25. package/dist/cjs/reflect/reflect.d.ts +29 -18
  26. package/dist/cjs/reflect/reflect.js +169 -45
  27. package/dist/cjs/reflect/scalar.d.ts +1 -1
  28. package/dist/cjs/registry.d.ts +18 -2
  29. package/dist/cjs/registry.js +63 -61
  30. package/dist/cjs/to-binary.d.ts +1 -1
  31. package/dist/cjs/to-binary.js +2 -2
  32. package/dist/cjs/to-json.d.ts +14 -4
  33. package/dist/cjs/to-json.js +26 -13
  34. package/dist/cjs/types.d.ts +9 -0
  35. package/dist/cjs/wire/size-delimited.d.ts +1 -1
  36. package/dist/cjs/wkt/any.d.ts +7 -7
  37. package/dist/cjs/wkt/any.js +5 -5
  38. package/dist/cjs/wkt/gen/google/protobuf/any_pb.d.ts +9 -3
  39. package/dist/cjs/wkt/gen/google/protobuf/any_pb.js +4 -4
  40. package/dist/cjs/wkt/gen/google/protobuf/api_pb.d.ts +88 -9
  41. package/dist/cjs/wkt/gen/google/protobuf/api_pb.js +8 -8
  42. package/dist/cjs/wkt/gen/google/protobuf/compiler/plugin_pb.d.ts +107 -11
  43. package/dist/cjs/wkt/gen/google/protobuf/compiler/plugin_pb.js +11 -11
  44. package/dist/cjs/wkt/gen/google/protobuf/descriptor_pb.d.ts +1005 -92
  45. package/dist/cjs/wkt/gen/google/protobuf/descriptor_pb.js +86 -86
  46. package/dist/cjs/wkt/gen/google/protobuf/duration_pb.d.ts +7 -3
  47. package/dist/cjs/wkt/gen/google/protobuf/duration_pb.js +4 -4
  48. package/dist/cjs/wkt/gen/google/protobuf/empty_pb.d.ts +7 -3
  49. package/dist/cjs/wkt/gen/google/protobuf/empty_pb.js +4 -4
  50. package/dist/cjs/wkt/gen/google/protobuf/field_mask_pb.d.ts +7 -3
  51. package/dist/cjs/wkt/gen/google/protobuf/field_mask_pb.js +4 -4
  52. package/dist/cjs/wkt/gen/google/protobuf/source_context_pb.d.ts +12 -3
  53. package/dist/cjs/wkt/gen/google/protobuf/source_context_pb.js +4 -4
  54. package/dist/cjs/wkt/gen/google/protobuf/struct_pb.d.ts +25 -8
  55. package/dist/cjs/wkt/gen/google/protobuf/struct_pb.js +9 -9
  56. package/dist/cjs/wkt/gen/google/protobuf/timestamp_pb.d.ts +7 -3
  57. package/dist/cjs/wkt/gen/google/protobuf/timestamp_pb.js +4 -4
  58. package/dist/cjs/wkt/gen/google/protobuf/type_pb.d.ts +165 -16
  59. package/dist/cjs/wkt/gen/google/protobuf/type_pb.js +15 -15
  60. package/dist/cjs/wkt/gen/google/protobuf/wrappers_pb.d.ts +55 -19
  61. package/dist/cjs/wkt/gen/google/protobuf/wrappers_pb.js +20 -20
  62. package/dist/cjs/wkt/timestamp.js +1 -2
  63. package/dist/esm/clone.d.ts +1 -1
  64. package/dist/esm/clone.js +5 -16
  65. package/dist/esm/codegenv1/embed.js +26 -26
  66. package/dist/esm/codegenv1/enum.d.ts +2 -1
  67. package/dist/esm/codegenv1/file.js +2 -2
  68. package/dist/esm/codegenv1/message.d.ts +2 -1
  69. package/dist/esm/codegenv1/scalar.d.ts +4 -0
  70. package/dist/esm/codegenv1/scalar.js +28 -0
  71. package/dist/esm/codegenv1/symbols.d.ts +10 -0
  72. package/dist/esm/codegenv1/symbols.js +2 -0
  73. package/dist/esm/codegenv1/types.d.ts +7 -5
  74. package/dist/esm/codegenv1/types.js +2 -1
  75. package/dist/esm/create.d.ts +1 -1
  76. package/dist/esm/create.js +47 -20
  77. package/dist/esm/equals.d.ts +1 -1
  78. package/dist/esm/equals.js +8 -15
  79. package/dist/esm/from-binary.d.ts +2 -2
  80. package/dist/esm/from-binary.js +6 -6
  81. package/dist/esm/from-json.d.ts +14 -6
  82. package/dist/esm/from-json.js +33 -33
  83. package/dist/esm/is-message.d.ts +1 -1
  84. package/dist/esm/is-message.js +3 -3
  85. package/dist/esm/reflect/reflect-types.d.ts +13 -42
  86. package/dist/esm/reflect/reflect-types.js +0 -1
  87. package/dist/esm/reflect/reflect.d.ts +29 -18
  88. package/dist/esm/reflect/reflect.js +170 -46
  89. package/dist/esm/reflect/scalar.d.ts +1 -1
  90. package/dist/esm/registry.d.ts +18 -2
  91. package/dist/esm/registry.js +61 -60
  92. package/dist/esm/to-binary.d.ts +1 -1
  93. package/dist/esm/to-binary.js +2 -2
  94. package/dist/esm/to-json.d.ts +14 -4
  95. package/dist/esm/to-json.js +24 -12
  96. package/dist/esm/types.d.ts +9 -0
  97. package/dist/esm/wire/size-delimited.d.ts +1 -1
  98. package/dist/esm/wkt/any.d.ts +7 -7
  99. package/dist/esm/wkt/any.js +6 -6
  100. package/dist/esm/wkt/gen/google/protobuf/any_pb.d.ts +9 -3
  101. package/dist/esm/wkt/gen/google/protobuf/any_pb.js +3 -3
  102. package/dist/esm/wkt/gen/google/protobuf/api_pb.d.ts +88 -9
  103. package/dist/esm/wkt/gen/google/protobuf/api_pb.js +9 -9
  104. package/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.d.ts +107 -11
  105. package/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.js +11 -11
  106. package/dist/esm/wkt/gen/google/protobuf/descriptor_pb.d.ts +1005 -92
  107. package/dist/esm/wkt/gen/google/protobuf/descriptor_pb.js +84 -84
  108. package/dist/esm/wkt/gen/google/protobuf/duration_pb.d.ts +7 -3
  109. package/dist/esm/wkt/gen/google/protobuf/duration_pb.js +3 -3
  110. package/dist/esm/wkt/gen/google/protobuf/empty_pb.d.ts +7 -3
  111. package/dist/esm/wkt/gen/google/protobuf/empty_pb.js +3 -3
  112. package/dist/esm/wkt/gen/google/protobuf/field_mask_pb.d.ts +7 -3
  113. package/dist/esm/wkt/gen/google/protobuf/field_mask_pb.js +3 -3
  114. package/dist/esm/wkt/gen/google/protobuf/source_context_pb.d.ts +12 -3
  115. package/dist/esm/wkt/gen/google/protobuf/source_context_pb.js +3 -3
  116. package/dist/esm/wkt/gen/google/protobuf/struct_pb.d.ts +25 -8
  117. package/dist/esm/wkt/gen/google/protobuf/struct_pb.js +8 -8
  118. package/dist/esm/wkt/gen/google/protobuf/timestamp_pb.d.ts +7 -3
  119. package/dist/esm/wkt/gen/google/protobuf/timestamp_pb.js +3 -3
  120. package/dist/esm/wkt/gen/google/protobuf/type_pb.d.ts +165 -16
  121. package/dist/esm/wkt/gen/google/protobuf/type_pb.js +16 -16
  122. package/dist/esm/wkt/gen/google/protobuf/wrappers_pb.d.ts +55 -19
  123. package/dist/esm/wkt/gen/google/protobuf/wrappers_pb.js +19 -19
  124. package/dist/esm/wkt/timestamp.js +2 -3
  125. package/package.json +8 -5
@@ -13,7 +13,7 @@
13
13
  // See the License for the specific language governing permissions and
14
14
  // limitations under the License.
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.toJsonString = exports.toJson = void 0;
16
+ exports.enumToJson = exports.toJsonString = exports.toJson = void 0;
17
17
  const descriptors_js_1 = require("./descriptors.js");
18
18
  const names_js_1 = require("./reflect/names.js");
19
19
  const reflect_js_1 = require("./reflect/reflect.js");
@@ -40,19 +40,34 @@ function makeWriteOptions(options) {
40
40
  * Serialize the message to a JSON value, a JavaScript value that can be
41
41
  * passed to JSON.stringify().
42
42
  */
43
- function toJson(messageDesc, message, options) {
44
- return reflectToJson((0, reflect_js_1.reflect)(messageDesc, message), makeWriteOptions(options));
43
+ function toJson(schema, message, options) {
44
+ return reflectToJson((0, reflect_js_1.reflect)(schema, message), makeWriteOptions(options));
45
45
  }
46
46
  exports.toJson = toJson;
47
47
  /**
48
48
  * Serialize the message to a JSON string.
49
49
  */
50
- function toJsonString(messageDesc, message, options) {
50
+ function toJsonString(schema, message, options) {
51
51
  var _a;
52
- const jsonValue = toJson(messageDesc, message, options);
52
+ const jsonValue = toJson(schema, message, options);
53
53
  return JSON.stringify(jsonValue, null, (_a = options === null || options === void 0 ? void 0 : options.prettySpaces) !== null && _a !== void 0 ? _a : 0);
54
54
  }
55
55
  exports.toJsonString = toJsonString;
56
+ /**
57
+ * Serialize a single enum value to JSON.
58
+ */
59
+ function enumToJson(descEnum, value) {
60
+ var _a;
61
+ if (descEnum.typeName == "google.protobuf.NullValue") {
62
+ return null;
63
+ }
64
+ const name = (_a = descEnum.values.find((v) => v.number === value)) === null || _a === void 0 ? void 0 : _a.name;
65
+ if (name === undefined) {
66
+ throw new Error(`${String(value)} is not a value in ${descEnum.toString()}`);
67
+ }
68
+ return name;
69
+ }
70
+ exports.enumToJson = enumToJson;
56
71
  function reflectToJson(msg, opts) {
57
72
  var _a;
58
73
  const wktJson = tryWktToJson(msg, opts);
@@ -103,7 +118,7 @@ function fieldToJson(f, val, opts) {
103
118
  case "message":
104
119
  return reflectToJson(val, opts);
105
120
  case "enum":
106
- return enumToJson(f.enum, val, opts.enumAsInteger);
121
+ return enumToJsonInternal(f.enum, val, opts.enumAsInteger);
107
122
  case "list":
108
123
  return listToJson(val, opts);
109
124
  case "map":
@@ -116,19 +131,17 @@ function mapToJson(map, opts) {
116
131
  switch (f.mapKind) {
117
132
  case "scalar":
118
133
  for (const [entryKey, entryValue] of map) {
119
- jsonObj[entryKey.toString()] = scalarToJson(f, entryValue); // JSON standard allows only (double quoted) string as property key
134
+ jsonObj[entryKey] = scalarToJson(f, entryValue);
120
135
  }
121
136
  break;
122
137
  case "message":
123
138
  for (const [entryKey, entryValue] of map) {
124
- // JSON standard allows only (double quoted) string as property key
125
- jsonObj[entryKey.toString()] = reflectToJson(entryValue, opts);
139
+ jsonObj[entryKey] = reflectToJson(entryValue, opts);
126
140
  }
127
141
  break;
128
142
  case "enum":
129
143
  for (const [entryKey, entryValue] of map) {
130
- // JSON standard allows only (double quoted) string as property key
131
- jsonObj[entryKey.toString()] = enumToJson(f.enum, entryValue, opts.enumAsInteger);
144
+ jsonObj[entryKey] = enumToJsonInternal(f.enum, entryValue, opts.enumAsInteger);
132
145
  }
133
146
  break;
134
147
  }
@@ -145,7 +158,7 @@ function listToJson(list, opts) {
145
158
  break;
146
159
  case "enum":
147
160
  for (const item of list) {
148
- jsonArr.push(enumToJson(f.enum, item, opts.enumAsInteger));
161
+ jsonArr.push(enumToJsonInternal(f.enum, item, opts.enumAsInteger));
149
162
  }
150
163
  break;
151
164
  case "message":
@@ -156,7 +169,7 @@ function listToJson(list, opts) {
156
169
  }
157
170
  return opts.alwaysEmitImplicit || jsonArr.length > 0 ? jsonArr : undefined;
158
171
  }
159
- function enumToJson(desc, value, enumAsInteger) {
172
+ function enumToJsonInternal(desc, value, enumAsInteger) {
160
173
  var _a;
161
174
  if (typeof value != "number") {
162
175
  throw new Error(`cannot encode ${desc} to JSON: expected number, got ${(0, reflect_check_js_1.formatVal)(value)}`);
@@ -2,6 +2,7 @@ import type { GenDescEnum, GenDescExtension, GenDescMessage } from "./codegenv1/
2
2
  import type { DescEnum, DescExtension, DescMessage } from "./descriptors.js";
3
3
  import type { OneofADT } from "./reflect/guard.js";
4
4
  import type { WireType } from "./wire/index.js";
5
+ import type { JsonValue } from "./json-value.js";
5
6
  /**
6
7
  * The type `Message` contains the properties shared by all messages.
7
8
  */
@@ -19,6 +20,10 @@ export type Message<TypeName extends string = string> = {
19
20
  * Extract the message type from a message descriptor.
20
21
  */
21
22
  export type MessageShape<Desc extends DescMessage> = Desc extends GenDescMessage<infer RuntimeShape> ? RuntimeShape : Message;
23
+ /**
24
+ * Extract the message JSON type from a message descriptor.
25
+ */
26
+ export type MessageJsonType<Desc extends DescMessage> = Desc extends GenDescMessage<Message, infer JsonType> ? JsonType : JsonValue;
22
27
  /**
23
28
  * Extract the init type from a message descriptor.
24
29
  * The init type is accepted by the function create().
@@ -28,6 +33,10 @@ export type MessageInitShape<Desc extends DescMessage> = Desc extends GenDescMes
28
33
  * Extract the enum type of from an enum descriptor.
29
34
  */
30
35
  export type EnumShape<Desc extends DescEnum> = Desc extends GenDescEnum<infer RuntimeShape> ? RuntimeShape : number;
36
+ /**
37
+ * Extract the enum JSON type from a enum descriptor.
38
+ */
39
+ export type EnumJsonType<Desc extends DescEnum> = Desc extends GenDescEnum<unknown, infer JsonType> ? JsonType : string | null;
31
40
  /**
32
41
  * Extract the value type from an extension descriptor.
33
42
  */
@@ -21,7 +21,7 @@ export declare function sizeDelimitedEncode<Desc extends DescMessage>(messageDes
21
21
  * This size-delimited format is compatible with other implementations.
22
22
  * For details, see https://github.com/protocolbuffers/protobuf/issues/10229
23
23
  */
24
- export declare function sizeDelimitedDecodeStream<Desc extends DescMessage>(messageDesc: Desc, iterable: AsyncIterable<Uint8Array>, options?: BinaryReadOptions): AsyncGenerator<MessageShape<Desc>, void, unknown>;
24
+ export declare function sizeDelimitedDecodeStream<Desc extends DescMessage>(messageDesc: Desc, iterable: AsyncIterable<Uint8Array>, options?: BinaryReadOptions): AsyncIterableIterator<MessageShape<Desc>>;
25
25
  /**
26
26
  * Decodes the size from the given size-delimited message, which may be
27
27
  * incomplete.
@@ -5,15 +5,15 @@ import type { Registry } from "../registry.js";
5
5
  /**
6
6
  * Creates a `google.protobuf.Any` from a message.
7
7
  */
8
- export declare function anyPack<Desc extends DescMessage>(messageDesc: Desc, message: MessageShape<Desc>): Any;
8
+ export declare function anyPack<Desc extends DescMessage>(schema: Desc, message: MessageShape<Desc>): Any;
9
9
  /**
10
10
  * Packs the message into the given any.
11
11
  */
12
- export declare function anyPack<Desc extends DescMessage>(messageDesc: Desc, message: MessageShape<Desc>, into: Any): void;
12
+ export declare function anyPack<Desc extends DescMessage>(schema: Desc, message: MessageShape<Desc>, into: Any): void;
13
13
  /**
14
- * Returns true if the Any contains the type given by messageDesc.
14
+ * Returns true if the Any contains the type given by schema.
15
15
  */
16
- export declare function anyIs(any: Any, messageDesc: DescMessage): boolean;
16
+ export declare function anyIs(any: Any, schema: DescMessage): boolean;
17
17
  /**
18
18
  * Returns true if the Any contains a message with the given typeName.
19
19
  */
@@ -29,10 +29,10 @@ export declare function anyUnpack(any: Any, registry: Registry): Message | undef
29
29
  * Unpacks the message the Any represents.
30
30
  *
31
31
  * Returns undefined if the Any is empty, or if it does not contain the type
32
- * given by messageDesc.
32
+ * given by schema.
33
33
  */
34
- export declare function anyUnpack<Desc extends DescMessage>(any: Any, messageDesc: Desc): MessageShape<Desc> | undefined;
34
+ export declare function anyUnpack<Desc extends DescMessage>(any: Any, schema: Desc): MessageShape<Desc> | undefined;
35
35
  /**
36
36
  * Same as anyUnpack but unpacks into the target message.
37
37
  */
38
- export declare function anyUnpackTo<Desc extends DescMessage>(any: Any, messageDesc: Desc, message: MessageShape<Desc>): MessageShape<Desc> | undefined;
38
+ export declare function anyUnpackTo<Desc extends DescMessage>(any: Any, schema: Desc, message: MessageShape<Desc>): MessageShape<Desc> | undefined;
@@ -18,13 +18,13 @@ const any_pb_js_1 = require("./gen/google/protobuf/any_pb.js");
18
18
  const create_js_1 = require("../create.js");
19
19
  const to_binary_js_1 = require("../to-binary.js");
20
20
  const from_binary_js_1 = require("../from-binary.js");
21
- function anyPack(messageDesc, message, into) {
21
+ function anyPack(schema, message, into) {
22
22
  let ret = false;
23
23
  if (!into) {
24
- into = (0, create_js_1.create)(any_pb_js_1.AnyDesc);
24
+ into = (0, create_js_1.create)(any_pb_js_1.AnySchema);
25
25
  ret = true;
26
26
  }
27
- into.value = (0, to_binary_js_1.toBinary)(messageDesc, message);
27
+ into.value = (0, to_binary_js_1.toBinary)(schema, message);
28
28
  into.typeUrl = typeNameToUrl(message.$typeName);
29
29
  return ret ? into : undefined;
30
30
  }
@@ -56,11 +56,11 @@ exports.anyUnpack = anyUnpack;
56
56
  /**
57
57
  * Same as anyUnpack but unpacks into the target message.
58
58
  */
59
- function anyUnpackTo(any, messageDesc, message) {
59
+ function anyUnpackTo(any, schema, message) {
60
60
  if (any.typeUrl === "") {
61
61
  return undefined;
62
62
  }
63
- return (0, from_binary_js_1.mergeFromBinary)(messageDesc, message, any.value);
63
+ return (0, from_binary_js_1.mergeFromBinary)(schema, message, any.value);
64
64
  }
65
65
  exports.anyUnpackTo = anyUnpackTo;
66
66
  function typeNameToUrl(name) {
@@ -3,7 +3,7 @@ import type { Message } from "../../../../types.js";
3
3
  /**
4
4
  * Describes the file google/protobuf/any.proto.
5
5
  */
6
- export declare const fileDesc_google_protobuf_any: GenDescFile;
6
+ export declare const file_google_protobuf_any: GenDescFile;
7
7
  /**
8
8
  * `Any` contains an arbitrary serialized protocol buffer message along with a
9
9
  * URL that describes the type of the serialized message.
@@ -136,8 +136,14 @@ export type Any = Message<"google.protobuf.Any"> & {
136
136
  */
137
137
  value: Uint8Array;
138
138
  };
139
+ /**
140
+ * JSON type for the message google.protobuf.Any.
141
+ */
142
+ export type AnyJson = {
143
+ "@type"?: string;
144
+ };
139
145
  /**
140
146
  * Describes the message google.protobuf.Any.
141
- * Use `create(AnyDesc)` to create a new message.
147
+ * Use `create(AnySchema)` to create a new message.
142
148
  */
143
- export declare const AnyDesc: GenDescMessage<Any>;
149
+ export declare const AnySchema: GenDescMessage<Any, AnyJson>;
@@ -13,15 +13,15 @@
13
13
  // See the License for the specific language governing permissions and
14
14
  // limitations under the License.
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.AnyDesc = exports.fileDesc_google_protobuf_any = void 0;
16
+ exports.AnySchema = exports.file_google_protobuf_any = void 0;
17
17
  const file_js_1 = require("../../../../codegenv1/file.js");
18
18
  const message_js_1 = require("../../../../codegenv1/message.js");
19
19
  /**
20
20
  * Describes the file google/protobuf/any.proto.
21
21
  */
22
- exports.fileDesc_google_protobuf_any = (0, file_js_1.fileDesc)("Chlnb29nbGUvcHJvdG9idWYvYW55LnByb3RvEg9nb29nbGUucHJvdG9idWYiJgoDQW55EhAKCHR5cGVfdXJsGAEgASgJEg0KBXZhbHVlGAIgASgMQnYKE2NvbS5nb29nbGUucHJvdG9idWZCCEFueVByb3RvUAFaLGdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL2FueXBiogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM");
22
+ exports.file_google_protobuf_any = (0, file_js_1.fileDesc)("Chlnb29nbGUvcHJvdG9idWYvYW55LnByb3RvEg9nb29nbGUucHJvdG9idWYiJgoDQW55EhAKCHR5cGVfdXJsGAEgASgJEg0KBXZhbHVlGAIgASgMQnYKE2NvbS5nb29nbGUucHJvdG9idWZCCEFueVByb3RvUAFaLGdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL2FueXBiogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM");
23
23
  /**
24
24
  * Describes the message google.protobuf.Any.
25
- * Use `create(AnyDesc)` to create a new message.
25
+ * Use `create(AnySchema)` to create a new message.
26
26
  */
27
- exports.AnyDesc = (0, message_js_1.messageDesc)(exports.fileDesc_google_protobuf_any, 0);
27
+ exports.AnySchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_any, 0);
@@ -1,11 +1,11 @@
1
1
  import type { GenDescFile, GenDescMessage } from "../../../../codegenv1/types.js";
2
- import type { SourceContext } from "./source_context_pb.js";
3
- import type { Option, Syntax } from "./type_pb.js";
2
+ import type { SourceContext, SourceContextJson } from "./source_context_pb.js";
3
+ import type { Option, OptionJson, Syntax, SyntaxJson } from "./type_pb.js";
4
4
  import type { Message } from "../../../../types.js";
5
5
  /**
6
6
  * Describes the file google/protobuf/api.proto.
7
7
  */
8
- export declare const fileDesc_google_protobuf_api: GenDescFile;
8
+ export declare const file_google_protobuf_api: GenDescFile;
9
9
  /**
10
10
  * Api is a light-weight descriptor for an API Interface.
11
11
  *
@@ -84,11 +84,44 @@ export type Api = Message<"google.protobuf.Api"> & {
84
84
  */
85
85
  syntax: Syntax;
86
86
  };
87
+ /**
88
+ * JSON type for the message google.protobuf.Api.
89
+ */
90
+ export type ApiJson = {
91
+ /**
92
+ * @generated from field: string name = 1;
93
+ */
94
+ name?: string;
95
+ /**
96
+ * @generated from field: repeated google.protobuf.Method methods = 2;
97
+ */
98
+ methods?: MethodJson[];
99
+ /**
100
+ * @generated from field: repeated google.protobuf.Option options = 3;
101
+ */
102
+ options?: OptionJson[];
103
+ /**
104
+ * @generated from field: string version = 4;
105
+ */
106
+ version?: string;
107
+ /**
108
+ * @generated from field: google.protobuf.SourceContext source_context = 5;
109
+ */
110
+ sourceContext?: SourceContextJson;
111
+ /**
112
+ * @generated from field: repeated google.protobuf.Mixin mixins = 6;
113
+ */
114
+ mixins?: MixinJson[];
115
+ /**
116
+ * @generated from field: google.protobuf.Syntax syntax = 7;
117
+ */
118
+ syntax?: SyntaxJson;
119
+ };
87
120
  /**
88
121
  * Describes the message google.protobuf.Api.
89
- * Use `create(ApiDesc)` to create a new message.
122
+ * Use `create(ApiSchema)` to create a new message.
90
123
  */
91
- export declare const ApiDesc: GenDescMessage<Api>;
124
+ export declare const ApiSchema: GenDescMessage<Api, ApiJson>;
92
125
  /**
93
126
  * Method represents a method of an API interface.
94
127
  *
@@ -138,11 +171,44 @@ export type Method = Message<"google.protobuf.Method"> & {
138
171
  */
139
172
  syntax: Syntax;
140
173
  };
174
+ /**
175
+ * JSON type for the message google.protobuf.Method.
176
+ */
177
+ export type MethodJson = {
178
+ /**
179
+ * @generated from field: string name = 1;
180
+ */
181
+ name?: string;
182
+ /**
183
+ * @generated from field: string request_type_url = 2;
184
+ */
185
+ requestTypeUrl?: string;
186
+ /**
187
+ * @generated from field: bool request_streaming = 3;
188
+ */
189
+ requestStreaming?: boolean;
190
+ /**
191
+ * @generated from field: string response_type_url = 4;
192
+ */
193
+ responseTypeUrl?: string;
194
+ /**
195
+ * @generated from field: bool response_streaming = 5;
196
+ */
197
+ responseStreaming?: boolean;
198
+ /**
199
+ * @generated from field: repeated google.protobuf.Option options = 6;
200
+ */
201
+ options?: OptionJson[];
202
+ /**
203
+ * @generated from field: google.protobuf.Syntax syntax = 7;
204
+ */
205
+ syntax?: SyntaxJson;
206
+ };
141
207
  /**
142
208
  * Describes the message google.protobuf.Method.
143
- * Use `create(MethodDesc)` to create a new message.
209
+ * Use `create(MethodSchema)` to create a new message.
144
210
  */
145
- export declare const MethodDesc: GenDescMessage<Method>;
211
+ export declare const MethodSchema: GenDescMessage<Method, MethodJson>;
146
212
  /**
147
213
  * Declares an API Interface to be included in this interface. The including
148
214
  * interface must redeclare all the methods from the included interface, but
@@ -240,8 +306,21 @@ export type Mixin = Message<"google.protobuf.Mixin"> & {
240
306
  */
241
307
  root: string;
242
308
  };
309
+ /**
310
+ * JSON type for the message google.protobuf.Mixin.
311
+ */
312
+ export type MixinJson = {
313
+ /**
314
+ * @generated from field: string name = 1;
315
+ */
316
+ name?: string;
317
+ /**
318
+ * @generated from field: string root = 2;
319
+ */
320
+ root?: string;
321
+ };
243
322
  /**
244
323
  * Describes the message google.protobuf.Mixin.
245
- * Use `create(MixinDesc)` to create a new message.
324
+ * Use `create(MixinSchema)` to create a new message.
246
325
  */
247
- export declare const MixinDesc: GenDescMessage<Mixin>;
326
+ export declare const MixinSchema: GenDescMessage<Mixin, MixinJson>;
@@ -13,7 +13,7 @@
13
13
  // See the License for the specific language governing permissions and
14
14
  // limitations under the License.
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.MixinDesc = exports.MethodDesc = exports.ApiDesc = exports.fileDesc_google_protobuf_api = void 0;
16
+ exports.MixinSchema = exports.MethodSchema = exports.ApiSchema = exports.file_google_protobuf_api = void 0;
17
17
  const file_js_1 = require("../../../../codegenv1/file.js");
18
18
  const source_context_pb_js_1 = require("./source_context_pb.js");
19
19
  const type_pb_js_1 = require("./type_pb.js");
@@ -21,19 +21,19 @@ const message_js_1 = require("../../../../codegenv1/message.js");
21
21
  /**
22
22
  * Describes the file google/protobuf/api.proto.
23
23
  */
24
- exports.fileDesc_google_protobuf_api = (0, file_js_1.fileDesc)("Chlnb29nbGUvcHJvdG9idWYvYXBpLnByb3RvEg9nb29nbGUucHJvdG9idWYigQIKA0FwaRIMCgRuYW1lGAEgASgJEigKB21ldGhvZHMYAiADKAsyFy5nb29nbGUucHJvdG9idWYuTWV0aG9kEigKB29wdGlvbnMYAyADKAsyFy5nb29nbGUucHJvdG9idWYuT3B0aW9uEg8KB3ZlcnNpb24YBCABKAkSNgoOc291cmNlX2NvbnRleHQYBSABKAsyHi5nb29nbGUucHJvdG9idWYuU291cmNlQ29udGV4dBImCgZtaXhpbnMYBiADKAsyFi5nb29nbGUucHJvdG9idWYuTWl4aW4SJwoGc3ludGF4GAcgASgOMhcuZ29vZ2xlLnByb3RvYnVmLlN5bnRheCLVAQoGTWV0aG9kEgwKBG5hbWUYASABKAkSGAoQcmVxdWVzdF90eXBlX3VybBgCIAEoCRIZChFyZXF1ZXN0X3N0cmVhbWluZxgDIAEoCBIZChFyZXNwb25zZV90eXBlX3VybBgEIAEoCRIaChJyZXNwb25zZV9zdHJlYW1pbmcYBSABKAgSKAoHb3B0aW9ucxgGIAMoCzIXLmdvb2dsZS5wcm90b2J1Zi5PcHRpb24SJwoGc3ludGF4GAcgASgOMhcuZ29vZ2xlLnByb3RvYnVmLlN5bnRheCIjCgVNaXhpbhIMCgRuYW1lGAEgASgJEgwKBHJvb3QYAiABKAlCdgoTY29tLmdvb2dsZS5wcm90b2J1ZkIIQXBpUHJvdG9QAVosZ29vZ2xlLmdvbGFuZy5vcmcvcHJvdG9idWYvdHlwZXMva25vd24vYXBpcGKiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw", [source_context_pb_js_1.fileDesc_google_protobuf_source_context, type_pb_js_1.fileDesc_google_protobuf_type]);
24
+ exports.file_google_protobuf_api = (0, file_js_1.fileDesc)("Chlnb29nbGUvcHJvdG9idWYvYXBpLnByb3RvEg9nb29nbGUucHJvdG9idWYigQIKA0FwaRIMCgRuYW1lGAEgASgJEigKB21ldGhvZHMYAiADKAsyFy5nb29nbGUucHJvdG9idWYuTWV0aG9kEigKB29wdGlvbnMYAyADKAsyFy5nb29nbGUucHJvdG9idWYuT3B0aW9uEg8KB3ZlcnNpb24YBCABKAkSNgoOc291cmNlX2NvbnRleHQYBSABKAsyHi5nb29nbGUucHJvdG9idWYuU291cmNlQ29udGV4dBImCgZtaXhpbnMYBiADKAsyFi5nb29nbGUucHJvdG9idWYuTWl4aW4SJwoGc3ludGF4GAcgASgOMhcuZ29vZ2xlLnByb3RvYnVmLlN5bnRheCLVAQoGTWV0aG9kEgwKBG5hbWUYASABKAkSGAoQcmVxdWVzdF90eXBlX3VybBgCIAEoCRIZChFyZXF1ZXN0X3N0cmVhbWluZxgDIAEoCBIZChFyZXNwb25zZV90eXBlX3VybBgEIAEoCRIaChJyZXNwb25zZV9zdHJlYW1pbmcYBSABKAgSKAoHb3B0aW9ucxgGIAMoCzIXLmdvb2dsZS5wcm90b2J1Zi5PcHRpb24SJwoGc3ludGF4GAcgASgOMhcuZ29vZ2xlLnByb3RvYnVmLlN5bnRheCIjCgVNaXhpbhIMCgRuYW1lGAEgASgJEgwKBHJvb3QYAiABKAlCdgoTY29tLmdvb2dsZS5wcm90b2J1ZkIIQXBpUHJvdG9QAVosZ29vZ2xlLmdvbGFuZy5vcmcvcHJvdG9idWYvdHlwZXMva25vd24vYXBpcGKiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw", [source_context_pb_js_1.file_google_protobuf_source_context, type_pb_js_1.file_google_protobuf_type]);
25
25
  /**
26
26
  * Describes the message google.protobuf.Api.
27
- * Use `create(ApiDesc)` to create a new message.
27
+ * Use `create(ApiSchema)` to create a new message.
28
28
  */
29
- exports.ApiDesc = (0, message_js_1.messageDesc)(exports.fileDesc_google_protobuf_api, 0);
29
+ exports.ApiSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_api, 0);
30
30
  /**
31
31
  * Describes the message google.protobuf.Method.
32
- * Use `create(MethodDesc)` to create a new message.
32
+ * Use `create(MethodSchema)` to create a new message.
33
33
  */
34
- exports.MethodDesc = (0, message_js_1.messageDesc)(exports.fileDesc_google_protobuf_api, 1);
34
+ exports.MethodSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_api, 1);
35
35
  /**
36
36
  * Describes the message google.protobuf.Mixin.
37
- * Use `create(MixinDesc)` to create a new message.
37
+ * Use `create(MixinSchema)` to create a new message.
38
38
  */
39
- exports.MixinDesc = (0, message_js_1.messageDesc)(exports.fileDesc_google_protobuf_api, 2);
39
+ exports.MixinSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_api, 2);
@@ -1,10 +1,10 @@
1
1
  import type { GenDescEnum, GenDescFile, GenDescMessage } from "../../../../../codegenv1/types.js";
2
- import type { FileDescriptorProto, GeneratedCodeInfo } from "../descriptor_pb.js";
2
+ import type { FileDescriptorProto, FileDescriptorProtoJson, GeneratedCodeInfo, GeneratedCodeInfoJson } from "../descriptor_pb.js";
3
3
  import type { Message } from "../../../../../types.js";
4
4
  /**
5
5
  * Describes the file google/protobuf/compiler/plugin.proto.
6
6
  */
7
- export declare const fileDesc_google_protobuf_compiler_plugin: GenDescFile;
7
+ export declare const file_google_protobuf_compiler_plugin: GenDescFile;
8
8
  /**
9
9
  * The version number of protocol compiler.
10
10
  *
@@ -31,11 +31,32 @@ export type Version = Message<"google.protobuf.compiler.Version"> & {
31
31
  */
32
32
  suffix: string;
33
33
  };
34
+ /**
35
+ * JSON type for the message google.protobuf.compiler.Version.
36
+ */
37
+ export type VersionJson = {
38
+ /**
39
+ * @generated from field: optional int32 major = 1;
40
+ */
41
+ major?: number;
42
+ /**
43
+ * @generated from field: optional int32 minor = 2;
44
+ */
45
+ minor?: number;
46
+ /**
47
+ * @generated from field: optional int32 patch = 3;
48
+ */
49
+ patch?: number;
50
+ /**
51
+ * @generated from field: optional string suffix = 4;
52
+ */
53
+ suffix?: string;
54
+ };
34
55
  /**
35
56
  * Describes the message google.protobuf.compiler.Version.
36
- * Use `create(VersionDesc)` to create a new message.
57
+ * Use `create(VersionSchema)` to create a new message.
37
58
  */
38
- export declare const VersionDesc: GenDescMessage<Version>;
59
+ export declare const VersionSchema: GenDescMessage<Version, VersionJson>;
39
60
  /**
40
61
  * An encoded CodeGeneratorRequest is written to the plugin's stdin.
41
62
  *
@@ -95,11 +116,36 @@ export type CodeGeneratorRequest = Message<"google.protobuf.compiler.CodeGenerat
95
116
  */
96
117
  compilerVersion?: Version;
97
118
  };
119
+ /**
120
+ * JSON type for the message google.protobuf.compiler.CodeGeneratorRequest.
121
+ */
122
+ export type CodeGeneratorRequestJson = {
123
+ /**
124
+ * @generated from field: repeated string file_to_generate = 1;
125
+ */
126
+ fileToGenerate?: string[];
127
+ /**
128
+ * @generated from field: optional string parameter = 2;
129
+ */
130
+ parameter?: string;
131
+ /**
132
+ * @generated from field: repeated google.protobuf.FileDescriptorProto proto_file = 15;
133
+ */
134
+ protoFile?: FileDescriptorProtoJson[];
135
+ /**
136
+ * @generated from field: repeated google.protobuf.FileDescriptorProto source_file_descriptors = 17;
137
+ */
138
+ sourceFileDescriptors?: FileDescriptorProtoJson[];
139
+ /**
140
+ * @generated from field: optional google.protobuf.compiler.Version compiler_version = 3;
141
+ */
142
+ compilerVersion?: VersionJson;
143
+ };
98
144
  /**
99
145
  * Describes the message google.protobuf.compiler.CodeGeneratorRequest.
100
- * Use `create(CodeGeneratorRequestDesc)` to create a new message.
146
+ * Use `create(CodeGeneratorRequestSchema)` to create a new message.
101
147
  */
102
- export declare const CodeGeneratorRequestDesc: GenDescMessage<CodeGeneratorRequest>;
148
+ export declare const CodeGeneratorRequestSchema: GenDescMessage<CodeGeneratorRequest, CodeGeneratorRequestJson>;
103
149
  /**
104
150
  * The plugin writes an encoded CodeGeneratorResponse to stdout.
105
151
  *
@@ -149,11 +195,36 @@ export type CodeGeneratorResponse = Message<"google.protobuf.compiler.CodeGenera
149
195
  */
150
196
  file: CodeGeneratorResponse_File[];
151
197
  };
198
+ /**
199
+ * JSON type for the message google.protobuf.compiler.CodeGeneratorResponse.
200
+ */
201
+ export type CodeGeneratorResponseJson = {
202
+ /**
203
+ * @generated from field: optional string error = 1;
204
+ */
205
+ error?: string;
206
+ /**
207
+ * @generated from field: optional uint64 supported_features = 2;
208
+ */
209
+ supportedFeatures?: string;
210
+ /**
211
+ * @generated from field: optional int32 minimum_edition = 3;
212
+ */
213
+ minimumEdition?: number;
214
+ /**
215
+ * @generated from field: optional int32 maximum_edition = 4;
216
+ */
217
+ maximumEdition?: number;
218
+ /**
219
+ * @generated from field: repeated google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
220
+ */
221
+ file?: CodeGeneratorResponse_FileJson[];
222
+ };
152
223
  /**
153
224
  * Describes the message google.protobuf.compiler.CodeGeneratorResponse.
154
- * Use `create(CodeGeneratorResponseDesc)` to create a new message.
225
+ * Use `create(CodeGeneratorResponseSchema)` to create a new message.
155
226
  */
156
- export declare const CodeGeneratorResponseDesc: GenDescMessage<CodeGeneratorResponse>;
227
+ export declare const CodeGeneratorResponseSchema: GenDescMessage<CodeGeneratorResponse, CodeGeneratorResponseJson>;
157
228
  /**
158
229
  * Represents a single generated file.
159
230
  *
@@ -233,11 +304,32 @@ export type CodeGeneratorResponse_File = Message<"google.protobuf.compiler.CodeG
233
304
  */
234
305
  generatedCodeInfo?: GeneratedCodeInfo;
235
306
  };
307
+ /**
308
+ * JSON type for the message google.protobuf.compiler.CodeGeneratorResponse.File.
309
+ */
310
+ export type CodeGeneratorResponse_FileJson = {
311
+ /**
312
+ * @generated from field: optional string name = 1;
313
+ */
314
+ name?: string;
315
+ /**
316
+ * @generated from field: optional string insertion_point = 2;
317
+ */
318
+ insertionPoint?: string;
319
+ /**
320
+ * @generated from field: optional string content = 15;
321
+ */
322
+ content?: string;
323
+ /**
324
+ * @generated from field: optional google.protobuf.GeneratedCodeInfo generated_code_info = 16;
325
+ */
326
+ generatedCodeInfo?: GeneratedCodeInfoJson;
327
+ };
236
328
  /**
237
329
  * Describes the message google.protobuf.compiler.CodeGeneratorResponse.File.
238
- * Use `create(CodeGeneratorResponse_FileDesc)` to create a new message.
330
+ * Use `create(CodeGeneratorResponse_FileSchema)` to create a new message.
239
331
  */
240
- export declare const CodeGeneratorResponse_FileDesc: GenDescMessage<CodeGeneratorResponse_File>;
332
+ export declare const CodeGeneratorResponse_FileSchema: GenDescMessage<CodeGeneratorResponse_File, CodeGeneratorResponse_FileJson>;
241
333
  /**
242
334
  * Sync with code_generator.h.
243
335
  *
@@ -257,7 +349,11 @@ export declare enum CodeGeneratorResponse_Feature {
257
349
  */
258
350
  SUPPORTS_EDITIONS = 2
259
351
  }
352
+ /**
353
+ * JSON type for the enum google.protobuf.compiler.CodeGeneratorResponse.Feature.
354
+ */
355
+ export type CodeGeneratorResponse_FeatureJson = "FEATURE_NONE" | "FEATURE_PROTO3_OPTIONAL" | "FEATURE_SUPPORTS_EDITIONS";
260
356
  /**
261
357
  * Describes the enum google.protobuf.compiler.CodeGeneratorResponse.Feature.
262
358
  */
263
- export declare const CodeGeneratorResponse_FeatureDesc: GenDescEnum<CodeGeneratorResponse_Feature>;
359
+ export declare const CodeGeneratorResponse_FeatureSchema: GenDescEnum<CodeGeneratorResponse_Feature, CodeGeneratorResponse_FeatureJson>;
@@ -13,7 +13,7 @@
13
13
  // See the License for the specific language governing permissions and
14
14
  // limitations under the License.
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CodeGeneratorResponse_FeatureDesc = exports.CodeGeneratorResponse_Feature = exports.CodeGeneratorResponse_FileDesc = exports.CodeGeneratorResponseDesc = exports.CodeGeneratorRequestDesc = exports.VersionDesc = exports.fileDesc_google_protobuf_compiler_plugin = void 0;
16
+ exports.CodeGeneratorResponse_FeatureSchema = exports.CodeGeneratorResponse_Feature = exports.CodeGeneratorResponse_FileSchema = exports.CodeGeneratorResponseSchema = exports.CodeGeneratorRequestSchema = exports.VersionSchema = exports.file_google_protobuf_compiler_plugin = void 0;
17
17
  const file_js_1 = require("../../../../../codegenv1/file.js");
18
18
  const descriptor_pb_js_1 = require("../descriptor_pb.js");
19
19
  const message_js_1 = require("../../../../../codegenv1/message.js");
@@ -21,27 +21,27 @@ const enum_js_1 = require("../../../../../codegenv1/enum.js");
21
21
  /**
22
22
  * Describes the file google/protobuf/compiler/plugin.proto.
23
23
  */
24
- exports.fileDesc_google_protobuf_compiler_plugin = (0, file_js_1.fileDesc)("CiVnb29nbGUvcHJvdG9idWYvY29tcGlsZXIvcGx1Z2luLnByb3RvEhhnb29nbGUucHJvdG9idWYuY29tcGlsZXIiRgoHVmVyc2lvbhINCgVtYWpvchgBIAEoBRINCgVtaW5vchgCIAEoBRINCgVwYXRjaBgDIAEoBRIOCgZzdWZmaXgYBCABKAkigQIKFENvZGVHZW5lcmF0b3JSZXF1ZXN0EhgKEGZpbGVfdG9fZ2VuZXJhdGUYASADKAkSEQoJcGFyYW1ldGVyGAIgASgJEjgKCnByb3RvX2ZpbGUYDyADKAsyJC5nb29nbGUucHJvdG9idWYuRmlsZURlc2NyaXB0b3JQcm90bxJFChdzb3VyY2VfZmlsZV9kZXNjcmlwdG9ycxgRIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5GaWxlRGVzY3JpcHRvclByb3RvEjsKEGNvbXBpbGVyX3ZlcnNpb24YAyABKAsyIS5nb29nbGUucHJvdG9idWYuY29tcGlsZXIuVmVyc2lvbiKSAwoVQ29kZUdlbmVyYXRvclJlc3BvbnNlEg0KBWVycm9yGAEgASgJEhoKEnN1cHBvcnRlZF9mZWF0dXJlcxgCIAEoBBIXCg9taW5pbXVtX2VkaXRpb24YAyABKAUSFwoPbWF4aW11bV9lZGl0aW9uGAQgASgFEkIKBGZpbGUYDyADKAsyNC5nb29nbGUucHJvdG9idWYuY29tcGlsZXIuQ29kZUdlbmVyYXRvclJlc3BvbnNlLkZpbGUafwoERmlsZRIMCgRuYW1lGAEgASgJEhcKD2luc2VydGlvbl9wb2ludBgCIAEoCRIPCgdjb250ZW50GA8gASgJEj8KE2dlbmVyYXRlZF9jb2RlX2luZm8YECABKAsyIi5nb29nbGUucHJvdG9idWYuR2VuZXJhdGVkQ29kZUluZm8iVwoHRmVhdHVyZRIQCgxGRUFUVVJFX05PTkUQABIbChdGRUFUVVJFX1BST1RPM19PUFRJT05BTBABEh0KGUZFQVRVUkVfU1VQUE9SVFNfRURJVElPTlMQAkJyChxjb20uZ29vZ2xlLnByb3RvYnVmLmNvbXBpbGVyQgxQbHVnaW5Qcm90b3NaKWdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL3BsdWdpbnBiqgIYR29vZ2xlLlByb3RvYnVmLkNvbXBpbGVy", [descriptor_pb_js_1.fileDesc_google_protobuf_descriptor]);
24
+ exports.file_google_protobuf_compiler_plugin = (0, file_js_1.fileDesc)("CiVnb29nbGUvcHJvdG9idWYvY29tcGlsZXIvcGx1Z2luLnByb3RvEhhnb29nbGUucHJvdG9idWYuY29tcGlsZXIiRgoHVmVyc2lvbhINCgVtYWpvchgBIAEoBRINCgVtaW5vchgCIAEoBRINCgVwYXRjaBgDIAEoBRIOCgZzdWZmaXgYBCABKAkigQIKFENvZGVHZW5lcmF0b3JSZXF1ZXN0EhgKEGZpbGVfdG9fZ2VuZXJhdGUYASADKAkSEQoJcGFyYW1ldGVyGAIgASgJEjgKCnByb3RvX2ZpbGUYDyADKAsyJC5nb29nbGUucHJvdG9idWYuRmlsZURlc2NyaXB0b3JQcm90bxJFChdzb3VyY2VfZmlsZV9kZXNjcmlwdG9ycxgRIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5GaWxlRGVzY3JpcHRvclByb3RvEjsKEGNvbXBpbGVyX3ZlcnNpb24YAyABKAsyIS5nb29nbGUucHJvdG9idWYuY29tcGlsZXIuVmVyc2lvbiKSAwoVQ29kZUdlbmVyYXRvclJlc3BvbnNlEg0KBWVycm9yGAEgASgJEhoKEnN1cHBvcnRlZF9mZWF0dXJlcxgCIAEoBBIXCg9taW5pbXVtX2VkaXRpb24YAyABKAUSFwoPbWF4aW11bV9lZGl0aW9uGAQgASgFEkIKBGZpbGUYDyADKAsyNC5nb29nbGUucHJvdG9idWYuY29tcGlsZXIuQ29kZUdlbmVyYXRvclJlc3BvbnNlLkZpbGUafwoERmlsZRIMCgRuYW1lGAEgASgJEhcKD2luc2VydGlvbl9wb2ludBgCIAEoCRIPCgdjb250ZW50GA8gASgJEj8KE2dlbmVyYXRlZF9jb2RlX2luZm8YECABKAsyIi5nb29nbGUucHJvdG9idWYuR2VuZXJhdGVkQ29kZUluZm8iVwoHRmVhdHVyZRIQCgxGRUFUVVJFX05PTkUQABIbChdGRUFUVVJFX1BST1RPM19PUFRJT05BTBABEh0KGUZFQVRVUkVfU1VQUE9SVFNfRURJVElPTlMQAkJyChxjb20uZ29vZ2xlLnByb3RvYnVmLmNvbXBpbGVyQgxQbHVnaW5Qcm90b3NaKWdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL3BsdWdpbnBiqgIYR29vZ2xlLlByb3RvYnVmLkNvbXBpbGVy", [descriptor_pb_js_1.file_google_protobuf_descriptor]);
25
25
  /**
26
26
  * Describes the message google.protobuf.compiler.Version.
27
- * Use `create(VersionDesc)` to create a new message.
27
+ * Use `create(VersionSchema)` to create a new message.
28
28
  */
29
- exports.VersionDesc = (0, message_js_1.messageDesc)(exports.fileDesc_google_protobuf_compiler_plugin, 0);
29
+ exports.VersionSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_compiler_plugin, 0);
30
30
  /**
31
31
  * Describes the message google.protobuf.compiler.CodeGeneratorRequest.
32
- * Use `create(CodeGeneratorRequestDesc)` to create a new message.
32
+ * Use `create(CodeGeneratorRequestSchema)` to create a new message.
33
33
  */
34
- exports.CodeGeneratorRequestDesc = (0, message_js_1.messageDesc)(exports.fileDesc_google_protobuf_compiler_plugin, 1);
34
+ exports.CodeGeneratorRequestSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_compiler_plugin, 1);
35
35
  /**
36
36
  * Describes the message google.protobuf.compiler.CodeGeneratorResponse.
37
- * Use `create(CodeGeneratorResponseDesc)` to create a new message.
37
+ * Use `create(CodeGeneratorResponseSchema)` to create a new message.
38
38
  */
39
- exports.CodeGeneratorResponseDesc = (0, message_js_1.messageDesc)(exports.fileDesc_google_protobuf_compiler_plugin, 2);
39
+ exports.CodeGeneratorResponseSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_compiler_plugin, 2);
40
40
  /**
41
41
  * Describes the message google.protobuf.compiler.CodeGeneratorResponse.File.
42
- * Use `create(CodeGeneratorResponse_FileDesc)` to create a new message.
42
+ * Use `create(CodeGeneratorResponse_FileSchema)` to create a new message.
43
43
  */
44
- exports.CodeGeneratorResponse_FileDesc = (0, message_js_1.messageDesc)(exports.fileDesc_google_protobuf_compiler_plugin, 2, 0);
44
+ exports.CodeGeneratorResponse_FileSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_compiler_plugin, 2, 0);
45
45
  /**
46
46
  * Sync with code_generator.h.
47
47
  *
@@ -65,4 +65,4 @@ var CodeGeneratorResponse_Feature;
65
65
  /**
66
66
  * Describes the enum google.protobuf.compiler.CodeGeneratorResponse.Feature.
67
67
  */
68
- exports.CodeGeneratorResponse_FeatureDesc = (0, enum_js_1.enumDesc)(exports.fileDesc_google_protobuf_compiler_plugin, 2, 0);
68
+ exports.CodeGeneratorResponse_FeatureSchema = (0, enum_js_1.enumDesc)(exports.file_google_protobuf_compiler_plugin, 2, 0);