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 = /*@__PURE__*/ + fileDesc("Ch1jb25mb3JtYW5jZS9jb25mb3JtYW5jZS5wcm90bxILY29uZm9ybWFuY2UiHQoKRmFpbHVyZVNldBIPCgdmYWlsdXJlGAEgAygJIuMCChJDb25mb3JtYW5jZVJlcXVlc3QSGgoQcHJvdG9idWZfcGF5bG9hZBgBIAEoDEgAEhYKDGpzb25fcGF5bG9hZBgCIAEoCUgAEhYKDGpzcGJfcGF5bG9hZBgHIAEoCUgAEhYKDHRleHRfcGF5bG9hZBgIIAEoCUgAEjgKF3JlcXVlc3RlZF9vdXRwdXRfZm9ybWF0GAMgASgOMhcuY29uZm9ybWFuY2UuV2lyZUZvcm1hdBIUCgxtZXNzYWdlX3R5cGUYBCABKAkSMAoNdGVzdF9jYXRlZ29yeRgFIAEoDjIZLmNvbmZvcm1hbmNlLlRlc3RDYXRlZ29yeRI+ChVqc3BiX2VuY29kaW5nX29wdGlvbnMYBiABKAsyHy5jb25mb3JtYW5jZS5Kc3BiRW5jb2RpbmdDb25maWcSHAoUcHJpbnRfdW5rbm93bl9maWVsZHMYCSABKAhCCQoHcGF5bG9hZCL6AQoTQ29uZm9ybWFuY2VSZXNwb25zZRIVCgtwYXJzZV9lcnJvchgBIAEoCUgAEhkKD3NlcmlhbGl6ZV9lcnJvchgGIAEoCUgAEhcKDXRpbWVvdXRfZXJyb3IYCSABKAlIABIXCg1ydW50aW1lX2Vycm9yGAIgASgJSAASGgoQcHJvdG9idWZfcGF5bG9hZBgDIAEoDEgAEhYKDGpzb25fcGF5bG9hZBgEIAEoCUgAEhEKB3NraXBwZWQYBSABKAlIABIWCgxqc3BiX3BheWxvYWQYByABKAlIABIWCgx0ZXh0X3BheWxvYWQYCCABKAlIAEIICgZyZXN1bHQiNwoSSnNwYkVuY29kaW5nQ29uZmlnEiEKGXVzZV9qc3BiX2FycmF5X2FueV9mb3JtYXQYASABKAgqUAoKV2lyZUZvcm1hdBIPCgtVTlNQRUNJRklFRBAAEgwKCFBST1RPQlVGEAESCAoESlNPThACEggKBEpTUEIQAxIPCgtURVhUX0ZPUk1BVBAEKo8BCgxUZXN0Q2F0ZWdvcnkSFAoQVU5TUEVDSUZJRURfVEVTVBAAEg8KC0JJTkFSWV9URVNUEAESDQoJSlNPTl9URVNUEAISJAogSlNPTl9JR05PUkVfVU5LTk9XTl9QQVJTSU5HX1RFU1QQAxINCglKU1BCX1RFU1QQBBIUChBURVhUX0ZPUk1BVF9URVNUEAVCLwofY29tLmdvb2dsZS5wcm90b2J1Zi5jb25mb3JtYW5jZaICC0NvbmZvcm1hbmNlYgZwcm90bzM"); /** * 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+ChJUZXN0QWxsVHlwZXNQcm90bzISFgoOb3B0aW9uYWxfaW50MzIYASABKAUSFgoOb3B0aW9uYWxfaW50NjQYAiABKAMSFwoPb3B0aW9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X3Rlc3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxUeXBlc1Byb3RvMhh4IAEoBVIOZXh0ZW5zaW9uSW50MzJCOAooY29tLmdvb2dsZS5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMkgB+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("Cipnb29nbGUvcHJvdG9idWYvdGVzdF9tZXNzYWdlc19wcm90bzMucHJvdG8SHXByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8zIrFFChJUZXN0QWxsVHlwZXNQcm90bzMSFgoOb3B0aW9uYWxfaW50MzIYASABKAUSFgoOb3B0aW9uYWxfaW50NjQYAiABKAMSFwoPb3B0aW9uYWxfdWludDMyGAMgASgNEhcKD29wdGlvbmFsX3VpbnQ2NBgEIAEoBBIXCg9vcHRpb25hbF9zaW50M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QoFa1RydWUQASpACgtGb3JlaWduRW51bRIPCgtGT1JFSUdOX0ZPTxAAEg8KC0ZPUkVJR05fQkFSEAESDwoLRk9SRUlHTl9CQVoQAkI4Cihjb20uZ29vZ2xlLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8zSAH4AQGiAgZQcm90bzNiBnByb3RvMw", [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 map_string_nested_enum = 73; */ - mapStringNestedEnum: { [key: string]: TestAllTypesProto3_NestedEnum } = {}; + mapStringNestedEnum: { [key: string]: TestAllTypesProto3_NestedEnum }; /** * @generated from field: map map_string_foreign_enum = 74; */ - mapStringForeignEnum: { [key: string]: ForeignEnum } = {}; + mapStringForeignEnum: { [key: string]: ForeignEnum }; /** * @generated from oneof protobuf_test_messages.proto3.TestAllTypesProto3.oneof_field @@ -586,7 +568,7 @@ export class TestAllTypesProto3 extends Message { */ value: NullValue; case: "oneofNullValue"; - } | { case: undefined; value?: undefined } = { case: undefined }; + } | { case: undefined; value?: undefined }; /** * Well-known types @@ -638,47 +620,47 @@ export class TestAllTypesProto3 extends Message { /** * @generated from field: repeated google.protobuf.BoolValue repeated_bool_wrapper = 211; */ - repeatedBoolWrapper: BoolValue[] = []; + repeatedBoolWrapper: BoolValue[]; /** * @generated from field: repeated google.protobuf.Int32Value repeated_int32_wrapper = 212; */ - repeatedInt32Wrapper: Int32Value[] = []; + repeatedInt32Wrapper: Int32Value[]; /** * @generated from field: repeated google.protobuf.Int64Value repeated_int64_wrapper = 213; */ - repeatedInt64Wrapper: Int64Value[] = []; + repeatedInt64Wrapper: Int64Value[]; /** * @generated from field: repeated google.protobuf.UInt32Value repeated_uint32_wrapper = 214; */ - repeatedUint32Wrapper: UInt32Value[] = []; + repeatedUint32Wrapper: UInt32Value[]; /** * @generated from field: repeated google.protobuf.UInt64Value repeated_uint64_wrapper = 215; */ - repeatedUint64Wrapper: UInt64Value[] = []; + repeatedUint64Wrapper: UInt64Value[]; /** * @generated from field: repeated google.protobuf.FloatValue repeated_float_wrapper = 216; */ - repeatedFloatWrapper: FloatValue[] = []; + repeatedFloatWrapper: FloatValue[]; /** * @generated from field: repeated google.protobuf.DoubleValue repeated_double_wrapper = 217; */ - repeatedDoubleWrapper: DoubleValue[] = []; + repeatedDoubleWrapper: DoubleValue[]; /** * @generated from field: repeated google.protobuf.StringValue repeated_string_wrapper = 218; */ - repeatedStringWrapper: StringValue[] = []; + repeatedStringWrapper: StringValue[]; /** * @generated from field: repeated google.protobuf.BytesValue repeated_bytes_wrapper = 219; */ - repeatedBytesWrapper: BytesValue[] = []; + repeatedBytesWrapper: BytesValue[]; /** * @generated from field: google.protobuf.Duration optional_duration = 301; @@ -698,7 +680,7 @@ export class TestAllTypesProto3 extends Message { /** * @generated from field: google.protobuf.Struct optional_struct = 304; */ - optionalStruct?: Struct; + optionalStruct?: JsonObject; /** * @generated from field: google.protobuf.Any optional_any = 305; @@ -713,42 +695,42 @@ export class TestAllTypesProto3 extends Message { /** * @generated from field: google.protobuf.NullValue optional_null_value = 307; */ - optionalNullValue = NullValue.NULL_VALUE; + optionalNullValue: NullValue; /** * @generated from field: repeated google.protobuf.Duration repeated_duration = 311; */ - repeatedDuration: Duration[] = []; + repeatedDuration: Duration[]; /** * @generated from field: repeated google.protobuf.Timestamp repeated_timestamp = 312; */ - repeatedTimestamp: Timestamp[] = []; + repeatedTimestamp: Timestamp[]; /** * @generated from field: repeated google.protobuf.FieldMask repeated_fieldmask = 313; */ - repeatedFieldmask: FieldMask[] = []; + repeatedFieldmask: FieldMask[]; /** * @generated from field: repeated google.protobuf.Struct repeated_struct = 324; */ - repeatedStruct: Struct[] = []; + repeatedStruct: JsonObject[]; /** * @generated from field: repeated google.protobuf.Any repeated_any = 315; */ - repeatedAny: Any[] = []; + repeatedAny: Any[]; /** * @generated from field: repeated google.protobuf.Value repeated_value = 316; */ - repeatedValue: Value[] = []; + repeatedValue: Value[]; /** * @generated from field: repeated google.protobuf.ListValue repeated_list_value = 317; */ - repeatedListValue: ListValue[] = []; + repeatedListValue: ListValue[]; /** * Test field-name-to-JSON-name convention. @@ -756,270 +738,122 @@ export class TestAllTypesProto3 extends Message { * * @generated from field: int32 fieldname1 = 401; */ - fieldname1 = 0; + fieldname1: number; /** * @generated from field: int32 field_name2 = 402; */ - fieldName2 = 0; + fieldName2: number; /** * @generated from field: int32 _field_name3 = 403; */ - FieldName3 = 0; + FieldName3: number; /** * @generated from field: int32 field__name4_ = 404; */ - fieldName4 = 0; + fieldName4: number; /** * @generated from field: int32 field0name5 = 405; */ - field0name5 = 0; + field0name5: number; /** * @generated from field: int32 field_0_name6 = 406; */ - field0Name6 = 0; + field0Name6: number; /** * @generated from field: int32 fieldName7 = 407; */ - fieldName7 = 0; + fieldName7: number; /** * @generated from field: int32 FieldName8 = 408; */ - FieldName8 = 0; + FieldName8: number; /** * @generated from field: int32 field_Name9 = 409; */ - fieldName9 = 0; + fieldName9: number; /** * @generated from field: int32 Field_Name10 = 410; */ - FieldName10 = 0; + FieldName10: number; /** * @generated from field: int32 FIELD_NAME11 = 411; */ - FIELDNAME11 = 0; + FIELDNAME11: number; /** * @generated from field: int32 FIELD_name12 = 412; */ - FIELDName12 = 0; + FIELDName12: number; /** * @generated from field: int32 __field_name13 = 413; */ - FieldName13 = 0; + FieldName13: number; /** * @generated from field: int32 __Field_name14 = 414; */ - FieldName14 = 0; + FieldName14: number; /** * @generated from field: int32 field__name15 = 415; */ - fieldName15 = 0; + fieldName15: number; /** * @generated from field: int32 field__Name16 = 416; */ - fieldName16 = 0; + fieldName16: number; /** * @generated from field: int32 field_name17__ = 417; */ - fieldName17 = 0; + fieldName17: number; /** * @generated from field: int32 Field_name18__ = 418; */ - FieldName18 = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "protobuf_test_messages.proto3.TestAllTypesProto3"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "optional_int32", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 2, name: "optional_int64", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "optional_uint32", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "optional_uint64", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 5, name: "optional_sint32", kind: "scalar", T: 17 /* ScalarType.SINT32 */ }, - { no: 6, name: "optional_sint64", kind: "scalar", T: 18 /* ScalarType.SINT64 */ }, - { no: 7, name: "optional_fixed32", kind: "scalar", T: 7 /* ScalarType.FIXED32 */ }, - { no: 8, name: "optional_fixed64", kind: "scalar", T: 6 /* ScalarType.FIXED64 */ }, - { no: 9, name: "optional_sfixed32", kind: "scalar", T: 15 /* ScalarType.SFIXED32 */ }, - { no: 10, name: "optional_sfixed64", kind: "scalar", T: 16 /* ScalarType.SFIXED64 */ }, - { no: 11, name: "optional_float", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 12, name: "optional_double", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 13, name: "optional_bool", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 14, name: "optional_string", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 15, name: "optional_bytes", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 18, name: "optional_nested_message", kind: "message", T: TestAllTypesProto3_NestedMessage }, - { no: 19, name: "optional_foreign_message", kind: "message", T: ForeignMessage }, - { no: 21, name: "optional_nested_enum", kind: "enum", T: proto3.getEnumType(TestAllTypesProto3_NestedEnum) }, - { no: 22, name: "optional_foreign_enum", kind: "enum", T: proto3.getEnumType(ForeignEnum) }, - { no: 23, name: "optional_aliased_enum", kind: "enum", T: proto3.getEnumType(TestAllTypesProto3_AliasedEnum) }, - { no: 24, name: "optional_string_piece", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 25, name: "optional_cord", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 27, name: "recursive_message", kind: "message", T: TestAllTypesProto3 }, - { 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: TestAllTypesProto3_NestedMessage, repeated: true }, - { no: 49, name: "repeated_foreign_message", kind: "message", T: ForeignMessage, repeated: true }, - { no: 51, name: "repeated_nested_enum", kind: "enum", T: proto3.getEnumType(TestAllTypesProto3_NestedEnum), repeated: true }, - { no: 52, name: "repeated_foreign_enum", kind: "enum", T: proto3.getEnumType(ForeignEnum), 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 }, - { no: 76, name: "packed_int64", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true }, - { no: 77, name: "packed_uint32", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true }, - { no: 78, name: "packed_uint64", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - { no: 79, name: "packed_sint32", kind: "scalar", T: 17 /* ScalarType.SINT32 */, repeated: true }, - { no: 80, name: "packed_sint64", kind: "scalar", T: 18 /* ScalarType.SINT64 */, repeated: true }, - { no: 81, name: "packed_fixed32", kind: "scalar", T: 7 /* ScalarType.FIXED32 */, repeated: true }, - { no: 82, name: "packed_fixed64", kind: "scalar", T: 6 /* ScalarType.FIXED64 */, repeated: true }, - { no: 83, name: "packed_sfixed32", kind: "scalar", T: 15 /* ScalarType.SFIXED32 */, repeated: true }, - { no: 84, name: "packed_sfixed64", kind: "scalar", T: 16 /* ScalarType.SFIXED64 */, repeated: true }, - { no: 85, name: "packed_float", kind: "scalar", T: 2 /* ScalarType.FLOAT */, repeated: true }, - { no: 86, name: "packed_double", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, repeated: true }, - { no: 87, name: "packed_bool", kind: "scalar", T: 8 /* ScalarType.BOOL */, repeated: true }, - { no: 88, name: "packed_nested_enum", kind: "enum", T: proto3.getEnumType(TestAllTypesProto3_NestedEnum), repeated: true }, - { no: 89, name: "unpacked_int32", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true, packed: false }, - { no: 90, name: "unpacked_int64", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true, packed: false }, - { no: 91, name: "unpacked_uint32", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true, packed: false }, - { no: 92, name: "unpacked_uint64", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true, packed: false }, - { no: 93, name: "unpacked_sint32", kind: "scalar", T: 17 /* ScalarType.SINT32 */, repeated: true, packed: false }, - { no: 94, name: "unpacked_sint64", kind: "scalar", T: 18 /* ScalarType.SINT64 */, repeated: true, packed: false }, - { no: 95, name: "unpacked_fixed32", kind: "scalar", T: 7 /* ScalarType.FIXED32 */, repeated: true, packed: false }, - { no: 96, name: "unpacked_fixed64", kind: "scalar", T: 6 /* ScalarType.FIXED64 */, repeated: true, packed: false }, - { no: 97, name: "unpacked_sfixed32", kind: "scalar", T: 15 /* ScalarType.SFIXED32 */, repeated: true, packed: false }, - { no: 98, name: "unpacked_sfixed64", kind: "scalar", T: 16 /* ScalarType.SFIXED64 */, repeated: true, packed: false }, - { no: 99, name: "unpacked_float", kind: "scalar", T: 2 /* ScalarType.FLOAT */, repeated: true, packed: false }, - { no: 100, name: "unpacked_double", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, repeated: true, packed: false }, - { no: 101, name: "unpacked_bool", kind: "scalar", T: 8 /* ScalarType.BOOL */, repeated: true, packed: false }, - { no: 102, name: "unpacked_nested_enum", kind: "enum", T: proto3.getEnumType(TestAllTypesProto3_NestedEnum), repeated: true, packed: false }, - { 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: TestAllTypesProto3_NestedMessage} }, - { no: 72, name: "map_string_foreign_message", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: ForeignMessage} }, - { no: 73, name: "map_string_nested_enum", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "enum", T: proto3.getEnumType(TestAllTypesProto3_NestedEnum)} }, - { no: 74, name: "map_string_foreign_enum", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "enum", T: proto3.getEnumType(ForeignEnum)} }, - { no: 111, name: "oneof_uint32", kind: "scalar", T: 13 /* ScalarType.UINT32 */, oneof: "oneof_field" }, - { no: 112, name: "oneof_nested_message", kind: "message", T: TestAllTypesProto3_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: proto3.getEnumType(TestAllTypesProto3_NestedEnum), oneof: "oneof_field" }, - { no: 120, name: "oneof_null_value", kind: "enum", T: proto3.getEnumType(NullValue), oneof: "oneof_field" }, - { no: 201, name: "optional_bool_wrapper", kind: "message", T: BoolValue }, - { no: 202, name: "optional_int32_wrapper", kind: "message", T: Int32Value }, - { no: 203, name: "optional_int64_wrapper", kind: "message", T: Int64Value }, - { no: 204, name: "optional_uint32_wrapper", kind: "message", T: UInt32Value }, - { no: 205, name: "optional_uint64_wrapper", kind: "message", T: UInt64Value }, - { no: 206, name: "optional_float_wrapper", kind: "message", T: FloatValue }, - { no: 207, name: "optional_double_wrapper", kind: "message", T: DoubleValue }, - { no: 208, name: "optional_string_wrapper", kind: "message", T: StringValue }, - { no: 209, name: "optional_bytes_wrapper", kind: "message", T: BytesValue }, - { no: 211, name: "repeated_bool_wrapper", kind: "message", T: BoolValue, repeated: true }, - { no: 212, name: "repeated_int32_wrapper", kind: "message", T: Int32Value, repeated: true }, - { no: 213, name: "repeated_int64_wrapper", kind: "message", T: Int64Value, repeated: true }, - { no: 214, name: "repeated_uint32_wrapper", kind: "message", T: UInt32Value, repeated: true }, - { no: 215, name: "repeated_uint64_wrapper", kind: "message", T: UInt64Value, repeated: true }, - { no: 216, name: "repeated_float_wrapper", kind: "message", T: FloatValue, repeated: true }, - { no: 217, name: "repeated_double_wrapper", kind: "message", T: DoubleValue, repeated: true }, - { no: 218, name: "repeated_string_wrapper", kind: "message", T: StringValue, repeated: true }, - { no: 219, name: "repeated_bytes_wrapper", kind: "message", T: BytesValue, repeated: true }, - { no: 301, name: "optional_duration", kind: "message", T: Duration }, - { no: 302, name: "optional_timestamp", kind: "message", T: Timestamp }, - { no: 303, name: "optional_field_mask", kind: "message", T: FieldMask }, - { no: 304, name: "optional_struct", kind: "message", T: Struct }, - { no: 305, name: "optional_any", kind: "message", T: Any }, - { no: 306, name: "optional_value", kind: "message", T: Value }, - { no: 307, name: "optional_null_value", kind: "enum", T: proto3.getEnumType(NullValue) }, - { no: 311, name: "repeated_duration", kind: "message", T: Duration, repeated: true }, - { no: 312, name: "repeated_timestamp", kind: "message", T: Timestamp, repeated: true }, - { no: 313, name: "repeated_fieldmask", kind: "message", T: FieldMask, repeated: true }, - { no: 324, name: "repeated_struct", kind: "message", T: Struct, repeated: true }, - { no: 315, name: "repeated_any", kind: "message", T: Any, repeated: true }, - { no: 316, name: "repeated_value", kind: "message", T: Value, repeated: true }, - { no: 317, name: "repeated_list_value", kind: "message", T: ListValue, repeated: true }, - { no: 401, name: "fieldname1", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 402, name: "field_name2", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 403, name: "_field_name3", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 404, name: "field__name4_", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 405, name: "field0name5", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 406, name: "field_0_name6", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 407, name: "fieldName7", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 408, name: "FieldName8", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 409, name: "field_Name9", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 410, name: "Field_Name10", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 411, name: "FIELD_NAME11", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 412, name: "FIELD_name12", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 413, name: "__field_name13", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 414, name: "__Field_name14", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 415, name: "field__name15", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 416, name: "field__Name16", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 417, name: "field_name17__", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 418, name: "Field_name18__", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TestAllTypesProto3 { - return new TestAllTypesProto3().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TestAllTypesProto3 { - return new TestAllTypesProto3().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TestAllTypesProto3 { - return new TestAllTypesProto3().fromJsonString(jsonString, options); - } - - static equals(a: TestAllTypesProto3 | PlainMessage | undefined, b: TestAllTypesProto3 | PlainMessage | undefined): boolean { - return proto3.util.equals(TestAllTypesProto3, a, b); - } -} + FieldName18: number; +}; + +/** + * Describes the message protobuf_test_messages.proto3.TestAllTypesProto3. + * Use `create(TestAllTypesProto3Schema)` to create a new message. + */ +export const TestAllTypesProto3Schema: GenMessage = /*@__PURE__*/ + messageDesc(file_google_protobuf_test_messages_proto3, 0); + +/** + * @generated from message protobuf_test_messages.proto3.TestAllTypesProto3.NestedMessage + */ +export type TestAllTypesProto3_NestedMessage = Message<"protobuf_test_messages.proto3.TestAllTypesProto3.NestedMessage"> & { + /** + * @generated from field: int32 a = 1; + */ + a: number; + + /** + * @generated from field: protobuf_test_messages.proto3.TestAllTypesProto3 corecursive = 2; + */ + corecursive?: TestAllTypesProto3; +}; + +/** + * Describes the message protobuf_test_messages.proto3.TestAllTypesProto3.NestedMessage. + * Use `create(TestAllTypesProto3_NestedMessageSchema)` to create a new message. + */ +export const TestAllTypesProto3_NestedMessageSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_google_protobuf_test_messages_proto3, 0, 0); /** * @generated from enum protobuf_test_messages.proto3.TestAllTypesProto3.NestedEnum @@ -1047,13 +881,12 @@ export enum TestAllTypesProto3_NestedEnum { */ NEG = -1, } -// Retrieve enum metadata with: proto3.getEnumType(TestAllTypesProto3_NestedEnum) -proto3.util.setEnumType(TestAllTypesProto3_NestedEnum, "protobuf_test_messages.proto3.TestAllTypesProto3.NestedEnum", [ - { no: 0, name: "FOO" }, - { no: 1, name: "BAR" }, - { no: 2, name: "BAZ" }, - { no: -1, name: "NEG" }, -]); + +/** + * Describes the enum protobuf_test_messages.proto3.TestAllTypesProto3.NestedEnum. + */ +export const TestAllTypesProto3_NestedEnumSchema: GenEnum = /*@__PURE__*/ + enumDesc(file_google_protobuf_test_messages_proto3, 0, 0); /** * @generated from enum protobuf_test_messages.proto3.TestAllTypesProto3.AliasedEnum @@ -1089,157 +922,55 @@ export enum TestAllTypesProto3_AliasedEnum { */ bAz = 2, } -// Retrieve enum metadata with: proto3.getEnumType(TestAllTypesProto3_AliasedEnum) -proto3.util.setEnumType(TestAllTypesProto3_AliasedEnum, "protobuf_test_messages.proto3.TestAllTypesProto3.AliasedEnum", [ - { no: 0, name: "ALIAS_FOO" }, - { no: 1, name: "ALIAS_BAR" }, - { no: 2, name: "ALIAS_BAZ" }, - { no: 2, name: "MOO" }, - { no: 2, name: "moo" }, - { no: 2, name: "bAz" }, -]); /** - * @generated from message protobuf_test_messages.proto3.TestAllTypesProto3.NestedMessage + * Describes the enum protobuf_test_messages.proto3.TestAllTypesProto3.AliasedEnum. */ -export class TestAllTypesProto3_NestedMessage extends Message { - /** - * @generated from field: int32 a = 1; - */ - a = 0; - - /** - * @generated from field: protobuf_test_messages.proto3.TestAllTypesProto3 corecursive = 2; - */ - corecursive?: TestAllTypesProto3; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "protobuf_test_messages.proto3.TestAllTypesProto3.NestedMessage"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "a", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 2, name: "corecursive", kind: "message", T: TestAllTypesProto3 }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TestAllTypesProto3_NestedMessage { - return new TestAllTypesProto3_NestedMessage().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TestAllTypesProto3_NestedMessage { - return new TestAllTypesProto3_NestedMessage().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TestAllTypesProto3_NestedMessage { - return new TestAllTypesProto3_NestedMessage().fromJsonString(jsonString, options); - } - - static equals(a: TestAllTypesProto3_NestedMessage | PlainMessage | undefined, b: TestAllTypesProto3_NestedMessage | PlainMessage | undefined): boolean { - return proto3.util.equals(TestAllTypesProto3_NestedMessage, a, b); - } -} +export const TestAllTypesProto3_AliasedEnumSchema: GenEnum = /*@__PURE__*/ + enumDesc(file_google_protobuf_test_messages_proto3, 0, 1); /** * @generated from message protobuf_test_messages.proto3.ForeignMessage */ -export class ForeignMessage extends Message { +export type ForeignMessage = Message<"protobuf_test_messages.proto3.ForeignMessage"> & { /** * @generated from field: int32 c = 1; */ - c = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "protobuf_test_messages.proto3.ForeignMessage"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "c", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - ]); + c: number; +}; - static fromBinary(bytes: Uint8Array, options?: Partial): ForeignMessage { - return new ForeignMessage().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ForeignMessage { - return new ForeignMessage().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ForeignMessage { - return new ForeignMessage().fromJsonString(jsonString, options); - } - - static equals(a: ForeignMessage | PlainMessage | undefined, b: ForeignMessage | PlainMessage | undefined): boolean { - return proto3.util.equals(ForeignMessage, a, b); - } -} +/** + * Describes the message protobuf_test_messages.proto3.ForeignMessage. + * Use `create(ForeignMessageSchema)` to create a new message. + */ +export const ForeignMessageSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_google_protobuf_test_messages_proto3, 1); /** * @generated from message protobuf_test_messages.proto3.NullHypothesisProto3 */ -export class NullHypothesisProto3 extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "protobuf_test_messages.proto3.NullHypothesisProto3"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NullHypothesisProto3 { - return new NullHypothesisProto3().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NullHypothesisProto3 { - return new NullHypothesisProto3().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NullHypothesisProto3 { - return new NullHypothesisProto3().fromJsonString(jsonString, options); - } - - static equals(a: NullHypothesisProto3 | PlainMessage | undefined, b: NullHypothesisProto3 | PlainMessage | undefined): boolean { - return proto3.util.equals(NullHypothesisProto3, a, b); - } -} +export type NullHypothesisProto3 = Message<"protobuf_test_messages.proto3.NullHypothesisProto3"> & { +}; + +/** + * Describes the message protobuf_test_messages.proto3.NullHypothesisProto3. + * Use `create(NullHypothesisProto3Schema)` to create a new message. + */ +export const NullHypothesisProto3Schema: GenMessage = /*@__PURE__*/ + messageDesc(file_google_protobuf_test_messages_proto3, 2); /** * @generated from message protobuf_test_messages.proto3.EnumOnlyProto3 */ -export class EnumOnlyProto3 extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "protobuf_test_messages.proto3.EnumOnlyProto3"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EnumOnlyProto3 { - return new EnumOnlyProto3().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EnumOnlyProto3 { - return new EnumOnlyProto3().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EnumOnlyProto3 { - return new EnumOnlyProto3().fromJsonString(jsonString, options); - } - - static equals(a: EnumOnlyProto3 | PlainMessage | undefined, b: EnumOnlyProto3 | PlainMessage | undefined): boolean { - return proto3.util.equals(EnumOnlyProto3, a, b); - } -} +export type EnumOnlyProto3 = Message<"protobuf_test_messages.proto3.EnumOnlyProto3"> & { +}; + +/** + * Describes the message protobuf_test_messages.proto3.EnumOnlyProto3. + * Use `create(EnumOnlyProto3Schema)` to create a new message. + */ +export const EnumOnlyProto3Schema: GenMessage = /*@__PURE__*/ + messageDesc(file_google_protobuf_test_messages_proto3, 3); /** * @generated from enum protobuf_test_messages.proto3.EnumOnlyProto3.Bool @@ -1255,9 +986,36 @@ export enum EnumOnlyProto3_Bool { */ kTrue = 1, } -// Retrieve enum metadata with: proto3.getEnumType(EnumOnlyProto3_Bool) -proto3.util.setEnumType(EnumOnlyProto3_Bool, "protobuf_test_messages.proto3.EnumOnlyProto3.Bool", [ - { no: 0, name: "kFalse" }, - { no: 1, name: "kTrue" }, -]); + +/** + * Describes the enum protobuf_test_messages.proto3.EnumOnlyProto3.Bool. + */ +export const EnumOnlyProto3_BoolSchema: GenEnum = /*@__PURE__*/ + enumDesc(file_google_protobuf_test_messages_proto3, 3, 0); + +/** + * @generated from enum protobuf_test_messages.proto3.ForeignEnum + */ +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, +} + +/** + * Describes the enum protobuf_test_messages.proto3.ForeignEnum. + */ +export const ForeignEnumSchema: GenEnum = /*@__PURE__*/ + enumDesc(file_google_protobuf_test_messages_proto3, 0); diff --git a/impl/baseline/package-lock.json b/impl/baseline/package-lock.json index c16a664a..030a55db 100644 --- a/impl/baseline/package-lock.json +++ b/impl/baseline/package-lock.json @@ -6,20 +6,20 @@ "": { "name": "baseline", "dependencies": { - "@bufbuild/protobuf": "^1.10.0", - "@bufbuild/protoc-gen-es": "^1.10.0" + "@bufbuild/protobuf": "^2.0.0", + "@bufbuild/protoc-gen-es": "^2.0.0" }, "devDependencies": { - "@bufbuild/buf": "^1.34.0", - "@types/node": "^20.14.9", - "tsx": "^4.16.0", - "typescript": "^5.5.2" + "@bufbuild/buf": "^1.35.1", + "@types/node": "^22.0.2", + "tsx": "^4.16.4", + "typescript": "^5.5.4" } }, "node_modules/@bufbuild/buf": { - "version": "1.34.0", - "resolved": "https://registry.npmjs.org/@bufbuild/buf/-/buf-1.34.0.tgz", - "integrity": "sha512-DR0P746bYiY7ziQTui0bKAvPa7ihCNxONWLtW54HQXvTkGnTc6C1keVaSz4UhNdSsBu/Xsj69GO9SizodfjUtQ==", + "version": "1.35.1", + "resolved": "https://registry.npmjs.org/@bufbuild/buf/-/buf-1.35.1.tgz", + "integrity": "sha512-POtbb4wRhvgCmmClnuaQTpkHL4ukhFItuS/AaD7QDY0kamn4ExNJz4XlHG5jeJODaQ1Wq3f9qn7UIgUr6CUODw==", "dev": true, "hasInstallScript": true, "bin": { @@ -31,18 +31,18 @@ "node": ">=12" }, "optionalDependencies": { - "@bufbuild/buf-darwin-arm64": "1.34.0", - "@bufbuild/buf-darwin-x64": "1.34.0", - "@bufbuild/buf-linux-aarch64": "1.34.0", - "@bufbuild/buf-linux-x64": "1.34.0", - "@bufbuild/buf-win32-arm64": "1.34.0", - "@bufbuild/buf-win32-x64": "1.34.0" + "@bufbuild/buf-darwin-arm64": "1.35.1", + "@bufbuild/buf-darwin-x64": "1.35.1", + "@bufbuild/buf-linux-aarch64": "1.35.1", + "@bufbuild/buf-linux-x64": "1.35.1", + "@bufbuild/buf-win32-arm64": "1.35.1", + "@bufbuild/buf-win32-x64": "1.35.1" } }, "node_modules/@bufbuild/buf-darwin-arm64": { - "version": "1.34.0", - "resolved": "https://registry.npmjs.org/@bufbuild/buf-darwin-arm64/-/buf-darwin-arm64-1.34.0.tgz", - "integrity": "sha512-3+h/jSAr7H+KT8MWWRMbN/gQ87KlGLkTGwm4/mpry1ap9Thw/UdOrk5MfmbK3CRM/rlw4mAn1Egu/Q7R5eO98g==", + "version": "1.35.1", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-darwin-arm64/-/buf-darwin-arm64-1.35.1.tgz", + "integrity": "sha512-Yy+sk+8sg3LDvMSZLGUIoMCkZajkQSZkdxO96mpqJagKlEYPLGTtakVFCVNX9KgK/sv1bd9sU55iMGXE3+eIYw==", "cpu": [ "arm64" ], @@ -56,9 +56,9 @@ } }, "node_modules/@bufbuild/buf-darwin-x64": { - "version": "1.34.0", - "resolved": "https://registry.npmjs.org/@bufbuild/buf-darwin-x64/-/buf-darwin-x64-1.34.0.tgz", - "integrity": "sha512-Jdm0COuA2CMKoef2H8rBsRnc16mJUmCQ2KvJH5otvFrMhzPmr1MUyicCybY26HXFD/6DcnbWZvf6W8LfDMMyGQ==", + "version": "1.35.1", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-darwin-x64/-/buf-darwin-x64-1.35.1.tgz", + "integrity": "sha512-LcscoNTCHFeb5y9sitw4w6HWZtJ4Ja/MDBCUU9A8/OGHJSESV0JjhbvVHGNOIsKUbPq5p/SVjYA/Ab/wlmmpaA==", "cpu": [ "x64" ], @@ -72,9 +72,9 @@ } }, "node_modules/@bufbuild/buf-linux-aarch64": { - "version": "1.34.0", - "resolved": "https://registry.npmjs.org/@bufbuild/buf-linux-aarch64/-/buf-linux-aarch64-1.34.0.tgz", - "integrity": "sha512-utSspJlPmVPh4Ugvn9k7MEEMHDZMI13jvwHkBE6wNSkYxxYTRR5zLHtmysaYQo51Fx+3ar6mL4HnhTqLrgO5GA==", + "version": "1.35.1", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-linux-aarch64/-/buf-linux-aarch64-1.35.1.tgz", + "integrity": "sha512-bPeiSURl8WFxCdawtJjAjUOMqknVTw763NLIDcbYSH1/wTiUbM5QeXCORRlHKXtMGM89SYU5AatcY9UhQ+sn9g==", "cpu": [ "arm64" ], @@ -88,9 +88,9 @@ } }, "node_modules/@bufbuild/buf-linux-x64": { - "version": "1.34.0", - "resolved": "https://registry.npmjs.org/@bufbuild/buf-linux-x64/-/buf-linux-x64-1.34.0.tgz", - "integrity": "sha512-INCGsPLBL4aK2jHBMdZzEJUPv7f6f8skIUMMip7YdJl1nsIh27C/Dl7Q6A6/sv9IhYibWKAoxP7SuiOv2iTdEw==", + "version": "1.35.1", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-linux-x64/-/buf-linux-x64-1.35.1.tgz", + "integrity": "sha512-n6ziazYjNH9H1JjHiacGi20rIyZuKnsHjF8qWisO8KGajhnS/7tpq0VzYdorqqWyJ1TcnLBWHj+dWYuGay9Nag==", "cpu": [ "x64" ], @@ -104,9 +104,9 @@ } }, "node_modules/@bufbuild/buf-win32-arm64": { - "version": "1.34.0", - "resolved": "https://registry.npmjs.org/@bufbuild/buf-win32-arm64/-/buf-win32-arm64-1.34.0.tgz", - "integrity": "sha512-g1EogebjJ93bzmyn/fEi47tTz57M+7WYZ7/vX+DFXgLLYIxTWHDK4YN+3Hs+K7Sbx7KaVdsdEqof8xZ4WoVFnQ==", + "version": "1.35.1", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-win32-arm64/-/buf-win32-arm64-1.35.1.tgz", + "integrity": "sha512-3B65+iA1i/LDjJBseEpAvrkEI7VJqrvW39PyYVkIXSHHT917O+n95g74pn38A0XkggN5lEibLEkipBMDUfwMew==", "cpu": [ "arm64" ], @@ -120,9 +120,9 @@ } }, "node_modules/@bufbuild/buf-win32-x64": { - "version": "1.34.0", - "resolved": "https://registry.npmjs.org/@bufbuild/buf-win32-x64/-/buf-win32-x64-1.34.0.tgz", - "integrity": "sha512-0rPXP7pV7+2twhcpN8hDdgV68UCiazLRcMBjWKubwcSJhAP8jRLqSJv3VGnXmpdYPbYGDQ0htfcgLNUvzllRhQ==", + "version": "1.35.1", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-win32-x64/-/buf-win32-x64-1.35.1.tgz", + "integrity": "sha512-iafrcs+1FMlD+3ZjI1kVBHGOluT6YcoAUETrGMbQjRha6dL5s2Ldr0G7zCKLIT13yEKG5QTyP8z8gVEpk8C8wg==", "cpu": [ "x64" ], @@ -136,17 +136,17 @@ } }, "node_modules/@bufbuild/protobuf": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/@bufbuild/protobuf/-/protobuf-1.10.0.tgz", - "integrity": "sha512-QDdVFLoN93Zjg36NoQPZfsVH9tZew7wKDKyV5qRdj8ntT4wQCOradQjRaTdwMhWUYsgKsvCINKKm87FdEk96Ag==" + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@bufbuild/protobuf/-/protobuf-2.0.0.tgz", + "integrity": "sha512-sw2JhwJyvyL0zlhG61aDzOVryEfJg2PDZFSV7i7IdC7nAE41WuXCru3QWLGiP87At0BMzKOoKO/FqEGoKygGZQ==" }, "node_modules/@bufbuild/protoc-gen-es": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/@bufbuild/protoc-gen-es/-/protoc-gen-es-1.10.0.tgz", - "integrity": "sha512-zBYBsVT/ul4uZb6F+kD7/k4sWNHVVbEPfJwKi0FDr+9VJo8MKIofI6pkr5ksBLr4fi/74r+e/75Xi/0clL5dXg==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@bufbuild/protoc-gen-es/-/protoc-gen-es-2.0.0.tgz", + "integrity": "sha512-xXDrDFjSD97jGu9RMA8O4Myj66DdCLOFeYG7Z0mX1aCE9hayymfor+BKgKCQouUfty6CYv8709FPYpEtDurLFQ==", "dependencies": { - "@bufbuild/protobuf": "^1.10.0", - "@bufbuild/protoplugin": "1.10.0" + "@bufbuild/protobuf": "^2.0.0", + "@bufbuild/protoplugin": "2.0.0" }, "bin": { "protoc-gen-es": "bin/protoc-gen-es" @@ -155,7 +155,7 @@ "node": ">=14" }, "peerDependencies": { - "@bufbuild/protobuf": "1.10.0" + "@bufbuild/protobuf": "2.0.0" }, "peerDependenciesMeta": { "@bufbuild/protobuf": { @@ -164,25 +164,25 @@ } }, "node_modules/@bufbuild/protoplugin": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/@bufbuild/protoplugin/-/protoplugin-1.10.0.tgz", - "integrity": "sha512-u6NE4vL0lw1+EK4/PiE/SQB7fKO4LRJNTEScIXVOi2x88K/c8WKc/k0KyEaA0asVBMpwekJQZGnRyj04ZtN5Gg==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@bufbuild/protoplugin/-/protoplugin-2.0.0.tgz", + "integrity": "sha512-y77IarGNbJfr5YZHQ+biO0O9B8rXicKLLOFRJu9mKr9LYE5/CLIKqonIBfkc/lggCK2YOtinjZJEYb39HymIog==", "dependencies": { - "@bufbuild/protobuf": "1.10.0", - "@typescript/vfs": "^1.4.0", - "typescript": "4.5.2" + "@bufbuild/protobuf": "2.0.0", + "@typescript/vfs": "^1.5.2", + "typescript": "5.4.5" } }, "node_modules/@bufbuild/protoplugin/node_modules/typescript": { - "version": "4.5.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.2.tgz", - "integrity": "sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw==", + "version": "5.4.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz", + "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" }, "engines": { - "node": ">=4.2.0" + "node": ">=14.17" } }, "node_modules/@esbuild/aix-ppc64": { @@ -554,26 +554,29 @@ } }, "node_modules/@types/node": { - "version": "20.14.9", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.14.9.tgz", - "integrity": "sha512-06OCtnTXtWOZBJlRApleWndH4JsRVs1pDCc8dLSQp+7PpUpX3ePdHyeNSFTeSe7FtKyQkrlPvHwJOW3SLd8Oyg==", + "version": "22.0.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.0.2.tgz", + "integrity": "sha512-yPL6DyFwY5PiMVEwymNeqUTKsDczQBJ/5T7W/46RwLU/VH+AA8aT5TZkvBviLKLbbm0hlfftEkGrNzfRk/fofQ==", "dev": true, "dependencies": { - "undici-types": "~5.26.4" + "undici-types": "~6.11.1" } }, "node_modules/@typescript/vfs": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/@typescript/vfs/-/vfs-1.5.1.tgz", - "integrity": "sha512-yaTdEeMCc31H6wMIqMbf69n89xGQyYQr9hmPMmB4K5LonbefYuV+f9AR2Iuh6itm1+NLes8+BZf4il30BBR5Mw==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@typescript/vfs/-/vfs-1.6.0.tgz", + "integrity": "sha512-hvJUjNVeBMp77qPINuUvYXj4FyWeeMMKZkxEATEU3hqBAQ7qdTBCUFT7Sp0Zu0faeEtFf+ldXxMEDr/bk73ISg==", "dependencies": { "debug": "^4.1.1" + }, + "peerDependencies": { + "typescript": "*" } }, "node_modules/debug": { - "version": "4.3.5", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.5.tgz", - "integrity": "sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg==", + "version": "4.3.6", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz", + "integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==", "dependencies": { "ms": "2.1.2" }, @@ -665,9 +668,9 @@ } }, "node_modules/tsx": { - "version": "4.16.0", - "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.16.0.tgz", - "integrity": "sha512-MPgN+CuY+4iKxGoJNPv+1pyo5YWZAQ5XfsyobUG+zoKG7IkvCPLZDEyoIb8yLS2FcWci1nlxAqmvPlFWD5AFiQ==", + "version": "4.16.4", + "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.16.4.tgz", + "integrity": "sha512-E0EDobc7FtOxdNtG0ZQWztLa9PK/TqC5QvdV0heyIMJySwcJ8vyvziOznzO1MIM2IDfacLGBgfiCUmba6mvI7Q==", "dev": true, "dependencies": { "esbuild": "~0.21.5", @@ -684,10 +687,9 @@ } }, "node_modules/typescript": { - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.2.tgz", - "integrity": "sha512-NcRtPEOsPFFWjobJEtfihkLCZCXZt/os3zf8nTxjVH3RvTSxjrCamJpbExGvYOF+tFHc3pA65qpdwPbzjohhew==", - "dev": true, + "version": "5.5.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.4.tgz", + "integrity": "sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -697,9 +699,9 @@ } }, "node_modules/undici-types": { - "version": "5.26.5", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", - "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "version": "6.11.1", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.11.1.tgz", + "integrity": "sha512-mIDEX2ek50x0OlRgxryxsenE5XaQD4on5U2inY7RApK3SOJpofyw7uW2AyfMKkhAxXIceo2DeWGVGwyvng1GNQ==", "dev": true } } diff --git a/impl/baseline/package.json b/impl/baseline/package.json index 5b7098c9..6c2075c1 100644 --- a/impl/baseline/package.json +++ b/impl/baseline/package.json @@ -3,13 +3,13 @@ "private": true, "type": "module", "dependencies": { - "@bufbuild/protobuf": "^1.10.0", - "@bufbuild/protoc-gen-es": "^1.10.0" + "@bufbuild/protobuf": "^2.0.0", + "@bufbuild/protoc-gen-es": "^2.0.0" }, "devDependencies": { - "@bufbuild/buf": "^1.34.0", - "@types/node": "^20.14.9", - "tsx": "^4.16.0", - "typescript": "^5.5.2" + "@bufbuild/buf": "^1.35.1", + "@types/node": "^22.0.2", + "tsx": "^4.16.4", + "typescript": "^5.5.4" } } diff --git a/impl/baseline/runner.ts b/impl/baseline/runner.ts index c24c4261..52590baa 100755 --- a/impl/baseline/runner.ts +++ b/impl/baseline/runner.ts @@ -14,10 +14,13 @@ // See the License for the specific language governing permissions and // limitations under the License. +import { create, fromBinary, toBinary } from "@bufbuild/protobuf"; import { - ConformanceRequest, - ConformanceResponse, - FailureSet, + type ConformanceRequest, + ConformanceRequestSchema, + type ConformanceResponse, + ConformanceResponseSchema, + FailureSetSchema, } from "./gen/conformance/conformance_pb.js"; import { readSync, writeSync } from "fs"; @@ -29,30 +32,33 @@ function main() { } } catch (e) { process.stderr.write( - `conformance.ts: exiting after ${testCount} tests: ${String(e)}` + `conformance.ts: exiting after ${testCount} tests: ${String(e)}`, ); process.exit(1); } } function test(request: ConformanceRequest): ConformanceResponse["result"] { - if (request.messageType === FailureSet.typeName) { + if (request.messageType === FailureSetSchema.typeName) { // > The conformance runner will request a list of failures as the first request. // > This will be known by message_type == "conformance.FailureSet", a conformance // > test should return a serialized FailureSet in protobuf_payload. - const failureSet = new FailureSet(); - return { case: "protobufPayload", value: failureSet.toBinary() }; + const failureSet = create(FailureSetSchema); + return { + case: "protobufPayload", + value: toBinary(FailureSetSchema, failureSet), + }; } return { case: "runtimeError", - value: "not implemented" + value: "not implemented", }; } // Returns true if the test ran successfully, false on legitimate EOF. // If EOF is encountered in an unexpected place, raises IOError. function testIo( - test: (request: ConformanceRequest) => ConformanceResponse["result"] + test: (request: ConformanceRequest) => ConformanceResponse["result"], ): boolean { setBlockingStdout(); const requestLengthBuf = readBuffer(4); @@ -64,10 +70,10 @@ function testIo( if (serializedRequest === "EOF") { throw "Failed to read request."; } - const request = ConformanceRequest.fromBinary(serializedRequest); - const response = new ConformanceResponse(); + const request = fromBinary(ConformanceRequestSchema, serializedRequest); + const response = create(ConformanceResponseSchema); response.result = test(request); - const serializedResponse = response.toBinary(); + const serializedResponse = toBinary(ConformanceResponseSchema, response); const responseLengthBuf = Buffer.alloc(4); responseLengthBuf.writeInt32LE(serializedResponse.length, 0); writeBuffer(responseLengthBuf); @@ -101,7 +107,7 @@ function writeBuffer(buffer: Buffer): void { 1, buffer, totalWritten, - buffer.length - totalWritten + buffer.length - totalWritten, ); } } diff --git a/package-lock.json b/package-lock.json index f3021bb2..7a672fe0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,6 +7,9 @@ "name": "protobuf-conformance", "dependencies": { "@bufbuild/license-header": "^0.0.4" + }, + "devDependencies": { + "prettier": "^3.3.3" } }, "node_modules/@bufbuild/license-header": { @@ -30,6 +33,21 @@ "funding": { "url": "https://github.com/sponsors/jonschlinkert" } + }, + "node_modules/prettier": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz", + "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==", + "dev": true, + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } } } } diff --git a/package.json b/package.json index 8101c480..f71e861a 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "yearRange": "2023-2024", "copyrightHolder": "Buf Technologies, Inc." }, - "dependencies": { - "@bufbuild/license-header": "^0.0.4" + "devDependencies": { + "@bufbuild/license-header": "^0.0.4", + "prettier": "^3.3.3" } }