From f440c44c124f39c230ab18d81e7f96528aacd110 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Thu, 1 Aug 2024 10:17:48 -0400
Subject: [PATCH] Bump the baseline group in /impl/baseline with 6 updates
(#243)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Bumps the baseline group in /impl/baseline with 6 updates:
| Package | From | To |
| --- | --- | --- |
|
[@bufbuild/protobuf](https://github.com/bufbuild/protobuf-es/tree/HEAD/packages/protobuf)
| `1.10.0` | `2.0.0` |
|
[@bufbuild/protoc-gen-es](https://github.com/bufbuild/protobuf-es/tree/HEAD/packages/protoc-gen-es)
| `1.10.0` | `2.0.0` |
| [@bufbuild/buf](https://github.com/bufbuild/buf) | `1.34.0` | `1.35.1`
|
|
[@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)
| `20.14.9` | `22.0.2` |
| [tsx](https://github.com/privatenumber/tsx) | `4.16.0` | `4.16.4` |
| [typescript](https://github.com/Microsoft/TypeScript) | `5.5.2` |
`5.5.4` |
Updates `@bufbuild/protobuf` from 1.10.0 to 2.0.0
Release notes
Sourced from @bufbuild/protobuf
's
releases.
v2.0.0
What's new in version 2
To support Protobuf
editions, we have to make breaking changes that also affect users of
proto2 and proto3. This prompted us to make more extensive changes that
take feedback from version 1 into account:
We no longer use classes. Instead, we generate a schema object and a
type for every message. To create a new instance, to serialize, and for
other concerns, we provide functions. Here is a simple example:
import { create, toBinary } from
"@bufbuild/protobuf";
import { UserSchema } from "./gen/example_pb";
let user = create(UserSchema, {
firstName: "Homer",
lastName: "Simpson",
active: true,
});
const bytes = toBinary(UserSchema, user);
If you use proto3, messages are now plain objects. Files with proto2
and editions use the prototype chain to track field
presence.
This approach solves several outstanding issues, such as:
[!TIP]
Take a look at the upgrade
guide to learn more.
[!NOTE]
Connect-ES
does not support version 2 yet. We will update it shortly.
Contributors
Thanks to @srikrsna-buf
for his contributions to v2!
v2.0.0-beta.3
What's Changed
This is the third beta release for version 2. See v2.0.0-alpha.1
for an introduction. To install beta packages, run npm install
@bufbuild/protobuf@beta @bufbuild/protoc-gen-es@beta
.
... (truncated)
Commits
Updates `@bufbuild/protoc-gen-es` from 1.10.0 to 2.0.0
Release notes
Sourced from @bufbuild/protoc-gen-es
's
releases.
v2.0.0
What's new in version 2
To support Protobuf
editions, we have to make breaking changes that also affect users of
proto2 and proto3. This prompted us to make more extensive changes that
take feedback from version 1 into account:
We no longer use classes. Instead, we generate a schema object and a
type for every message. To create a new instance, to serialize, and for
other concerns, we provide functions. Here is a simple example:
import { create, toBinary } from
"@bufbuild/protobuf";
import { UserSchema } from "./gen/example_pb";
let user = create(UserSchema, {
firstName: "Homer",
lastName: "Simpson",
active: true,
});
const bytes = toBinary(UserSchema, user);
If you use proto3, messages are now plain objects. Files with proto2
and editions use the prototype chain to track field
presence.
This approach solves several outstanding issues, such as:
[!TIP]
Take a look at the upgrade
guide to learn more.
[!NOTE]
Connect-ES
does not support version 2 yet. We will update it shortly.
Contributors
Thanks to @srikrsna-buf
for his contributions to v2!
v2.0.0-beta.3
What's Changed
This is the third beta release for version 2. See v2.0.0-alpha.1
for an introduction. To install beta packages, run npm install
@bufbuild/protobuf@beta @bufbuild/protoc-gen-es@beta
.
... (truncated)
Commits
Updates `@bufbuild/buf` from 1.34.0 to 1.35.1
Release notes
Sourced from @bufbuild/buf
's
releases.
v1.35.1
- Fix the git input parameter
ref
to align with the
git
notion of a ref. This allows for the use of branch
names, tag names, and commit hashes.
- Fix unexpected
buf build
errors with absolute path
directory inputs without workspace and/or module configurations (e.g.
buf.yaml
, buf.work.yaml
) and proto file paths
set to the --path
flag.
v1.35.0
- Add
buf generate --clean
flag that will delete the
directories, jar files, or zip files that the
plugins will write to, prior to generation. Allows cleaning of existing
assets without having
to call rm -rf
.
- Deprecate
--username
flag on and username prompt on
buf registry login
. A username is no longer
required to log in.
Changelog
Sourced from @bufbuild/buf
's
changelog.
[v1.35.1] - 2024-07-24
- Fix the git input parameter
ref
to align with the
git
notion of a ref. This allows for the use
of branch names, tag names, and commit hashes.
- Fix unexpected
buf build
errors with absolute path
directory inputs without workspace and/or
module configurations (e.g. buf.yaml
,
buf.work.yaml
) and proto file paths set to the
--path
flag.
[v1.35.0] - 2024-07-22
- Add
buf generate --clean
flag that will delete the
directories, jar files, or zip files that the
plugins will write to, prior to generation. Allows cleaning of existing
assets without having
to call rm -rf
.
- Deprecate
--username
flag on and username prompt on
buf registry login
. A username is no longer
required to log in.
- Add
--list-services
and --list-methods
flags to buf curl
, which trigger the command to list
known services or methods in the RPC schema, instead of invoking an RPC
method.
Commits
Updates `@types/node` from 20.14.9 to 22.0.2
Commits
Updates `tsx` from 4.16.0 to 4.16.4
Release notes
Sourced from tsx's
releases.
v4.16.4
4.16.4
(2024-08-01)
Bug Fixes
This release is also available on:
v4.16.3
4.16.3
(2024-07-31)
Bug Fixes
This release is also available on:
v4.16.2
4.16.2
(2024-07-03)
Bug Fixes
This release is also available on:
v4.16.1
4.16.1
(2024-07-03)
Bug Fixes
... (truncated)
Commits
3cf0b6a
fix(resolver): handle importing ".."
ca4bf11
refactor(cjs): resolver organized in multiple files
3df00f4
fix(resolver): prioritize requested path in dependencies
1c3fd22
docs(usages): update link to knip usage (#622)
8344163
chore(deps): update dependency node to v20.16.0 (#621)
178f338
chore: remove unused eslintConfig
(#620)
1affdd0
docs: make logos easier to see
7d38e42
docs: fix marquee bug on safari
e5ddeb3
docs: fix marquee on safari
630c4d6
docs: update sponsor link
- Additional commits viewable in compare
view
Updates `typescript` from 5.5.2 to 5.5.4
Release notes
Sourced from typescript's
releases.
TypeScript 5.5.4
For release notes, check out the release
announcement.
For the complete list of fixed issues, check out the
Downloads are available on:
TypeScript 5.5.3
For release notes, check out the release
announcement.
For the complete list of fixed issues, check out the
Downloads are available on:
Commits
c8a7d58
Bump version to 5.5.4 and LKG
c0ded04
🤖 Pick PR #58771
(Allow references to the global Symb...) into release-5.5 (#...
5ba41e2
🤖 Pick PR #59208
(Write non-missing undefined on mapp...) into release-5.5 (#...
b075332
🤖 Pick PR #59337
(Allow declarationMap to be emitted ...) into release-5.5 (#...
9dd6f91
Cherry-pick "Stop using latest Node in CI" to release-5.5 (#59348)
bf0ddaf
🤖 Pick PR #59070
(Delay the calculation of common sou...) into release-5.5 (#...
a44e2d9
🤖 Pick PR #59160
(Fixed crash on authored import type...) into release-5.5 (#...
f35206d
🤖 Pick PR #59325
(Don't skip markLinkedReferences on ...) into release-5.5 (#...
1109550
Fix baselines on release-5.5 (#59330)
8794318
🤖 Pick PR #59215
(Fix codefix crash on circular alias...) into release-5.5 (#...
- Additional commits viewable in compare
view
Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore ` will
remove the ignore condition of the specified dependency and ignore
conditions
---------
Signed-off-by: dependabot[bot]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Steve Ayers
---
.../gen/conformance/conformance_pb.ts | 367 ++---
.../protobuf/test_messages_proto2_pb.ts | 1430 +++++------------
.../protobuf/test_messages_proto3_pb.ts | 708 +++-----
impl/baseline/package-lock.json | 146 +-
impl/baseline/package.json | 12 +-
impl/baseline/runner.ts | 32 +-
package-lock.json | 18 +
package.json | 5 +-
8 files changed, 922 insertions(+), 1796 deletions(-)
diff --git a/impl/baseline/gen/conformance/conformance_pb.ts b/impl/baseline/gen/conformance/conformance_pb.ts
index f706b5f4..e07fb241 100644
--- a/impl/baseline/gen/conformance/conformance_pb.ts
+++ b/impl/baseline/gen/conformance/conformance_pb.ts
@@ -5,113 +5,19 @@
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
-// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
+// @generated by protoc-gen-es v2.0.0 with parameter "target=ts"
// @generated from file conformance/conformance.proto (package conformance, syntax proto3)
/* eslint-disable */
-// @ts-nocheck
-import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
-import { Message, proto3 } from "@bufbuild/protobuf";
+import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
+import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
+import type { Message } from "@bufbuild/protobuf";
/**
- * @generated from enum conformance.WireFormat
+ * Describes the file conformance/conformance.proto.
*/
-export enum WireFormat {
- /**
- * @generated from enum value: UNSPECIFIED = 0;
- */
- UNSPECIFIED = 0,
-
- /**
- * @generated from enum value: PROTOBUF = 1;
- */
- PROTOBUF = 1,
-
- /**
- * @generated from enum value: JSON = 2;
- */
- JSON = 2,
-
- /**
- * Only used inside Google. Opensource testees just skip it.
- *
- * @generated from enum value: JSPB = 3;
- */
- JSPB = 3,
-
- /**
- * @generated from enum value: TEXT_FORMAT = 4;
- */
- TEXT_FORMAT = 4,
-}
-// Retrieve enum metadata with: proto3.getEnumType(WireFormat)
-proto3.util.setEnumType(WireFormat, "conformance.WireFormat", [
- { no: 0, name: "UNSPECIFIED" },
- { no: 1, name: "PROTOBUF" },
- { no: 2, name: "JSON" },
- { no: 3, name: "JSPB" },
- { no: 4, name: "TEXT_FORMAT" },
-]);
-
-/**
- * @generated from enum conformance.TestCategory
- */
-export enum TestCategory {
- /**
- * @generated from enum value: UNSPECIFIED_TEST = 0;
- */
- UNSPECIFIED_TEST = 0,
-
- /**
- * Test binary wire format.
- *
- * @generated from enum value: BINARY_TEST = 1;
- */
- BINARY_TEST = 1,
-
- /**
- * Test json wire format.
- *
- * @generated from enum value: JSON_TEST = 2;
- */
- JSON_TEST = 2,
-
- /**
- * Similar to JSON_TEST. However, during parsing json, testee should ignore
- * unknown fields. This feature is optional. Each implementation can decide
- * whether to support it. See
- * https://developers.google.com/protocol-buffers/docs/proto3#json_options
- * for more detail.
- *
- * @generated from enum value: JSON_IGNORE_UNKNOWN_PARSING_TEST = 3;
- */
- JSON_IGNORE_UNKNOWN_PARSING_TEST = 3,
-
- /**
- * Test jspb wire format. Only used inside Google. Opensource testees just
- * skip it.
- *
- * @generated from enum value: JSPB_TEST = 4;
- */
- JSPB_TEST = 4,
-
- /**
- * Test text format. For cpp, java and python, testees can already deal with
- * this type. Testees of other languages can simply skip it.
- *
- * @generated from enum value: TEXT_FORMAT_TEST = 5;
- */
- TEXT_FORMAT_TEST = 5,
-}
-// Retrieve enum metadata with: proto3.getEnumType(TestCategory)
-proto3.util.setEnumType(TestCategory, "conformance.TestCategory", [
- { no: 0, name: "UNSPECIFIED_TEST" },
- { no: 1, name: "BINARY_TEST" },
- { no: 2, name: "JSON_TEST" },
- { no: 3, name: "JSON_IGNORE_UNKNOWN_PARSING_TEST" },
- { no: 4, name: "JSPB_TEST" },
- { no: 5, name: "TEXT_FORMAT_TEST" },
-]);
+export const file_conformance_conformance: GenFile = /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oESlNPThACEggKBEpTUEIQAxIPCgtURVhUX0ZPUk1BVBAEKo8BCgxUZXN0Q2F0ZWdvcnkSFAoQVU5TUEVDSUZJRURfVEVTVBAAEg8KC0JJTkFSWV9URVNUEAESDQoJSlNPTl9URVNUEAISJAogSlNPTl9JR05PUkVfVU5LTk9XTl9QQVJTSU5HX1RFU1QQAxINCglKU1BCX1RFU1QQBBIUChBURVhUX0ZPUk1BVF9URVNUEAVCLwofY29tLmdvb2dsZS5wcm90b2J1Zi5jb25mb3JtYW5jZaICC0NvbmZvcm1hbmNlYgZwcm90bzM");
/**
* The conformance runner will request a list of failures as the first request.
@@ -120,39 +26,19 @@ proto3.util.setEnumType(TestCategory, "conformance.TestCategory", [
*
* @generated from message conformance.FailureSet
*/
-export class FailureSet extends Message {
+export type FailureSet = Message<"conformance.FailureSet"> & {
/**
* @generated from field: repeated string failure = 1;
*/
- failure: string[] = [];
-
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "conformance.FailureSet";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- { no: 1, name: "failure", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): FailureSet {
- return new FailureSet().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): FailureSet {
- return new FailureSet().fromJson(jsonValue, options);
- }
+ failure: string[];
+};
- static fromJsonString(jsonString: string, options?: Partial): FailureSet {
- return new FailureSet().fromJsonString(jsonString, options);
- }
-
- static equals(a: FailureSet | PlainMessage | undefined, b: FailureSet | PlainMessage | undefined): boolean {
- return proto3.util.equals(FailureSet, a, b);
- }
-}
+/**
+ * Describes the message conformance.FailureSet.
+ * Use `create(FailureSetSchema)` to create a new message.
+ */
+export const FailureSetSchema: GenMessage = /*@__PURE__*/
+ messageDesc(file_conformance_conformance, 0);
/**
* Represents a single test case's input. The testee should:
@@ -163,7 +49,7 @@ export class FailureSet extends Message {
*
* @generated from message conformance.ConformanceRequest
*/
-export class ConformanceRequest extends Message {
+export type ConformanceRequest = Message<"conformance.ConformanceRequest"> & {
/**
* The payload (whether protobuf of JSON) is always for a
* protobuf_test_messages.proto3.TestAllTypes proto (as defined in
@@ -197,14 +83,14 @@ export class ConformanceRequest extends Message {
*/
value: string;
case: "textPayload";
- } | { case: undefined; value?: undefined } = { case: undefined };
+ } | { case: undefined; value?: undefined };
/**
* Which format should the testee serialize its message to?
*
* @generated from field: conformance.WireFormat requested_output_format = 3;
*/
- requestedOutputFormat = WireFormat.UNSPECIFIED;
+ requestedOutputFormat: WireFormat;
/**
* The full name for the test message to use; for the moment, either:
@@ -213,7 +99,7 @@ export class ConformanceRequest extends Message {
*
* @generated from field: string message_type = 4;
*/
- messageType = "";
+ messageType: string;
/**
* Each test is given a specific test category. Some category may need
@@ -222,7 +108,7 @@ export class ConformanceRequest extends Message {
*
* @generated from field: conformance.TestCategory test_category = 5;
*/
- testCategory = TestCategory.UNSPECIFIED_TEST;
+ testCategory: TestCategory;
/**
* Specify details for how to encode jspb.
@@ -237,50 +123,22 @@ export class ConformanceRequest extends Message {
*
* @generated from field: bool print_unknown_fields = 9;
*/
- printUnknownFields = false;
-
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "conformance.ConformanceRequest";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- { no: 1, name: "protobuf_payload", kind: "scalar", T: 12 /* ScalarType.BYTES */, oneof: "payload" },
- { no: 2, name: "json_payload", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "payload" },
- { no: 7, name: "jspb_payload", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "payload" },
- { no: 8, name: "text_payload", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "payload" },
- { no: 3, name: "requested_output_format", kind: "enum", T: proto3.getEnumType(WireFormat) },
- { no: 4, name: "message_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
- { no: 5, name: "test_category", kind: "enum", T: proto3.getEnumType(TestCategory) },
- { no: 6, name: "jspb_encoding_options", kind: "message", T: JspbEncodingConfig },
- { no: 9, name: "print_unknown_fields", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
- ]);
+ printUnknownFields: boolean;
+};
- static fromBinary(bytes: Uint8Array, options?: Partial): ConformanceRequest {
- return new ConformanceRequest().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): ConformanceRequest {
- return new ConformanceRequest().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): ConformanceRequest {
- return new ConformanceRequest().fromJsonString(jsonString, options);
- }
-
- static equals(a: ConformanceRequest | PlainMessage | undefined, b: ConformanceRequest | PlainMessage | undefined): boolean {
- return proto3.util.equals(ConformanceRequest, a, b);
- }
-}
+/**
+ * Describes the message conformance.ConformanceRequest.
+ * Use `create(ConformanceRequestSchema)` to create a new message.
+ */
+export const ConformanceRequestSchema: GenMessage = /*@__PURE__*/
+ messageDesc(file_conformance_conformance, 1);
/**
* Represents a single test case's output.
*
* @generated from message conformance.ConformanceResponse
*/
-export class ConformanceResponse extends Message {
+export type ConformanceResponse = Message<"conformance.ConformanceResponse"> & {
/**
* @generated from oneof conformance.ConformanceResponse.result
*/
@@ -372,82 +230,129 @@ export class ConformanceResponse extends Message {
*/
value: string;
case: "textPayload";
- } | { case: undefined; value?: undefined } = { case: undefined };
-
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "conformance.ConformanceResponse";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- { no: 1, name: "parse_error", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "result" },
- { no: 6, name: "serialize_error", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "result" },
- { no: 9, name: "timeout_error", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "result" },
- { no: 2, name: "runtime_error", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "result" },
- { no: 3, name: "protobuf_payload", kind: "scalar", T: 12 /* ScalarType.BYTES */, oneof: "result" },
- { no: 4, name: "json_payload", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "result" },
- { no: 5, name: "skipped", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "result" },
- { no: 7, name: "jspb_payload", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "result" },
- { no: 8, name: "text_payload", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "result" },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): ConformanceResponse {
- return new ConformanceResponse().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): ConformanceResponse {
- return new ConformanceResponse().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): ConformanceResponse {
- return new ConformanceResponse().fromJsonString(jsonString, options);
- }
+ } | { case: undefined; value?: undefined };
+};
- static equals(a: ConformanceResponse | PlainMessage | undefined, b: ConformanceResponse | PlainMessage | undefined): boolean {
- return proto3.util.equals(ConformanceResponse, a, b);
- }
-}
+/**
+ * Describes the message conformance.ConformanceResponse.
+ * Use `create(ConformanceResponseSchema)` to create a new message.
+ */
+export const ConformanceResponseSchema: GenMessage = /*@__PURE__*/
+ messageDesc(file_conformance_conformance, 2);
/**
* Encoding options for jspb format.
*
* @generated from message conformance.JspbEncodingConfig
*/
-export class JspbEncodingConfig extends Message {
+export type JspbEncodingConfig = Message<"conformance.JspbEncodingConfig"> & {
/**
* Encode the value field of Any as jspb array if true, otherwise binary.
*
* @generated from field: bool use_jspb_array_any_format = 1;
*/
- useJspbArrayAnyFormat = false;
+ useJspbArrayAnyFormat: boolean;
+};
+
+/**
+ * Describes the message conformance.JspbEncodingConfig.
+ * Use `create(JspbEncodingConfigSchema)` to create a new message.
+ */
+export const JspbEncodingConfigSchema: GenMessage = /*@__PURE__*/
+ messageDesc(file_conformance_conformance, 3);
+
+/**
+ * @generated from enum conformance.WireFormat
+ */
+export enum WireFormat {
+ /**
+ * @generated from enum value: UNSPECIFIED = 0;
+ */
+ UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: PROTOBUF = 1;
+ */
+ PROTOBUF = 1,
+
+ /**
+ * @generated from enum value: JSON = 2;
+ */
+ JSON = 2,
+
+ /**
+ * Only used inside Google. Opensource testees just skip it.
+ *
+ * @generated from enum value: JSPB = 3;
+ */
+ JSPB = 3,
+
+ /**
+ * @generated from enum value: TEXT_FORMAT = 4;
+ */
+ TEXT_FORMAT = 4,
+}
+
+/**
+ * Describes the enum conformance.WireFormat.
+ */
+export const WireFormatSchema: GenEnum = /*@__PURE__*/
+ enumDesc(file_conformance_conformance, 0);
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
+/**
+ * @generated from enum conformance.TestCategory
+ */
+export enum TestCategory {
+ /**
+ * @generated from enum value: UNSPECIFIED_TEST = 0;
+ */
+ UNSPECIFIED_TEST = 0,
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "conformance.JspbEncodingConfig";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- { no: 1, name: "use_jspb_array_any_format", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
- ]);
+ /**
+ * Test binary wire format.
+ *
+ * @generated from enum value: BINARY_TEST = 1;
+ */
+ BINARY_TEST = 1,
- static fromBinary(bytes: Uint8Array, options?: Partial): JspbEncodingConfig {
- return new JspbEncodingConfig().fromBinary(bytes, options);
- }
+ /**
+ * Test json wire format.
+ *
+ * @generated from enum value: JSON_TEST = 2;
+ */
+ JSON_TEST = 2,
- static fromJson(jsonValue: JsonValue, options?: Partial): JspbEncodingConfig {
- return new JspbEncodingConfig().fromJson(jsonValue, options);
- }
+ /**
+ * Similar to JSON_TEST. However, during parsing json, testee should ignore
+ * unknown fields. This feature is optional. Each implementation can decide
+ * whether to support it. See
+ * https://developers.google.com/protocol-buffers/docs/proto3#json_options
+ * for more detail.
+ *
+ * @generated from enum value: JSON_IGNORE_UNKNOWN_PARSING_TEST = 3;
+ */
+ JSON_IGNORE_UNKNOWN_PARSING_TEST = 3,
- static fromJsonString(jsonString: string, options?: Partial): JspbEncodingConfig {
- return new JspbEncodingConfig().fromJsonString(jsonString, options);
- }
+ /**
+ * Test jspb wire format. Only used inside Google. Opensource testees just
+ * skip it.
+ *
+ * @generated from enum value: JSPB_TEST = 4;
+ */
+ JSPB_TEST = 4,
- static equals(a: JspbEncodingConfig | PlainMessage | undefined, b: JspbEncodingConfig | PlainMessage | undefined): boolean {
- return proto3.util.equals(JspbEncodingConfig, a, b);
- }
+ /**
+ * Test text format. For cpp, java and python, testees can already deal with
+ * this type. Testees of other languages can simply skip it.
+ *
+ * @generated from enum value: TEXT_FORMAT_TEST = 5;
+ */
+ TEXT_FORMAT_TEST = 5,
}
+/**
+ * Describes the enum conformance.TestCategory.
+ */
+export const TestCategorySchema: GenEnum = /*@__PURE__*/
+ enumDesc(file_conformance_conformance, 1);
+
diff --git a/impl/baseline/gen/google/protobuf/test_messages_proto2_pb.ts b/impl/baseline/gen/google/protobuf/test_messages_proto2_pb.ts
index 318f681d..b447892d 100644
--- a/impl/baseline/gen/google/protobuf/test_messages_proto2_pb.ts
+++ b/impl/baseline/gen/google/protobuf/test_messages_proto2_pb.ts
@@ -12,39 +12,19 @@
// LINT: ALLOW_GROUPS
-// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
+// @generated by protoc-gen-es v2.0.0 with parameter "target=ts"
// @generated from file google/protobuf/test_messages_proto2.proto (package protobuf_test_messages.proto2, syntax proto2)
/* eslint-disable */
-// @ts-nocheck
-import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
-import { Message, proto2, protoInt64 } from "@bufbuild/protobuf";
+import type { GenEnum, GenExtension, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
+import { enumDesc, extDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
+import type { Message } from "@bufbuild/protobuf";
/**
- * @generated from enum protobuf_test_messages.proto2.ForeignEnumProto2
+ * Describes the file google/protobuf/test_messages_proto2.proto.
*/
-export enum ForeignEnumProto2 {
- /**
- * @generated from enum value: FOREIGN_FOO = 0;
- */
- FOREIGN_FOO = 0,
-
- /**
- * @generated from enum value: FOREIGN_BAR = 1;
- */
- FOREIGN_BAR = 1,
-
- /**
- * @generated from enum value: FOREIGN_BAZ = 2;
- */
- FOREIGN_BAZ = 2,
-}
-// Retrieve enum metadata with: proto2.getEnumType(ForeignEnumProto2)
-proto2.util.setEnumType(ForeignEnumProto2, "protobuf_test_messages.proto2.ForeignEnumProto2", [
- { no: 0, name: "FOREIGN_FOO" },
- { no: 1, name: "FOREIGN_BAR" },
- { no: 2, name: "FOREIGN_BAZ" },
-]);
+export const file_google_protobuf_test_messages_proto2: GenFile = /*@__PURE__*/
+ fileDesc("Cipnb29nbGUvcHJvdG9idWYvdGVzdF9tZXNzYWdlc19wcm90bzIucHJvdG8SHXByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yIu4+ChJUZXN0QWxsVHlwZXNQcm90bzISFgoOb3B0aW9uYWxfaW50MzIYASABKAUSFgoOb3B0aW9uYWxfaW50NjQYAiABKAMSFwoPb3B0aW9uYWxfdWludDMyGAMgASgNEhcKD29wdGlvbmFsX3VpbnQ2NBgEIAEoBBIXCg9vcHRpb25hbF9zaW50MzIYBSABKBESFwoPb3B0aW9uYWxfc2ludDY0GAYgASgSEhgKEG9wdGlvbmFsX2ZpeGVkMzIYByABKAcSGAoQb3B0aW9uYWxfZml4ZWQ2NBgIIAEoBhIZChFvcHRpb25hbF9zZml4ZWQzMhgJIAEoDxIZChFvcHRpb25hbF9zZml4ZWQ2NBgKIAEoEBIWCg5vcHRpb25hbF9mbG9hdBgLIAEoAhIXCg9vcHR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2VTZXRDb3JyZWN0GPm7XiABKAsyVS5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsUmVxdWlyZWRUeXBlc1Byb3RvMi5NZXNzYWdlU2V0Q29ycmVjdEV4dGVuc2lvbjFSE21lc3NhZ2VTZXRFeHRlbnNpb24ahAIKG01lc3NhZ2VTZXRDb3JyZWN0RXh0ZW5zaW9uMhIJCgFpGAkgAigFMtkBChVtZXNzYWdlX3NldF9leHRlbnNpb24SSy5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsUmVxdWlyZWRUeXBlc1Byb3RvMi5NZXNzYWdlU2V0Q29ycmVjdBiQs/wBIAEoCzJVLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxSZXF1aXJlZFR5cGVzUHJvdG8yLk1lc3NhZ2VTZXRDb3JyZWN0RXh0ZW5zaW9uMlITbWVzc2FnZVNldEV4dGVuc2lvbiI5CgpOZXN0ZWRFbnVtEgcKA0ZPTxAAEgcKA0JBUhABEgcKA0JBWhACEhAKA05FRxD///////////8BKgUIeBDJAUoGCOgHEJBOKkYKEUZvcmVpZ25FbnVtUHJvdG8yEg8KC0ZPUkVJR05fRk9PEAASDwoLRk9SRUlHTl9CQVIQARIPCgtGT1JFSUdOX0JBWhACOloKD2V4dGVuc2lvbl9pbnQzMhIxLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxUeXBlc1Byb3RvMhh4IAEoBVIOZXh0ZW5zaW9uSW50MzJCOAooY29tLmdvb2dsZS5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMkgB+AEBogIGUHJvdG8y");
/**
* This proto includes every type of field in both singular and repeated
@@ -57,83 +37,83 @@ proto2.util.setEnumType(ForeignEnumProto2, "protobuf_test_messages.proto2.Foreig
*
* @generated from message protobuf_test_messages.proto2.TestAllTypesProto2
*/
-export class TestAllTypesProto2 extends Message {
+export type TestAllTypesProto2 = Message<"protobuf_test_messages.proto2.TestAllTypesProto2"> & {
/**
* Singular
*
* @generated from field: optional int32 optional_int32 = 1;
*/
- optionalInt32?: number;
+ optionalInt32: number;
/**
* @generated from field: optional int64 optional_int64 = 2;
*/
- optionalInt64?: bigint;
+ optionalInt64: bigint;
/**
* @generated from field: optional uint32 optional_uint32 = 3;
*/
- optionalUint32?: number;
+ optionalUint32: number;
/**
* @generated from field: optional uint64 optional_uint64 = 4;
*/
- optionalUint64?: bigint;
+ optionalUint64: bigint;
/**
* @generated from field: optional sint32 optional_sint32 = 5;
*/
- optionalSint32?: number;
+ optionalSint32: number;
/**
* @generated from field: optional sint64 optional_sint64 = 6;
*/
- optionalSint64?: bigint;
+ optionalSint64: bigint;
/**
* @generated from field: optional fixed32 optional_fixed32 = 7;
*/
- optionalFixed32?: number;
+ optionalFixed32: number;
/**
* @generated from field: optional fixed64 optional_fixed64 = 8;
*/
- optionalFixed64?: bigint;
+ optionalFixed64: bigint;
/**
* @generated from field: optional sfixed32 optional_sfixed32 = 9;
*/
- optionalSfixed32?: number;
+ optionalSfixed32: number;
/**
* @generated from field: optional sfixed64 optional_sfixed64 = 10;
*/
- optionalSfixed64?: bigint;
+ optionalSfixed64: bigint;
/**
* @generated from field: optional float optional_float = 11;
*/
- optionalFloat?: number;
+ optionalFloat: number;
/**
* @generated from field: optional double optional_double = 12;
*/
- optionalDouble?: number;
+ optionalDouble: number;
/**
* @generated from field: optional bool optional_bool = 13;
*/
- optionalBool?: boolean;
+ optionalBool: boolean;
/**
* @generated from field: optional string optional_string = 14;
*/
- optionalString?: string;
+ optionalString: string;
/**
* @generated from field: optional bytes optional_bytes = 15;
*/
- optionalBytes?: Uint8Array;
+ optionalBytes: Uint8Array;
/**
* @generated from field: optional protobuf_test_messages.proto2.TestAllTypesProto2.NestedMessage optional_nested_message = 18;
@@ -148,22 +128,22 @@ export class TestAllTypesProto2 extends Message {
/**
* @generated from field: optional protobuf_test_messages.proto2.TestAllTypesProto2.NestedEnum optional_nested_enum = 21;
*/
- optionalNestedEnum?: TestAllTypesProto2_NestedEnum;
+ optionalNestedEnum: TestAllTypesProto2_NestedEnum;
/**
* @generated from field: optional protobuf_test_messages.proto2.ForeignEnumProto2 optional_foreign_enum = 22;
*/
- optionalForeignEnum?: ForeignEnumProto2;
+ optionalForeignEnum: ForeignEnumProto2;
/**
* @generated from field: optional string optional_string_piece = 24;
*/
- optionalStringPiece?: string;
+ optionalStringPiece: string;
/**
* @generated from field: optional string optional_cord = 25;
*/
- optionalCord?: string;
+ optionalCord: string;
/**
* @generated from field: optional protobuf_test_messages.proto2.TestAllTypesProto2 recursive_message = 27;
@@ -175,348 +155,348 @@ export class TestAllTypesProto2 extends Message {
*
* @generated from field: repeated int32 repeated_int32 = 31;
*/
- repeatedInt32: number[] = [];
+ repeatedInt32: number[];
/**
* @generated from field: repeated int64 repeated_int64 = 32;
*/
- repeatedInt64: bigint[] = [];
+ repeatedInt64: bigint[];
/**
* @generated from field: repeated uint32 repeated_uint32 = 33;
*/
- repeatedUint32: number[] = [];
+ repeatedUint32: number[];
/**
* @generated from field: repeated uint64 repeated_uint64 = 34;
*/
- repeatedUint64: bigint[] = [];
+ repeatedUint64: bigint[];
/**
* @generated from field: repeated sint32 repeated_sint32 = 35;
*/
- repeatedSint32: number[] = [];
+ repeatedSint32: number[];
/**
* @generated from field: repeated sint64 repeated_sint64 = 36;
*/
- repeatedSint64: bigint[] = [];
+ repeatedSint64: bigint[];
/**
* @generated from field: repeated fixed32 repeated_fixed32 = 37;
*/
- repeatedFixed32: number[] = [];
+ repeatedFixed32: number[];
/**
* @generated from field: repeated fixed64 repeated_fixed64 = 38;
*/
- repeatedFixed64: bigint[] = [];
+ repeatedFixed64: bigint[];
/**
* @generated from field: repeated sfixed32 repeated_sfixed32 = 39;
*/
- repeatedSfixed32: number[] = [];
+ repeatedSfixed32: number[];
/**
* @generated from field: repeated sfixed64 repeated_sfixed64 = 40;
*/
- repeatedSfixed64: bigint[] = [];
+ repeatedSfixed64: bigint[];
/**
* @generated from field: repeated float repeated_float = 41;
*/
- repeatedFloat: number[] = [];
+ repeatedFloat: number[];
/**
* @generated from field: repeated double repeated_double = 42;
*/
- repeatedDouble: number[] = [];
+ repeatedDouble: number[];
/**
* @generated from field: repeated bool repeated_bool = 43;
*/
- repeatedBool: boolean[] = [];
+ repeatedBool: boolean[];
/**
* @generated from field: repeated string repeated_string = 44;
*/
- repeatedString: string[] = [];
+ repeatedString: string[];
/**
* @generated from field: repeated bytes repeated_bytes = 45;
*/
- repeatedBytes: Uint8Array[] = [];
+ repeatedBytes: Uint8Array[];
/**
* @generated from field: repeated protobuf_test_messages.proto2.TestAllTypesProto2.NestedMessage repeated_nested_message = 48;
*/
- repeatedNestedMessage: TestAllTypesProto2_NestedMessage[] = [];
+ repeatedNestedMessage: TestAllTypesProto2_NestedMessage[];
/**
* @generated from field: repeated protobuf_test_messages.proto2.ForeignMessageProto2 repeated_foreign_message = 49;
*/
- repeatedForeignMessage: ForeignMessageProto2[] = [];
+ repeatedForeignMessage: ForeignMessageProto2[];
/**
* @generated from field: repeated protobuf_test_messages.proto2.TestAllTypesProto2.NestedEnum repeated_nested_enum = 51;
*/
- repeatedNestedEnum: TestAllTypesProto2_NestedEnum[] = [];
+ repeatedNestedEnum: TestAllTypesProto2_NestedEnum[];
/**
* @generated from field: repeated protobuf_test_messages.proto2.ForeignEnumProto2 repeated_foreign_enum = 52;
*/
- repeatedForeignEnum: ForeignEnumProto2[] = [];
+ repeatedForeignEnum: ForeignEnumProto2[];
/**
* @generated from field: repeated string repeated_string_piece = 54;
*/
- repeatedStringPiece: string[] = [];
+ repeatedStringPiece: string[];
/**
* @generated from field: repeated string repeated_cord = 55;
*/
- repeatedCord: string[] = [];
+ repeatedCord: string[];
/**
* Packed
*
* @generated from field: repeated int32 packed_int32 = 75 [packed = true];
*/
- packedInt32: number[] = [];
+ packedInt32: number[];
/**
* @generated from field: repeated int64 packed_int64 = 76 [packed = true];
*/
- packedInt64: bigint[] = [];
+ packedInt64: bigint[];
/**
* @generated from field: repeated uint32 packed_uint32 = 77 [packed = true];
*/
- packedUint32: number[] = [];
+ packedUint32: number[];
/**
* @generated from field: repeated uint64 packed_uint64 = 78 [packed = true];
*/
- packedUint64: bigint[] = [];
+ packedUint64: bigint[];
/**
* @generated from field: repeated sint32 packed_sint32 = 79 [packed = true];
*/
- packedSint32: number[] = [];
+ packedSint32: number[];
/**
* @generated from field: repeated sint64 packed_sint64 = 80 [packed = true];
*/
- packedSint64: bigint[] = [];
+ packedSint64: bigint[];
/**
* @generated from field: repeated fixed32 packed_fixed32 = 81 [packed = true];
*/
- packedFixed32: number[] = [];
+ packedFixed32: number[];
/**
* @generated from field: repeated fixed64 packed_fixed64 = 82 [packed = true];
*/
- packedFixed64: bigint[] = [];
+ packedFixed64: bigint[];
/**
* @generated from field: repeated sfixed32 packed_sfixed32 = 83 [packed = true];
*/
- packedSfixed32: number[] = [];
+ packedSfixed32: number[];
/**
* @generated from field: repeated sfixed64 packed_sfixed64 = 84 [packed = true];
*/
- packedSfixed64: bigint[] = [];
+ packedSfixed64: bigint[];
/**
* @generated from field: repeated float packed_float = 85 [packed = true];
*/
- packedFloat: number[] = [];
+ packedFloat: number[];
/**
* @generated from field: repeated double packed_double = 86 [packed = true];
*/
- packedDouble: number[] = [];
+ packedDouble: number[];
/**
* @generated from field: repeated bool packed_bool = 87 [packed = true];
*/
- packedBool: boolean[] = [];
+ packedBool: boolean[];
/**
* @generated from field: repeated protobuf_test_messages.proto2.TestAllTypesProto2.NestedEnum packed_nested_enum = 88 [packed = true];
*/
- packedNestedEnum: TestAllTypesProto2_NestedEnum[] = [];
+ packedNestedEnum: TestAllTypesProto2_NestedEnum[];
/**
* Unpacked
*
* @generated from field: repeated int32 unpacked_int32 = 89 [packed = false];
*/
- unpackedInt32: number[] = [];
+ unpackedInt32: number[];
/**
* @generated from field: repeated int64 unpacked_int64 = 90 [packed = false];
*/
- unpackedInt64: bigint[] = [];
+ unpackedInt64: bigint[];
/**
* @generated from field: repeated uint32 unpacked_uint32 = 91 [packed = false];
*/
- unpackedUint32: number[] = [];
+ unpackedUint32: number[];
/**
* @generated from field: repeated uint64 unpacked_uint64 = 92 [packed = false];
*/
- unpackedUint64: bigint[] = [];
+ unpackedUint64: bigint[];
/**
* @generated from field: repeated sint32 unpacked_sint32 = 93 [packed = false];
*/
- unpackedSint32: number[] = [];
+ unpackedSint32: number[];
/**
* @generated from field: repeated sint64 unpacked_sint64 = 94 [packed = false];
*/
- unpackedSint64: bigint[] = [];
+ unpackedSint64: bigint[];
/**
* @generated from field: repeated fixed32 unpacked_fixed32 = 95 [packed = false];
*/
- unpackedFixed32: number[] = [];
+ unpackedFixed32: number[];
/**
* @generated from field: repeated fixed64 unpacked_fixed64 = 96 [packed = false];
*/
- unpackedFixed64: bigint[] = [];
+ unpackedFixed64: bigint[];
/**
* @generated from field: repeated sfixed32 unpacked_sfixed32 = 97 [packed = false];
*/
- unpackedSfixed32: number[] = [];
+ unpackedSfixed32: number[];
/**
* @generated from field: repeated sfixed64 unpacked_sfixed64 = 98 [packed = false];
*/
- unpackedSfixed64: bigint[] = [];
+ unpackedSfixed64: bigint[];
/**
* @generated from field: repeated float unpacked_float = 99 [packed = false];
*/
- unpackedFloat: number[] = [];
+ unpackedFloat: number[];
/**
* @generated from field: repeated double unpacked_double = 100 [packed = false];
*/
- unpackedDouble: number[] = [];
+ unpackedDouble: number[];
/**
* @generated from field: repeated bool unpacked_bool = 101 [packed = false];
*/
- unpackedBool: boolean[] = [];
+ unpackedBool: boolean[];
/**
* @generated from field: repeated protobuf_test_messages.proto2.TestAllTypesProto2.NestedEnum unpacked_nested_enum = 102 [packed = false];
*/
- unpackedNestedEnum: TestAllTypesProto2_NestedEnum[] = [];
+ unpackedNestedEnum: TestAllTypesProto2_NestedEnum[];
/**
* Map
*
* @generated from field: map map_int32_int32 = 56;
*/
- mapInt32Int32: { [key: number]: number } = {};
+ mapInt32Int32: { [key: number]: number };
/**
* @generated from field: map map_int64_int64 = 57;
*/
- mapInt64Int64: { [key: string]: bigint } = {};
+ mapInt64Int64: { [key: string]: bigint };
/**
* @generated from field: map map_uint32_uint32 = 58;
*/
- mapUint32Uint32: { [key: number]: number } = {};
+ mapUint32Uint32: { [key: number]: number };
/**
* @generated from field: map map_uint64_uint64 = 59;
*/
- mapUint64Uint64: { [key: string]: bigint } = {};
+ mapUint64Uint64: { [key: string]: bigint };
/**
* @generated from field: map map_sint32_sint32 = 60;
*/
- mapSint32Sint32: { [key: number]: number } = {};
+ mapSint32Sint32: { [key: number]: number };
/**
* @generated from field: map map_sint64_sint64 = 61;
*/
- mapSint64Sint64: { [key: string]: bigint } = {};
+ mapSint64Sint64: { [key: string]: bigint };
/**
* @generated from field: map map_fixed32_fixed32 = 62;
*/
- mapFixed32Fixed32: { [key: number]: number } = {};
+ mapFixed32Fixed32: { [key: number]: number };
/**
* @generated from field: map map_fixed64_fixed64 = 63;
*/
- mapFixed64Fixed64: { [key: string]: bigint } = {};
+ mapFixed64Fixed64: { [key: string]: bigint };
/**
* @generated from field: map map_sfixed32_sfixed32 = 64;
*/
- mapSfixed32Sfixed32: { [key: number]: number } = {};
+ mapSfixed32Sfixed32: { [key: number]: number };
/**
* @generated from field: map map_sfixed64_sfixed64 = 65;
*/
- mapSfixed64Sfixed64: { [key: string]: bigint } = {};
+ mapSfixed64Sfixed64: { [key: string]: bigint };
/**
* @generated from field: map map_int32_float = 66;
*/
- mapInt32Float: { [key: number]: number } = {};
+ mapInt32Float: { [key: number]: number };
/**
* @generated from field: map map_int32_double = 67;
*/
- mapInt32Double: { [key: number]: number } = {};
+ mapInt32Double: { [key: number]: number };
/**
* @generated from field: map map_bool_bool = 68;
*/
- mapBoolBool: { [key: string]: boolean } = {};
+ mapBoolBool: { [key: string]: boolean };
/**
* @generated from field: map map_string_string = 69;
*/
- mapStringString: { [key: string]: string } = {};
+ mapStringString: { [key: string]: string };
/**
* @generated from field: map map_string_bytes = 70;
*/
- mapStringBytes: { [key: string]: Uint8Array } = {};
+ mapStringBytes: { [key: string]: Uint8Array };
/**
* @generated from field: map map_string_nested_message = 71;
*/
- mapStringNestedMessage: { [key: string]: TestAllTypesProto2_NestedMessage } = {};
+ mapStringNestedMessage: { [key: string]: TestAllTypesProto2_NestedMessage };
/**
* @generated from field: map map_string_foreign_message = 72;
*/
- mapStringForeignMessage: { [key: string]: ForeignMessageProto2 } = {};
+ mapStringForeignMessage: { [key: string]: ForeignMessageProto2 };
/**
* @generated from field: map map_string_nested_enum = 73;
*/
- mapStringNestedEnum: { [key: string]: TestAllTypesProto2_NestedEnum } = {};
+ mapStringNestedEnum: { [key: string]: TestAllTypesProto2_NestedEnum };
/**
* @generated from field: map map_string_foreign_enum = 74;
*/
- mapStringForeignEnum: { [key: string]: ForeignEnumProto2 } = {};
+ mapStringForeignEnum: { [key: string]: ForeignEnumProto2 };
/**
* @generated from oneof protobuf_test_messages.proto2.TestAllTypesProto2.oneof_field
@@ -575,7 +555,7 @@ export class TestAllTypesProto2 extends Message {
*/
value: TestAllTypesProto2_NestedEnum;
case: "oneofEnum";
- } | { case: undefined; value?: undefined } = { case: undefined };
+ } | { case: undefined; value?: undefined };
/**
* @generated from field: optional protobuf_test_messages.proto2.TestAllTypesProto2.Data data = 201;
@@ -587,77 +567,77 @@ export class TestAllTypesProto2 extends Message {
*
* @generated from field: optional int32 default_int32 = 241 [default = -123456789];
*/
- defaultInt32?: number;
+ defaultInt32: number;
/**
* @generated from field: optional int64 default_int64 = 242 [default = -9123456789123456789];
*/
- defaultInt64?: bigint;
+ defaultInt64: bigint;
/**
* @generated from field: optional uint32 default_uint32 = 243 [default = 2123456789];
*/
- defaultUint32?: number;
+ defaultUint32: number;
/**
* @generated from field: optional uint64 default_uint64 = 244 [default = 10123456789123456789];
*/
- defaultUint64?: bigint;
+ defaultUint64: bigint;
/**
* @generated from field: optional sint32 default_sint32 = 245 [default = -123456789];
*/
- defaultSint32?: number;
+ defaultSint32: number;
/**
* @generated from field: optional sint64 default_sint64 = 246 [default = -9123456789123456789];
*/
- defaultSint64?: bigint;
+ defaultSint64: bigint;
/**
* @generated from field: optional fixed32 default_fixed32 = 247 [default = 2123456789];
*/
- defaultFixed32?: number;
+ defaultFixed32: number;
/**
* @generated from field: optional fixed64 default_fixed64 = 248 [default = 10123456789123456789];
*/
- defaultFixed64?: bigint;
+ defaultFixed64: bigint;
/**
* @generated from field: optional sfixed32 default_sfixed32 = 249 [default = -123456789];
*/
- defaultSfixed32?: number;
+ defaultSfixed32: number;
/**
* @generated from field: optional sfixed64 default_sfixed64 = 250 [default = -9123456789123456789];
*/
- defaultSfixed64?: bigint;
+ defaultSfixed64: bigint;
/**
* @generated from field: optional float default_float = 251 [default = 9e+09];
*/
- defaultFloat?: number;
+ defaultFloat: number;
/**
* @generated from field: optional double default_double = 252 [default = 7e+22];
*/
- defaultDouble?: number;
+ defaultDouble: number;
/**
* @generated from field: optional bool default_bool = 253 [default = true];
*/
- defaultBool?: boolean;
+ defaultBool: boolean;
/**
* @generated from field: optional string default_string = 254 [default = "Rosebud"];
*/
- defaultString?: string;
+ defaultString: string;
/**
* @generated from field: optional bytes default_bytes = 255 [default = "joshua"];
*/
- defaultBytes?: Uint8Array;
+ defaultBytes: Uint8Array;
/**
* Test field-name-to-JSON-name convention.
@@ -665,550 +645,271 @@ export class TestAllTypesProto2 extends Message {
*
* @generated from field: optional int32 fieldname1 = 401;
*/
- fieldname1?: number;
+ fieldname1: number;
/**
* @generated from field: optional int32 field_name2 = 402;
*/
- fieldName2?: number;
+ fieldName2: number;
/**
* @generated from field: optional int32 _field_name3 = 403;
*/
- FieldName3?: number;
+ FieldName3: number;
/**
* @generated from field: optional int32 field__name4_ = 404;
*/
- fieldName4?: number;
+ fieldName4: number;
/**
* @generated from field: optional int32 field0name5 = 405;
*/
- field0name5?: number;
+ field0name5: number;
/**
* @generated from field: optional int32 field_0_name6 = 406;
*/
- field0Name6?: number;
+ field0Name6: number;
/**
* @generated from field: optional int32 fieldName7 = 407;
*/
- fieldName7?: number;
+ fieldName7: number;
/**
* @generated from field: optional int32 FieldName8 = 408;
*/
- FieldName8?: number;
+ FieldName8: number;
/**
* @generated from field: optional int32 field_Name9 = 409;
*/
- fieldName9?: number;
+ fieldName9: number;
/**
* @generated from field: optional int32 Field_Name10 = 410;
*/
- FieldName10?: number;
+ FieldName10: number;
/**
* @generated from field: optional int32 FIELD_NAME11 = 411;
*/
- FIELDNAME11?: number;
+ FIELDNAME11: number;
/**
* @generated from field: optional int32 FIELD_name12 = 412;
*/
- FIELDName12?: number;
+ FIELDName12: number;
/**
* @generated from field: optional int32 __field_name13 = 413;
*/
- FieldName13?: number;
+ FieldName13: number;
/**
* @generated from field: optional int32 __Field_name14 = 414;
*/
- FieldName14?: number;
+ FieldName14: number;
/**
* @generated from field: optional int32 field__name15 = 415;
*/
- fieldName15?: number;
+ fieldName15: number;
/**
* @generated from field: optional int32 field__Name16 = 416;
*/
- fieldName16?: number;
+ fieldName16: number;
/**
* @generated from field: optional int32 field_name17__ = 417;
*/
- fieldName17?: number;
+ fieldName17: number;
/**
* @generated from field: optional int32 Field_name18__ = 418;
*/
- FieldName18?: number;
-
- constructor(data?: PartialMessage) {
- super();
- proto2.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto2 = proto2;
- static readonly typeName = "protobuf_test_messages.proto2.TestAllTypesProto2";
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
- { no: 1, name: "optional_int32", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
- { no: 2, name: "optional_int64", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
- { no: 3, name: "optional_uint32", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
- { no: 4, name: "optional_uint64", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
- { no: 5, name: "optional_sint32", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
- { no: 6, name: "optional_sint64", kind: "scalar", T: 18 /* ScalarType.SINT64 */, opt: true },
- { no: 7, name: "optional_fixed32", kind: "scalar", T: 7 /* ScalarType.FIXED32 */, opt: true },
- { no: 8, name: "optional_fixed64", kind: "scalar", T: 6 /* ScalarType.FIXED64 */, opt: true },
- { no: 9, name: "optional_sfixed32", kind: "scalar", T: 15 /* ScalarType.SFIXED32 */, opt: true },
- { no: 10, name: "optional_sfixed64", kind: "scalar", T: 16 /* ScalarType.SFIXED64 */, opt: true },
- { no: 11, name: "optional_float", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
- { no: 12, name: "optional_double", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
- { no: 13, name: "optional_bool", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
- { no: 14, name: "optional_string", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
- { no: 15, name: "optional_bytes", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
- { no: 18, name: "optional_nested_message", kind: "message", T: TestAllTypesProto2_NestedMessage, opt: true },
- { no: 19, name: "optional_foreign_message", kind: "message", T: ForeignMessageProto2, opt: true },
- { no: 21, name: "optional_nested_enum", kind: "enum", T: proto2.getEnumType(TestAllTypesProto2_NestedEnum), opt: true },
- { no: 22, name: "optional_foreign_enum", kind: "enum", T: proto2.getEnumType(ForeignEnumProto2), opt: true },
- { no: 24, name: "optional_string_piece", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
- { no: 25, name: "optional_cord", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
- { no: 27, name: "recursive_message", kind: "message", T: TestAllTypesProto2, opt: true },
- { no: 31, name: "repeated_int32", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true },
- { no: 32, name: "repeated_int64", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true },
- { no: 33, name: "repeated_uint32", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
- { no: 34, name: "repeated_uint64", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true },
- { no: 35, name: "repeated_sint32", kind: "scalar", T: 17 /* ScalarType.SINT32 */, repeated: true },
- { no: 36, name: "repeated_sint64", kind: "scalar", T: 18 /* ScalarType.SINT64 */, repeated: true },
- { no: 37, name: "repeated_fixed32", kind: "scalar", T: 7 /* ScalarType.FIXED32 */, repeated: true },
- { no: 38, name: "repeated_fixed64", kind: "scalar", T: 6 /* ScalarType.FIXED64 */, repeated: true },
- { no: 39, name: "repeated_sfixed32", kind: "scalar", T: 15 /* ScalarType.SFIXED32 */, repeated: true },
- { no: 40, name: "repeated_sfixed64", kind: "scalar", T: 16 /* ScalarType.SFIXED64 */, repeated: true },
- { no: 41, name: "repeated_float", kind: "scalar", T: 2 /* ScalarType.FLOAT */, repeated: true },
- { no: 42, name: "repeated_double", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, repeated: true },
- { no: 43, name: "repeated_bool", kind: "scalar", T: 8 /* ScalarType.BOOL */, repeated: true },
- { no: 44, name: "repeated_string", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
- { no: 45, name: "repeated_bytes", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true },
- { no: 48, name: "repeated_nested_message", kind: "message", T: TestAllTypesProto2_NestedMessage, repeated: true },
- { no: 49, name: "repeated_foreign_message", kind: "message", T: ForeignMessageProto2, repeated: true },
- { no: 51, name: "repeated_nested_enum", kind: "enum", T: proto2.getEnumType(TestAllTypesProto2_NestedEnum), repeated: true },
- { no: 52, name: "repeated_foreign_enum", kind: "enum", T: proto2.getEnumType(ForeignEnumProto2), repeated: true },
- { no: 54, name: "repeated_string_piece", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
- { no: 55, name: "repeated_cord", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
- { no: 75, name: "packed_int32", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true, packed: true },
- { no: 76, name: "packed_int64", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true, packed: true },
- { no: 77, name: "packed_uint32", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true, packed: true },
- { no: 78, name: "packed_uint64", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true, packed: true },
- { no: 79, name: "packed_sint32", kind: "scalar", T: 17 /* ScalarType.SINT32 */, repeated: true, packed: true },
- { no: 80, name: "packed_sint64", kind: "scalar", T: 18 /* ScalarType.SINT64 */, repeated: true, packed: true },
- { no: 81, name: "packed_fixed32", kind: "scalar", T: 7 /* ScalarType.FIXED32 */, repeated: true, packed: true },
- { no: 82, name: "packed_fixed64", kind: "scalar", T: 6 /* ScalarType.FIXED64 */, repeated: true, packed: true },
- { no: 83, name: "packed_sfixed32", kind: "scalar", T: 15 /* ScalarType.SFIXED32 */, repeated: true, packed: true },
- { no: 84, name: "packed_sfixed64", kind: "scalar", T: 16 /* ScalarType.SFIXED64 */, repeated: true, packed: true },
- { no: 85, name: "packed_float", kind: "scalar", T: 2 /* ScalarType.FLOAT */, repeated: true, packed: true },
- { no: 86, name: "packed_double", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, repeated: true, packed: true },
- { no: 87, name: "packed_bool", kind: "scalar", T: 8 /* ScalarType.BOOL */, repeated: true, packed: true },
- { no: 88, name: "packed_nested_enum", kind: "enum", T: proto2.getEnumType(TestAllTypesProto2_NestedEnum), repeated: true, packed: true },
- { no: 89, name: "unpacked_int32", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true },
- { no: 90, name: "unpacked_int64", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true },
- { no: 91, name: "unpacked_uint32", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
- { no: 92, name: "unpacked_uint64", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true },
- { no: 93, name: "unpacked_sint32", kind: "scalar", T: 17 /* ScalarType.SINT32 */, repeated: true },
- { no: 94, name: "unpacked_sint64", kind: "scalar", T: 18 /* ScalarType.SINT64 */, repeated: true },
- { no: 95, name: "unpacked_fixed32", kind: "scalar", T: 7 /* ScalarType.FIXED32 */, repeated: true },
- { no: 96, name: "unpacked_fixed64", kind: "scalar", T: 6 /* ScalarType.FIXED64 */, repeated: true },
- { no: 97, name: "unpacked_sfixed32", kind: "scalar", T: 15 /* ScalarType.SFIXED32 */, repeated: true },
- { no: 98, name: "unpacked_sfixed64", kind: "scalar", T: 16 /* ScalarType.SFIXED64 */, repeated: true },
- { no: 99, name: "unpacked_float", kind: "scalar", T: 2 /* ScalarType.FLOAT */, repeated: true },
- { no: 100, name: "unpacked_double", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, repeated: true },
- { no: 101, name: "unpacked_bool", kind: "scalar", T: 8 /* ScalarType.BOOL */, repeated: true },
- { no: 102, name: "unpacked_nested_enum", kind: "enum", T: proto2.getEnumType(TestAllTypesProto2_NestedEnum), repeated: true },
- { no: 56, name: "map_int32_int32", kind: "map", K: 5 /* ScalarType.INT32 */, V: {kind: "scalar", T: 5 /* ScalarType.INT32 */} },
- { no: 57, name: "map_int64_int64", kind: "map", K: 3 /* ScalarType.INT64 */, V: {kind: "scalar", T: 3 /* ScalarType.INT64 */} },
- { no: 58, name: "map_uint32_uint32", kind: "map", K: 13 /* ScalarType.UINT32 */, V: {kind: "scalar", T: 13 /* ScalarType.UINT32 */} },
- { no: 59, name: "map_uint64_uint64", kind: "map", K: 4 /* ScalarType.UINT64 */, V: {kind: "scalar", T: 4 /* ScalarType.UINT64 */} },
- { no: 60, name: "map_sint32_sint32", kind: "map", K: 17 /* ScalarType.SINT32 */, V: {kind: "scalar", T: 17 /* ScalarType.SINT32 */} },
- { no: 61, name: "map_sint64_sint64", kind: "map", K: 18 /* ScalarType.SINT64 */, V: {kind: "scalar", T: 18 /* ScalarType.SINT64 */} },
- { no: 62, name: "map_fixed32_fixed32", kind: "map", K: 7 /* ScalarType.FIXED32 */, V: {kind: "scalar", T: 7 /* ScalarType.FIXED32 */} },
- { no: 63, name: "map_fixed64_fixed64", kind: "map", K: 6 /* ScalarType.FIXED64 */, V: {kind: "scalar", T: 6 /* ScalarType.FIXED64 */} },
- { no: 64, name: "map_sfixed32_sfixed32", kind: "map", K: 15 /* ScalarType.SFIXED32 */, V: {kind: "scalar", T: 15 /* ScalarType.SFIXED32 */} },
- { no: 65, name: "map_sfixed64_sfixed64", kind: "map", K: 16 /* ScalarType.SFIXED64 */, V: {kind: "scalar", T: 16 /* ScalarType.SFIXED64 */} },
- { no: 66, name: "map_int32_float", kind: "map", K: 5 /* ScalarType.INT32 */, V: {kind: "scalar", T: 2 /* ScalarType.FLOAT */} },
- { no: 67, name: "map_int32_double", kind: "map", K: 5 /* ScalarType.INT32 */, V: {kind: "scalar", T: 1 /* ScalarType.DOUBLE */} },
- { no: 68, name: "map_bool_bool", kind: "map", K: 8 /* ScalarType.BOOL */, V: {kind: "scalar", T: 8 /* ScalarType.BOOL */} },
- { no: 69, name: "map_string_string", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
- { no: 70, name: "map_string_bytes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 12 /* ScalarType.BYTES */} },
- { no: 71, name: "map_string_nested_message", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: TestAllTypesProto2_NestedMessage} },
- { no: 72, name: "map_string_foreign_message", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: ForeignMessageProto2} },
- { no: 73, name: "map_string_nested_enum", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "enum", T: proto2.getEnumType(TestAllTypesProto2_NestedEnum)} },
- { no: 74, name: "map_string_foreign_enum", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "enum", T: proto2.getEnumType(ForeignEnumProto2)} },
- { no: 111, name: "oneof_uint32", kind: "scalar", T: 13 /* ScalarType.UINT32 */, oneof: "oneof_field" },
- { no: 112, name: "oneof_nested_message", kind: "message", T: TestAllTypesProto2_NestedMessage, oneof: "oneof_field" },
- { no: 113, name: "oneof_string", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "oneof_field" },
- { no: 114, name: "oneof_bytes", kind: "scalar", T: 12 /* ScalarType.BYTES */, oneof: "oneof_field" },
- { no: 115, name: "oneof_bool", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "oneof_field" },
- { no: 116, name: "oneof_uint64", kind: "scalar", T: 4 /* ScalarType.UINT64 */, oneof: "oneof_field" },
- { no: 117, name: "oneof_float", kind: "scalar", T: 2 /* ScalarType.FLOAT */, oneof: "oneof_field" },
- { no: 118, name: "oneof_double", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, oneof: "oneof_field" },
- { no: 119, name: "oneof_enum", kind: "enum", T: proto2.getEnumType(TestAllTypesProto2_NestedEnum), oneof: "oneof_field" },
- { no: 201, name: "data", kind: "message", T: TestAllTypesProto2_Data, delimited: true, opt: true },
- { no: 241, name: "default_int32", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true, default: -123456789 },
- { no: 242, name: "default_int64", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true, default: protoInt64.parse("-9123456789123456789") },
- { no: 243, name: "default_uint32", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true, default: 2123456789 },
- { no: 244, name: "default_uint64", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true, default: protoInt64.uParse("10123456789123456789") },
- { no: 245, name: "default_sint32", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true, default: -123456789 },
- { no: 246, name: "default_sint64", kind: "scalar", T: 18 /* ScalarType.SINT64 */, opt: true, default: protoInt64.parse("-9123456789123456789") },
- { no: 247, name: "default_fixed32", kind: "scalar", T: 7 /* ScalarType.FIXED32 */, opt: true, default: 2123456789 },
- { no: 248, name: "default_fixed64", kind: "scalar", T: 6 /* ScalarType.FIXED64 */, opt: true, default: protoInt64.uParse("10123456789123456789") },
- { no: 249, name: "default_sfixed32", kind: "scalar", T: 15 /* ScalarType.SFIXED32 */, opt: true, default: -123456789 },
- { no: 250, name: "default_sfixed64", kind: "scalar", T: 16 /* ScalarType.SFIXED64 */, opt: true, default: protoInt64.parse("-9123456789123456789") },
- { no: 251, name: "default_float", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true, default: 9000000000 },
- { no: 252, name: "default_double", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true, default: 7e+22 },
- { no: 253, name: "default_bool", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: true },
- { no: 254, name: "default_string", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true, default: "Rosebud" },
- { no: 255, name: "default_bytes", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true, default: new Uint8Array([0x6A, 0x6F, 0x73, 0x68, 0x75, 0x61]) },
- { no: 401, name: "fieldname1", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
- { no: 402, name: "field_name2", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
- { no: 403, name: "_field_name3", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
- { no: 404, name: "field__name4_", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
- { no: 405, name: "field0name5", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
- { no: 406, name: "field_0_name6", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
- { no: 407, name: "fieldName7", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
- { no: 408, name: "FieldName8", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
- { no: 409, name: "field_Name9", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
- { no: 410, name: "Field_Name10", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
- { no: 411, name: "FIELD_NAME11", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
- { no: 412, name: "FIELD_name12", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
- { no: 413, name: "__field_name13", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
- { no: 414, name: "__Field_name14", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
- { no: 415, name: "field__name15", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
- { no: 416, name: "field__Name16", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
- { no: 417, name: "field_name17__", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
- { no: 418, name: "Field_name18__", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): TestAllTypesProto2 {
- return new TestAllTypesProto2().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): TestAllTypesProto2 {
- return new TestAllTypesProto2().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): TestAllTypesProto2 {
- return new TestAllTypesProto2().fromJsonString(jsonString, options);
- }
-
- static equals(a: TestAllTypesProto2 | PlainMessage | undefined, b: TestAllTypesProto2 | PlainMessage | undefined): boolean {
- return proto2.util.equals(TestAllTypesProto2, a, b);
- }
-}
+ FieldName18: number;
+};
/**
- * @generated from enum protobuf_test_messages.proto2.TestAllTypesProto2.NestedEnum
+ * Describes the message protobuf_test_messages.proto2.TestAllTypesProto2.
+ * Use `create(TestAllTypesProto2Schema)` to create a new message.
*/
-export enum TestAllTypesProto2_NestedEnum {
- /**
- * @generated from enum value: FOO = 0;
- */
- FOO = 0,
-
- /**
- * @generated from enum value: BAR = 1;
- */
- BAR = 1,
-
- /**
- * @generated from enum value: BAZ = 2;
- */
- BAZ = 2,
-
- /**
- * Intentionally negative.
- *
- * @generated from enum value: NEG = -1;
- */
- NEG = -1,
-}
-// Retrieve enum metadata with: proto2.getEnumType(TestAllTypesProto2_NestedEnum)
-proto2.util.setEnumType(TestAllTypesProto2_NestedEnum, "protobuf_test_messages.proto2.TestAllTypesProto2.NestedEnum", [
- { no: 0, name: "FOO" },
- { no: 1, name: "BAR" },
- { no: 2, name: "BAZ" },
- { no: -1, name: "NEG" },
-]);
+export const TestAllTypesProto2Schema: GenMessage = /*@__PURE__*/
+ messageDesc(file_google_protobuf_test_messages_proto2, 0);
/**
* @generated from message protobuf_test_messages.proto2.TestAllTypesProto2.NestedMessage
*/
-export class TestAllTypesProto2_NestedMessage extends Message {
+export type TestAllTypesProto2_NestedMessage = Message<"protobuf_test_messages.proto2.TestAllTypesProto2.NestedMessage"> & {
/**
* @generated from field: optional int32 a = 1;
*/
- a?: number;
+ a: number;
/**
* @generated from field: optional protobuf_test_messages.proto2.TestAllTypesProto2 corecursive = 2;
*/
corecursive?: TestAllTypesProto2;
+};
- constructor(data?: PartialMessage) {
- super();
- proto2.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto2 = proto2;
- static readonly typeName = "protobuf_test_messages.proto2.TestAllTypesProto2.NestedMessage";
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
- { no: 1, name: "a", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
- { no: 2, name: "corecursive", kind: "message", T: TestAllTypesProto2, opt: true },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): TestAllTypesProto2_NestedMessage {
- return new TestAllTypesProto2_NestedMessage().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): TestAllTypesProto2_NestedMessage {
- return new TestAllTypesProto2_NestedMessage().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): TestAllTypesProto2_NestedMessage {
- return new TestAllTypesProto2_NestedMessage().fromJsonString(jsonString, options);
- }
-
- static equals(a: TestAllTypesProto2_NestedMessage | PlainMessage | undefined, b: TestAllTypesProto2_NestedMessage | PlainMessage | undefined): boolean {
- return proto2.util.equals(TestAllTypesProto2_NestedMessage, a, b);
- }
-}
+/**
+ * Describes the message protobuf_test_messages.proto2.TestAllTypesProto2.NestedMessage.
+ * Use `create(TestAllTypesProto2_NestedMessageSchema)` to create a new message.
+ */
+export const TestAllTypesProto2_NestedMessageSchema: GenMessage = /*@__PURE__*/
+ messageDesc(file_google_protobuf_test_messages_proto2, 0, 0);
/**
* groups
*
* @generated from message protobuf_test_messages.proto2.TestAllTypesProto2.Data
*/
-export class TestAllTypesProto2_Data extends Message {
+export type TestAllTypesProto2_Data = Message<"protobuf_test_messages.proto2.TestAllTypesProto2.Data"> & {
/**
* @generated from field: optional int32 group_int32 = 202;
*/
- groupInt32?: number;
+ groupInt32: number;
/**
* @generated from field: optional uint32 group_uint32 = 203;
*/
- groupUint32?: number;
+ groupUint32: number;
+};
- constructor(data?: PartialMessage) {
- super();
- proto2.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto2 = proto2;
- static readonly typeName = "protobuf_test_messages.proto2.TestAllTypesProto2.Data";
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
- { no: 202, name: "group_int32", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
- { no: 203, name: "group_uint32", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): TestAllTypesProto2_Data {
- return new TestAllTypesProto2_Data().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): TestAllTypesProto2_Data {
- return new TestAllTypesProto2_Data().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): TestAllTypesProto2_Data {
- return new TestAllTypesProto2_Data().fromJsonString(jsonString, options);
- }
-
- static equals(a: TestAllTypesProto2_Data | PlainMessage | undefined, b: TestAllTypesProto2_Data | PlainMessage | undefined): boolean {
- return proto2.util.equals(TestAllTypesProto2_Data, a, b);
- }
-}
+/**
+ * Describes the message protobuf_test_messages.proto2.TestAllTypesProto2.Data.
+ * Use `create(TestAllTypesProto2_DataSchema)` to create a new message.
+ */
+export const TestAllTypesProto2_DataSchema: GenMessage = /*@__PURE__*/
+ messageDesc(file_google_protobuf_test_messages_proto2, 0, 1);
/**
* message_set test case.
*
* @generated from message protobuf_test_messages.proto2.TestAllTypesProto2.MessageSetCorrect
*/
-export class TestAllTypesProto2_MessageSetCorrect extends Message {
- constructor(data?: PartialMessage) {
- super();
- proto2.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto2 = proto2;
- static readonly typeName = "protobuf_test_messages.proto2.TestAllTypesProto2.MessageSetCorrect";
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): TestAllTypesProto2_MessageSetCorrect {
- return new TestAllTypesProto2_MessageSetCorrect().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): TestAllTypesProto2_MessageSetCorrect {
- return new TestAllTypesProto2_MessageSetCorrect().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): TestAllTypesProto2_MessageSetCorrect {
- return new TestAllTypesProto2_MessageSetCorrect().fromJsonString(jsonString, options);
- }
-
- static equals(a: TestAllTypesProto2_MessageSetCorrect | PlainMessage | undefined, b: TestAllTypesProto2_MessageSetCorrect | PlainMessage | undefined): boolean {
- return proto2.util.equals(TestAllTypesProto2_MessageSetCorrect, a, b);
- }
-}
+export type TestAllTypesProto2_MessageSetCorrect = Message<"protobuf_test_messages.proto2.TestAllTypesProto2.MessageSetCorrect"> & {
+};
+
+/**
+ * Describes the message protobuf_test_messages.proto2.TestAllTypesProto2.MessageSetCorrect.
+ * Use `create(TestAllTypesProto2_MessageSetCorrectSchema)` to create a new message.
+ */
+export const TestAllTypesProto2_MessageSetCorrectSchema: GenMessage = /*@__PURE__*/
+ messageDesc(file_google_protobuf_test_messages_proto2, 0, 2);
/**
* @generated from message protobuf_test_messages.proto2.TestAllTypesProto2.MessageSetCorrectExtension1
*/
-export class TestAllTypesProto2_MessageSetCorrectExtension1 extends Message {
+export type TestAllTypesProto2_MessageSetCorrectExtension1 = Message<"protobuf_test_messages.proto2.TestAllTypesProto2.MessageSetCorrectExtension1"> & {
/**
* @generated from field: optional string str = 25;
*/
- str?: string;
-
- constructor(data?: PartialMessage) {
- super();
- proto2.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto2 = proto2;
- static readonly typeName = "protobuf_test_messages.proto2.TestAllTypesProto2.MessageSetCorrectExtension1";
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
- { no: 25, name: "str", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): TestAllTypesProto2_MessageSetCorrectExtension1 {
- return new TestAllTypesProto2_MessageSetCorrectExtension1().fromBinary(bytes, options);
- }
+ str: string;
+};
- static fromJson(jsonValue: JsonValue, options?: Partial): TestAllTypesProto2_MessageSetCorrectExtension1 {
- return new TestAllTypesProto2_MessageSetCorrectExtension1().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): TestAllTypesProto2_MessageSetCorrectExtension1 {
- return new TestAllTypesProto2_MessageSetCorrectExtension1().fromJsonString(jsonString, options);
- }
-
- static equals(a: TestAllTypesProto2_MessageSetCorrectExtension1 | PlainMessage | undefined, b: TestAllTypesProto2_MessageSetCorrectExtension1 | PlainMessage | undefined): boolean {
- return proto2.util.equals(TestAllTypesProto2_MessageSetCorrectExtension1, a, b);
- }
-}
+/**
+ * Describes the message protobuf_test_messages.proto2.TestAllTypesProto2.MessageSetCorrectExtension1.
+ * Use `create(TestAllTypesProto2_MessageSetCorrectExtension1Schema)` to create a new message.
+ */
+export const TestAllTypesProto2_MessageSetCorrectExtension1Schema: GenMessage = /*@__PURE__*/
+ messageDesc(file_google_protobuf_test_messages_proto2, 0, 3);
/**
* @generated from extension: optional protobuf_test_messages.proto2.TestAllTypesProto2.MessageSetCorrectExtension1 message_set_extension = 1547769;
*/
-export const TestAllTypesProto2_MessageSetCorrectExtension1_message_set_extension = proto2.makeExtension(
- "protobuf_test_messages.proto2.TestAllTypesProto2.MessageSetCorrectExtension1.message_set_extension",
- TestAllTypesProto2_MessageSetCorrect,
- () => ({ no: 1547769, kind: "message", T: TestAllTypesProto2_MessageSetCorrectExtension1, opt: true }),
-);
+export const TestAllTypesProto2_MessageSetCorrectExtension1_message_set_extension: GenExtension = /*@__PURE__*/
+ extDesc(file_google_protobuf_test_messages_proto2, 0, 3, 0);
/**
* @generated from message protobuf_test_messages.proto2.TestAllTypesProto2.MessageSetCorrectExtension2
*/
-export class TestAllTypesProto2_MessageSetCorrectExtension2 extends Message {
+export type TestAllTypesProto2_MessageSetCorrectExtension2 = Message<"protobuf_test_messages.proto2.TestAllTypesProto2.MessageSetCorrectExtension2"> & {
/**
* @generated from field: optional int32 i = 9;
*/
- i?: number;
+ i: number;
+};
- constructor(data?: PartialMessage) {
- super();
- proto2.util.initPartial(data, this);
- }
+/**
+ * Describes the message protobuf_test_messages.proto2.TestAllTypesProto2.MessageSetCorrectExtension2.
+ * Use `create(TestAllTypesProto2_MessageSetCorrectExtension2Schema)` to create a new message.
+ */
+export const TestAllTypesProto2_MessageSetCorrectExtension2Schema: GenMessage = /*@__PURE__*/
+ messageDesc(file_google_protobuf_test_messages_proto2, 0, 4);
- static readonly runtime: typeof proto2 = proto2;
- static readonly typeName = "protobuf_test_messages.proto2.TestAllTypesProto2.MessageSetCorrectExtension2";
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
- { no: 9, name: "i", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
- ]);
+/**
+ * @generated from extension: optional protobuf_test_messages.proto2.TestAllTypesProto2.MessageSetCorrectExtension2 message_set_extension = 4135312;
+ */
+export const TestAllTypesProto2_MessageSetCorrectExtension2_message_set_extension: GenExtension = /*@__PURE__*/
+ extDesc(file_google_protobuf_test_messages_proto2, 0, 4, 0);
- static fromBinary(bytes: Uint8Array, options?: Partial): TestAllTypesProto2_MessageSetCorrectExtension2 {
- return new TestAllTypesProto2_MessageSetCorrectExtension2().fromBinary(bytes, options);
- }
+/**
+ * @generated from enum protobuf_test_messages.proto2.TestAllTypesProto2.NestedEnum
+ */
+export enum TestAllTypesProto2_NestedEnum {
+ /**
+ * @generated from enum value: FOO = 0;
+ */
+ FOO = 0,
- static fromJson(jsonValue: JsonValue, options?: Partial): TestAllTypesProto2_MessageSetCorrectExtension2 {
- return new TestAllTypesProto2_MessageSetCorrectExtension2().fromJson(jsonValue, options);
- }
+ /**
+ * @generated from enum value: BAR = 1;
+ */
+ BAR = 1,
- static fromJsonString(jsonString: string, options?: Partial): TestAllTypesProto2_MessageSetCorrectExtension2 {
- return new TestAllTypesProto2_MessageSetCorrectExtension2().fromJsonString(jsonString, options);
- }
+ /**
+ * @generated from enum value: BAZ = 2;
+ */
+ BAZ = 2,
- static equals(a: TestAllTypesProto2_MessageSetCorrectExtension2 | PlainMessage | undefined, b: TestAllTypesProto2_MessageSetCorrectExtension2 | PlainMessage | undefined): boolean {
- return proto2.util.equals(TestAllTypesProto2_MessageSetCorrectExtension2, a, b);
- }
+ /**
+ * Intentionally negative.
+ *
+ * @generated from enum value: NEG = -1;
+ */
+ NEG = -1,
}
/**
- * @generated from extension: optional protobuf_test_messages.proto2.TestAllTypesProto2.MessageSetCorrectExtension2 message_set_extension = 4135312;
+ * Describes the enum protobuf_test_messages.proto2.TestAllTypesProto2.NestedEnum.
*/
-export const TestAllTypesProto2_MessageSetCorrectExtension2_message_set_extension = proto2.makeExtension(
- "protobuf_test_messages.proto2.TestAllTypesProto2.MessageSetCorrectExtension2.message_set_extension",
- TestAllTypesProto2_MessageSetCorrect,
- () => ({ no: 4135312, kind: "message", T: TestAllTypesProto2_MessageSetCorrectExtension2, opt: true }),
-);
+export const TestAllTypesProto2_NestedEnumSchema: GenEnum = /*@__PURE__*/
+ enumDesc(file_google_protobuf_test_messages_proto2, 0, 0);
/**
* @generated from message protobuf_test_messages.proto2.ForeignMessageProto2
*/
-export class ForeignMessageProto2 extends Message {
+export type ForeignMessageProto2 = Message<"protobuf_test_messages.proto2.ForeignMessageProto2"> & {
/**
* @generated from field: optional int32 c = 1;
*/
- c?: number;
-
- constructor(data?: PartialMessage) {
- super();
- proto2.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto2 = proto2;
- static readonly typeName = "protobuf_test_messages.proto2.ForeignMessageProto2";
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
- { no: 1, name: "c", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): ForeignMessageProto2 {
- return new ForeignMessageProto2().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): ForeignMessageProto2 {
- return new ForeignMessageProto2().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): ForeignMessageProto2 {
- return new ForeignMessageProto2().fromJsonString(jsonString, options);
- }
+ c: number;
+};
- static equals(a: ForeignMessageProto2 | PlainMessage | undefined, b: ForeignMessageProto2 | PlainMessage | undefined): boolean {
- return proto2.util.equals(ForeignMessageProto2, a, b);
- }
-}
+/**
+ * Describes the message protobuf_test_messages.proto2.ForeignMessageProto2.
+ * Use `create(ForeignMessageProto2Schema)` to create a new message.
+ */
+export const ForeignMessageProto2Schema: GenMessage = /*@__PURE__*/
+ messageDesc(file_google_protobuf_test_messages_proto2, 1);
/**
* @generated from message protobuf_test_messages.proto2.UnknownToTestAllTypes
*/
-export class UnknownToTestAllTypes extends Message {
+export type UnknownToTestAllTypes = Message<"protobuf_test_messages.proto2.UnknownToTestAllTypes"> & {
/**
* @generated from field: optional int32 optional_int32 = 1001;
*/
- optionalInt32?: number;
+ optionalInt32: number;
/**
* @generated from field: optional string optional_string = 1002;
*/
- optionalString?: string;
+ optionalString: string;
/**
* @generated from field: optional protobuf_test_messages.proto2.ForeignMessageProto2 nested_message = 1003;
@@ -1223,144 +924,63 @@ export class UnknownToTestAllTypes extends Message {
/**
* @generated from field: optional bool optional_bool = 1006;
*/
- optionalBool?: boolean;
+ optionalBool: boolean;
/**
* @generated from field: repeated int32 repeated_int32 = 1011;
*/
- repeatedInt32: number[] = [];
-
- constructor(data?: PartialMessage) {
- super();
- proto2.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto2 = proto2;
- static readonly typeName = "protobuf_test_messages.proto2.UnknownToTestAllTypes";
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
- { no: 1001, name: "optional_int32", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
- { no: 1002, name: "optional_string", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
- { no: 1003, name: "nested_message", kind: "message", T: ForeignMessageProto2, opt: true },
- { no: 1004, name: "optionalgroup", kind: "message", T: UnknownToTestAllTypes_OptionalGroup, delimited: true, opt: true },
- { no: 1006, name: "optional_bool", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
- { no: 1011, name: "repeated_int32", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): UnknownToTestAllTypes {
- return new UnknownToTestAllTypes().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): UnknownToTestAllTypes {
- return new UnknownToTestAllTypes().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): UnknownToTestAllTypes {
- return new UnknownToTestAllTypes().fromJsonString(jsonString, options);
- }
-
- static equals(a: UnknownToTestAllTypes | PlainMessage | undefined, b: UnknownToTestAllTypes | PlainMessage | undefined): boolean {
- return proto2.util.equals(UnknownToTestAllTypes, a, b);
- }
-}
+ repeatedInt32: number[];
+};
+
+/**
+ * Describes the message protobuf_test_messages.proto2.UnknownToTestAllTypes.
+ * Use `create(UnknownToTestAllTypesSchema)` to create a new message.
+ */
+export const UnknownToTestAllTypesSchema: GenMessage = /*@__PURE__*/
+ messageDesc(file_google_protobuf_test_messages_proto2, 2);
/**
* @generated from message protobuf_test_messages.proto2.UnknownToTestAllTypes.OptionalGroup
*/
-export class UnknownToTestAllTypes_OptionalGroup extends Message {
+export type UnknownToTestAllTypes_OptionalGroup = Message<"protobuf_test_messages.proto2.UnknownToTestAllTypes.OptionalGroup"> & {
/**
* @generated from field: optional int32 a = 1;
*/
- a?: number;
+ a: number;
+};
- constructor(data?: PartialMessage) {
- super();
- proto2.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto2 = proto2;
- static readonly typeName = "protobuf_test_messages.proto2.UnknownToTestAllTypes.OptionalGroup";
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
- { no: 1, name: "a", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): UnknownToTestAllTypes_OptionalGroup {
- return new UnknownToTestAllTypes_OptionalGroup().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): UnknownToTestAllTypes_OptionalGroup {
- return new UnknownToTestAllTypes_OptionalGroup().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): UnknownToTestAllTypes_OptionalGroup {
- return new UnknownToTestAllTypes_OptionalGroup().fromJsonString(jsonString, options);
- }
-
- static equals(a: UnknownToTestAllTypes_OptionalGroup | PlainMessage | undefined, b: UnknownToTestAllTypes_OptionalGroup | PlainMessage | undefined): boolean {
- return proto2.util.equals(UnknownToTestAllTypes_OptionalGroup, a, b);
- }
-}
+/**
+ * Describes the message protobuf_test_messages.proto2.UnknownToTestAllTypes.OptionalGroup.
+ * Use `create(UnknownToTestAllTypes_OptionalGroupSchema)` to create a new message.
+ */
+export const UnknownToTestAllTypes_OptionalGroupSchema: GenMessage = /*@__PURE__*/
+ messageDesc(file_google_protobuf_test_messages_proto2, 2, 0);
/**
* @generated from message protobuf_test_messages.proto2.NullHypothesisProto2
*/
-export class NullHypothesisProto2 extends Message {
- constructor(data?: PartialMessage) {
- super();
- proto2.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto2 = proto2;
- static readonly typeName = "protobuf_test_messages.proto2.NullHypothesisProto2";
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): NullHypothesisProto2 {
- return new NullHypothesisProto2().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): NullHypothesisProto2 {
- return new NullHypothesisProto2().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): NullHypothesisProto2 {
- return new NullHypothesisProto2().fromJsonString(jsonString, options);
- }
-
- static equals(a: NullHypothesisProto2 | PlainMessage | undefined, b: NullHypothesisProto2 | PlainMessage | undefined): boolean {
- return proto2.util.equals(NullHypothesisProto2, a, b);
- }
-}
+export type NullHypothesisProto2 = Message<"protobuf_test_messages.proto2.NullHypothesisProto2"> & {
+};
+
+/**
+ * Describes the message protobuf_test_messages.proto2.NullHypothesisProto2.
+ * Use `create(NullHypothesisProto2Schema)` to create a new message.
+ */
+export const NullHypothesisProto2Schema: GenMessage = /*@__PURE__*/
+ messageDesc(file_google_protobuf_test_messages_proto2, 3);
/**
* @generated from message protobuf_test_messages.proto2.EnumOnlyProto2
*/
-export class EnumOnlyProto2 extends Message {
- constructor(data?: PartialMessage) {
- super();
- proto2.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto2 = proto2;
- static readonly typeName = "protobuf_test_messages.proto2.EnumOnlyProto2";
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): EnumOnlyProto2 {
- return new EnumOnlyProto2().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): EnumOnlyProto2 {
- return new EnumOnlyProto2().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): EnumOnlyProto2 {
- return new EnumOnlyProto2().fromJsonString(jsonString, options);
- }
-
- static equals(a: EnumOnlyProto2 | PlainMessage | undefined, b: EnumOnlyProto2 | PlainMessage | undefined): boolean {
- return proto2.util.equals(EnumOnlyProto2, a, b);
- }
-}
+export type EnumOnlyProto2 = Message<"protobuf_test_messages.proto2.EnumOnlyProto2"> & {
+};
+
+/**
+ * Describes the message protobuf_test_messages.proto2.EnumOnlyProto2.
+ * Use `create(EnumOnlyProto2Schema)` to create a new message.
+ */
+export const EnumOnlyProto2Schema: GenMessage = /*@__PURE__*/
+ messageDesc(file_google_protobuf_test_messages_proto2, 4);
/**
* @generated from enum protobuf_test_messages.proto2.EnumOnlyProto2.Bool
@@ -1376,178 +996,137 @@ export enum EnumOnlyProto2_Bool {
*/
kTrue = 1,
}
-// Retrieve enum metadata with: proto2.getEnumType(EnumOnlyProto2_Bool)
-proto2.util.setEnumType(EnumOnlyProto2_Bool, "protobuf_test_messages.proto2.EnumOnlyProto2.Bool", [
- { no: 0, name: "kFalse" },
- { no: 1, name: "kTrue" },
-]);
+
+/**
+ * Describes the enum protobuf_test_messages.proto2.EnumOnlyProto2.Bool.
+ */
+export const EnumOnlyProto2_BoolSchema: GenEnum = /*@__PURE__*/
+ enumDesc(file_google_protobuf_test_messages_proto2, 4, 0);
/**
* @generated from message protobuf_test_messages.proto2.OneStringProto2
*/
-export class OneStringProto2 extends Message {
+export type OneStringProto2 = Message<"protobuf_test_messages.proto2.OneStringProto2"> & {
/**
* @generated from field: optional string data = 1;
*/
- data?: string;
-
- constructor(data?: PartialMessage) {
- super();
- proto2.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto2 = proto2;
- static readonly typeName = "protobuf_test_messages.proto2.OneStringProto2";
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
- { no: 1, name: "data", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): OneStringProto2 {
- return new OneStringProto2().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): OneStringProto2 {
- return new OneStringProto2().fromJson(jsonValue, options);
- }
+ data: string;
+};
- static fromJsonString(jsonString: string, options?: Partial): OneStringProto2 {
- return new OneStringProto2().fromJsonString(jsonString, options);
- }
-
- static equals(a: OneStringProto2 | PlainMessage | undefined, b: OneStringProto2 | PlainMessage | undefined): boolean {
- return proto2.util.equals(OneStringProto2, a, b);
- }
-}
+/**
+ * Describes the message protobuf_test_messages.proto2.OneStringProto2.
+ * Use `create(OneStringProto2Schema)` to create a new message.
+ */
+export const OneStringProto2Schema: GenMessage = /*@__PURE__*/
+ messageDesc(file_google_protobuf_test_messages_proto2, 5);
/**
* @generated from message protobuf_test_messages.proto2.ProtoWithKeywords
*/
-export class ProtoWithKeywords extends Message {
+export type ProtoWithKeywords = Message<"protobuf_test_messages.proto2.ProtoWithKeywords"> & {
/**
* @generated from field: optional int32 inline = 1;
*/
- inline?: number;
+ inline: number;
/**
* @generated from field: optional string concept = 2;
*/
- concept?: string;
+ concept: string;
/**
* @generated from field: repeated string requires = 3;
*/
- requires: string[] = [];
-
- constructor(data?: PartialMessage) {
- super();
- proto2.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto2 = proto2;
- static readonly typeName = "protobuf_test_messages.proto2.ProtoWithKeywords";
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
- { no: 1, name: "inline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
- { no: 2, name: "concept", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
- { no: 3, name: "requires", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): ProtoWithKeywords {
- return new ProtoWithKeywords().fromBinary(bytes, options);
- }
+ requires: string[];
+};
- static fromJson(jsonValue: JsonValue, options?: Partial): ProtoWithKeywords {
- return new ProtoWithKeywords().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): ProtoWithKeywords {
- return new ProtoWithKeywords().fromJsonString(jsonString, options);
- }
-
- static equals(a: ProtoWithKeywords | PlainMessage | undefined, b: ProtoWithKeywords | PlainMessage | undefined): boolean {
- return proto2.util.equals(ProtoWithKeywords, a, b);
- }
-}
+/**
+ * Describes the message protobuf_test_messages.proto2.ProtoWithKeywords.
+ * Use `create(ProtoWithKeywordsSchema)` to create a new message.
+ */
+export const ProtoWithKeywordsSchema: GenMessage = /*@__PURE__*/
+ messageDesc(file_google_protobuf_test_messages_proto2, 6);
/**
* @generated from message protobuf_test_messages.proto2.TestAllRequiredTypesProto2
*/
-export class TestAllRequiredTypesProto2 extends Message {
+export type TestAllRequiredTypesProto2 = Message<"protobuf_test_messages.proto2.TestAllRequiredTypesProto2"> & {
/**
* Singular
*
* @generated from field: required int32 required_int32 = 1;
*/
- requiredInt32?: number;
+ requiredInt32: number;
/**
* @generated from field: required int64 required_int64 = 2;
*/
- requiredInt64?: bigint;
+ requiredInt64: bigint;
/**
* @generated from field: required uint32 required_uint32 = 3;
*/
- requiredUint32?: number;
+ requiredUint32: number;
/**
* @generated from field: required uint64 required_uint64 = 4;
*/
- requiredUint64?: bigint;
+ requiredUint64: bigint;
/**
* @generated from field: required sint32 required_sint32 = 5;
*/
- requiredSint32?: number;
+ requiredSint32: number;
/**
* @generated from field: required sint64 required_sint64 = 6;
*/
- requiredSint64?: bigint;
+ requiredSint64: bigint;
/**
* @generated from field: required fixed32 required_fixed32 = 7;
*/
- requiredFixed32?: number;
+ requiredFixed32: number;
/**
* @generated from field: required fixed64 required_fixed64 = 8;
*/
- requiredFixed64?: bigint;
+ requiredFixed64: bigint;
/**
* @generated from field: required sfixed32 required_sfixed32 = 9;
*/
- requiredSfixed32?: number;
+ requiredSfixed32: number;
/**
* @generated from field: required sfixed64 required_sfixed64 = 10;
*/
- requiredSfixed64?: bigint;
+ requiredSfixed64: bigint;
/**
* @generated from field: required float required_float = 11;
*/
- requiredFloat?: number;
+ requiredFloat: number;
/**
* @generated from field: required double required_double = 12;
*/
- requiredDouble?: number;
+ requiredDouble: number;
/**
* @generated from field: required bool required_bool = 13;
*/
- requiredBool?: boolean;
+ requiredBool: boolean;
/**
* @generated from field: required string required_string = 14;
*/
- requiredString?: string;
+ requiredString: string;
/**
* @generated from field: required bytes required_bytes = 15;
*/
- requiredBytes?: Uint8Array;
+ requiredBytes: Uint8Array;
/**
* @generated from field: required protobuf_test_messages.proto2.TestAllRequiredTypesProto2.NestedMessage required_nested_message = 18;
@@ -1562,22 +1141,22 @@ export class TestAllRequiredTypesProto2 extends Message) {
- super();
- proto2.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto2 = proto2;
- static readonly typeName = "protobuf_test_messages.proto2.TestAllRequiredTypesProto2";
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
- { no: 1, name: "required_int32", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true },
- { no: 2, name: "required_int64", kind: "scalar", T: 3 /* ScalarType.INT64 */, req: true },
- { no: 3, name: "required_uint32", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true },
- { no: 4, name: "required_uint64", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
- { no: 5, name: "required_sint32", kind: "scalar", T: 17 /* ScalarType.SINT32 */, req: true },
- { no: 6, name: "required_sint64", kind: "scalar", T: 18 /* ScalarType.SINT64 */, req: true },
- { no: 7, name: "required_fixed32", kind: "scalar", T: 7 /* ScalarType.FIXED32 */, req: true },
- { no: 8, name: "required_fixed64", kind: "scalar", T: 6 /* ScalarType.FIXED64 */, req: true },
- { no: 9, name: "required_sfixed32", kind: "scalar", T: 15 /* ScalarType.SFIXED32 */, req: true },
- { no: 10, name: "required_sfixed64", kind: "scalar", T: 16 /* ScalarType.SFIXED64 */, req: true },
- { no: 11, name: "required_float", kind: "scalar", T: 2 /* ScalarType.FLOAT */, req: true },
- { no: 12, name: "required_double", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true },
- { no: 13, name: "required_bool", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true },
- { no: 14, name: "required_string", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
- { no: 15, name: "required_bytes", kind: "scalar", T: 12 /* ScalarType.BYTES */, req: true },
- { no: 18, name: "required_nested_message", kind: "message", T: TestAllRequiredTypesProto2_NestedMessage, req: true },
- { no: 19, name: "required_foreign_message", kind: "message", T: ForeignMessageProto2, req: true },
- { no: 21, name: "required_nested_enum", kind: "enum", T: proto2.getEnumType(TestAllRequiredTypesProto2_NestedEnum), req: true },
- { no: 22, name: "required_foreign_enum", kind: "enum", T: proto2.getEnumType(ForeignEnumProto2), req: true },
- { no: 24, name: "required_string_piece", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
- { no: 25, name: "required_cord", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
- { no: 27, name: "recursive_message", kind: "message", T: TestAllRequiredTypesProto2, req: true },
- { no: 28, name: "optional_recursive_message", kind: "message", T: TestAllRequiredTypesProto2, opt: true },
- { no: 201, name: "data", kind: "message", T: TestAllRequiredTypesProto2_Data, delimited: true, req: true },
- { no: 241, name: "default_int32", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true, default: -123456789 },
- { no: 242, name: "default_int64", kind: "scalar", T: 3 /* ScalarType.INT64 */, req: true, default: protoInt64.parse("-9123456789123456789") },
- { no: 243, name: "default_uint32", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true, default: 2123456789 },
- { no: 244, name: "default_uint64", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true, default: protoInt64.uParse("10123456789123456789") },
- { no: 245, name: "default_sint32", kind: "scalar", T: 17 /* ScalarType.SINT32 */, req: true, default: -123456789 },
- { no: 246, name: "default_sint64", kind: "scalar", T: 18 /* ScalarType.SINT64 */, req: true, default: protoInt64.parse("-9123456789123456789") },
- { no: 247, name: "default_fixed32", kind: "scalar", T: 7 /* ScalarType.FIXED32 */, req: true, default: 2123456789 },
- { no: 248, name: "default_fixed64", kind: "scalar", T: 6 /* ScalarType.FIXED64 */, req: true, default: protoInt64.uParse("10123456789123456789") },
- { no: 249, name: "default_sfixed32", kind: "scalar", T: 15 /* ScalarType.SFIXED32 */, req: true, default: -123456789 },
- { no: 250, name: "default_sfixed64", kind: "scalar", T: 16 /* ScalarType.SFIXED64 */, req: true, default: protoInt64.parse("-9123456789123456789") },
- { no: 251, name: "default_float", kind: "scalar", T: 2 /* ScalarType.FLOAT */, req: true, default: 9000000000 },
- { no: 252, name: "default_double", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true, default: 7e+22 },
- { no: 253, name: "default_bool", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true, default: true },
- { no: 254, name: "default_string", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true, default: "Rosebud" },
- { no: 255, name: "default_bytes", kind: "scalar", T: 12 /* ScalarType.BYTES */, req: true, default: new Uint8Array([0x6A, 0x6F, 0x73, 0x68, 0x75, 0x61]) },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): TestAllRequiredTypesProto2 {
- return new TestAllRequiredTypesProto2().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): TestAllRequiredTypesProto2 {
- return new TestAllRequiredTypesProto2().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): TestAllRequiredTypesProto2 {
- return new TestAllRequiredTypesProto2().fromJsonString(jsonString, options);
- }
-
- static equals(a: TestAllRequiredTypesProto2 | PlainMessage | undefined, b: TestAllRequiredTypesProto2 | PlainMessage | undefined): boolean {
- return proto2.util.equals(TestAllRequiredTypesProto2, a, b);
- }
-}
+ defaultBytes: Uint8Array;
+};
/**
- * @generated from enum protobuf_test_messages.proto2.TestAllRequiredTypesProto2.NestedEnum
+ * Describes the message protobuf_test_messages.proto2.TestAllRequiredTypesProto2.
+ * Use `create(TestAllRequiredTypesProto2Schema)` to create a new message.
*/
-export enum TestAllRequiredTypesProto2_NestedEnum {
- /**
- * @generated from enum value: FOO = 0;
- */
- FOO = 0,
-
- /**
- * @generated from enum value: BAR = 1;
- */
- BAR = 1,
-
- /**
- * @generated from enum value: BAZ = 2;
- */
- BAZ = 2,
-
- /**
- * Intentionally negative.
- *
- * @generated from enum value: NEG = -1;
- */
- NEG = -1,
-}
-// Retrieve enum metadata with: proto2.getEnumType(TestAllRequiredTypesProto2_NestedEnum)
-proto2.util.setEnumType(TestAllRequiredTypesProto2_NestedEnum, "protobuf_test_messages.proto2.TestAllRequiredTypesProto2.NestedEnum", [
- { no: 0, name: "FOO" },
- { no: 1, name: "BAR" },
- { no: 2, name: "BAZ" },
- { no: -1, name: "NEG" },
-]);
+export const TestAllRequiredTypesProto2Schema: GenMessage = /*@__PURE__*/
+ messageDesc(file_google_protobuf_test_messages_proto2, 7);
/**
* @generated from message protobuf_test_messages.proto2.TestAllRequiredTypesProto2.NestedMessage
*/
-export class TestAllRequiredTypesProto2_NestedMessage extends Message {
+export type TestAllRequiredTypesProto2_NestedMessage = Message<"protobuf_test_messages.proto2.TestAllRequiredTypesProto2.NestedMessage"> & {
/**
* @generated from field: required int32 a = 1;
*/
- a?: number;
+ a: number;
/**
* @generated from field: required protobuf_test_messages.proto2.TestAllRequiredTypesProto2 corecursive = 2;
@@ -1789,213 +1276,162 @@ export class TestAllRequiredTypesProto2_NestedMessage extends Message) {
- super();
- proto2.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto2 = proto2;
- static readonly typeName = "protobuf_test_messages.proto2.TestAllRequiredTypesProto2.NestedMessage";
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
- { no: 1, name: "a", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true },
- { no: 2, name: "corecursive", kind: "message", T: TestAllRequiredTypesProto2, req: true },
- { no: 3, name: "optional_corecursive", kind: "message", T: TestAllRequiredTypesProto2, opt: true },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): TestAllRequiredTypesProto2_NestedMessage {
- return new TestAllRequiredTypesProto2_NestedMessage().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): TestAllRequiredTypesProto2_NestedMessage {
- return new TestAllRequiredTypesProto2_NestedMessage().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): TestAllRequiredTypesProto2_NestedMessage {
- return new TestAllRequiredTypesProto2_NestedMessage().fromJsonString(jsonString, options);
- }
-
- static equals(a: TestAllRequiredTypesProto2_NestedMessage | PlainMessage | undefined, b: TestAllRequiredTypesProto2_NestedMessage | PlainMessage | undefined): boolean {
- return proto2.util.equals(TestAllRequiredTypesProto2_NestedMessage, a, b);
- }
-}
+/**
+ * Describes the message protobuf_test_messages.proto2.TestAllRequiredTypesProto2.NestedMessage.
+ * Use `create(TestAllRequiredTypesProto2_NestedMessageSchema)` to create a new message.
+ */
+export const TestAllRequiredTypesProto2_NestedMessageSchema: GenMessage = /*@__PURE__*/
+ messageDesc(file_google_protobuf_test_messages_proto2, 7, 0);
/**
* groups
*
* @generated from message protobuf_test_messages.proto2.TestAllRequiredTypesProto2.Data
*/
-export class TestAllRequiredTypesProto2_Data extends Message {
+export type TestAllRequiredTypesProto2_Data = Message<"protobuf_test_messages.proto2.TestAllRequiredTypesProto2.Data"> & {
/**
* @generated from field: required int32 group_int32 = 202;
*/
- groupInt32?: number;
+ groupInt32: number;
/**
* @generated from field: required uint32 group_uint32 = 203;
*/
- groupUint32?: number;
-
- constructor(data?: PartialMessage) {
- super();
- proto2.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto2 = proto2;
- static readonly typeName = "protobuf_test_messages.proto2.TestAllRequiredTypesProto2.Data";
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
- { no: 202, name: "group_int32", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true },
- { no: 203, name: "group_uint32", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): TestAllRequiredTypesProto2_Data {
- return new TestAllRequiredTypesProto2_Data().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): TestAllRequiredTypesProto2_Data {
- return new TestAllRequiredTypesProto2_Data().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): TestAllRequiredTypesProto2_Data {
- return new TestAllRequiredTypesProto2_Data().fromJsonString(jsonString, options);
- }
+ groupUint32: number;
+};
- static equals(a: TestAllRequiredTypesProto2_Data | PlainMessage | undefined, b: TestAllRequiredTypesProto2_Data | PlainMessage | undefined): boolean {
- return proto2.util.equals(TestAllRequiredTypesProto2_Data, a, b);
- }
-}
+/**
+ * Describes the message protobuf_test_messages.proto2.TestAllRequiredTypesProto2.Data.
+ * Use `create(TestAllRequiredTypesProto2_DataSchema)` to create a new message.
+ */
+export const TestAllRequiredTypesProto2_DataSchema: GenMessage = /*@__PURE__*/
+ messageDesc(file_google_protobuf_test_messages_proto2, 7, 1);
/**
* message_set test case.
*
* @generated from message protobuf_test_messages.proto2.TestAllRequiredTypesProto2.MessageSetCorrect
*/
-export class TestAllRequiredTypesProto2_MessageSetCorrect extends Message {
- constructor(data?: PartialMessage) {
- super();
- proto2.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto2 = proto2;
- static readonly typeName = "protobuf_test_messages.proto2.TestAllRequiredTypesProto2.MessageSetCorrect";
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): TestAllRequiredTypesProto2_MessageSetCorrect {
- return new TestAllRequiredTypesProto2_MessageSetCorrect().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): TestAllRequiredTypesProto2_MessageSetCorrect {
- return new TestAllRequiredTypesProto2_MessageSetCorrect().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): TestAllRequiredTypesProto2_MessageSetCorrect {
- return new TestAllRequiredTypesProto2_MessageSetCorrect().fromJsonString(jsonString, options);
- }
-
- static equals(a: TestAllRequiredTypesProto2_MessageSetCorrect | PlainMessage | undefined, b: TestAllRequiredTypesProto2_MessageSetCorrect | PlainMessage | undefined): boolean {
- return proto2.util.equals(TestAllRequiredTypesProto2_MessageSetCorrect, a, b);
- }
-}
+export type TestAllRequiredTypesProto2_MessageSetCorrect = Message<"protobuf_test_messages.proto2.TestAllRequiredTypesProto2.MessageSetCorrect"> & {
+};
+
+/**
+ * Describes the message protobuf_test_messages.proto2.TestAllRequiredTypesProto2.MessageSetCorrect.
+ * Use `create(TestAllRequiredTypesProto2_MessageSetCorrectSchema)` to create a new message.
+ */
+export const TestAllRequiredTypesProto2_MessageSetCorrectSchema: GenMessage = /*@__PURE__*/
+ messageDesc(file_google_protobuf_test_messages_proto2, 7, 2);
/**
* @generated from message protobuf_test_messages.proto2.TestAllRequiredTypesProto2.MessageSetCorrectExtension1
*/
-export class TestAllRequiredTypesProto2_MessageSetCorrectExtension1 extends Message {
+export type TestAllRequiredTypesProto2_MessageSetCorrectExtension1 = Message<"protobuf_test_messages.proto2.TestAllRequiredTypesProto2.MessageSetCorrectExtension1"> & {
/**
* @generated from field: required string str = 25;
*/
- str?: string;
+ str: string;
+};
- constructor(data?: PartialMessage) {
- super();
- proto2.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto2 = proto2;
- static readonly typeName = "protobuf_test_messages.proto2.TestAllRequiredTypesProto2.MessageSetCorrectExtension1";
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
- { no: 25, name: "str", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): TestAllRequiredTypesProto2_MessageSetCorrectExtension1 {
- return new TestAllRequiredTypesProto2_MessageSetCorrectExtension1().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): TestAllRequiredTypesProto2_MessageSetCorrectExtension1 {
- return new TestAllRequiredTypesProto2_MessageSetCorrectExtension1().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): TestAllRequiredTypesProto2_MessageSetCorrectExtension1 {
- return new TestAllRequiredTypesProto2_MessageSetCorrectExtension1().fromJsonString(jsonString, options);
- }
-
- static equals(a: TestAllRequiredTypesProto2_MessageSetCorrectExtension1 | PlainMessage | undefined, b: TestAllRequiredTypesProto2_MessageSetCorrectExtension1 | PlainMessage | undefined): boolean {
- return proto2.util.equals(TestAllRequiredTypesProto2_MessageSetCorrectExtension1, a, b);
- }
-}
+/**
+ * Describes the message protobuf_test_messages.proto2.TestAllRequiredTypesProto2.MessageSetCorrectExtension1.
+ * Use `create(TestAllRequiredTypesProto2_MessageSetCorrectExtension1Schema)` to create a new message.
+ */
+export const TestAllRequiredTypesProto2_MessageSetCorrectExtension1Schema: GenMessage = /*@__PURE__*/
+ messageDesc(file_google_protobuf_test_messages_proto2, 7, 3);
/**
* @generated from extension: optional protobuf_test_messages.proto2.TestAllRequiredTypesProto2.MessageSetCorrectExtension1 message_set_extension = 1547769;
*/
-export const TestAllRequiredTypesProto2_MessageSetCorrectExtension1_message_set_extension = proto2.makeExtension(
- "protobuf_test_messages.proto2.TestAllRequiredTypesProto2.MessageSetCorrectExtension1.message_set_extension",
- TestAllRequiredTypesProto2_MessageSetCorrect,
- () => ({ no: 1547769, kind: "message", T: TestAllRequiredTypesProto2_MessageSetCorrectExtension1, opt: true }),
-);
+export const TestAllRequiredTypesProto2_MessageSetCorrectExtension1_message_set_extension: GenExtension = /*@__PURE__*/
+ extDesc(file_google_protobuf_test_messages_proto2, 7, 3, 0);
/**
* @generated from message protobuf_test_messages.proto2.TestAllRequiredTypesProto2.MessageSetCorrectExtension2
*/
-export class TestAllRequiredTypesProto2_MessageSetCorrectExtension2 extends Message {
+export type TestAllRequiredTypesProto2_MessageSetCorrectExtension2 = Message<"protobuf_test_messages.proto2.TestAllRequiredTypesProto2.MessageSetCorrectExtension2"> & {
/**
* @generated from field: required int32 i = 9;
*/
- i?: number;
+ i: number;
+};
- constructor(data?: PartialMessage) {
- super();
- proto2.util.initPartial(data, this);
- }
+/**
+ * Describes the message protobuf_test_messages.proto2.TestAllRequiredTypesProto2.MessageSetCorrectExtension2.
+ * Use `create(TestAllRequiredTypesProto2_MessageSetCorrectExtension2Schema)` to create a new message.
+ */
+export const TestAllRequiredTypesProto2_MessageSetCorrectExtension2Schema: GenMessage = /*@__PURE__*/
+ messageDesc(file_google_protobuf_test_messages_proto2, 7, 4);
- static readonly runtime: typeof proto2 = proto2;
- static readonly typeName = "protobuf_test_messages.proto2.TestAllRequiredTypesProto2.MessageSetCorrectExtension2";
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
- { no: 9, name: "i", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true },
- ]);
+/**
+ * @generated from extension: optional protobuf_test_messages.proto2.TestAllRequiredTypesProto2.MessageSetCorrectExtension2 message_set_extension = 4135312;
+ */
+export const TestAllRequiredTypesProto2_MessageSetCorrectExtension2_message_set_extension: GenExtension = /*@__PURE__*/
+ extDesc(file_google_protobuf_test_messages_proto2, 7, 4, 0);
- static fromBinary(bytes: Uint8Array, options?: Partial): TestAllRequiredTypesProto2_MessageSetCorrectExtension2 {
- return new TestAllRequiredTypesProto2_MessageSetCorrectExtension2().fromBinary(bytes, options);
- }
+/**
+ * @generated from enum protobuf_test_messages.proto2.TestAllRequiredTypesProto2.NestedEnum
+ */
+export enum TestAllRequiredTypesProto2_NestedEnum {
+ /**
+ * @generated from enum value: FOO = 0;
+ */
+ FOO = 0,
- static fromJson(jsonValue: JsonValue, options?: Partial): TestAllRequiredTypesProto2_MessageSetCorrectExtension2 {
- return new TestAllRequiredTypesProto2_MessageSetCorrectExtension2().fromJson(jsonValue, options);
- }
+ /**
+ * @generated from enum value: BAR = 1;
+ */
+ BAR = 1,
- static fromJsonString(jsonString: string, options?: Partial): TestAllRequiredTypesProto2_MessageSetCorrectExtension2 {
- return new TestAllRequiredTypesProto2_MessageSetCorrectExtension2().fromJsonString(jsonString, options);
- }
+ /**
+ * @generated from enum value: BAZ = 2;
+ */
+ BAZ = 2,
- static equals(a: TestAllRequiredTypesProto2_MessageSetCorrectExtension2 | PlainMessage | undefined, b: TestAllRequiredTypesProto2_MessageSetCorrectExtension2 | PlainMessage | undefined): boolean {
- return proto2.util.equals(TestAllRequiredTypesProto2_MessageSetCorrectExtension2, a, b);
- }
+ /**
+ * Intentionally negative.
+ *
+ * @generated from enum value: NEG = -1;
+ */
+ NEG = -1,
}
/**
- * @generated from extension: optional protobuf_test_messages.proto2.TestAllRequiredTypesProto2.MessageSetCorrectExtension2 message_set_extension = 4135312;
+ * Describes the enum protobuf_test_messages.proto2.TestAllRequiredTypesProto2.NestedEnum.
+ */
+export const TestAllRequiredTypesProto2_NestedEnumSchema: GenEnum = /*@__PURE__*/
+ enumDesc(file_google_protobuf_test_messages_proto2, 7, 0);
+
+/**
+ * @generated from enum protobuf_test_messages.proto2.ForeignEnumProto2
+ */
+export enum ForeignEnumProto2 {
+ /**
+ * @generated from enum value: FOREIGN_FOO = 0;
+ */
+ FOREIGN_FOO = 0,
+
+ /**
+ * @generated from enum value: FOREIGN_BAR = 1;
+ */
+ FOREIGN_BAR = 1,
+
+ /**
+ * @generated from enum value: FOREIGN_BAZ = 2;
+ */
+ FOREIGN_BAZ = 2,
+}
+
+/**
+ * Describes the enum protobuf_test_messages.proto2.ForeignEnumProto2.
*/
-export const TestAllRequiredTypesProto2_MessageSetCorrectExtension2_message_set_extension = proto2.makeExtension(
- "protobuf_test_messages.proto2.TestAllRequiredTypesProto2.MessageSetCorrectExtension2.message_set_extension",
- TestAllRequiredTypesProto2_MessageSetCorrect,
- () => ({ no: 4135312, kind: "message", T: TestAllRequiredTypesProto2_MessageSetCorrectExtension2, opt: true }),
-);
+export const ForeignEnumProto2Schema: GenEnum = /*@__PURE__*/
+ enumDesc(file_google_protobuf_test_messages_proto2, 0);
/**
* @generated from extension: optional int32 extension_int32 = 120;
*/
-export const extension_int32 = proto2.makeExtension(
- "protobuf_test_messages.proto2.extension_int32",
- TestAllTypesProto2,
- { no: 120, kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
-);
+export const extension_int32: GenExtension = /*@__PURE__*/
+ extDesc(file_google_protobuf_test_messages_proto2, 0);
diff --git a/impl/baseline/gen/google/protobuf/test_messages_proto3_pb.ts b/impl/baseline/gen/google/protobuf/test_messages_proto3_pb.ts
index 4e674b53..2f24cc51 100644
--- a/impl/baseline/gen/google/protobuf/test_messages_proto3_pb.ts
+++ b/impl/baseline/gen/google/protobuf/test_messages_proto3_pb.ts
@@ -12,39 +12,21 @@
// - conformance tests
//
-// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
+// @generated by protoc-gen-es v2.0.0 with parameter "target=ts"
// @generated from file google/protobuf/test_messages_proto3.proto (package protobuf_test_messages.proto3, syntax proto3)
/* eslint-disable */
-// @ts-nocheck
-import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
-import { Any, BoolValue, BytesValue, DoubleValue, Duration, FieldMask, FloatValue, Int32Value, Int64Value, ListValue, Message, NullValue, proto3, protoInt64, StringValue, Struct, Timestamp, UInt32Value, UInt64Value, Value } from "@bufbuild/protobuf";
+import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
+import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
+import type { Any, BoolValue, BytesValue, DoubleValue, Duration, FieldMask, FloatValue, Int32Value, Int64Value, ListValue, NullValue, StringValue, Timestamp, UInt32Value, UInt64Value, Value } from "@bufbuild/protobuf/wkt";
+import { file_google_protobuf_any, file_google_protobuf_duration, file_google_protobuf_field_mask, file_google_protobuf_struct, file_google_protobuf_timestamp, file_google_protobuf_wrappers } from "@bufbuild/protobuf/wkt";
+import type { JsonObject, Message } from "@bufbuild/protobuf";
/**
- * @generated from enum protobuf_test_messages.proto3.ForeignEnum
+ * Describes the file google/protobuf/test_messages_proto3.proto.
*/
-export enum ForeignEnum {
- /**
- * @generated from enum value: FOREIGN_FOO = 0;
- */
- FOREIGN_FOO = 0,
-
- /**
- * @generated from enum value: FOREIGN_BAR = 1;
- */
- FOREIGN_BAR = 1,
-
- /**
- * @generated from enum value: FOREIGN_BAZ = 2;
- */
- FOREIGN_BAZ = 2,
-}
-// Retrieve enum metadata with: proto3.getEnumType(ForeignEnum)
-proto3.util.setEnumType(ForeignEnum, "protobuf_test_messages.proto3.ForeignEnum", [
- { no: 0, name: "FOREIGN_FOO" },
- { no: 1, name: "FOREIGN_BAR" },
- { no: 2, name: "FOREIGN_BAZ" },
-]);
+export const file_google_protobuf_test_messages_proto3: GenFile = /*@__PURE__*/
+ fileDesc("Cipnb29nbGUvcHJvdG9idWYvdGVzdF9tZXNzYWdlc19wcm90bzMucHJvdG8SHXByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8zIrFFChJUZXN0QWxsVHlwZXNQcm90bzMSFgoOb3B0aW9uYWxfaW50MzIYASABKAUSFgoOb3B0aW9uYWxfaW50NjQYAiABKAMSFwoPb3B0aW9uYWxfdWludDMyGAMgASgNEhcKD29wdGlvbmFsX3VpbnQ2NBgEIAEoBBIXCg9vcHRpb25hbF9zaW50MzIYBSABKBESFwoPb3B0aW9uYWxfc2ludDY0GAYgASgSEhgKEG9wdGlvbmFsX2ZpeGVkMzIYByABKAcSGAoQb3B0aW9uYWxfZml4ZWQ2NBgIIAEoBhIZChFvcHRpb25hbF9zZml4ZWQzMhgJIAEoDxIZChFvcHRpb25hbF9zZml4ZWQ2NBgKIAEoEBIWCg5vcHRpb25hbF9mbG9hdBgLIAEoAhIXCg9vcHRpb25hbF9kb3VibGUYDCABKAESFQoNb3B0aW9uYWxfYm9vbBgNIAEoCBIXCg9vcHRpb25hbF9zdHJpbmcYDiABKAkSFgoOb3B0aW9uYWxfYnl0ZXMYDyABKAwSYAoXb3B0aW9uYWxfbmVzdGVkX21lc3NhZ2UYEiABKAsyPy5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMy5UZXN0QWxsVHlwZXNQcm90bzMuTmVzdGVkTWVzc2FnZRJPChhvcHRpb25hbF9mb3JlaWduX21lc3NhZ2UYEyABKAsyLS5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMy5Gb3JlaWduT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uTmVzdGVkRW51bToCOAEaZwoZTWFwU3RyaW5nRm9yZWlnbkVudW1FbnRyeRILCgNrZXkYASABKAkSOQoFdmFsdWUYAiABKA4yKi5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMy5Gb3JlaWduRW51bToCOAEiOQoKTmVzdGVkRW51bRIHCgNGT08QABIHCgNCQVIQARIHCgNCQVoQAhIQCgNORUcQ////////////ASJZCgtBbGlhc2VkRW51bRINCglBTElBU19GT08QABINCglBTElBU19CQVIQARINCglBTElBU19CQVoQAhIHCgNNT08QAhIHCgNtb28QAhIHCgNiQXoQAhoCEAFCDQoLb25lb2ZfZmllbGRKBgj1AxD/AyIbCg5Gb3JlaWduTWVzc2FnZRIJCgFjGAEgASgFIhYKFE51bGxIeXBvdGhlc2lzUHJvdG8zIi8KDkVudW1Pbmx5UHJvdG8zIh0KBEJvb2wSCgoGa0ZhbHNlEAASCQoFa1RydWUQASpACgtGb3JlaWduRW51bRIPCgtGT1JFSUdOX0ZPTxAAEg8KC0ZPUkVJR05fQkFSEAESDwoLRk9SRUlHTl9CQVoQAkI4Cihjb20uZ29vZ2xlLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8zSAH4AQGiAgZQcm90bzNiBnByb3RvMw", [file_google_protobuf_any, file_google_protobuf_duration, file_google_protobuf_field_mask, file_google_protobuf_struct, file_google_protobuf_timestamp, file_google_protobuf_wrappers]);
/**
* This proto includes every type of field in both singular and repeated
@@ -57,83 +39,83 @@ proto3.util.setEnumType(ForeignEnum, "protobuf_test_messages.proto3.ForeignEnum"
*
* @generated from message protobuf_test_messages.proto3.TestAllTypesProto3
*/
-export class TestAllTypesProto3 extends Message {
+export type TestAllTypesProto3 = Message<"protobuf_test_messages.proto3.TestAllTypesProto3"> & {
/**
* Singular
*
* @generated from field: int32 optional_int32 = 1;
*/
- optionalInt32 = 0;
+ optionalInt32: number;
/**
* @generated from field: int64 optional_int64 = 2;
*/
- optionalInt64 = protoInt64.zero;
+ optionalInt64: bigint;
/**
* @generated from field: uint32 optional_uint32 = 3;
*/
- optionalUint32 = 0;
+ optionalUint32: number;
/**
* @generated from field: uint64 optional_uint64 = 4;
*/
- optionalUint64 = protoInt64.zero;
+ optionalUint64: bigint;
/**
* @generated from field: sint32 optional_sint32 = 5;
*/
- optionalSint32 = 0;
+ optionalSint32: number;
/**
* @generated from field: sint64 optional_sint64 = 6;
*/
- optionalSint64 = protoInt64.zero;
+ optionalSint64: bigint;
/**
* @generated from field: fixed32 optional_fixed32 = 7;
*/
- optionalFixed32 = 0;
+ optionalFixed32: number;
/**
* @generated from field: fixed64 optional_fixed64 = 8;
*/
- optionalFixed64 = protoInt64.zero;
+ optionalFixed64: bigint;
/**
* @generated from field: sfixed32 optional_sfixed32 = 9;
*/
- optionalSfixed32 = 0;
+ optionalSfixed32: number;
/**
* @generated from field: sfixed64 optional_sfixed64 = 10;
*/
- optionalSfixed64 = protoInt64.zero;
+ optionalSfixed64: bigint;
/**
* @generated from field: float optional_float = 11;
*/
- optionalFloat = 0;
+ optionalFloat: number;
/**
* @generated from field: double optional_double = 12;
*/
- optionalDouble = 0;
+ optionalDouble: number;
/**
* @generated from field: bool optional_bool = 13;
*/
- optionalBool = false;
+ optionalBool: boolean;
/**
* @generated from field: string optional_string = 14;
*/
- optionalString = "";
+ optionalString: string;
/**
* @generated from field: bytes optional_bytes = 15;
*/
- optionalBytes = new Uint8Array(0);
+ optionalBytes: Uint8Array;
/**
* @generated from field: protobuf_test_messages.proto3.TestAllTypesProto3.NestedMessage optional_nested_message = 18;
@@ -148,27 +130,27 @@ export class TestAllTypesProto3 extends Message {
/**
* @generated from field: protobuf_test_messages.proto3.TestAllTypesProto3.NestedEnum optional_nested_enum = 21;
*/
- optionalNestedEnum = TestAllTypesProto3_NestedEnum.FOO;
+ optionalNestedEnum: TestAllTypesProto3_NestedEnum;
/**
* @generated from field: protobuf_test_messages.proto3.ForeignEnum optional_foreign_enum = 22;
*/
- optionalForeignEnum = ForeignEnum.FOREIGN_FOO;
+ optionalForeignEnum: ForeignEnum;
/**
* @generated from field: protobuf_test_messages.proto3.TestAllTypesProto3.AliasedEnum optional_aliased_enum = 23;
*/
- optionalAliasedEnum = TestAllTypesProto3_AliasedEnum.ALIAS_FOO;
+ optionalAliasedEnum: TestAllTypesProto3_AliasedEnum;
/**
* @generated from field: string optional_string_piece = 24;
*/
- optionalStringPiece = "";
+ optionalStringPiece: string;
/**
* @generated from field: string optional_cord = 25;
*/
- optionalCord = "";
+ optionalCord: string;
/**
* @generated from field: protobuf_test_messages.proto3.TestAllTypesProto3 recursive_message = 27;
@@ -180,348 +162,348 @@ export class TestAllTypesProto3 extends Message {
*
* @generated from field: repeated int32 repeated_int32 = 31;
*/
- repeatedInt32: number[] = [];
+ repeatedInt32: number[];
/**
* @generated from field: repeated int64 repeated_int64 = 32;
*/
- repeatedInt64: bigint[] = [];
+ repeatedInt64: bigint[];
/**
* @generated from field: repeated uint32 repeated_uint32 = 33;
*/
- repeatedUint32: number[] = [];
+ repeatedUint32: number[];
/**
* @generated from field: repeated uint64 repeated_uint64 = 34;
*/
- repeatedUint64: bigint[] = [];
+ repeatedUint64: bigint[];
/**
* @generated from field: repeated sint32 repeated_sint32 = 35;
*/
- repeatedSint32: number[] = [];
+ repeatedSint32: number[];
/**
* @generated from field: repeated sint64 repeated_sint64 = 36;
*/
- repeatedSint64: bigint[] = [];
+ repeatedSint64: bigint[];
/**
* @generated from field: repeated fixed32 repeated_fixed32 = 37;
*/
- repeatedFixed32: number[] = [];
+ repeatedFixed32: number[];
/**
* @generated from field: repeated fixed64 repeated_fixed64 = 38;
*/
- repeatedFixed64: bigint[] = [];
+ repeatedFixed64: bigint[];
/**
* @generated from field: repeated sfixed32 repeated_sfixed32 = 39;
*/
- repeatedSfixed32: number[] = [];
+ repeatedSfixed32: number[];
/**
* @generated from field: repeated sfixed64 repeated_sfixed64 = 40;
*/
- repeatedSfixed64: bigint[] = [];
+ repeatedSfixed64: bigint[];
/**
* @generated from field: repeated float repeated_float = 41;
*/
- repeatedFloat: number[] = [];
+ repeatedFloat: number[];
/**
* @generated from field: repeated double repeated_double = 42;
*/
- repeatedDouble: number[] = [];
+ repeatedDouble: number[];
/**
* @generated from field: repeated bool repeated_bool = 43;
*/
- repeatedBool: boolean[] = [];
+ repeatedBool: boolean[];
/**
* @generated from field: repeated string repeated_string = 44;
*/
- repeatedString: string[] = [];
+ repeatedString: string[];
/**
* @generated from field: repeated bytes repeated_bytes = 45;
*/
- repeatedBytes: Uint8Array[] = [];
+ repeatedBytes: Uint8Array[];
/**
* @generated from field: repeated protobuf_test_messages.proto3.TestAllTypesProto3.NestedMessage repeated_nested_message = 48;
*/
- repeatedNestedMessage: TestAllTypesProto3_NestedMessage[] = [];
+ repeatedNestedMessage: TestAllTypesProto3_NestedMessage[];
/**
* @generated from field: repeated protobuf_test_messages.proto3.ForeignMessage repeated_foreign_message = 49;
*/
- repeatedForeignMessage: ForeignMessage[] = [];
+ repeatedForeignMessage: ForeignMessage[];
/**
* @generated from field: repeated protobuf_test_messages.proto3.TestAllTypesProto3.NestedEnum repeated_nested_enum = 51;
*/
- repeatedNestedEnum: TestAllTypesProto3_NestedEnum[] = [];
+ repeatedNestedEnum: TestAllTypesProto3_NestedEnum[];
/**
* @generated from field: repeated protobuf_test_messages.proto3.ForeignEnum repeated_foreign_enum = 52;
*/
- repeatedForeignEnum: ForeignEnum[] = [];
+ repeatedForeignEnum: ForeignEnum[];
/**
* @generated from field: repeated string repeated_string_piece = 54;
*/
- repeatedStringPiece: string[] = [];
+ repeatedStringPiece: string[];
/**
* @generated from field: repeated string repeated_cord = 55;
*/
- repeatedCord: string[] = [];
+ repeatedCord: string[];
/**
* Packed
*
* @generated from field: repeated int32 packed_int32 = 75 [packed = true];
*/
- packedInt32: number[] = [];
+ packedInt32: number[];
/**
* @generated from field: repeated int64 packed_int64 = 76 [packed = true];
*/
- packedInt64: bigint[] = [];
+ packedInt64: bigint[];
/**
* @generated from field: repeated uint32 packed_uint32 = 77 [packed = true];
*/
- packedUint32: number[] = [];
+ packedUint32: number[];
/**
* @generated from field: repeated uint64 packed_uint64 = 78 [packed = true];
*/
- packedUint64: bigint[] = [];
+ packedUint64: bigint[];
/**
* @generated from field: repeated sint32 packed_sint32 = 79 [packed = true];
*/
- packedSint32: number[] = [];
+ packedSint32: number[];
/**
* @generated from field: repeated sint64 packed_sint64 = 80 [packed = true];
*/
- packedSint64: bigint[] = [];
+ packedSint64: bigint[];
/**
* @generated from field: repeated fixed32 packed_fixed32 = 81 [packed = true];
*/
- packedFixed32: number[] = [];
+ packedFixed32: number[];
/**
* @generated from field: repeated fixed64 packed_fixed64 = 82 [packed = true];
*/
- packedFixed64: bigint[] = [];
+ packedFixed64: bigint[];
/**
* @generated from field: repeated sfixed32 packed_sfixed32 = 83 [packed = true];
*/
- packedSfixed32: number[] = [];
+ packedSfixed32: number[];
/**
* @generated from field: repeated sfixed64 packed_sfixed64 = 84 [packed = true];
*/
- packedSfixed64: bigint[] = [];
+ packedSfixed64: bigint[];
/**
* @generated from field: repeated float packed_float = 85 [packed = true];
*/
- packedFloat: number[] = [];
+ packedFloat: number[];
/**
* @generated from field: repeated double packed_double = 86 [packed = true];
*/
- packedDouble: number[] = [];
+ packedDouble: number[];
/**
* @generated from field: repeated bool packed_bool = 87 [packed = true];
*/
- packedBool: boolean[] = [];
+ packedBool: boolean[];
/**
* @generated from field: repeated protobuf_test_messages.proto3.TestAllTypesProto3.NestedEnum packed_nested_enum = 88 [packed = true];
*/
- packedNestedEnum: TestAllTypesProto3_NestedEnum[] = [];
+ packedNestedEnum: TestAllTypesProto3_NestedEnum[];
/**
* Unpacked
*
* @generated from field: repeated int32 unpacked_int32 = 89 [packed = false];
*/
- unpackedInt32: number[] = [];
+ unpackedInt32: number[];
/**
* @generated from field: repeated int64 unpacked_int64 = 90 [packed = false];
*/
- unpackedInt64: bigint[] = [];
+ unpackedInt64: bigint[];
/**
* @generated from field: repeated uint32 unpacked_uint32 = 91 [packed = false];
*/
- unpackedUint32: number[] = [];
+ unpackedUint32: number[];
/**
* @generated from field: repeated uint64 unpacked_uint64 = 92 [packed = false];
*/
- unpackedUint64: bigint[] = [];
+ unpackedUint64: bigint[];
/**
* @generated from field: repeated sint32 unpacked_sint32 = 93 [packed = false];
*/
- unpackedSint32: number[] = [];
+ unpackedSint32: number[];
/**
* @generated from field: repeated sint64 unpacked_sint64 = 94 [packed = false];
*/
- unpackedSint64: bigint[] = [];
+ unpackedSint64: bigint[];
/**
* @generated from field: repeated fixed32 unpacked_fixed32 = 95 [packed = false];
*/
- unpackedFixed32: number[] = [];
+ unpackedFixed32: number[];
/**
* @generated from field: repeated fixed64 unpacked_fixed64 = 96 [packed = false];
*/
- unpackedFixed64: bigint[] = [];
+ unpackedFixed64: bigint[];
/**
* @generated from field: repeated sfixed32 unpacked_sfixed32 = 97 [packed = false];
*/
- unpackedSfixed32: number[] = [];
+ unpackedSfixed32: number[];
/**
* @generated from field: repeated sfixed64 unpacked_sfixed64 = 98 [packed = false];
*/
- unpackedSfixed64: bigint[] = [];
+ unpackedSfixed64: bigint[];
/**
* @generated from field: repeated float unpacked_float = 99 [packed = false];
*/
- unpackedFloat: number[] = [];
+ unpackedFloat: number[];
/**
* @generated from field: repeated double unpacked_double = 100 [packed = false];
*/
- unpackedDouble: number[] = [];
+ unpackedDouble: number[];
/**
* @generated from field: repeated bool unpacked_bool = 101 [packed = false];
*/
- unpackedBool: boolean[] = [];
+ unpackedBool: boolean[];
/**
* @generated from field: repeated protobuf_test_messages.proto3.TestAllTypesProto3.NestedEnum unpacked_nested_enum = 102 [packed = false];
*/
- unpackedNestedEnum: TestAllTypesProto3_NestedEnum[] = [];
+ unpackedNestedEnum: TestAllTypesProto3_NestedEnum[];
/**
* Map
*
* @generated from field: map map_int32_int32 = 56;
*/
- mapInt32Int32: { [key: number]: number } = {};
+ mapInt32Int32: { [key: number]: number };
/**
* @generated from field: map map_int64_int64 = 57;
*/
- mapInt64Int64: { [key: string]: bigint } = {};
+ mapInt64Int64: { [key: string]: bigint };
/**
* @generated from field: map map_uint32_uint32 = 58;
*/
- mapUint32Uint32: { [key: number]: number } = {};
+ mapUint32Uint32: { [key: number]: number };
/**
* @generated from field: map map_uint64_uint64 = 59;
*/
- mapUint64Uint64: { [key: string]: bigint } = {};
+ mapUint64Uint64: { [key: string]: bigint };
/**
* @generated from field: map map_sint32_sint32 = 60;
*/
- mapSint32Sint32: { [key: number]: number } = {};
+ mapSint32Sint32: { [key: number]: number };
/**
* @generated from field: map map_sint64_sint64 = 61;
*/
- mapSint64Sint64: { [key: string]: bigint } = {};
+ mapSint64Sint64: { [key: string]: bigint };
/**
* @generated from field: map map_fixed32_fixed32 = 62;
*/
- mapFixed32Fixed32: { [key: number]: number } = {};
+ mapFixed32Fixed32: { [key: number]: number };
/**
* @generated from field: map map_fixed64_fixed64 = 63;
*/
- mapFixed64Fixed64: { [key: string]: bigint } = {};
+ mapFixed64Fixed64: { [key: string]: bigint };
/**
* @generated from field: map map_sfixed32_sfixed32 = 64;
*/
- mapSfixed32Sfixed32: { [key: number]: number } = {};
+ mapSfixed32Sfixed32: { [key: number]: number };
/**
* @generated from field: map map_sfixed64_sfixed64 = 65;
*/
- mapSfixed64Sfixed64: { [key: string]: bigint } = {};
+ mapSfixed64Sfixed64: { [key: string]: bigint };
/**
* @generated from field: map map_int32_float = 66;
*/
- mapInt32Float: { [key: number]: number } = {};
+ mapInt32Float: { [key: number]: number };
/**
* @generated from field: map map_int32_double = 67;
*/
- mapInt32Double: { [key: number]: number } = {};
+ mapInt32Double: { [key: number]: number };
/**
* @generated from field: map map_bool_bool = 68;
*/
- mapBoolBool: { [key: string]: boolean } = {};
+ mapBoolBool: { [key: string]: boolean };
/**
* @generated from field: map map_string_string = 69;
*/
- mapStringString: { [key: string]: string } = {};
+ mapStringString: { [key: string]: string };
/**
* @generated from field: map map_string_bytes = 70;
*/
- mapStringBytes: { [key: string]: Uint8Array } = {};
+ mapStringBytes: { [key: string]: Uint8Array };
/**
* @generated from field: map map_string_nested_message = 71;
*/
- mapStringNestedMessage: { [key: string]: TestAllTypesProto3_NestedMessage } = {};
+ mapStringNestedMessage: { [key: string]: TestAllTypesProto3_NestedMessage };
/**
* @generated from field: map map_string_foreign_message = 72;
*/
- mapStringForeignMessage: { [key: string]: ForeignMessage } = {};
+ mapStringForeignMessage: { [key: string]: ForeignMessage };
/**
* @generated from field: map