diff --git a/impl/ts-proto/gen/conformance/conformance.ts b/impl/ts-proto/gen/conformance/conformance.ts index 2fbf56fd..c824f0ec 100644 --- a/impl/ts-proto/gen/conformance/conformance.ts +++ b/impl/ts-proto/gen/conformance/conformance.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v2.0.3 +// protoc-gen-ts_proto v2.2.1 // protoc unknown // source: conformance/conformance.proto @@ -203,7 +203,7 @@ function createBaseFailureSet(): FailureSet { return { failure: [] }; } -export const FailureSet = { +export const FailureSet: MessageFns = { encode(message: FailureSet, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { for (const v of message.failure) { writer.uint32(10).string(v!); @@ -218,13 +218,14 @@ export const FailureSet = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 10) { break; } message.failure.push(reader.string()); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -269,7 +270,7 @@ function createBaseConformanceRequest(): ConformanceRequest { }; } -export const ConformanceRequest = { +export const ConformanceRequest: MessageFns = { encode(message: ConformanceRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { switch (message.payload?.$case) { case "protobufPayload": @@ -310,69 +311,78 @@ export const ConformanceRequest = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 10) { break; } message.payload = { $case: "protobufPayload", protobufPayload: reader.bytes() }; continue; - case 2: + } + case 2: { if (tag !== 18) { break; } message.payload = { $case: "jsonPayload", jsonPayload: reader.string() }; continue; - case 7: + } + case 7: { if (tag !== 58) { break; } message.payload = { $case: "jspbPayload", jspbPayload: reader.string() }; continue; - case 8: + } + case 8: { if (tag !== 66) { break; } message.payload = { $case: "textPayload", textPayload: reader.string() }; continue; - case 3: + } + case 3: { if (tag !== 24) { break; } message.requestedOutputFormat = reader.int32() as any; continue; - case 4: + } + case 4: { if (tag !== 34) { break; } message.messageType = reader.string(); continue; - case 5: + } + case 5: { if (tag !== 40) { break; } message.testCategory = reader.int32() as any; continue; - case 6: + } + case 6: { if (tag !== 50) { break; } message.jspbEncodingOptions = JspbEncodingConfig.decode(reader, reader.uint32()); continue; - case 9: + } + case 9: { if (tag !== 72) { break; } message.printUnknownFields = reader.bool(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -483,7 +493,7 @@ function createBaseConformanceResponse(): ConformanceResponse { return { result: undefined }; } -export const ConformanceResponse = { +export const ConformanceResponse: MessageFns = { encode(message: ConformanceResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { switch (message.result?.$case) { case "parseError": @@ -524,69 +534,78 @@ export const ConformanceResponse = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 10) { break; } message.result = { $case: "parseError", parseError: reader.string() }; continue; - case 6: + } + case 6: { if (tag !== 50) { break; } message.result = { $case: "serializeError", serializeError: reader.string() }; continue; - case 9: + } + case 9: { if (tag !== 74) { break; } message.result = { $case: "timeoutError", timeoutError: reader.string() }; continue; - case 2: + } + case 2: { if (tag !== 18) { break; } message.result = { $case: "runtimeError", runtimeError: reader.string() }; continue; - case 3: + } + case 3: { if (tag !== 26) { break; } message.result = { $case: "protobufPayload", protobufPayload: reader.bytes() }; continue; - case 4: + } + case 4: { if (tag !== 34) { break; } message.result = { $case: "jsonPayload", jsonPayload: reader.string() }; continue; - case 5: + } + case 5: { if (tag !== 42) { break; } message.result = { $case: "skipped", skipped: reader.string() }; continue; - case 7: + } + case 7: { if (tag !== 58) { break; } message.result = { $case: "jspbPayload", jspbPayload: reader.string() }; continue; - case 8: + } + case 8: { if (tag !== 66) { break; } message.result = { $case: "textPayload", textPayload: reader.string() }; continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -724,7 +743,7 @@ function createBaseJspbEncodingConfig(): JspbEncodingConfig { return { useJspbArrayAnyFormat: false }; } -export const JspbEncodingConfig = { +export const JspbEncodingConfig: MessageFns = { encode(message: JspbEncodingConfig, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.useJspbArrayAnyFormat !== false) { writer.uint32(8).bool(message.useJspbArrayAnyFormat); @@ -739,13 +758,14 @@ export const JspbEncodingConfig = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 8) { break; } message.useJspbArrayAnyFormat = reader.bool(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -822,3 +842,12 @@ export type Exact = P extends Builtin ? P function isSet(value: any): boolean { return value !== null && value !== undefined; } + +export interface MessageFns { + encode(message: T, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): T; + fromJSON(object: any): T; + toJSON(message: T): unknown; + create, I>>(base?: I): T; + fromPartial, I>>(object: I): T; +} diff --git a/impl/ts-proto/gen/google/protobuf/any.ts b/impl/ts-proto/gen/google/protobuf/any.ts index f603a064..1b59e65e 100644 --- a/impl/ts-proto/gen/google/protobuf/any.ts +++ b/impl/ts-proto/gen/google/protobuf/any.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v2.0.3 +// protoc-gen-ts_proto v2.2.1 // protoc unknown // source: google/protobuf/any.proto @@ -136,7 +136,7 @@ function createBaseAny(): Any { return { typeUrl: "", value: new Uint8Array(0) }; } -export const Any = { +export const Any: MessageFns = { encode(message: Any, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.typeUrl !== "") { writer.uint32(10).string(message.typeUrl); @@ -154,20 +154,22 @@ export const Any = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 10) { break; } message.typeUrl = reader.string(); continue; - case 2: + } + case 2: { if (tag !== 18) { break; } message.value = reader.bytes(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -247,3 +249,12 @@ export type Exact = P extends Builtin ? P function isSet(value: any): boolean { return value !== null && value !== undefined; } + +export interface MessageFns { + encode(message: T, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): T; + fromJSON(object: any): T; + toJSON(message: T): unknown; + create, I>>(base?: I): T; + fromPartial, I>>(object: I): T; +} diff --git a/impl/ts-proto/gen/google/protobuf/duration.ts b/impl/ts-proto/gen/google/protobuf/duration.ts index e614b749..f914cda5 100644 --- a/impl/ts-proto/gen/google/protobuf/duration.ts +++ b/impl/ts-proto/gen/google/protobuf/duration.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v2.0.3 +// protoc-gen-ts_proto v2.2.1 // protoc unknown // source: google/protobuf/duration.proto @@ -91,7 +91,7 @@ function createBaseDuration(): Duration { return { seconds: 0, nanos: 0 }; } -export const Duration = { +export const Duration: MessageFns = { encode(message: Duration, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.seconds !== 0) { writer.uint32(8).int64(message.seconds); @@ -109,20 +109,22 @@ export const Duration = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 8) { break; } message.seconds = longToNumber(reader.int64()); continue; - case 2: + } + case 2: { if (tag !== 16) { break; } message.nanos = reader.int32(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -188,3 +190,12 @@ function longToNumber(int64: { toString(): string }): number { function isSet(value: any): boolean { return value !== null && value !== undefined; } + +export interface MessageFns { + encode(message: T, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): T; + fromJSON(object: any): T; + toJSON(message: T): unknown; + create, I>>(base?: I): T; + fromPartial, I>>(object: I): T; +} diff --git a/impl/ts-proto/gen/google/protobuf/field_mask.ts b/impl/ts-proto/gen/google/protobuf/field_mask.ts index 31b70fdf..f2c85535 100644 --- a/impl/ts-proto/gen/google/protobuf/field_mask.ts +++ b/impl/ts-proto/gen/google/protobuf/field_mask.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v2.0.3 +// protoc-gen-ts_proto v2.2.1 // protoc unknown // source: google/protobuf/field_mask.proto @@ -218,7 +218,7 @@ function createBaseFieldMask(): FieldMask { return { paths: [] }; } -export const FieldMask = { +export const FieldMask: MessageFns & FieldMaskWrapperFns = { encode(message: FieldMask, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { for (const v of message.paths) { writer.uint32(10).string(v!); @@ -233,13 +233,14 @@ export const FieldMask = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 10) { break; } message.paths.push(reader.string()); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -295,3 +296,17 @@ export type DeepPartial = T extends Builtin ? T type KeysOfUnion = T extends T ? keyof T : never; export type Exact = P extends Builtin ? P : P & { [K in keyof P]: Exact } & { [K in Exclude>]: never }; + +export interface MessageFns { + encode(message: T, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): T; + fromJSON(object: any): T; + toJSON(message: T): unknown; + create, I>>(base?: I): T; + fromPartial, I>>(object: I): T; +} + +export interface FieldMaskWrapperFns { + wrap(paths: string[]): FieldMask; + unwrap(message: FieldMask): string[]; +} diff --git a/impl/ts-proto/gen/google/protobuf/struct.ts b/impl/ts-proto/gen/google/protobuf/struct.ts index 2ed4e1a9..fd75d450 100644 --- a/impl/ts-proto/gen/google/protobuf/struct.ts +++ b/impl/ts-proto/gen/google/protobuf/struct.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v2.0.3 +// protoc-gen-ts_proto v2.2.1 // protoc unknown // source: google/protobuf/struct.proto @@ -92,7 +92,7 @@ function createBaseStruct(): Struct { return { fields: new Map() }; } -export const Struct = { +export const Struct: MessageFns & StructWrapperFns = { encode(message: Struct, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { message.fields.forEach((value, key) => { if (value !== undefined) { @@ -109,7 +109,7 @@ export const Struct = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 10) { break; } @@ -119,6 +119,7 @@ export const Struct = { message.fields.set(entry1.key, entry1.value); } continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -193,7 +194,7 @@ function createBaseStruct_FieldsEntry(): Struct_FieldsEntry { return { key: "", value: undefined }; } -export const Struct_FieldsEntry = { +export const Struct_FieldsEntry: MessageFns = { encode(message: Struct_FieldsEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.key !== "") { writer.uint32(10).string(message.key); @@ -211,20 +212,22 @@ export const Struct_FieldsEntry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 10) { break; } message.key = reader.string(); continue; - case 2: + } + case 2: { if (tag !== 18) { break; } message.value = Value.unwrap(Value.decode(reader, reader.uint32())); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -267,7 +270,7 @@ function createBaseValue(): Value { return { kind: undefined }; } -export const Value = { +export const Value: MessageFns & AnyValueWrapperFns = { encode(message: Value, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { switch (message.kind?.$case) { case "nullValue": @@ -299,48 +302,54 @@ export const Value = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 8) { break; } message.kind = { $case: "nullValue", nullValue: reader.int32() as any }; continue; - case 2: + } + case 2: { if (tag !== 17) { break; } message.kind = { $case: "numberValue", numberValue: reader.double() }; continue; - case 3: + } + case 3: { if (tag !== 26) { break; } message.kind = { $case: "stringValue", stringValue: reader.string() }; continue; - case 4: + } + case 4: { if (tag !== 32) { break; } message.kind = { $case: "boolValue", boolValue: reader.bool() }; continue; - case 5: + } + case 5: { if (tag !== 42) { break; } message.kind = { $case: "structValue", structValue: Struct.unwrap(Struct.decode(reader, reader.uint32())) }; continue; - case 6: + } + case 6: { if (tag !== 50) { break; } message.kind = { $case: "listValue", listValue: ListValue.unwrap(ListValue.decode(reader, reader.uint32())) }; continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -472,7 +481,7 @@ function createBaseListValue(): ListValue { return { values: [] }; } -export const ListValue = { +export const ListValue: MessageFns & ListValueWrapperFns = { encode(message: ListValue, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { for (const v of message.values) { Value.encode(Value.wrap(v!), writer.uint32(10).fork()).join(); @@ -487,13 +496,14 @@ export const ListValue = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 10) { break; } message.values.push(Value.unwrap(Value.decode(reader, reader.uint32()))); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -559,3 +569,27 @@ function isObject(value: any): boolean { function isSet(value: any): boolean { return value !== null && value !== undefined; } + +export interface MessageFns { + encode(message: T, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): T; + fromJSON(object: any): T; + toJSON(message: T): unknown; + create, I>>(base?: I): T; + fromPartial, I>>(object: I): T; +} + +export interface StructWrapperFns { + wrap(object: { [key: string]: any } | undefined): Struct; + unwrap(message: Struct): { [key: string]: any }; +} + +export interface AnyValueWrapperFns { + wrap(value: any): Value; + unwrap(message: any): string | number | boolean | Object | null | Array | undefined; +} + +export interface ListValueWrapperFns { + wrap(array: Array | undefined): ListValue; + unwrap(message: ListValue): Array; +} diff --git a/impl/ts-proto/gen/google/protobuf/test_messages_proto2.ts b/impl/ts-proto/gen/google/protobuf/test_messages_proto2.ts index 877ab9d6..def8da8d 100644 --- a/impl/ts-proto/gen/google/protobuf/test_messages_proto2.ts +++ b/impl/ts-proto/gen/google/protobuf/test_messages_proto2.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v2.0.3 +// protoc-gen-ts_proto v2.2.1 // protoc unknown // source: google/protobuf/test_messages_proto2.proto @@ -687,7 +687,7 @@ function createBaseTestAllTypesProto2(): TestAllTypesProto2 { }; } -export const TestAllTypesProto2 = { +export const TestAllTypesProto2: MessageFns = { encode(message: TestAllTypesProto2, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.optionalInt32 !== undefined && message.optionalInt32 !== 0) { writer.uint32(8).int32(message.optionalInt32); @@ -1192,161 +1192,183 @@ export const TestAllTypesProto2 = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 8) { break; } message.optionalInt32 = reader.int32(); continue; - case 2: + } + case 2: { if (tag !== 16) { break; } message.optionalInt64 = longToNumber(reader.int64()); continue; - case 3: + } + case 3: { if (tag !== 24) { break; } message.optionalUint32 = reader.uint32(); continue; - case 4: + } + case 4: { if (tag !== 32) { break; } message.optionalUint64 = longToNumber(reader.uint64()); continue; - case 5: + } + case 5: { if (tag !== 40) { break; } message.optionalSint32 = reader.sint32(); continue; - case 6: + } + case 6: { if (tag !== 48) { break; } message.optionalSint64 = longToNumber(reader.sint64()); continue; - case 7: + } + case 7: { if (tag !== 61) { break; } message.optionalFixed32 = reader.fixed32(); continue; - case 8: + } + case 8: { if (tag !== 65) { break; } message.optionalFixed64 = longToNumber(reader.fixed64()); continue; - case 9: + } + case 9: { if (tag !== 77) { break; } message.optionalSfixed32 = reader.sfixed32(); continue; - case 10: + } + case 10: { if (tag !== 81) { break; } message.optionalSfixed64 = longToNumber(reader.sfixed64()); continue; - case 11: + } + case 11: { if (tag !== 93) { break; } message.optionalFloat = reader.float(); continue; - case 12: + } + case 12: { if (tag !== 97) { break; } message.optionalDouble = reader.double(); continue; - case 13: + } + case 13: { if (tag !== 104) { break; } message.optionalBool = reader.bool(); continue; - case 14: + } + case 14: { if (tag !== 114) { break; } message.optionalString = reader.string(); continue; - case 15: + } + case 15: { if (tag !== 122) { break; } message.optionalBytes = reader.bytes(); continue; - case 18: + } + case 18: { if (tag !== 146) { break; } message.optionalNestedMessage = TestAllTypesProto2_NestedMessage.decode(reader, reader.uint32()); continue; - case 19: + } + case 19: { if (tag !== 154) { break; } message.optionalForeignMessage = ForeignMessageProto2.decode(reader, reader.uint32()); continue; - case 21: + } + case 21: { if (tag !== 168) { break; } message.optionalNestedEnum = reader.int32() as any; continue; - case 22: + } + case 22: { if (tag !== 176) { break; } message.optionalForeignEnum = reader.int32() as any; continue; - case 24: + } + case 24: { if (tag !== 194) { break; } message.optionalStringPiece = reader.string(); continue; - case 25: + } + case 25: { if (tag !== 202) { break; } message.optionalCord = reader.string(); continue; - case 27: + } + case 27: { if (tag !== 218) { break; } message.recursiveMessage = TestAllTypesProto2.decode(reader, reader.uint32()); continue; - case 31: + } + case 31: { if (tag === 248) { message.repeatedInt32.push(reader.int32()); @@ -1363,7 +1385,8 @@ export const TestAllTypesProto2 = { } break; - case 32: + } + case 32: { if (tag === 256) { message.repeatedInt64.push(longToNumber(reader.int64())); @@ -1380,7 +1403,8 @@ export const TestAllTypesProto2 = { } break; - case 33: + } + case 33: { if (tag === 264) { message.repeatedUint32.push(reader.uint32()); @@ -1397,7 +1421,8 @@ export const TestAllTypesProto2 = { } break; - case 34: + } + case 34: { if (tag === 272) { message.repeatedUint64.push(longToNumber(reader.uint64())); @@ -1414,7 +1439,8 @@ export const TestAllTypesProto2 = { } break; - case 35: + } + case 35: { if (tag === 280) { message.repeatedSint32.push(reader.sint32()); @@ -1431,7 +1457,8 @@ export const TestAllTypesProto2 = { } break; - case 36: + } + case 36: { if (tag === 288) { message.repeatedSint64.push(longToNumber(reader.sint64())); @@ -1448,7 +1475,8 @@ export const TestAllTypesProto2 = { } break; - case 37: + } + case 37: { if (tag === 301) { message.repeatedFixed32.push(reader.fixed32()); @@ -1465,7 +1493,8 @@ export const TestAllTypesProto2 = { } break; - case 38: + } + case 38: { if (tag === 305) { message.repeatedFixed64.push(longToNumber(reader.fixed64())); @@ -1482,7 +1511,8 @@ export const TestAllTypesProto2 = { } break; - case 39: + } + case 39: { if (tag === 317) { message.repeatedSfixed32.push(reader.sfixed32()); @@ -1499,7 +1529,8 @@ export const TestAllTypesProto2 = { } break; - case 40: + } + case 40: { if (tag === 321) { message.repeatedSfixed64.push(longToNumber(reader.sfixed64())); @@ -1516,7 +1547,8 @@ export const TestAllTypesProto2 = { } break; - case 41: + } + case 41: { if (tag === 333) { message.repeatedFloat.push(reader.float()); @@ -1533,7 +1565,8 @@ export const TestAllTypesProto2 = { } break; - case 42: + } + case 42: { if (tag === 337) { message.repeatedDouble.push(reader.double()); @@ -1550,7 +1583,8 @@ export const TestAllTypesProto2 = { } break; - case 43: + } + case 43: { if (tag === 344) { message.repeatedBool.push(reader.bool()); @@ -1567,35 +1601,40 @@ export const TestAllTypesProto2 = { } break; - case 44: + } + case 44: { if (tag !== 354) { break; } message.repeatedString.push(reader.string()); continue; - case 45: + } + case 45: { if (tag !== 362) { break; } message.repeatedBytes.push(reader.bytes()); continue; - case 48: + } + case 48: { if (tag !== 386) { break; } message.repeatedNestedMessage.push(TestAllTypesProto2_NestedMessage.decode(reader, reader.uint32())); continue; - case 49: + } + case 49: { if (tag !== 394) { break; } message.repeatedForeignMessage.push(ForeignMessageProto2.decode(reader, reader.uint32())); continue; - case 51: + } + case 51: { if (tag === 408) { message.repeatedNestedEnum.push(reader.int32() as any); @@ -1612,7 +1651,8 @@ export const TestAllTypesProto2 = { } break; - case 52: + } + case 52: { if (tag === 416) { message.repeatedForeignEnum.push(reader.int32() as any); @@ -1629,21 +1669,24 @@ export const TestAllTypesProto2 = { } break; - case 54: + } + case 54: { if (tag !== 434) { break; } message.repeatedStringPiece.push(reader.string()); continue; - case 55: + } + case 55: { if (tag !== 442) { break; } message.repeatedCord.push(reader.string()); continue; - case 75: + } + case 75: { if (tag === 600) { message.packedInt32.push(reader.int32()); @@ -1660,7 +1703,8 @@ export const TestAllTypesProto2 = { } break; - case 76: + } + case 76: { if (tag === 608) { message.packedInt64.push(longToNumber(reader.int64())); @@ -1677,7 +1721,8 @@ export const TestAllTypesProto2 = { } break; - case 77: + } + case 77: { if (tag === 616) { message.packedUint32.push(reader.uint32()); @@ -1694,7 +1739,8 @@ export const TestAllTypesProto2 = { } break; - case 78: + } + case 78: { if (tag === 624) { message.packedUint64.push(longToNumber(reader.uint64())); @@ -1711,7 +1757,8 @@ export const TestAllTypesProto2 = { } break; - case 79: + } + case 79: { if (tag === 632) { message.packedSint32.push(reader.sint32()); @@ -1728,7 +1775,8 @@ export const TestAllTypesProto2 = { } break; - case 80: + } + case 80: { if (tag === 640) { message.packedSint64.push(longToNumber(reader.sint64())); @@ -1745,7 +1793,8 @@ export const TestAllTypesProto2 = { } break; - case 81: + } + case 81: { if (tag === 653) { message.packedFixed32.push(reader.fixed32()); @@ -1762,7 +1811,8 @@ export const TestAllTypesProto2 = { } break; - case 82: + } + case 82: { if (tag === 657) { message.packedFixed64.push(longToNumber(reader.fixed64())); @@ -1779,7 +1829,8 @@ export const TestAllTypesProto2 = { } break; - case 83: + } + case 83: { if (tag === 669) { message.packedSfixed32.push(reader.sfixed32()); @@ -1796,7 +1847,8 @@ export const TestAllTypesProto2 = { } break; - case 84: + } + case 84: { if (tag === 673) { message.packedSfixed64.push(longToNumber(reader.sfixed64())); @@ -1813,7 +1865,8 @@ export const TestAllTypesProto2 = { } break; - case 85: + } + case 85: { if (tag === 685) { message.packedFloat.push(reader.float()); @@ -1830,7 +1883,8 @@ export const TestAllTypesProto2 = { } break; - case 86: + } + case 86: { if (tag === 689) { message.packedDouble.push(reader.double()); @@ -1847,7 +1901,8 @@ export const TestAllTypesProto2 = { } break; - case 87: + } + case 87: { if (tag === 696) { message.packedBool.push(reader.bool()); @@ -1864,7 +1919,8 @@ export const TestAllTypesProto2 = { } break; - case 88: + } + case 88: { if (tag === 704) { message.packedNestedEnum.push(reader.int32() as any); @@ -1881,7 +1937,8 @@ export const TestAllTypesProto2 = { } break; - case 89: + } + case 89: { if (tag === 712) { message.unpackedInt32.push(reader.int32()); @@ -1898,7 +1955,8 @@ export const TestAllTypesProto2 = { } break; - case 90: + } + case 90: { if (tag === 720) { message.unpackedInt64.push(longToNumber(reader.int64())); @@ -1915,7 +1973,8 @@ export const TestAllTypesProto2 = { } break; - case 91: + } + case 91: { if (tag === 728) { message.unpackedUint32.push(reader.uint32()); @@ -1932,7 +1991,8 @@ export const TestAllTypesProto2 = { } break; - case 92: + } + case 92: { if (tag === 736) { message.unpackedUint64.push(longToNumber(reader.uint64())); @@ -1949,7 +2009,8 @@ export const TestAllTypesProto2 = { } break; - case 93: + } + case 93: { if (tag === 744) { message.unpackedSint32.push(reader.sint32()); @@ -1966,7 +2027,8 @@ export const TestAllTypesProto2 = { } break; - case 94: + } + case 94: { if (tag === 752) { message.unpackedSint64.push(longToNumber(reader.sint64())); @@ -1983,7 +2045,8 @@ export const TestAllTypesProto2 = { } break; - case 95: + } + case 95: { if (tag === 765) { message.unpackedFixed32.push(reader.fixed32()); @@ -2000,7 +2063,8 @@ export const TestAllTypesProto2 = { } break; - case 96: + } + case 96: { if (tag === 769) { message.unpackedFixed64.push(longToNumber(reader.fixed64())); @@ -2017,7 +2081,8 @@ export const TestAllTypesProto2 = { } break; - case 97: + } + case 97: { if (tag === 781) { message.unpackedSfixed32.push(reader.sfixed32()); @@ -2034,7 +2099,8 @@ export const TestAllTypesProto2 = { } break; - case 98: + } + case 98: { if (tag === 785) { message.unpackedSfixed64.push(longToNumber(reader.sfixed64())); @@ -2051,7 +2117,8 @@ export const TestAllTypesProto2 = { } break; - case 99: + } + case 99: { if (tag === 797) { message.unpackedFloat.push(reader.float()); @@ -2068,7 +2135,8 @@ export const TestAllTypesProto2 = { } break; - case 100: + } + case 100: { if (tag === 801) { message.unpackedDouble.push(reader.double()); @@ -2085,7 +2153,8 @@ export const TestAllTypesProto2 = { } break; - case 101: + } + case 101: { if (tag === 808) { message.unpackedBool.push(reader.bool()); @@ -2102,7 +2171,8 @@ export const TestAllTypesProto2 = { } break; - case 102: + } + case 102: { if (tag === 816) { message.unpackedNestedEnum.push(reader.int32() as any); @@ -2119,7 +2189,8 @@ export const TestAllTypesProto2 = { } break; - case 56: + } + case 56: { if (tag !== 450) { break; } @@ -2129,7 +2200,8 @@ export const TestAllTypesProto2 = { message.mapInt32Int32.set(entry56.key, entry56.value); } continue; - case 57: + } + case 57: { if (tag !== 458) { break; } @@ -2139,7 +2211,8 @@ export const TestAllTypesProto2 = { message.mapInt64Int64.set(entry57.key, entry57.value); } continue; - case 58: + } + case 58: { if (tag !== 466) { break; } @@ -2149,7 +2222,8 @@ export const TestAllTypesProto2 = { message.mapUint32Uint32.set(entry58.key, entry58.value); } continue; - case 59: + } + case 59: { if (tag !== 474) { break; } @@ -2159,7 +2233,8 @@ export const TestAllTypesProto2 = { message.mapUint64Uint64.set(entry59.key, entry59.value); } continue; - case 60: + } + case 60: { if (tag !== 482) { break; } @@ -2169,7 +2244,8 @@ export const TestAllTypesProto2 = { message.mapSint32Sint32.set(entry60.key, entry60.value); } continue; - case 61: + } + case 61: { if (tag !== 490) { break; } @@ -2179,7 +2255,8 @@ export const TestAllTypesProto2 = { message.mapSint64Sint64.set(entry61.key, entry61.value); } continue; - case 62: + } + case 62: { if (tag !== 498) { break; } @@ -2189,7 +2266,8 @@ export const TestAllTypesProto2 = { message.mapFixed32Fixed32.set(entry62.key, entry62.value); } continue; - case 63: + } + case 63: { if (tag !== 506) { break; } @@ -2199,7 +2277,8 @@ export const TestAllTypesProto2 = { message.mapFixed64Fixed64.set(entry63.key, entry63.value); } continue; - case 64: + } + case 64: { if (tag !== 514) { break; } @@ -2209,7 +2288,8 @@ export const TestAllTypesProto2 = { message.mapSfixed32Sfixed32.set(entry64.key, entry64.value); } continue; - case 65: + } + case 65: { if (tag !== 522) { break; } @@ -2219,7 +2299,8 @@ export const TestAllTypesProto2 = { message.mapSfixed64Sfixed64.set(entry65.key, entry65.value); } continue; - case 66: + } + case 66: { if (tag !== 530) { break; } @@ -2229,7 +2310,8 @@ export const TestAllTypesProto2 = { message.mapInt32Float.set(entry66.key, entry66.value); } continue; - case 67: + } + case 67: { if (tag !== 538) { break; } @@ -2239,7 +2321,8 @@ export const TestAllTypesProto2 = { message.mapInt32Double.set(entry67.key, entry67.value); } continue; - case 68: + } + case 68: { if (tag !== 546) { break; } @@ -2249,7 +2332,8 @@ export const TestAllTypesProto2 = { message.mapBoolBool.set(entry68.key, entry68.value); } continue; - case 69: + } + case 69: { if (tag !== 554) { break; } @@ -2259,7 +2343,8 @@ export const TestAllTypesProto2 = { message.mapStringString.set(entry69.key, entry69.value); } continue; - case 70: + } + case 70: { if (tag !== 562) { break; } @@ -2269,7 +2354,8 @@ export const TestAllTypesProto2 = { message.mapStringBytes.set(entry70.key, entry70.value); } continue; - case 71: + } + case 71: { if (tag !== 570) { break; } @@ -2279,7 +2365,8 @@ export const TestAllTypesProto2 = { message.mapStringNestedMessage.set(entry71.key, entry71.value); } continue; - case 72: + } + case 72: { if (tag !== 578) { break; } @@ -2289,7 +2376,8 @@ export const TestAllTypesProto2 = { message.mapStringForeignMessage.set(entry72.key, entry72.value); } continue; - case 73: + } + case 73: { if (tag !== 586) { break; } @@ -2299,7 +2387,8 @@ export const TestAllTypesProto2 = { message.mapStringNestedEnum.set(entry73.key, entry73.value); } continue; - case 74: + } + case 74: { if (tag !== 594) { break; } @@ -2309,14 +2398,16 @@ export const TestAllTypesProto2 = { message.mapStringForeignEnum.set(entry74.key, entry74.value); } continue; - case 111: + } + case 111: { if (tag !== 888) { break; } message.oneofField = { $case: "oneofUint32", oneofUint32: reader.uint32() }; continue; - case 112: + } + case 112: { if (tag !== 898) { break; } @@ -2326,300 +2417,343 @@ export const TestAllTypesProto2 = { oneofNestedMessage: TestAllTypesProto2_NestedMessage.decode(reader, reader.uint32()), }; continue; - case 113: + } + case 113: { if (tag !== 906) { break; } message.oneofField = { $case: "oneofString", oneofString: reader.string() }; continue; - case 114: + } + case 114: { if (tag !== 914) { break; } message.oneofField = { $case: "oneofBytes", oneofBytes: reader.bytes() }; continue; - case 115: + } + case 115: { if (tag !== 920) { break; } message.oneofField = { $case: "oneofBool", oneofBool: reader.bool() }; continue; - case 116: + } + case 116: { if (tag !== 928) { break; } message.oneofField = { $case: "oneofUint64", oneofUint64: longToNumber(reader.uint64()) }; continue; - case 117: + } + case 117: { if (tag !== 941) { break; } message.oneofField = { $case: "oneofFloat", oneofFloat: reader.float() }; continue; - case 118: + } + case 118: { if (tag !== 945) { break; } message.oneofField = { $case: "oneofDouble", oneofDouble: reader.double() }; continue; - case 119: + } + case 119: { if (tag !== 952) { break; } message.oneofField = { $case: "oneofEnum", oneofEnum: reader.int32() as any }; continue; - case 201: + } + case 201: { if (tag !== 1611) { break; } message.data = TestAllTypesProto2_Data.decode(reader); continue; - case 204: + } + case 204: { if (tag !== 1635) { break; } message.multiwordgroupfield = TestAllTypesProto2_MultiWordGroupField.decode(reader); continue; - case 241: + } + case 241: { if (tag !== 1928) { break; } message.defaultInt32 = reader.int32(); continue; - case 242: + } + case 242: { if (tag !== 1936) { break; } message.defaultInt64 = longToNumber(reader.int64()); continue; - case 243: + } + case 243: { if (tag !== 1944) { break; } message.defaultUint32 = reader.uint32(); continue; - case 244: + } + case 244: { if (tag !== 1952) { break; } message.defaultUint64 = longToNumber(reader.uint64()); continue; - case 245: + } + case 245: { if (tag !== 1960) { break; } message.defaultSint32 = reader.sint32(); continue; - case 246: + } + case 246: { if (tag !== 1968) { break; } message.defaultSint64 = longToNumber(reader.sint64()); continue; - case 247: + } + case 247: { if (tag !== 1981) { break; } message.defaultFixed32 = reader.fixed32(); continue; - case 248: + } + case 248: { if (tag !== 1985) { break; } message.defaultFixed64 = longToNumber(reader.fixed64()); continue; - case 249: + } + case 249: { if (tag !== 1997) { break; } message.defaultSfixed32 = reader.sfixed32(); continue; - case 250: + } + case 250: { if (tag !== 2001) { break; } message.defaultSfixed64 = longToNumber(reader.sfixed64()); continue; - case 251: + } + case 251: { if (tag !== 2013) { break; } message.defaultFloat = reader.float(); continue; - case 252: + } + case 252: { if (tag !== 2017) { break; } message.defaultDouble = reader.double(); continue; - case 253: + } + case 253: { if (tag !== 2024) { break; } message.defaultBool = reader.bool(); continue; - case 254: + } + case 254: { if (tag !== 2034) { break; } message.defaultString = reader.string(); continue; - case 255: + } + case 255: { if (tag !== 2042) { break; } message.defaultBytes = reader.bytes(); continue; - case 401: + } + case 401: { if (tag !== 3208) { break; } message.fieldname1 = reader.int32(); continue; - case 402: + } + case 402: { if (tag !== 3216) { break; } message.fieldName2 = reader.int32(); continue; - case 403: + } + case 403: { if (tag !== 3224) { break; } message.FieldName3 = reader.int32(); continue; - case 404: + } + case 404: { if (tag !== 3232) { break; } message.fieldName4 = reader.int32(); continue; - case 405: + } + case 405: { if (tag !== 3240) { break; } message.field0name5 = reader.int32(); continue; - case 406: + } + case 406: { if (tag !== 3248) { break; } message.field0Name6 = reader.int32(); continue; - case 407: + } + case 407: { if (tag !== 3256) { break; } message.fieldName7 = reader.int32(); continue; - case 408: + } + case 408: { if (tag !== 3264) { break; } message.FieldName8 = reader.int32(); continue; - case 409: + } + case 409: { if (tag !== 3272) { break; } message.fieldName9 = reader.int32(); continue; - case 410: + } + case 410: { if (tag !== 3280) { break; } message.FieldName10 = reader.int32(); continue; - case 411: + } + case 411: { if (tag !== 3288) { break; } message.fieldName11 = reader.int32(); continue; - case 412: + } + case 412: { if (tag !== 3296) { break; } message.FIELDName12 = reader.int32(); continue; - case 413: + } + case 413: { if (tag !== 3304) { break; } message.FieldName13 = reader.int32(); continue; - case 414: + } + case 414: { if (tag !== 3312) { break; } message.FieldName14 = reader.int32(); continue; - case 415: + } + case 415: { if (tag !== 3320) { break; } message.fieldName15 = reader.int32(); continue; - case 416: + } + case 416: { if (tag !== 3328) { break; } message.fieldName16 = reader.int32(); continue; - case 417: + } + case 417: { if (tag !== 3336) { break; } message.fieldName17 = reader.int32(); continue; - case 418: + } + case 418: { if (tag !== 3344) { break; } message.FieldName18 = reader.int32(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -3831,7 +3965,7 @@ function createBaseTestAllTypesProto2_NestedMessage(): TestAllTypesProto2_Nested return { a: 0, corecursive: undefined }; } -export const TestAllTypesProto2_NestedMessage = { +export const TestAllTypesProto2_NestedMessage: MessageFns = { encode(message: TestAllTypesProto2_NestedMessage, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.a !== undefined && message.a !== 0) { writer.uint32(8).int32(message.a); @@ -3849,20 +3983,22 @@ export const TestAllTypesProto2_NestedMessage = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 8) { break; } message.a = reader.int32(); continue; - case 2: + } + case 2: { if (tag !== 18) { break; } message.corecursive = TestAllTypesProto2.decode(reader, reader.uint32()); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -3911,7 +4047,7 @@ function createBaseTestAllTypesProto2_MapInt32Int32Entry(): TestAllTypesProto2_M return { key: 0, value: 0 }; } -export const TestAllTypesProto2_MapInt32Int32Entry = { +export const TestAllTypesProto2_MapInt32Int32Entry: MessageFns = { encode(message: TestAllTypesProto2_MapInt32Int32Entry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.key !== 0) { writer.uint32(8).int32(message.key); @@ -3929,20 +4065,22 @@ export const TestAllTypesProto2_MapInt32Int32Entry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 8) { break; } message.key = reader.int32(); continue; - case 2: + } + case 2: { if (tag !== 16) { break; } message.value = reader.int32(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -3989,7 +4127,7 @@ function createBaseTestAllTypesProto2_MapInt64Int64Entry(): TestAllTypesProto2_M return { key: 0, value: 0 }; } -export const TestAllTypesProto2_MapInt64Int64Entry = { +export const TestAllTypesProto2_MapInt64Int64Entry: MessageFns = { encode(message: TestAllTypesProto2_MapInt64Int64Entry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.key !== 0) { writer.uint32(8).int64(message.key); @@ -4007,20 +4145,22 @@ export const TestAllTypesProto2_MapInt64Int64Entry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 8) { break; } message.key = longToNumber(reader.int64()); continue; - case 2: + } + case 2: { if (tag !== 16) { break; } message.value = longToNumber(reader.int64()); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -4067,7 +4207,7 @@ function createBaseTestAllTypesProto2_MapUint32Uint32Entry(): TestAllTypesProto2 return { key: 0, value: 0 }; } -export const TestAllTypesProto2_MapUint32Uint32Entry = { +export const TestAllTypesProto2_MapUint32Uint32Entry: MessageFns = { encode(message: TestAllTypesProto2_MapUint32Uint32Entry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.key !== 0) { writer.uint32(8).uint32(message.key); @@ -4085,20 +4225,22 @@ export const TestAllTypesProto2_MapUint32Uint32Entry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 8) { break; } message.key = reader.uint32(); continue; - case 2: + } + case 2: { if (tag !== 16) { break; } message.value = reader.uint32(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -4145,7 +4287,7 @@ function createBaseTestAllTypesProto2_MapUint64Uint64Entry(): TestAllTypesProto2 return { key: 0, value: 0 }; } -export const TestAllTypesProto2_MapUint64Uint64Entry = { +export const TestAllTypesProto2_MapUint64Uint64Entry: MessageFns = { encode(message: TestAllTypesProto2_MapUint64Uint64Entry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.key !== 0) { writer.uint32(8).uint64(message.key); @@ -4163,20 +4305,22 @@ export const TestAllTypesProto2_MapUint64Uint64Entry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 8) { break; } message.key = longToNumber(reader.uint64()); continue; - case 2: + } + case 2: { if (tag !== 16) { break; } message.value = longToNumber(reader.uint64()); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -4223,7 +4367,7 @@ function createBaseTestAllTypesProto2_MapSint32Sint32Entry(): TestAllTypesProto2 return { key: 0, value: 0 }; } -export const TestAllTypesProto2_MapSint32Sint32Entry = { +export const TestAllTypesProto2_MapSint32Sint32Entry: MessageFns = { encode(message: TestAllTypesProto2_MapSint32Sint32Entry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.key !== 0) { writer.uint32(8).sint32(message.key); @@ -4241,20 +4385,22 @@ export const TestAllTypesProto2_MapSint32Sint32Entry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 8) { break; } message.key = reader.sint32(); continue; - case 2: + } + case 2: { if (tag !== 16) { break; } message.value = reader.sint32(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -4301,7 +4447,7 @@ function createBaseTestAllTypesProto2_MapSint64Sint64Entry(): TestAllTypesProto2 return { key: 0, value: 0 }; } -export const TestAllTypesProto2_MapSint64Sint64Entry = { +export const TestAllTypesProto2_MapSint64Sint64Entry: MessageFns = { encode(message: TestAllTypesProto2_MapSint64Sint64Entry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.key !== 0) { writer.uint32(8).sint64(message.key); @@ -4319,20 +4465,22 @@ export const TestAllTypesProto2_MapSint64Sint64Entry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 8) { break; } message.key = longToNumber(reader.sint64()); continue; - case 2: + } + case 2: { if (tag !== 16) { break; } message.value = longToNumber(reader.sint64()); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -4379,7 +4527,7 @@ function createBaseTestAllTypesProto2_MapFixed32Fixed32Entry(): TestAllTypesProt return { key: 0, value: 0 }; } -export const TestAllTypesProto2_MapFixed32Fixed32Entry = { +export const TestAllTypesProto2_MapFixed32Fixed32Entry: MessageFns = { encode(message: TestAllTypesProto2_MapFixed32Fixed32Entry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.key !== 0) { writer.uint32(13).fixed32(message.key); @@ -4397,20 +4545,22 @@ export const TestAllTypesProto2_MapFixed32Fixed32Entry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 13) { break; } message.key = reader.fixed32(); continue; - case 2: + } + case 2: { if (tag !== 21) { break; } message.value = reader.fixed32(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -4457,7 +4607,7 @@ function createBaseTestAllTypesProto2_MapFixed64Fixed64Entry(): TestAllTypesProt return { key: 0, value: 0 }; } -export const TestAllTypesProto2_MapFixed64Fixed64Entry = { +export const TestAllTypesProto2_MapFixed64Fixed64Entry: MessageFns = { encode(message: TestAllTypesProto2_MapFixed64Fixed64Entry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.key !== 0) { writer.uint32(9).fixed64(message.key); @@ -4475,20 +4625,22 @@ export const TestAllTypesProto2_MapFixed64Fixed64Entry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 9) { break; } message.key = longToNumber(reader.fixed64()); continue; - case 2: + } + case 2: { if (tag !== 17) { break; } message.value = longToNumber(reader.fixed64()); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -4535,7 +4687,7 @@ function createBaseTestAllTypesProto2_MapSfixed32Sfixed32Entry(): TestAllTypesPr return { key: 0, value: 0 }; } -export const TestAllTypesProto2_MapSfixed32Sfixed32Entry = { +export const TestAllTypesProto2_MapSfixed32Sfixed32Entry: MessageFns = { encode( message: TestAllTypesProto2_MapSfixed32Sfixed32Entry, writer: BinaryWriter = new BinaryWriter(), @@ -4556,20 +4708,22 @@ export const TestAllTypesProto2_MapSfixed32Sfixed32Entry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 13) { break; } message.key = reader.sfixed32(); continue; - case 2: + } + case 2: { if (tag !== 21) { break; } message.value = reader.sfixed32(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -4616,7 +4770,7 @@ function createBaseTestAllTypesProto2_MapSfixed64Sfixed64Entry(): TestAllTypesPr return { key: 0, value: 0 }; } -export const TestAllTypesProto2_MapSfixed64Sfixed64Entry = { +export const TestAllTypesProto2_MapSfixed64Sfixed64Entry: MessageFns = { encode( message: TestAllTypesProto2_MapSfixed64Sfixed64Entry, writer: BinaryWriter = new BinaryWriter(), @@ -4637,20 +4791,22 @@ export const TestAllTypesProto2_MapSfixed64Sfixed64Entry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 9) { break; } message.key = longToNumber(reader.sfixed64()); continue; - case 2: + } + case 2: { if (tag !== 17) { break; } message.value = longToNumber(reader.sfixed64()); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -4697,7 +4853,7 @@ function createBaseTestAllTypesProto2_MapInt32FloatEntry(): TestAllTypesProto2_M return { key: 0, value: 0 }; } -export const TestAllTypesProto2_MapInt32FloatEntry = { +export const TestAllTypesProto2_MapInt32FloatEntry: MessageFns = { encode(message: TestAllTypesProto2_MapInt32FloatEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.key !== 0) { writer.uint32(8).int32(message.key); @@ -4715,20 +4871,22 @@ export const TestAllTypesProto2_MapInt32FloatEntry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 8) { break; } message.key = reader.int32(); continue; - case 2: + } + case 2: { if (tag !== 21) { break; } message.value = reader.float(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -4775,7 +4933,7 @@ function createBaseTestAllTypesProto2_MapInt32DoubleEntry(): TestAllTypesProto2_ return { key: 0, value: 0 }; } -export const TestAllTypesProto2_MapInt32DoubleEntry = { +export const TestAllTypesProto2_MapInt32DoubleEntry: MessageFns = { encode(message: TestAllTypesProto2_MapInt32DoubleEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.key !== 0) { writer.uint32(8).int32(message.key); @@ -4793,20 +4951,22 @@ export const TestAllTypesProto2_MapInt32DoubleEntry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 8) { break; } message.key = reader.int32(); continue; - case 2: + } + case 2: { if (tag !== 17) { break; } message.value = reader.double(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -4853,7 +5013,7 @@ function createBaseTestAllTypesProto2_MapBoolBoolEntry(): TestAllTypesProto2_Map return { key: false, value: false }; } -export const TestAllTypesProto2_MapBoolBoolEntry = { +export const TestAllTypesProto2_MapBoolBoolEntry: MessageFns = { encode(message: TestAllTypesProto2_MapBoolBoolEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.key !== false) { writer.uint32(8).bool(message.key); @@ -4871,20 +5031,22 @@ export const TestAllTypesProto2_MapBoolBoolEntry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 8) { break; } message.key = reader.bool(); continue; - case 2: + } + case 2: { if (tag !== 16) { break; } message.value = reader.bool(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -4931,7 +5093,7 @@ function createBaseTestAllTypesProto2_MapStringStringEntry(): TestAllTypesProto2 return { key: "", value: "" }; } -export const TestAllTypesProto2_MapStringStringEntry = { +export const TestAllTypesProto2_MapStringStringEntry: MessageFns = { encode(message: TestAllTypesProto2_MapStringStringEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.key !== "") { writer.uint32(10).string(message.key); @@ -4949,20 +5111,22 @@ export const TestAllTypesProto2_MapStringStringEntry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 10) { break; } message.key = reader.string(); continue; - case 2: + } + case 2: { if (tag !== 18) { break; } message.value = reader.string(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -5009,7 +5173,7 @@ function createBaseTestAllTypesProto2_MapStringBytesEntry(): TestAllTypesProto2_ return { key: "", value: new Uint8Array(0) }; } -export const TestAllTypesProto2_MapStringBytesEntry = { +export const TestAllTypesProto2_MapStringBytesEntry: MessageFns = { encode(message: TestAllTypesProto2_MapStringBytesEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.key !== "") { writer.uint32(10).string(message.key); @@ -5027,20 +5191,22 @@ export const TestAllTypesProto2_MapStringBytesEntry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 10) { break; } message.key = reader.string(); continue; - case 2: + } + case 2: { if (tag !== 18) { break; } message.value = reader.bytes(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -5087,7 +5253,9 @@ function createBaseTestAllTypesProto2_MapStringNestedMessageEntry(): TestAllType return { key: "", value: undefined }; } -export const TestAllTypesProto2_MapStringNestedMessageEntry = { +export const TestAllTypesProto2_MapStringNestedMessageEntry: MessageFns< + TestAllTypesProto2_MapStringNestedMessageEntry +> = { encode( message: TestAllTypesProto2_MapStringNestedMessageEntry, writer: BinaryWriter = new BinaryWriter(), @@ -5108,20 +5276,22 @@ export const TestAllTypesProto2_MapStringNestedMessageEntry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 10) { break; } message.key = reader.string(); continue; - case 2: + } + case 2: { if (tag !== 18) { break; } message.value = TestAllTypesProto2_NestedMessage.decode(reader, reader.uint32()); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -5170,7 +5340,9 @@ function createBaseTestAllTypesProto2_MapStringForeignMessageEntry(): TestAllTyp return { key: "", value: undefined }; } -export const TestAllTypesProto2_MapStringForeignMessageEntry = { +export const TestAllTypesProto2_MapStringForeignMessageEntry: MessageFns< + TestAllTypesProto2_MapStringForeignMessageEntry +> = { encode( message: TestAllTypesProto2_MapStringForeignMessageEntry, writer: BinaryWriter = new BinaryWriter(), @@ -5191,20 +5363,22 @@ export const TestAllTypesProto2_MapStringForeignMessageEntry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 10) { break; } message.key = reader.string(); continue; - case 2: + } + case 2: { if (tag !== 18) { break; } message.value = ForeignMessageProto2.decode(reader, reader.uint32()); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -5253,7 +5427,7 @@ function createBaseTestAllTypesProto2_MapStringNestedEnumEntry(): TestAllTypesPr return { key: "", value: 0 }; } -export const TestAllTypesProto2_MapStringNestedEnumEntry = { +export const TestAllTypesProto2_MapStringNestedEnumEntry: MessageFns = { encode( message: TestAllTypesProto2_MapStringNestedEnumEntry, writer: BinaryWriter = new BinaryWriter(), @@ -5274,20 +5448,22 @@ export const TestAllTypesProto2_MapStringNestedEnumEntry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 10) { break; } message.key = reader.string(); continue; - case 2: + } + case 2: { if (tag !== 16) { break; } message.value = reader.int32() as any; continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -5334,7 +5510,7 @@ function createBaseTestAllTypesProto2_MapStringForeignEnumEntry(): TestAllTypesP return { key: "", value: 0 }; } -export const TestAllTypesProto2_MapStringForeignEnumEntry = { +export const TestAllTypesProto2_MapStringForeignEnumEntry: MessageFns = { encode( message: TestAllTypesProto2_MapStringForeignEnumEntry, writer: BinaryWriter = new BinaryWriter(), @@ -5355,20 +5531,22 @@ export const TestAllTypesProto2_MapStringForeignEnumEntry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 10) { break; } message.key = reader.string(); continue; - case 2: + } + case 2: { if (tag !== 16) { break; } message.value = reader.int32() as any; continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -5415,7 +5593,7 @@ function createBaseTestAllTypesProto2_Data(): TestAllTypesProto2_Data { return { groupInt32: 0, groupUint32: 0 }; } -export const TestAllTypesProto2_Data = { +export const TestAllTypesProto2_Data: MessageFns = { encode(message: TestAllTypesProto2_Data, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.groupInt32 !== undefined && message.groupInt32 !== 0) { writer.uint32(1616).int32(message.groupInt32); @@ -5433,20 +5611,22 @@ export const TestAllTypesProto2_Data = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 202: + case 202: { if (tag !== 1616) { break; } message.groupInt32 = reader.int32(); continue; - case 203: + } + case 203: { if (tag !== 1624) { break; } message.groupUint32 = reader.uint32(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -5489,7 +5669,7 @@ function createBaseTestAllTypesProto2_MultiWordGroupField(): TestAllTypesProto2_ return { groupInt32: 0, groupUint32: 0 }; } -export const TestAllTypesProto2_MultiWordGroupField = { +export const TestAllTypesProto2_MultiWordGroupField: MessageFns = { encode(message: TestAllTypesProto2_MultiWordGroupField, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.groupInt32 !== undefined && message.groupInt32 !== 0) { writer.uint32(1640).int32(message.groupInt32); @@ -5507,20 +5687,22 @@ export const TestAllTypesProto2_MultiWordGroupField = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 205: + case 205: { if (tag !== 1640) { break; } message.groupInt32 = reader.int32(); continue; - case 206: + } + case 206: { if (tag !== 1648) { break; } message.groupUint32 = reader.uint32(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -5567,7 +5749,7 @@ function createBaseTestAllTypesProto2_MessageSetCorrect(): TestAllTypesProto2_Me return {}; } -export const TestAllTypesProto2_MessageSetCorrect = { +export const TestAllTypesProto2_MessageSetCorrect: MessageFns = { encode(_: TestAllTypesProto2_MessageSetCorrect, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { return writer; }, @@ -5614,7 +5796,9 @@ function createBaseTestAllTypesProto2_MessageSetCorrectExtension1(): TestAllType return { str: "" }; } -export const TestAllTypesProto2_MessageSetCorrectExtension1 = { +export const TestAllTypesProto2_MessageSetCorrectExtension1: MessageFns< + TestAllTypesProto2_MessageSetCorrectExtension1 +> = { encode( message: TestAllTypesProto2_MessageSetCorrectExtension1, writer: BinaryWriter = new BinaryWriter(), @@ -5632,13 +5816,14 @@ export const TestAllTypesProto2_MessageSetCorrectExtension1 = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 25: + case 25: { if (tag !== 202) { break; } message.str = reader.string(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -5678,7 +5863,9 @@ function createBaseTestAllTypesProto2_MessageSetCorrectExtension2(): TestAllType return { i: 0 }; } -export const TestAllTypesProto2_MessageSetCorrectExtension2 = { +export const TestAllTypesProto2_MessageSetCorrectExtension2: MessageFns< + TestAllTypesProto2_MessageSetCorrectExtension2 +> = { encode( message: TestAllTypesProto2_MessageSetCorrectExtension2, writer: BinaryWriter = new BinaryWriter(), @@ -5696,13 +5883,14 @@ export const TestAllTypesProto2_MessageSetCorrectExtension2 = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 9: + case 9: { if (tag !== 72) { break; } message.i = reader.int32(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -5742,7 +5930,7 @@ function createBaseForeignMessageProto2(): ForeignMessageProto2 { return { c: 0 }; } -export const ForeignMessageProto2 = { +export const ForeignMessageProto2: MessageFns = { encode(message: ForeignMessageProto2, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.c !== undefined && message.c !== 0) { writer.uint32(8).int32(message.c); @@ -5757,13 +5945,14 @@ export const ForeignMessageProto2 = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 8) { break; } message.c = reader.int32(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -5799,7 +5988,7 @@ function createBaseGroupField(): GroupField { return { groupInt32: 0, groupUint32: 0 }; } -export const GroupField = { +export const GroupField: MessageFns = { encode(message: GroupField, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.groupInt32 !== undefined && message.groupInt32 !== 0) { writer.uint32(976).int32(message.groupInt32); @@ -5817,20 +6006,22 @@ export const GroupField = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 122: + case 122: { if (tag !== 976) { break; } message.groupInt32 = reader.int32(); continue; - case 123: + } + case 123: { if (tag !== 984) { break; } message.groupUint32 = reader.uint32(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -5880,7 +6071,7 @@ function createBaseUnknownToTestAllTypes(): UnknownToTestAllTypes { }; } -export const UnknownToTestAllTypes = { +export const UnknownToTestAllTypes: MessageFns = { encode(message: UnknownToTestAllTypes, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.optionalInt32 !== undefined && message.optionalInt32 !== 0) { writer.uint32(8008).int32(message.optionalInt32); @@ -5912,42 +6103,47 @@ export const UnknownToTestAllTypes = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1001: + case 1001: { if (tag !== 8008) { break; } message.optionalInt32 = reader.int32(); continue; - case 1002: + } + case 1002: { if (tag !== 8018) { break; } message.optionalString = reader.string(); continue; - case 1003: + } + case 1003: { if (tag !== 8026) { break; } message.nestedMessage = ForeignMessageProto2.decode(reader, reader.uint32()); continue; - case 1004: + } + case 1004: { if (tag !== 8035) { break; } message.optionalgroup = UnknownToTestAllTypes_OptionalGroup.decode(reader); continue; - case 1006: + } + case 1006: { if (tag !== 8048) { break; } message.optionalBool = reader.bool(); continue; - case 1011: + } + case 1011: { if (tag === 8088) { message.repeatedInt32.push(reader.int32()); @@ -5964,6 +6160,7 @@ export const UnknownToTestAllTypes = { } break; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -6034,7 +6231,7 @@ function createBaseUnknownToTestAllTypes_OptionalGroup(): UnknownToTestAllTypes_ return { a: 0 }; } -export const UnknownToTestAllTypes_OptionalGroup = { +export const UnknownToTestAllTypes_OptionalGroup: MessageFns = { encode(message: UnknownToTestAllTypes_OptionalGroup, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.a !== undefined && message.a !== 0) { writer.uint32(8).int32(message.a); @@ -6049,13 +6246,14 @@ export const UnknownToTestAllTypes_OptionalGroup = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 8) { break; } message.a = reader.int32(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -6095,7 +6293,7 @@ function createBaseNullHypothesisProto2(): NullHypothesisProto2 { return {}; } -export const NullHypothesisProto2 = { +export const NullHypothesisProto2: MessageFns = { encode(_: NullHypothesisProto2, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { return writer; }, @@ -6138,7 +6336,7 @@ function createBaseEnumOnlyProto2(): EnumOnlyProto2 { return {}; } -export const EnumOnlyProto2 = { +export const EnumOnlyProto2: MessageFns = { encode(_: EnumOnlyProto2, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { return writer; }, @@ -6181,7 +6379,7 @@ function createBaseOneStringProto2(): OneStringProto2 { return { data: "" }; } -export const OneStringProto2 = { +export const OneStringProto2: MessageFns = { encode(message: OneStringProto2, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.data !== undefined && message.data !== "") { writer.uint32(10).string(message.data); @@ -6196,13 +6394,14 @@ export const OneStringProto2 = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 10) { break; } message.data = reader.string(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -6238,7 +6437,7 @@ function createBaseProtoWithKeywords(): ProtoWithKeywords { return { inline: 0, concept: "", requires: [] }; } -export const ProtoWithKeywords = { +export const ProtoWithKeywords: MessageFns = { encode(message: ProtoWithKeywords, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.inline !== undefined && message.inline !== 0) { writer.uint32(8).int32(message.inline); @@ -6259,27 +6458,30 @@ export const ProtoWithKeywords = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 8) { break; } message.inline = reader.int32(); continue; - case 2: + } + case 2: { if (tag !== 18) { break; } message.concept = reader.string(); continue; - case 3: + } + case 3: { if (tag !== 26) { break; } message.requires.push(reader.string()); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -6367,7 +6569,7 @@ function createBaseTestAllRequiredTypesProto2(): TestAllRequiredTypesProto2 { }; } -export const TestAllRequiredTypesProto2 = { +export const TestAllRequiredTypesProto2: MessageFns = { encode(message: TestAllRequiredTypesProto2, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.requiredInt32 !== 0) { writer.uint32(8).int32(message.requiredInt32); @@ -6496,279 +6698,318 @@ export const TestAllRequiredTypesProto2 = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 8) { break; } message.requiredInt32 = reader.int32(); continue; - case 2: + } + case 2: { if (tag !== 16) { break; } message.requiredInt64 = longToNumber(reader.int64()); continue; - case 3: + } + case 3: { if (tag !== 24) { break; } message.requiredUint32 = reader.uint32(); continue; - case 4: + } + case 4: { if (tag !== 32) { break; } message.requiredUint64 = longToNumber(reader.uint64()); continue; - case 5: + } + case 5: { if (tag !== 40) { break; } message.requiredSint32 = reader.sint32(); continue; - case 6: + } + case 6: { if (tag !== 48) { break; } message.requiredSint64 = longToNumber(reader.sint64()); continue; - case 7: + } + case 7: { if (tag !== 61) { break; } message.requiredFixed32 = reader.fixed32(); continue; - case 8: + } + case 8: { if (tag !== 65) { break; } message.requiredFixed64 = longToNumber(reader.fixed64()); continue; - case 9: + } + case 9: { if (tag !== 77) { break; } message.requiredSfixed32 = reader.sfixed32(); continue; - case 10: + } + case 10: { if (tag !== 81) { break; } message.requiredSfixed64 = longToNumber(reader.sfixed64()); continue; - case 11: + } + case 11: { if (tag !== 93) { break; } message.requiredFloat = reader.float(); continue; - case 12: + } + case 12: { if (tag !== 97) { break; } message.requiredDouble = reader.double(); continue; - case 13: + } + case 13: { if (tag !== 104) { break; } message.requiredBool = reader.bool(); continue; - case 14: + } + case 14: { if (tag !== 114) { break; } message.requiredString = reader.string(); continue; - case 15: + } + case 15: { if (tag !== 122) { break; } message.requiredBytes = reader.bytes(); continue; - case 18: + } + case 18: { if (tag !== 146) { break; } message.requiredNestedMessage = TestAllRequiredTypesProto2_NestedMessage.decode(reader, reader.uint32()); continue; - case 19: + } + case 19: { if (tag !== 154) { break; } message.requiredForeignMessage = ForeignMessageProto2.decode(reader, reader.uint32()); continue; - case 21: + } + case 21: { if (tag !== 168) { break; } message.requiredNestedEnum = reader.int32() as any; continue; - case 22: + } + case 22: { if (tag !== 176) { break; } message.requiredForeignEnum = reader.int32() as any; continue; - case 24: + } + case 24: { if (tag !== 194) { break; } message.requiredStringPiece = reader.string(); continue; - case 25: + } + case 25: { if (tag !== 202) { break; } message.requiredCord = reader.string(); continue; - case 27: + } + case 27: { if (tag !== 218) { break; } message.recursiveMessage = TestAllRequiredTypesProto2.decode(reader, reader.uint32()); continue; - case 28: + } + case 28: { if (tag !== 226) { break; } message.optionalRecursiveMessage = TestAllRequiredTypesProto2.decode(reader, reader.uint32()); continue; - case 201: + } + case 201: { if (tag !== 1611) { break; } message.data = TestAllRequiredTypesProto2_Data.decode(reader); continue; - case 241: + } + case 241: { if (tag !== 1928) { break; } message.defaultInt32 = reader.int32(); continue; - case 242: + } + case 242: { if (tag !== 1936) { break; } message.defaultInt64 = longToNumber(reader.int64()); continue; - case 243: + } + case 243: { if (tag !== 1944) { break; } message.defaultUint32 = reader.uint32(); continue; - case 244: + } + case 244: { if (tag !== 1952) { break; } message.defaultUint64 = longToNumber(reader.uint64()); continue; - case 245: + } + case 245: { if (tag !== 1960) { break; } message.defaultSint32 = reader.sint32(); continue; - case 246: + } + case 246: { if (tag !== 1968) { break; } message.defaultSint64 = longToNumber(reader.sint64()); continue; - case 247: + } + case 247: { if (tag !== 1981) { break; } message.defaultFixed32 = reader.fixed32(); continue; - case 248: + } + case 248: { if (tag !== 1985) { break; } message.defaultFixed64 = longToNumber(reader.fixed64()); continue; - case 249: + } + case 249: { if (tag !== 1997) { break; } message.defaultSfixed32 = reader.sfixed32(); continue; - case 250: + } + case 250: { if (tag !== 2001) { break; } message.defaultSfixed64 = longToNumber(reader.sfixed64()); continue; - case 251: + } + case 251: { if (tag !== 2013) { break; } message.defaultFloat = reader.float(); continue; - case 252: + } + case 252: { if (tag !== 2017) { break; } message.defaultDouble = reader.double(); continue; - case 253: + } + case 253: { if (tag !== 2024) { break; } message.defaultBool = reader.bool(); continue; - case 254: + } + case 254: { if (tag !== 2034) { break; } message.defaultString = reader.string(); continue; - case 255: + } + case 255: { if (tag !== 2042) { break; } message.defaultBytes = reader.bytes(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -7021,7 +7262,7 @@ function createBaseTestAllRequiredTypesProto2_NestedMessage(): TestAllRequiredTy return { a: 0, corecursive: undefined, optionalCorecursive: undefined }; } -export const TestAllRequiredTypesProto2_NestedMessage = { +export const TestAllRequiredTypesProto2_NestedMessage: MessageFns = { encode(message: TestAllRequiredTypesProto2_NestedMessage, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.a !== 0) { writer.uint32(8).int32(message.a); @@ -7042,27 +7283,30 @@ export const TestAllRequiredTypesProto2_NestedMessage = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 8) { break; } message.a = reader.int32(); continue; - case 2: + } + case 2: { if (tag !== 18) { break; } message.corecursive = TestAllRequiredTypesProto2.decode(reader, reader.uint32()); continue; - case 3: + } + case 3: { if (tag !== 26) { break; } message.optionalCorecursive = TestAllRequiredTypesProto2.decode(reader, reader.uint32()); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -7120,7 +7364,7 @@ function createBaseTestAllRequiredTypesProto2_Data(): TestAllRequiredTypesProto2 return { groupInt32: 0, groupUint32: 0 }; } -export const TestAllRequiredTypesProto2_Data = { +export const TestAllRequiredTypesProto2_Data: MessageFns = { encode(message: TestAllRequiredTypesProto2_Data, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.groupInt32 !== 0) { writer.uint32(1616).int32(message.groupInt32); @@ -7138,20 +7382,22 @@ export const TestAllRequiredTypesProto2_Data = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 202: + case 202: { if (tag !== 1616) { break; } message.groupInt32 = reader.int32(); continue; - case 203: + } + case 203: { if (tag !== 1624) { break; } message.groupUint32 = reader.uint32(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -7196,7 +7442,7 @@ function createBaseTestAllRequiredTypesProto2_MessageSetCorrect(): TestAllRequir return {}; } -export const TestAllRequiredTypesProto2_MessageSetCorrect = { +export const TestAllRequiredTypesProto2_MessageSetCorrect: MessageFns = { encode(_: TestAllRequiredTypesProto2_MessageSetCorrect, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { return writer; }, @@ -7243,7 +7489,9 @@ function createBaseTestAllRequiredTypesProto2_MessageSetCorrectExtension1(): Tes return { str: "" }; } -export const TestAllRequiredTypesProto2_MessageSetCorrectExtension1 = { +export const TestAllRequiredTypesProto2_MessageSetCorrectExtension1: MessageFns< + TestAllRequiredTypesProto2_MessageSetCorrectExtension1 +> = { encode( message: TestAllRequiredTypesProto2_MessageSetCorrectExtension1, writer: BinaryWriter = new BinaryWriter(), @@ -7261,13 +7509,14 @@ export const TestAllRequiredTypesProto2_MessageSetCorrectExtension1 = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 25: + case 25: { if (tag !== 202) { break; } message.str = reader.string(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -7307,7 +7556,9 @@ function createBaseTestAllRequiredTypesProto2_MessageSetCorrectExtension2(): Tes return { i: 0 }; } -export const TestAllRequiredTypesProto2_MessageSetCorrectExtension2 = { +export const TestAllRequiredTypesProto2_MessageSetCorrectExtension2: MessageFns< + TestAllRequiredTypesProto2_MessageSetCorrectExtension2 +> = { encode( message: TestAllRequiredTypesProto2_MessageSetCorrectExtension2, writer: BinaryWriter = new BinaryWriter(), @@ -7325,13 +7576,14 @@ export const TestAllRequiredTypesProto2_MessageSetCorrectExtension2 = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 9: + case 9: { if (tag !== 72) { break; } message.i = reader.int32(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -7423,3 +7675,12 @@ function isObject(value: any): boolean { function isSet(value: any): boolean { return value !== null && value !== undefined; } + +export interface MessageFns { + encode(message: T, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): T; + fromJSON(object: any): T; + toJSON(message: T): unknown; + create, I>>(base?: I): T; + fromPartial, I>>(object: I): T; +} diff --git a/impl/ts-proto/gen/google/protobuf/test_messages_proto3.ts b/impl/ts-proto/gen/google/protobuf/test_messages_proto3.ts index 329134c0..028252d3 100644 --- a/impl/ts-proto/gen/google/protobuf/test_messages_proto3.ts +++ b/impl/ts-proto/gen/google/protobuf/test_messages_proto3.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v2.0.3 +// protoc-gen-ts_proto v2.2.1 // protoc unknown // source: google/protobuf/test_messages_proto3.proto @@ -618,7 +618,7 @@ function createBaseTestAllTypesProto3(): TestAllTypesProto3 { }; } -export const TestAllTypesProto3 = { +export const TestAllTypesProto3: MessageFns = { encode(message: TestAllTypesProto3, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.optionalInt32 !== 0) { writer.uint32(8).int32(message.optionalInt32); @@ -1174,168 +1174,191 @@ export const TestAllTypesProto3 = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 8) { break; } message.optionalInt32 = reader.int32(); continue; - case 2: + } + case 2: { if (tag !== 16) { break; } message.optionalInt64 = longToNumber(reader.int64()); continue; - case 3: + } + case 3: { if (tag !== 24) { break; } message.optionalUint32 = reader.uint32(); continue; - case 4: + } + case 4: { if (tag !== 32) { break; } message.optionalUint64 = longToNumber(reader.uint64()); continue; - case 5: + } + case 5: { if (tag !== 40) { break; } message.optionalSint32 = reader.sint32(); continue; - case 6: + } + case 6: { if (tag !== 48) { break; } message.optionalSint64 = longToNumber(reader.sint64()); continue; - case 7: + } + case 7: { if (tag !== 61) { break; } message.optionalFixed32 = reader.fixed32(); continue; - case 8: + } + case 8: { if (tag !== 65) { break; } message.optionalFixed64 = longToNumber(reader.fixed64()); continue; - case 9: + } + case 9: { if (tag !== 77) { break; } message.optionalSfixed32 = reader.sfixed32(); continue; - case 10: + } + case 10: { if (tag !== 81) { break; } message.optionalSfixed64 = longToNumber(reader.sfixed64()); continue; - case 11: + } + case 11: { if (tag !== 93) { break; } message.optionalFloat = reader.float(); continue; - case 12: + } + case 12: { if (tag !== 97) { break; } message.optionalDouble = reader.double(); continue; - case 13: + } + case 13: { if (tag !== 104) { break; } message.optionalBool = reader.bool(); continue; - case 14: + } + case 14: { if (tag !== 114) { break; } message.optionalString = reader.string(); continue; - case 15: + } + case 15: { if (tag !== 122) { break; } message.optionalBytes = reader.bytes(); continue; - case 18: + } + case 18: { if (tag !== 146) { break; } message.optionalNestedMessage = TestAllTypesProto3_NestedMessage.decode(reader, reader.uint32()); continue; - case 19: + } + case 19: { if (tag !== 154) { break; } message.optionalForeignMessage = ForeignMessage.decode(reader, reader.uint32()); continue; - case 21: + } + case 21: { if (tag !== 168) { break; } message.optionalNestedEnum = reader.int32() as any; continue; - case 22: + } + case 22: { if (tag !== 176) { break; } message.optionalForeignEnum = reader.int32() as any; continue; - case 23: + } + case 23: { if (tag !== 184) { break; } message.optionalAliasedEnum = reader.int32() as any; continue; - case 24: + } + case 24: { if (tag !== 194) { break; } message.optionalStringPiece = reader.string(); continue; - case 25: + } + case 25: { if (tag !== 202) { break; } message.optionalCord = reader.string(); continue; - case 27: + } + case 27: { if (tag !== 218) { break; } message.recursiveMessage = TestAllTypesProto3.decode(reader, reader.uint32()); continue; - case 31: + } + case 31: { if (tag === 248) { message.repeatedInt32.push(reader.int32()); @@ -1352,7 +1375,8 @@ export const TestAllTypesProto3 = { } break; - case 32: + } + case 32: { if (tag === 256) { message.repeatedInt64.push(longToNumber(reader.int64())); @@ -1369,7 +1393,8 @@ export const TestAllTypesProto3 = { } break; - case 33: + } + case 33: { if (tag === 264) { message.repeatedUint32.push(reader.uint32()); @@ -1386,7 +1411,8 @@ export const TestAllTypesProto3 = { } break; - case 34: + } + case 34: { if (tag === 272) { message.repeatedUint64.push(longToNumber(reader.uint64())); @@ -1403,7 +1429,8 @@ export const TestAllTypesProto3 = { } break; - case 35: + } + case 35: { if (tag === 280) { message.repeatedSint32.push(reader.sint32()); @@ -1420,7 +1447,8 @@ export const TestAllTypesProto3 = { } break; - case 36: + } + case 36: { if (tag === 288) { message.repeatedSint64.push(longToNumber(reader.sint64())); @@ -1437,7 +1465,8 @@ export const TestAllTypesProto3 = { } break; - case 37: + } + case 37: { if (tag === 301) { message.repeatedFixed32.push(reader.fixed32()); @@ -1454,7 +1483,8 @@ export const TestAllTypesProto3 = { } break; - case 38: + } + case 38: { if (tag === 305) { message.repeatedFixed64.push(longToNumber(reader.fixed64())); @@ -1471,7 +1501,8 @@ export const TestAllTypesProto3 = { } break; - case 39: + } + case 39: { if (tag === 317) { message.repeatedSfixed32.push(reader.sfixed32()); @@ -1488,7 +1519,8 @@ export const TestAllTypesProto3 = { } break; - case 40: + } + case 40: { if (tag === 321) { message.repeatedSfixed64.push(longToNumber(reader.sfixed64())); @@ -1505,7 +1537,8 @@ export const TestAllTypesProto3 = { } break; - case 41: + } + case 41: { if (tag === 333) { message.repeatedFloat.push(reader.float()); @@ -1522,7 +1555,8 @@ export const TestAllTypesProto3 = { } break; - case 42: + } + case 42: { if (tag === 337) { message.repeatedDouble.push(reader.double()); @@ -1539,7 +1573,8 @@ export const TestAllTypesProto3 = { } break; - case 43: + } + case 43: { if (tag === 344) { message.repeatedBool.push(reader.bool()); @@ -1556,35 +1591,40 @@ export const TestAllTypesProto3 = { } break; - case 44: + } + case 44: { if (tag !== 354) { break; } message.repeatedString.push(reader.string()); continue; - case 45: + } + case 45: { if (tag !== 362) { break; } message.repeatedBytes.push(reader.bytes()); continue; - case 48: + } + case 48: { if (tag !== 386) { break; } message.repeatedNestedMessage.push(TestAllTypesProto3_NestedMessage.decode(reader, reader.uint32())); continue; - case 49: + } + case 49: { if (tag !== 394) { break; } message.repeatedForeignMessage.push(ForeignMessage.decode(reader, reader.uint32())); continue; - case 51: + } + case 51: { if (tag === 408) { message.repeatedNestedEnum.push(reader.int32() as any); @@ -1601,7 +1641,8 @@ export const TestAllTypesProto3 = { } break; - case 52: + } + case 52: { if (tag === 416) { message.repeatedForeignEnum.push(reader.int32() as any); @@ -1618,21 +1659,24 @@ export const TestAllTypesProto3 = { } break; - case 54: + } + case 54: { if (tag !== 434) { break; } message.repeatedStringPiece.push(reader.string()); continue; - case 55: + } + case 55: { if (tag !== 442) { break; } message.repeatedCord.push(reader.string()); continue; - case 75: + } + case 75: { if (tag === 600) { message.packedInt32.push(reader.int32()); @@ -1649,7 +1693,8 @@ export const TestAllTypesProto3 = { } break; - case 76: + } + case 76: { if (tag === 608) { message.packedInt64.push(longToNumber(reader.int64())); @@ -1666,7 +1711,8 @@ export const TestAllTypesProto3 = { } break; - case 77: + } + case 77: { if (tag === 616) { message.packedUint32.push(reader.uint32()); @@ -1683,7 +1729,8 @@ export const TestAllTypesProto3 = { } break; - case 78: + } + case 78: { if (tag === 624) { message.packedUint64.push(longToNumber(reader.uint64())); @@ -1700,7 +1747,8 @@ export const TestAllTypesProto3 = { } break; - case 79: + } + case 79: { if (tag === 632) { message.packedSint32.push(reader.sint32()); @@ -1717,7 +1765,8 @@ export const TestAllTypesProto3 = { } break; - case 80: + } + case 80: { if (tag === 640) { message.packedSint64.push(longToNumber(reader.sint64())); @@ -1734,7 +1783,8 @@ export const TestAllTypesProto3 = { } break; - case 81: + } + case 81: { if (tag === 653) { message.packedFixed32.push(reader.fixed32()); @@ -1751,7 +1801,8 @@ export const TestAllTypesProto3 = { } break; - case 82: + } + case 82: { if (tag === 657) { message.packedFixed64.push(longToNumber(reader.fixed64())); @@ -1768,7 +1819,8 @@ export const TestAllTypesProto3 = { } break; - case 83: + } + case 83: { if (tag === 669) { message.packedSfixed32.push(reader.sfixed32()); @@ -1785,7 +1837,8 @@ export const TestAllTypesProto3 = { } break; - case 84: + } + case 84: { if (tag === 673) { message.packedSfixed64.push(longToNumber(reader.sfixed64())); @@ -1802,7 +1855,8 @@ export const TestAllTypesProto3 = { } break; - case 85: + } + case 85: { if (tag === 685) { message.packedFloat.push(reader.float()); @@ -1819,7 +1873,8 @@ export const TestAllTypesProto3 = { } break; - case 86: + } + case 86: { if (tag === 689) { message.packedDouble.push(reader.double()); @@ -1836,7 +1891,8 @@ export const TestAllTypesProto3 = { } break; - case 87: + } + case 87: { if (tag === 696) { message.packedBool.push(reader.bool()); @@ -1853,7 +1909,8 @@ export const TestAllTypesProto3 = { } break; - case 88: + } + case 88: { if (tag === 704) { message.packedNestedEnum.push(reader.int32() as any); @@ -1870,7 +1927,8 @@ export const TestAllTypesProto3 = { } break; - case 89: + } + case 89: { if (tag === 712) { message.unpackedInt32.push(reader.int32()); @@ -1887,7 +1945,8 @@ export const TestAllTypesProto3 = { } break; - case 90: + } + case 90: { if (tag === 720) { message.unpackedInt64.push(longToNumber(reader.int64())); @@ -1904,7 +1963,8 @@ export const TestAllTypesProto3 = { } break; - case 91: + } + case 91: { if (tag === 728) { message.unpackedUint32.push(reader.uint32()); @@ -1921,7 +1981,8 @@ export const TestAllTypesProto3 = { } break; - case 92: + } + case 92: { if (tag === 736) { message.unpackedUint64.push(longToNumber(reader.uint64())); @@ -1938,7 +1999,8 @@ export const TestAllTypesProto3 = { } break; - case 93: + } + case 93: { if (tag === 744) { message.unpackedSint32.push(reader.sint32()); @@ -1955,7 +2017,8 @@ export const TestAllTypesProto3 = { } break; - case 94: + } + case 94: { if (tag === 752) { message.unpackedSint64.push(longToNumber(reader.sint64())); @@ -1972,7 +2035,8 @@ export const TestAllTypesProto3 = { } break; - case 95: + } + case 95: { if (tag === 765) { message.unpackedFixed32.push(reader.fixed32()); @@ -1989,7 +2053,8 @@ export const TestAllTypesProto3 = { } break; - case 96: + } + case 96: { if (tag === 769) { message.unpackedFixed64.push(longToNumber(reader.fixed64())); @@ -2006,7 +2071,8 @@ export const TestAllTypesProto3 = { } break; - case 97: + } + case 97: { if (tag === 781) { message.unpackedSfixed32.push(reader.sfixed32()); @@ -2023,7 +2089,8 @@ export const TestAllTypesProto3 = { } break; - case 98: + } + case 98: { if (tag === 785) { message.unpackedSfixed64.push(longToNumber(reader.sfixed64())); @@ -2040,7 +2107,8 @@ export const TestAllTypesProto3 = { } break; - case 99: + } + case 99: { if (tag === 797) { message.unpackedFloat.push(reader.float()); @@ -2057,7 +2125,8 @@ export const TestAllTypesProto3 = { } break; - case 100: + } + case 100: { if (tag === 801) { message.unpackedDouble.push(reader.double()); @@ -2074,7 +2143,8 @@ export const TestAllTypesProto3 = { } break; - case 101: + } + case 101: { if (tag === 808) { message.unpackedBool.push(reader.bool()); @@ -2091,7 +2161,8 @@ export const TestAllTypesProto3 = { } break; - case 102: + } + case 102: { if (tag === 816) { message.unpackedNestedEnum.push(reader.int32() as any); @@ -2108,7 +2179,8 @@ export const TestAllTypesProto3 = { } break; - case 56: + } + case 56: { if (tag !== 450) { break; } @@ -2118,7 +2190,8 @@ export const TestAllTypesProto3 = { message.mapInt32Int32.set(entry56.key, entry56.value); } continue; - case 57: + } + case 57: { if (tag !== 458) { break; } @@ -2128,7 +2201,8 @@ export const TestAllTypesProto3 = { message.mapInt64Int64.set(entry57.key, entry57.value); } continue; - case 58: + } + case 58: { if (tag !== 466) { break; } @@ -2138,7 +2212,8 @@ export const TestAllTypesProto3 = { message.mapUint32Uint32.set(entry58.key, entry58.value); } continue; - case 59: + } + case 59: { if (tag !== 474) { break; } @@ -2148,7 +2223,8 @@ export const TestAllTypesProto3 = { message.mapUint64Uint64.set(entry59.key, entry59.value); } continue; - case 60: + } + case 60: { if (tag !== 482) { break; } @@ -2158,7 +2234,8 @@ export const TestAllTypesProto3 = { message.mapSint32Sint32.set(entry60.key, entry60.value); } continue; - case 61: + } + case 61: { if (tag !== 490) { break; } @@ -2168,7 +2245,8 @@ export const TestAllTypesProto3 = { message.mapSint64Sint64.set(entry61.key, entry61.value); } continue; - case 62: + } + case 62: { if (tag !== 498) { break; } @@ -2178,7 +2256,8 @@ export const TestAllTypesProto3 = { message.mapFixed32Fixed32.set(entry62.key, entry62.value); } continue; - case 63: + } + case 63: { if (tag !== 506) { break; } @@ -2188,7 +2267,8 @@ export const TestAllTypesProto3 = { message.mapFixed64Fixed64.set(entry63.key, entry63.value); } continue; - case 64: + } + case 64: { if (tag !== 514) { break; } @@ -2198,7 +2278,8 @@ export const TestAllTypesProto3 = { message.mapSfixed32Sfixed32.set(entry64.key, entry64.value); } continue; - case 65: + } + case 65: { if (tag !== 522) { break; } @@ -2208,7 +2289,8 @@ export const TestAllTypesProto3 = { message.mapSfixed64Sfixed64.set(entry65.key, entry65.value); } continue; - case 66: + } + case 66: { if (tag !== 530) { break; } @@ -2218,7 +2300,8 @@ export const TestAllTypesProto3 = { message.mapInt32Float.set(entry66.key, entry66.value); } continue; - case 67: + } + case 67: { if (tag !== 538) { break; } @@ -2228,7 +2311,8 @@ export const TestAllTypesProto3 = { message.mapInt32Double.set(entry67.key, entry67.value); } continue; - case 68: + } + case 68: { if (tag !== 546) { break; } @@ -2238,7 +2322,8 @@ export const TestAllTypesProto3 = { message.mapBoolBool.set(entry68.key, entry68.value); } continue; - case 69: + } + case 69: { if (tag !== 554) { break; } @@ -2248,7 +2333,8 @@ export const TestAllTypesProto3 = { message.mapStringString.set(entry69.key, entry69.value); } continue; - case 70: + } + case 70: { if (tag !== 562) { break; } @@ -2258,7 +2344,8 @@ export const TestAllTypesProto3 = { message.mapStringBytes.set(entry70.key, entry70.value); } continue; - case 71: + } + case 71: { if (tag !== 570) { break; } @@ -2268,7 +2355,8 @@ export const TestAllTypesProto3 = { message.mapStringNestedMessage.set(entry71.key, entry71.value); } continue; - case 72: + } + case 72: { if (tag !== 578) { break; } @@ -2278,7 +2366,8 @@ export const TestAllTypesProto3 = { message.mapStringForeignMessage.set(entry72.key, entry72.value); } continue; - case 73: + } + case 73: { if (tag !== 586) { break; } @@ -2288,7 +2377,8 @@ export const TestAllTypesProto3 = { message.mapStringNestedEnum.set(entry73.key, entry73.value); } continue; - case 74: + } + case 74: { if (tag !== 594) { break; } @@ -2298,14 +2388,16 @@ export const TestAllTypesProto3 = { message.mapStringForeignEnum.set(entry74.key, entry74.value); } continue; - case 111: + } + case 111: { if (tag !== 888) { break; } message.oneofField = { $case: "oneofUint32", oneofUint32: reader.uint32() }; continue; - case 112: + } + case 112: { if (tag !== 898) { break; } @@ -2315,412 +2407,471 @@ export const TestAllTypesProto3 = { oneofNestedMessage: TestAllTypesProto3_NestedMessage.decode(reader, reader.uint32()), }; continue; - case 113: + } + case 113: { if (tag !== 906) { break; } message.oneofField = { $case: "oneofString", oneofString: reader.string() }; continue; - case 114: + } + case 114: { if (tag !== 914) { break; } message.oneofField = { $case: "oneofBytes", oneofBytes: reader.bytes() }; continue; - case 115: + } + case 115: { if (tag !== 920) { break; } message.oneofField = { $case: "oneofBool", oneofBool: reader.bool() }; continue; - case 116: + } + case 116: { if (tag !== 928) { break; } message.oneofField = { $case: "oneofUint64", oneofUint64: longToNumber(reader.uint64()) }; continue; - case 117: + } + case 117: { if (tag !== 941) { break; } message.oneofField = { $case: "oneofFloat", oneofFloat: reader.float() }; continue; - case 118: + } + case 118: { if (tag !== 945) { break; } message.oneofField = { $case: "oneofDouble", oneofDouble: reader.double() }; continue; - case 119: + } + case 119: { if (tag !== 952) { break; } message.oneofField = { $case: "oneofEnum", oneofEnum: reader.int32() as any }; continue; - case 120: + } + case 120: { if (tag !== 960) { break; } message.oneofField = { $case: "oneofNullValue", oneofNullValue: reader.int32() as any }; continue; - case 201: + } + case 201: { if (tag !== 1610) { break; } message.optionalBoolWrapper = BoolValue.decode(reader, reader.uint32()).value; continue; - case 202: + } + case 202: { if (tag !== 1618) { break; } message.optionalInt32Wrapper = Int32Value.decode(reader, reader.uint32()).value; continue; - case 203: + } + case 203: { if (tag !== 1626) { break; } message.optionalInt64Wrapper = Int64Value.decode(reader, reader.uint32()).value; continue; - case 204: + } + case 204: { if (tag !== 1634) { break; } message.optionalUint32Wrapper = UInt32Value.decode(reader, reader.uint32()).value; continue; - case 205: + } + case 205: { if (tag !== 1642) { break; } message.optionalUint64Wrapper = UInt64Value.decode(reader, reader.uint32()).value; continue; - case 206: + } + case 206: { if (tag !== 1650) { break; } message.optionalFloatWrapper = FloatValue.decode(reader, reader.uint32()).value; continue; - case 207: + } + case 207: { if (tag !== 1658) { break; } message.optionalDoubleWrapper = DoubleValue.decode(reader, reader.uint32()).value; continue; - case 208: + } + case 208: { if (tag !== 1666) { break; } message.optionalStringWrapper = StringValue.decode(reader, reader.uint32()).value; continue; - case 209: + } + case 209: { if (tag !== 1674) { break; } message.optionalBytesWrapper = BytesValue.decode(reader, reader.uint32()).value; continue; - case 211: + } + case 211: { if (tag !== 1690) { break; } message.repeatedBoolWrapper.push(BoolValue.decode(reader, reader.uint32()).value); continue; - case 212: + } + case 212: { if (tag !== 1698) { break; } message.repeatedInt32Wrapper.push(Int32Value.decode(reader, reader.uint32()).value); continue; - case 213: + } + case 213: { if (tag !== 1706) { break; } message.repeatedInt64Wrapper.push(Int64Value.decode(reader, reader.uint32()).value); continue; - case 214: + } + case 214: { if (tag !== 1714) { break; } message.repeatedUint32Wrapper.push(UInt32Value.decode(reader, reader.uint32()).value); continue; - case 215: + } + case 215: { if (tag !== 1722) { break; } message.repeatedUint64Wrapper.push(UInt64Value.decode(reader, reader.uint32()).value); continue; - case 216: + } + case 216: { if (tag !== 1730) { break; } message.repeatedFloatWrapper.push(FloatValue.decode(reader, reader.uint32()).value); continue; - case 217: + } + case 217: { if (tag !== 1738) { break; } message.repeatedDoubleWrapper.push(DoubleValue.decode(reader, reader.uint32()).value); continue; - case 218: + } + case 218: { if (tag !== 1746) { break; } message.repeatedStringWrapper.push(StringValue.decode(reader, reader.uint32()).value); continue; - case 219: + } + case 219: { if (tag !== 1754) { break; } message.repeatedBytesWrapper.push(BytesValue.decode(reader, reader.uint32()).value); continue; - case 301: + } + case 301: { if (tag !== 2410) { break; } message.optionalDuration = Duration.decode(reader, reader.uint32()); continue; - case 302: + } + case 302: { if (tag !== 2418) { break; } message.optionalTimestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32())); continue; - case 303: + } + case 303: { if (tag !== 2426) { break; } message.optionalFieldMask = FieldMask.unwrap(FieldMask.decode(reader, reader.uint32())); continue; - case 304: + } + case 304: { if (tag !== 2434) { break; } message.optionalStruct = Struct.unwrap(Struct.decode(reader, reader.uint32())); continue; - case 305: + } + case 305: { if (tag !== 2442) { break; } message.optionalAny = Any.decode(reader, reader.uint32()); continue; - case 306: + } + case 306: { if (tag !== 2450) { break; } message.optionalValue = Value.unwrap(Value.decode(reader, reader.uint32())); continue; - case 307: + } + case 307: { if (tag !== 2456) { break; } message.optionalNullValue = reader.int32() as any; continue; - case 311: + } + case 311: { if (tag !== 2490) { break; } message.repeatedDuration.push(Duration.decode(reader, reader.uint32())); continue; - case 312: + } + case 312: { if (tag !== 2498) { break; } message.repeatedTimestamp.push(fromTimestamp(Timestamp.decode(reader, reader.uint32()))); continue; - case 313: + } + case 313: { if (tag !== 2506) { break; } message.repeatedFieldmask.push(FieldMask.unwrap(FieldMask.decode(reader, reader.uint32()))); continue; - case 324: + } + case 324: { if (tag !== 2594) { break; } message.repeatedStruct.push(Struct.unwrap(Struct.decode(reader, reader.uint32()))); continue; - case 315: + } + case 315: { if (tag !== 2522) { break; } message.repeatedAny.push(Any.decode(reader, reader.uint32())); continue; - case 316: + } + case 316: { if (tag !== 2530) { break; } message.repeatedValue.push(Value.unwrap(Value.decode(reader, reader.uint32()))); continue; - case 317: + } + case 317: { if (tag !== 2538) { break; } message.repeatedListValue.push(ListValue.unwrap(ListValue.decode(reader, reader.uint32()))); continue; - case 401: + } + case 401: { if (tag !== 3208) { break; } message.fieldname1 = reader.int32(); continue; - case 402: + } + case 402: { if (tag !== 3216) { break; } message.fieldName2 = reader.int32(); continue; - case 403: + } + case 403: { if (tag !== 3224) { break; } message.FieldName3 = reader.int32(); continue; - case 404: + } + case 404: { if (tag !== 3232) { break; } message.fieldName4 = reader.int32(); continue; - case 405: + } + case 405: { if (tag !== 3240) { break; } message.field0name5 = reader.int32(); continue; - case 406: + } + case 406: { if (tag !== 3248) { break; } message.field0Name6 = reader.int32(); continue; - case 407: + } + case 407: { if (tag !== 3256) { break; } message.fieldName7 = reader.int32(); continue; - case 408: + } + case 408: { if (tag !== 3264) { break; } message.FieldName8 = reader.int32(); continue; - case 409: + } + case 409: { if (tag !== 3272) { break; } message.fieldName9 = reader.int32(); continue; - case 410: + } + case 410: { if (tag !== 3280) { break; } message.FieldName10 = reader.int32(); continue; - case 411: + } + case 411: { if (tag !== 3288) { break; } message.fieldName11 = reader.int32(); continue; - case 412: + } + case 412: { if (tag !== 3296) { break; } message.FIELDName12 = reader.int32(); continue; - case 413: + } + case 413: { if (tag !== 3304) { break; } message.FieldName13 = reader.int32(); continue; - case 414: + } + case 414: { if (tag !== 3312) { break; } message.FieldName14 = reader.int32(); continue; - case 415: + } + case 415: { if (tag !== 3320) { break; } message.fieldName15 = reader.int32(); continue; - case 416: + } + case 416: { if (tag !== 3328) { break; } message.fieldName16 = reader.int32(); continue; - case 417: + } + case 417: { if (tag !== 3336) { break; } message.fieldName17 = reader.int32(); continue; - case 418: + } + case 418: { if (tag !== 3344) { break; } message.FieldName18 = reader.int32(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -4050,7 +4201,7 @@ function createBaseTestAllTypesProto3_NestedMessage(): TestAllTypesProto3_Nested return { a: 0, corecursive: undefined }; } -export const TestAllTypesProto3_NestedMessage = { +export const TestAllTypesProto3_NestedMessage: MessageFns = { encode(message: TestAllTypesProto3_NestedMessage, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.a !== 0) { writer.uint32(8).int32(message.a); @@ -4068,20 +4219,22 @@ export const TestAllTypesProto3_NestedMessage = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 8) { break; } message.a = reader.int32(); continue; - case 2: + } + case 2: { if (tag !== 18) { break; } message.corecursive = TestAllTypesProto3.decode(reader, reader.uint32()); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -4130,7 +4283,7 @@ function createBaseTestAllTypesProto3_MapInt32Int32Entry(): TestAllTypesProto3_M return { key: 0, value: 0 }; } -export const TestAllTypesProto3_MapInt32Int32Entry = { +export const TestAllTypesProto3_MapInt32Int32Entry: MessageFns = { encode(message: TestAllTypesProto3_MapInt32Int32Entry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.key !== 0) { writer.uint32(8).int32(message.key); @@ -4148,20 +4301,22 @@ export const TestAllTypesProto3_MapInt32Int32Entry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 8) { break; } message.key = reader.int32(); continue; - case 2: + } + case 2: { if (tag !== 16) { break; } message.value = reader.int32(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -4208,7 +4363,7 @@ function createBaseTestAllTypesProto3_MapInt64Int64Entry(): TestAllTypesProto3_M return { key: 0, value: 0 }; } -export const TestAllTypesProto3_MapInt64Int64Entry = { +export const TestAllTypesProto3_MapInt64Int64Entry: MessageFns = { encode(message: TestAllTypesProto3_MapInt64Int64Entry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.key !== 0) { writer.uint32(8).int64(message.key); @@ -4226,20 +4381,22 @@ export const TestAllTypesProto3_MapInt64Int64Entry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 8) { break; } message.key = longToNumber(reader.int64()); continue; - case 2: + } + case 2: { if (tag !== 16) { break; } message.value = longToNumber(reader.int64()); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -4286,7 +4443,7 @@ function createBaseTestAllTypesProto3_MapUint32Uint32Entry(): TestAllTypesProto3 return { key: 0, value: 0 }; } -export const TestAllTypesProto3_MapUint32Uint32Entry = { +export const TestAllTypesProto3_MapUint32Uint32Entry: MessageFns = { encode(message: TestAllTypesProto3_MapUint32Uint32Entry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.key !== 0) { writer.uint32(8).uint32(message.key); @@ -4304,20 +4461,22 @@ export const TestAllTypesProto3_MapUint32Uint32Entry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 8) { break; } message.key = reader.uint32(); continue; - case 2: + } + case 2: { if (tag !== 16) { break; } message.value = reader.uint32(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -4364,7 +4523,7 @@ function createBaseTestAllTypesProto3_MapUint64Uint64Entry(): TestAllTypesProto3 return { key: 0, value: 0 }; } -export const TestAllTypesProto3_MapUint64Uint64Entry = { +export const TestAllTypesProto3_MapUint64Uint64Entry: MessageFns = { encode(message: TestAllTypesProto3_MapUint64Uint64Entry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.key !== 0) { writer.uint32(8).uint64(message.key); @@ -4382,20 +4541,22 @@ export const TestAllTypesProto3_MapUint64Uint64Entry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 8) { break; } message.key = longToNumber(reader.uint64()); continue; - case 2: + } + case 2: { if (tag !== 16) { break; } message.value = longToNumber(reader.uint64()); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -4442,7 +4603,7 @@ function createBaseTestAllTypesProto3_MapSint32Sint32Entry(): TestAllTypesProto3 return { key: 0, value: 0 }; } -export const TestAllTypesProto3_MapSint32Sint32Entry = { +export const TestAllTypesProto3_MapSint32Sint32Entry: MessageFns = { encode(message: TestAllTypesProto3_MapSint32Sint32Entry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.key !== 0) { writer.uint32(8).sint32(message.key); @@ -4460,20 +4621,22 @@ export const TestAllTypesProto3_MapSint32Sint32Entry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 8) { break; } message.key = reader.sint32(); continue; - case 2: + } + case 2: { if (tag !== 16) { break; } message.value = reader.sint32(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -4520,7 +4683,7 @@ function createBaseTestAllTypesProto3_MapSint64Sint64Entry(): TestAllTypesProto3 return { key: 0, value: 0 }; } -export const TestAllTypesProto3_MapSint64Sint64Entry = { +export const TestAllTypesProto3_MapSint64Sint64Entry: MessageFns = { encode(message: TestAllTypesProto3_MapSint64Sint64Entry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.key !== 0) { writer.uint32(8).sint64(message.key); @@ -4538,20 +4701,22 @@ export const TestAllTypesProto3_MapSint64Sint64Entry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 8) { break; } message.key = longToNumber(reader.sint64()); continue; - case 2: + } + case 2: { if (tag !== 16) { break; } message.value = longToNumber(reader.sint64()); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -4598,7 +4763,7 @@ function createBaseTestAllTypesProto3_MapFixed32Fixed32Entry(): TestAllTypesProt return { key: 0, value: 0 }; } -export const TestAllTypesProto3_MapFixed32Fixed32Entry = { +export const TestAllTypesProto3_MapFixed32Fixed32Entry: MessageFns = { encode(message: TestAllTypesProto3_MapFixed32Fixed32Entry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.key !== 0) { writer.uint32(13).fixed32(message.key); @@ -4616,20 +4781,22 @@ export const TestAllTypesProto3_MapFixed32Fixed32Entry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 13) { break; } message.key = reader.fixed32(); continue; - case 2: + } + case 2: { if (tag !== 21) { break; } message.value = reader.fixed32(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -4676,7 +4843,7 @@ function createBaseTestAllTypesProto3_MapFixed64Fixed64Entry(): TestAllTypesProt return { key: 0, value: 0 }; } -export const TestAllTypesProto3_MapFixed64Fixed64Entry = { +export const TestAllTypesProto3_MapFixed64Fixed64Entry: MessageFns = { encode(message: TestAllTypesProto3_MapFixed64Fixed64Entry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.key !== 0) { writer.uint32(9).fixed64(message.key); @@ -4694,20 +4861,22 @@ export const TestAllTypesProto3_MapFixed64Fixed64Entry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 9) { break; } message.key = longToNumber(reader.fixed64()); continue; - case 2: + } + case 2: { if (tag !== 17) { break; } message.value = longToNumber(reader.fixed64()); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -4754,7 +4923,7 @@ function createBaseTestAllTypesProto3_MapSfixed32Sfixed32Entry(): TestAllTypesPr return { key: 0, value: 0 }; } -export const TestAllTypesProto3_MapSfixed32Sfixed32Entry = { +export const TestAllTypesProto3_MapSfixed32Sfixed32Entry: MessageFns = { encode( message: TestAllTypesProto3_MapSfixed32Sfixed32Entry, writer: BinaryWriter = new BinaryWriter(), @@ -4775,20 +4944,22 @@ export const TestAllTypesProto3_MapSfixed32Sfixed32Entry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 13) { break; } message.key = reader.sfixed32(); continue; - case 2: + } + case 2: { if (tag !== 21) { break; } message.value = reader.sfixed32(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -4835,7 +5006,7 @@ function createBaseTestAllTypesProto3_MapSfixed64Sfixed64Entry(): TestAllTypesPr return { key: 0, value: 0 }; } -export const TestAllTypesProto3_MapSfixed64Sfixed64Entry = { +export const TestAllTypesProto3_MapSfixed64Sfixed64Entry: MessageFns = { encode( message: TestAllTypesProto3_MapSfixed64Sfixed64Entry, writer: BinaryWriter = new BinaryWriter(), @@ -4856,20 +5027,22 @@ export const TestAllTypesProto3_MapSfixed64Sfixed64Entry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 9) { break; } message.key = longToNumber(reader.sfixed64()); continue; - case 2: + } + case 2: { if (tag !== 17) { break; } message.value = longToNumber(reader.sfixed64()); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -4916,7 +5089,7 @@ function createBaseTestAllTypesProto3_MapInt32FloatEntry(): TestAllTypesProto3_M return { key: 0, value: 0 }; } -export const TestAllTypesProto3_MapInt32FloatEntry = { +export const TestAllTypesProto3_MapInt32FloatEntry: MessageFns = { encode(message: TestAllTypesProto3_MapInt32FloatEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.key !== 0) { writer.uint32(8).int32(message.key); @@ -4934,20 +5107,22 @@ export const TestAllTypesProto3_MapInt32FloatEntry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 8) { break; } message.key = reader.int32(); continue; - case 2: + } + case 2: { if (tag !== 21) { break; } message.value = reader.float(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -4994,7 +5169,7 @@ function createBaseTestAllTypesProto3_MapInt32DoubleEntry(): TestAllTypesProto3_ return { key: 0, value: 0 }; } -export const TestAllTypesProto3_MapInt32DoubleEntry = { +export const TestAllTypesProto3_MapInt32DoubleEntry: MessageFns = { encode(message: TestAllTypesProto3_MapInt32DoubleEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.key !== 0) { writer.uint32(8).int32(message.key); @@ -5012,20 +5187,22 @@ export const TestAllTypesProto3_MapInt32DoubleEntry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 8) { break; } message.key = reader.int32(); continue; - case 2: + } + case 2: { if (tag !== 17) { break; } message.value = reader.double(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -5072,7 +5249,7 @@ function createBaseTestAllTypesProto3_MapBoolBoolEntry(): TestAllTypesProto3_Map return { key: false, value: false }; } -export const TestAllTypesProto3_MapBoolBoolEntry = { +export const TestAllTypesProto3_MapBoolBoolEntry: MessageFns = { encode(message: TestAllTypesProto3_MapBoolBoolEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.key !== false) { writer.uint32(8).bool(message.key); @@ -5090,20 +5267,22 @@ export const TestAllTypesProto3_MapBoolBoolEntry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 8) { break; } message.key = reader.bool(); continue; - case 2: + } + case 2: { if (tag !== 16) { break; } message.value = reader.bool(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -5150,7 +5329,7 @@ function createBaseTestAllTypesProto3_MapStringStringEntry(): TestAllTypesProto3 return { key: "", value: "" }; } -export const TestAllTypesProto3_MapStringStringEntry = { +export const TestAllTypesProto3_MapStringStringEntry: MessageFns = { encode(message: TestAllTypesProto3_MapStringStringEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.key !== "") { writer.uint32(10).string(message.key); @@ -5168,20 +5347,22 @@ export const TestAllTypesProto3_MapStringStringEntry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 10) { break; } message.key = reader.string(); continue; - case 2: + } + case 2: { if (tag !== 18) { break; } message.value = reader.string(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -5228,7 +5409,7 @@ function createBaseTestAllTypesProto3_MapStringBytesEntry(): TestAllTypesProto3_ return { key: "", value: new Uint8Array(0) }; } -export const TestAllTypesProto3_MapStringBytesEntry = { +export const TestAllTypesProto3_MapStringBytesEntry: MessageFns = { encode(message: TestAllTypesProto3_MapStringBytesEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.key !== "") { writer.uint32(10).string(message.key); @@ -5246,20 +5427,22 @@ export const TestAllTypesProto3_MapStringBytesEntry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 10) { break; } message.key = reader.string(); continue; - case 2: + } + case 2: { if (tag !== 18) { break; } message.value = reader.bytes(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -5306,7 +5489,9 @@ function createBaseTestAllTypesProto3_MapStringNestedMessageEntry(): TestAllType return { key: "", value: undefined }; } -export const TestAllTypesProto3_MapStringNestedMessageEntry = { +export const TestAllTypesProto3_MapStringNestedMessageEntry: MessageFns< + TestAllTypesProto3_MapStringNestedMessageEntry +> = { encode( message: TestAllTypesProto3_MapStringNestedMessageEntry, writer: BinaryWriter = new BinaryWriter(), @@ -5327,20 +5512,22 @@ export const TestAllTypesProto3_MapStringNestedMessageEntry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 10) { break; } message.key = reader.string(); continue; - case 2: + } + case 2: { if (tag !== 18) { break; } message.value = TestAllTypesProto3_NestedMessage.decode(reader, reader.uint32()); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -5389,7 +5576,9 @@ function createBaseTestAllTypesProto3_MapStringForeignMessageEntry(): TestAllTyp return { key: "", value: undefined }; } -export const TestAllTypesProto3_MapStringForeignMessageEntry = { +export const TestAllTypesProto3_MapStringForeignMessageEntry: MessageFns< + TestAllTypesProto3_MapStringForeignMessageEntry +> = { encode( message: TestAllTypesProto3_MapStringForeignMessageEntry, writer: BinaryWriter = new BinaryWriter(), @@ -5410,20 +5599,22 @@ export const TestAllTypesProto3_MapStringForeignMessageEntry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 10) { break; } message.key = reader.string(); continue; - case 2: + } + case 2: { if (tag !== 18) { break; } message.value = ForeignMessage.decode(reader, reader.uint32()); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -5472,7 +5663,7 @@ function createBaseTestAllTypesProto3_MapStringNestedEnumEntry(): TestAllTypesPr return { key: "", value: 0 }; } -export const TestAllTypesProto3_MapStringNestedEnumEntry = { +export const TestAllTypesProto3_MapStringNestedEnumEntry: MessageFns = { encode( message: TestAllTypesProto3_MapStringNestedEnumEntry, writer: BinaryWriter = new BinaryWriter(), @@ -5493,20 +5684,22 @@ export const TestAllTypesProto3_MapStringNestedEnumEntry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 10) { break; } message.key = reader.string(); continue; - case 2: + } + case 2: { if (tag !== 16) { break; } message.value = reader.int32() as any; continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -5553,7 +5746,7 @@ function createBaseTestAllTypesProto3_MapStringForeignEnumEntry(): TestAllTypesP return { key: "", value: 0 }; } -export const TestAllTypesProto3_MapStringForeignEnumEntry = { +export const TestAllTypesProto3_MapStringForeignEnumEntry: MessageFns = { encode( message: TestAllTypesProto3_MapStringForeignEnumEntry, writer: BinaryWriter = new BinaryWriter(), @@ -5574,20 +5767,22 @@ export const TestAllTypesProto3_MapStringForeignEnumEntry = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 10) { break; } message.key = reader.string(); continue; - case 2: + } + case 2: { if (tag !== 16) { break; } message.value = reader.int32() as any; continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -5634,7 +5829,7 @@ function createBaseForeignMessage(): ForeignMessage { return { c: 0 }; } -export const ForeignMessage = { +export const ForeignMessage: MessageFns = { encode(message: ForeignMessage, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.c !== 0) { writer.uint32(8).int32(message.c); @@ -5649,13 +5844,14 @@ export const ForeignMessage = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 8) { break; } message.c = reader.int32(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -5691,7 +5887,7 @@ function createBaseNullHypothesisProto3(): NullHypothesisProto3 { return {}; } -export const NullHypothesisProto3 = { +export const NullHypothesisProto3: MessageFns = { encode(_: NullHypothesisProto3, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { return writer; }, @@ -5734,7 +5930,7 @@ function createBaseEnumOnlyProto3(): EnumOnlyProto3 { return {}; } -export const EnumOnlyProto3 = { +export const EnumOnlyProto3: MessageFns = { encode(_: EnumOnlyProto3, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { return writer; }, @@ -5851,3 +6047,12 @@ function isObject(value: any): boolean { function isSet(value: any): boolean { return value !== null && value !== undefined; } + +export interface MessageFns { + encode(message: T, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): T; + fromJSON(object: any): T; + toJSON(message: T): unknown; + create, I>>(base?: I): T; + fromPartial, I>>(object: I): T; +} diff --git a/impl/ts-proto/gen/google/protobuf/timestamp.ts b/impl/ts-proto/gen/google/protobuf/timestamp.ts index 9e6b566c..b781a128 100644 --- a/impl/ts-proto/gen/google/protobuf/timestamp.ts +++ b/impl/ts-proto/gen/google/protobuf/timestamp.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v2.0.3 +// protoc-gen-ts_proto v2.2.1 // protoc unknown // source: google/protobuf/timestamp.proto @@ -120,7 +120,7 @@ function createBaseTimestamp(): Timestamp { return { seconds: 0, nanos: 0 }; } -export const Timestamp = { +export const Timestamp: MessageFns = { encode(message: Timestamp, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.seconds !== 0) { writer.uint32(8).int64(message.seconds); @@ -138,20 +138,22 @@ export const Timestamp = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 8) { break; } message.seconds = longToNumber(reader.int64()); continue; - case 2: + } + case 2: { if (tag !== 16) { break; } message.nanos = reader.int32(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -217,3 +219,12 @@ function longToNumber(int64: { toString(): string }): number { function isSet(value: any): boolean { return value !== null && value !== undefined; } + +export interface MessageFns { + encode(message: T, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): T; + fromJSON(object: any): T; + toJSON(message: T): unknown; + create, I>>(base?: I): T; + fromPartial, I>>(object: I): T; +} diff --git a/impl/ts-proto/gen/google/protobuf/wrappers.ts b/impl/ts-proto/gen/google/protobuf/wrappers.ts index 8ce119bf..835901c8 100644 --- a/impl/ts-proto/gen/google/protobuf/wrappers.ts +++ b/impl/ts-proto/gen/google/protobuf/wrappers.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v2.0.3 +// protoc-gen-ts_proto v2.2.1 // protoc unknown // source: google/protobuf/wrappers.proto @@ -103,7 +103,7 @@ function createBaseDoubleValue(): DoubleValue { return { value: 0 }; } -export const DoubleValue = { +export const DoubleValue: MessageFns = { encode(message: DoubleValue, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.value !== 0) { writer.uint32(9).double(message.value); @@ -118,13 +118,14 @@ export const DoubleValue = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 9) { break; } message.value = reader.double(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -160,7 +161,7 @@ function createBaseFloatValue(): FloatValue { return { value: 0 }; } -export const FloatValue = { +export const FloatValue: MessageFns = { encode(message: FloatValue, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.value !== 0) { writer.uint32(13).float(message.value); @@ -175,13 +176,14 @@ export const FloatValue = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 13) { break; } message.value = reader.float(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -217,7 +219,7 @@ function createBaseInt64Value(): Int64Value { return { value: 0 }; } -export const Int64Value = { +export const Int64Value: MessageFns = { encode(message: Int64Value, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.value !== 0) { writer.uint32(8).int64(message.value); @@ -232,13 +234,14 @@ export const Int64Value = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 8) { break; } message.value = longToNumber(reader.int64()); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -274,7 +277,7 @@ function createBaseUInt64Value(): UInt64Value { return { value: 0 }; } -export const UInt64Value = { +export const UInt64Value: MessageFns = { encode(message: UInt64Value, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.value !== 0) { writer.uint32(8).uint64(message.value); @@ -289,13 +292,14 @@ export const UInt64Value = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 8) { break; } message.value = longToNumber(reader.uint64()); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -331,7 +335,7 @@ function createBaseInt32Value(): Int32Value { return { value: 0 }; } -export const Int32Value = { +export const Int32Value: MessageFns = { encode(message: Int32Value, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.value !== 0) { writer.uint32(8).int32(message.value); @@ -346,13 +350,14 @@ export const Int32Value = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 8) { break; } message.value = reader.int32(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -388,7 +393,7 @@ function createBaseUInt32Value(): UInt32Value { return { value: 0 }; } -export const UInt32Value = { +export const UInt32Value: MessageFns = { encode(message: UInt32Value, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.value !== 0) { writer.uint32(8).uint32(message.value); @@ -403,13 +408,14 @@ export const UInt32Value = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 8) { break; } message.value = reader.uint32(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -445,7 +451,7 @@ function createBaseBoolValue(): BoolValue { return { value: false }; } -export const BoolValue = { +export const BoolValue: MessageFns = { encode(message: BoolValue, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.value !== false) { writer.uint32(8).bool(message.value); @@ -460,13 +466,14 @@ export const BoolValue = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 8) { break; } message.value = reader.bool(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -502,7 +509,7 @@ function createBaseStringValue(): StringValue { return { value: "" }; } -export const StringValue = { +export const StringValue: MessageFns = { encode(message: StringValue, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.value !== "") { writer.uint32(10).string(message.value); @@ -517,13 +524,14 @@ export const StringValue = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 10) { break; } message.value = reader.string(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -559,7 +567,7 @@ function createBaseBytesValue(): BytesValue { return { value: new Uint8Array(0) }; } -export const BytesValue = { +export const BytesValue: MessageFns = { encode(message: BytesValue, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { if (message.value.length !== 0) { writer.uint32(10).bytes(message.value); @@ -574,13 +582,14 @@ export const BytesValue = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: + case 1: { if (tag !== 10) { break; } message.value = reader.bytes(); continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -664,3 +673,12 @@ function longToNumber(int64: { toString(): string }): number { function isSet(value: any): boolean { return value !== null && value !== undefined; } + +export interface MessageFns { + encode(message: T, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): T; + fromJSON(object: any): T; + toJSON(message: T): unknown; + create, I>>(base?: I): T; + fromPartial, I>>(object: I): T; +} diff --git a/impl/ts-proto/package-lock.json b/impl/ts-proto/package-lock.json index 8fa3084b..adf51901 100644 --- a/impl/ts-proto/package-lock.json +++ b/impl/ts-proto/package-lock.json @@ -6,19 +6,19 @@ "": { "name": "ts-proto-conformance", "dependencies": { - "ts-proto": "^2.0.3" + "ts-proto": "^2.2.1" }, "devDependencies": { - "@bufbuild/buf": "^1.39.0", - "@types/node": "^22.5.1", - "esbuild": "^0.23.1", - "typescript": "^5.5.4" + "@bufbuild/buf": "^1.43.0", + "@types/node": "^22.7.4", + "esbuild": "^0.24.0", + "typescript": "^5.6.2" } }, "node_modules/@bufbuild/buf": { - "version": "1.39.0", - "resolved": "https://registry.npmjs.org/@bufbuild/buf/-/buf-1.39.0.tgz", - "integrity": "sha512-lm7xb9pc7X04rRjCQ69o9byAAZ7/dsUQGoH+iJ9uBSXQWiwQ1Ts8gneBnuUVsAH2vdW73NFBpmNQGE9XtFauVQ==", + "version": "1.43.0", + "resolved": "https://registry.npmjs.org/@bufbuild/buf/-/buf-1.43.0.tgz", + "integrity": "sha512-lWiH+QJ8l0TGWP1KELvIA5BvAsZc0IiXppJlwI8EdQ2vQp39Ue2Xub8b13uy6IH0VDm9azQEjXuY1FxdB4mqsA==", "dev": true, "hasInstallScript": true, "bin": { @@ -30,18 +30,18 @@ "node": ">=12" }, "optionalDependencies": { - "@bufbuild/buf-darwin-arm64": "1.39.0", - "@bufbuild/buf-darwin-x64": "1.39.0", - "@bufbuild/buf-linux-aarch64": "1.39.0", - "@bufbuild/buf-linux-x64": "1.39.0", - "@bufbuild/buf-win32-arm64": "1.39.0", - "@bufbuild/buf-win32-x64": "1.39.0" + "@bufbuild/buf-darwin-arm64": "1.43.0", + "@bufbuild/buf-darwin-x64": "1.43.0", + "@bufbuild/buf-linux-aarch64": "1.43.0", + "@bufbuild/buf-linux-x64": "1.43.0", + "@bufbuild/buf-win32-arm64": "1.43.0", + "@bufbuild/buf-win32-x64": "1.43.0" } }, "node_modules/@bufbuild/buf-darwin-arm64": { - "version": "1.39.0", - "resolved": "https://registry.npmjs.org/@bufbuild/buf-darwin-arm64/-/buf-darwin-arm64-1.39.0.tgz", - "integrity": "sha512-Ptl0uAGssLxQTzoZhGwv1FFTbzUfcstIpEwMhN+XrwiuqsSxOg9eq/n3yXoci5VJsHokjDUHnWkR3y+j5P/5KA==", + "version": "1.43.0", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-darwin-arm64/-/buf-darwin-arm64-1.43.0.tgz", + "integrity": "sha512-IBVd4qpN8udUOwmqDB8KdGz8JUqVYq8yXN2MOj6JN7XFhaq0xAVfWsuQNOW4Uzukh+Ypg8EOb1nsJubOUbVe6g==", "cpu": [ "arm64" ], @@ -55,9 +55,9 @@ } }, "node_modules/@bufbuild/buf-darwin-x64": { - "version": "1.39.0", - "resolved": "https://registry.npmjs.org/@bufbuild/buf-darwin-x64/-/buf-darwin-x64-1.39.0.tgz", - "integrity": "sha512-XNCuy9sjQwVJ4NIZqxaTIyzUtlyquSkp/Uuoh5W5thJ3nzZ5RSgvXKF5iXHhZmesrfRGApktwoCx5Am8runsfQ==", + "version": "1.43.0", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-darwin-x64/-/buf-darwin-x64-1.43.0.tgz", + "integrity": "sha512-XeuLdJIdOXzLpLA95k5NWhO6cJw5YW89IJW6OHENkxXkdf9aWzg9ozrhTpPzUoZmGZbNyXfpa7kbhJaJ5+F42w==", "cpu": [ "x64" ], @@ -71,9 +71,9 @@ } }, "node_modules/@bufbuild/buf-linux-aarch64": { - "version": "1.39.0", - "resolved": "https://registry.npmjs.org/@bufbuild/buf-linux-aarch64/-/buf-linux-aarch64-1.39.0.tgz", - "integrity": "sha512-Am+hrw94awp/eY027ROXwRQBuwAzOpQ/4zI4dgmgsyhzeWZ8w1LWC8z2SSr8T2cqd0cm52KxtoWMW+B3b2qzbw==", + "version": "1.43.0", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-linux-aarch64/-/buf-linux-aarch64-1.43.0.tgz", + "integrity": "sha512-7hyXvwM5NFY08+aqbxVx4GZ/3AsqZKas3bR5TFLuD8/4u4JfA59b9+YMzLL1bxHFLqMMeXJBLgIVkyTtQIXGVg==", "cpu": [ "arm64" ], @@ -87,9 +87,9 @@ } }, "node_modules/@bufbuild/buf-linux-x64": { - "version": "1.39.0", - "resolved": "https://registry.npmjs.org/@bufbuild/buf-linux-x64/-/buf-linux-x64-1.39.0.tgz", - "integrity": "sha512-JXVkHoMrTvmpseqdoQPJJ6MRV7/vlloYtvXHHACEzVytYjljOYCNoVET/E5gLBco/edeXFMNc40cCi1KgL3rSw==", + "version": "1.43.0", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-linux-x64/-/buf-linux-x64-1.43.0.tgz", + "integrity": "sha512-4mg6ZUNpW2C61vmPyQDolLRIsfAomd2Yv1PICC9XG1iQtf3xQ+6q5B/kihOadhG2AN31WeKdorvuyPL7vmbsDA==", "cpu": [ "x64" ], @@ -103,9 +103,9 @@ } }, "node_modules/@bufbuild/buf-win32-arm64": { - "version": "1.39.0", - "resolved": "https://registry.npmjs.org/@bufbuild/buf-win32-arm64/-/buf-win32-arm64-1.39.0.tgz", - "integrity": "sha512-akdGW02mo04wbLfjNMBQqxC4mPQ/L/vTU8/o79I67GSxyFYt7bKifvYIYhAA39C2gibHyB7ZLmoeRPbaU8wbYA==", + "version": "1.43.0", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-win32-arm64/-/buf-win32-arm64-1.43.0.tgz", + "integrity": "sha512-YKoiA5Ui8VBW0GaWthDLBYr1C3I4Fx/j9txrUpg3Fvf+iwWutWQuTdA6W95HnLzUyhT6KnBMbXmB+SzosW9iFg==", "cpu": [ "arm64" ], @@ -119,9 +119,9 @@ } }, "node_modules/@bufbuild/buf-win32-x64": { - "version": "1.39.0", - "resolved": "https://registry.npmjs.org/@bufbuild/buf-win32-x64/-/buf-win32-x64-1.39.0.tgz", - "integrity": "sha512-jos08UMg9iUZsGjPrNpLXP+FNk6q6GizO+bjee/GcI0kSijIzXYMg14goQr0TKlvqs/+IRAM5vZIokQBYlAENQ==", + "version": "1.43.0", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-win32-x64/-/buf-win32-x64-1.43.0.tgz", + "integrity": "sha512-//t0ndbP7zkQDydwAXShCqsqgOGX/ktsS2g0+D9A5Aw/nyLTxBmfsN+7hPxL4o0qq2N4MKs6DJeP4TvjYKBaMA==", "cpu": [ "x64" ], @@ -140,9 +140,9 @@ "integrity": "sha512-sw2JhwJyvyL0zlhG61aDzOVryEfJg2PDZFSV7i7IdC7nAE41WuXCru3QWLGiP87At0BMzKOoKO/FqEGoKygGZQ==" }, "node_modules/@esbuild/aix-ppc64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.23.1.tgz", - "integrity": "sha512-6VhYk1diRqrhBAqpJEdjASR/+WVRtfjpqKuNw11cLiaWpAT/Uu+nokB+UJnevzy/P9C/ty6AOe0dwueMrGh/iQ==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.24.0.tgz", + "integrity": "sha512-WtKdFM7ls47zkKHFVzMz8opM7LkcsIp9amDUBIAWirg70RM71WRSjdILPsY5Uv1D42ZpUfaPILDlfactHgsRkw==", "cpu": [ "ppc64" ], @@ -156,9 +156,9 @@ } }, "node_modules/@esbuild/android-arm": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.23.1.tgz", - "integrity": "sha512-uz6/tEy2IFm9RYOyvKl88zdzZfwEfKZmnX9Cj1BHjeSGNuGLuMD1kR8y5bteYmwqKm1tj8m4cb/aKEorr6fHWQ==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.24.0.tgz", + "integrity": "sha512-arAtTPo76fJ/ICkXWetLCc9EwEHKaeya4vMrReVlEIUCAUncH7M4bhMQ+M9Vf+FFOZJdTNMXNBrWwW+OXWpSew==", "cpu": [ "arm" ], @@ -172,9 +172,9 @@ } }, "node_modules/@esbuild/android-arm64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.23.1.tgz", - "integrity": "sha512-xw50ipykXcLstLeWH7WRdQuysJqejuAGPd30vd1i5zSyKK3WE+ijzHmLKxdiCMtH1pHz78rOg0BKSYOSB/2Khw==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.24.0.tgz", + "integrity": "sha512-Vsm497xFM7tTIPYK9bNTYJyF/lsP590Qc1WxJdlB6ljCbdZKU9SY8i7+Iin4kyhV/KV5J2rOKsBQbB77Ab7L/w==", "cpu": [ "arm64" ], @@ -188,9 +188,9 @@ } }, "node_modules/@esbuild/android-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.23.1.tgz", - "integrity": "sha512-nlN9B69St9BwUoB+jkyU090bru8L0NA3yFvAd7k8dNsVH8bi9a8cUAUSEcEEgTp2z3dbEDGJGfP6VUnkQnlReg==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.24.0.tgz", + "integrity": "sha512-t8GrvnFkiIY7pa7mMgJd7p8p8qqYIz1NYiAoKc75Zyv73L3DZW++oYMSHPRarcotTKuSs6m3hTOa5CKHaS02TQ==", "cpu": [ "x64" ], @@ -204,9 +204,9 @@ } }, "node_modules/@esbuild/darwin-arm64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.23.1.tgz", - "integrity": "sha512-YsS2e3Wtgnw7Wq53XXBLcV6JhRsEq8hkfg91ESVadIrzr9wO6jJDMZnCQbHm1Guc5t/CdDiFSSfWP58FNuvT3Q==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.24.0.tgz", + "integrity": "sha512-CKyDpRbK1hXwv79soeTJNHb5EiG6ct3efd/FTPdzOWdbZZfGhpbcqIpiD0+vwmpu0wTIL97ZRPZu8vUt46nBSw==", "cpu": [ "arm64" ], @@ -220,9 +220,9 @@ } }, "node_modules/@esbuild/darwin-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.23.1.tgz", - "integrity": "sha512-aClqdgTDVPSEGgoCS8QDG37Gu8yc9lTHNAQlsztQ6ENetKEO//b8y31MMu2ZaPbn4kVsIABzVLXYLhCGekGDqw==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.24.0.tgz", + "integrity": "sha512-rgtz6flkVkh58od4PwTRqxbKH9cOjaXCMZgWD905JOzjFKW+7EiUObfd/Kav+A6Gyud6WZk9w+xu6QLytdi2OA==", "cpu": [ "x64" ], @@ -236,9 +236,9 @@ } }, "node_modules/@esbuild/freebsd-arm64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.23.1.tgz", - "integrity": "sha512-h1k6yS8/pN/NHlMl5+v4XPfikhJulk4G+tKGFIOwURBSFzE8bixw1ebjluLOjfwtLqY0kewfjLSrO6tN2MgIhA==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.24.0.tgz", + "integrity": "sha512-6Mtdq5nHggwfDNLAHkPlyLBpE5L6hwsuXZX8XNmHno9JuL2+bg2BX5tRkwjyfn6sKbxZTq68suOjgWqCicvPXA==", "cpu": [ "arm64" ], @@ -252,9 +252,9 @@ } }, "node_modules/@esbuild/freebsd-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.23.1.tgz", - "integrity": "sha512-lK1eJeyk1ZX8UklqFd/3A60UuZ/6UVfGT2LuGo3Wp4/z7eRTRYY+0xOu2kpClP+vMTi9wKOfXi2vjUpO1Ro76g==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.24.0.tgz", + "integrity": "sha512-D3H+xh3/zphoX8ck4S2RxKR6gHlHDXXzOf6f/9dbFt/NRBDIE33+cVa49Kil4WUjxMGW0ZIYBYtaGCa2+OsQwQ==", "cpu": [ "x64" ], @@ -268,9 +268,9 @@ } }, "node_modules/@esbuild/linux-arm": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.23.1.tgz", - "integrity": "sha512-CXXkzgn+dXAPs3WBwE+Kvnrf4WECwBdfjfeYHpMeVxWE0EceB6vhWGShs6wi0IYEqMSIzdOF1XjQ/Mkm5d7ZdQ==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.24.0.tgz", + "integrity": "sha512-gJKIi2IjRo5G6Glxb8d3DzYXlxdEj2NlkixPsqePSZMhLudqPhtZ4BUrpIuTjJYXxvF9njql+vRjB2oaC9XpBw==", "cpu": [ "arm" ], @@ -284,9 +284,9 @@ } }, "node_modules/@esbuild/linux-arm64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.23.1.tgz", - "integrity": "sha512-/93bf2yxencYDnItMYV/v116zff6UyTjo4EtEQjUBeGiVpMmffDNUyD9UN2zV+V3LRV3/on4xdZ26NKzn6754g==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.24.0.tgz", + "integrity": "sha512-TDijPXTOeE3eaMkRYpcy3LarIg13dS9wWHRdwYRnzlwlA370rNdZqbcp0WTyyV/k2zSxfko52+C7jU5F9Tfj1g==", "cpu": [ "arm64" ], @@ -300,9 +300,9 @@ } }, "node_modules/@esbuild/linux-ia32": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.23.1.tgz", - "integrity": "sha512-VTN4EuOHwXEkXzX5nTvVY4s7E/Krz7COC8xkftbbKRYAl96vPiUssGkeMELQMOnLOJ8k3BY1+ZY52tttZnHcXQ==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.24.0.tgz", + "integrity": "sha512-K40ip1LAcA0byL05TbCQ4yJ4swvnbzHscRmUilrmP9Am7//0UjPreh4lpYzvThT2Quw66MhjG//20mrufm40mA==", "cpu": [ "ia32" ], @@ -316,9 +316,9 @@ } }, "node_modules/@esbuild/linux-loong64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.23.1.tgz", - "integrity": "sha512-Vx09LzEoBa5zDnieH8LSMRToj7ir/Jeq0Gu6qJ/1GcBq9GkfoEAoXvLiW1U9J1qE/Y/Oyaq33w5p2ZWrNNHNEw==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.24.0.tgz", + "integrity": "sha512-0mswrYP/9ai+CU0BzBfPMZ8RVm3RGAN/lmOMgW4aFUSOQBjA31UP8Mr6DDhWSuMwj7jaWOT0p0WoZ6jeHhrD7g==", "cpu": [ "loong64" ], @@ -332,9 +332,9 @@ } }, "node_modules/@esbuild/linux-mips64el": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.23.1.tgz", - "integrity": "sha512-nrFzzMQ7W4WRLNUOU5dlWAqa6yVeI0P78WKGUo7lg2HShq/yx+UYkeNSE0SSfSure0SqgnsxPvmAUu/vu0E+3Q==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.24.0.tgz", + "integrity": "sha512-hIKvXm0/3w/5+RDtCJeXqMZGkI2s4oMUGj3/jM0QzhgIASWrGO5/RlzAzm5nNh/awHE0A19h/CvHQe6FaBNrRA==", "cpu": [ "mips64el" ], @@ -348,9 +348,9 @@ } }, "node_modules/@esbuild/linux-ppc64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.23.1.tgz", - "integrity": "sha512-dKN8fgVqd0vUIjxuJI6P/9SSSe/mB9rvA98CSH2sJnlZ/OCZWO1DJvxj8jvKTfYUdGfcq2dDxoKaC6bHuTlgcw==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.24.0.tgz", + "integrity": "sha512-HcZh5BNq0aC52UoocJxaKORfFODWXZxtBaaZNuN3PUX3MoDsChsZqopzi5UupRhPHSEHotoiptqikjN/B77mYQ==", "cpu": [ "ppc64" ], @@ -364,9 +364,9 @@ } }, "node_modules/@esbuild/linux-riscv64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.23.1.tgz", - "integrity": "sha512-5AV4Pzp80fhHL83JM6LoA6pTQVWgB1HovMBsLQ9OZWLDqVY8MVobBXNSmAJi//Csh6tcY7e7Lny2Hg1tElMjIA==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.24.0.tgz", + "integrity": "sha512-bEh7dMn/h3QxeR2KTy1DUszQjUrIHPZKyO6aN1X4BCnhfYhuQqedHaa5MxSQA/06j3GpiIlFGSsy1c7Gf9padw==", "cpu": [ "riscv64" ], @@ -380,9 +380,9 @@ } }, "node_modules/@esbuild/linux-s390x": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.23.1.tgz", - "integrity": "sha512-9ygs73tuFCe6f6m/Tb+9LtYxWR4c9yg7zjt2cYkjDbDpV/xVn+68cQxMXCjUpYwEkze2RcU/rMnfIXNRFmSoDw==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.24.0.tgz", + "integrity": "sha512-ZcQ6+qRkw1UcZGPyrCiHHkmBaj9SiCD8Oqd556HldP+QlpUIe2Wgn3ehQGVoPOvZvtHm8HPx+bH20c9pvbkX3g==", "cpu": [ "s390x" ], @@ -396,9 +396,9 @@ } }, "node_modules/@esbuild/linux-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.23.1.tgz", - "integrity": "sha512-EV6+ovTsEXCPAp58g2dD68LxoP/wK5pRvgy0J/HxPGB009omFPv3Yet0HiaqvrIrgPTBuC6wCH1LTOY91EO5hQ==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.24.0.tgz", + "integrity": "sha512-vbutsFqQ+foy3wSSbmjBXXIJ6PL3scghJoM8zCL142cGaZKAdCZHyf+Bpu/MmX9zT9Q0zFBVKb36Ma5Fzfa8xA==", "cpu": [ "x64" ], @@ -412,9 +412,9 @@ } }, "node_modules/@esbuild/netbsd-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.23.1.tgz", - "integrity": "sha512-aevEkCNu7KlPRpYLjwmdcuNz6bDFiE7Z8XC4CPqExjTvrHugh28QzUXVOZtiYghciKUacNktqxdpymplil1beA==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.24.0.tgz", + "integrity": "sha512-hjQ0R/ulkO8fCYFsG0FZoH+pWgTTDreqpqY7UnQntnaKv95uP5iW3+dChxnx7C3trQQU40S+OgWhUVwCjVFLvg==", "cpu": [ "x64" ], @@ -428,9 +428,9 @@ } }, "node_modules/@esbuild/openbsd-arm64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.23.1.tgz", - "integrity": "sha512-3x37szhLexNA4bXhLrCC/LImN/YtWis6WXr1VESlfVtVeoFJBRINPJ3f0a/6LV8zpikqoUg4hyXw0sFBt5Cr+Q==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.24.0.tgz", + "integrity": "sha512-MD9uzzkPQbYehwcN583yx3Tu5M8EIoTD+tUgKF982WYL9Pf5rKy9ltgD0eUgs8pvKnmizxjXZyLt0z6DC3rRXg==", "cpu": [ "arm64" ], @@ -444,9 +444,9 @@ } }, "node_modules/@esbuild/openbsd-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.23.1.tgz", - "integrity": "sha512-aY2gMmKmPhxfU+0EdnN+XNtGbjfQgwZj43k8G3fyrDM/UdZww6xrWxmDkuz2eCZchqVeABjV5BpildOrUbBTqA==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.24.0.tgz", + "integrity": "sha512-4ir0aY1NGUhIC1hdoCzr1+5b43mw99uNwVzhIq1OY3QcEwPDO3B7WNXBzaKY5Nsf1+N11i1eOfFcq+D/gOS15Q==", "cpu": [ "x64" ], @@ -460,9 +460,9 @@ } }, "node_modules/@esbuild/sunos-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.23.1.tgz", - "integrity": "sha512-RBRT2gqEl0IKQABT4XTj78tpk9v7ehp+mazn2HbUeZl1YMdaGAQqhapjGTCe7uw7y0frDi4gS0uHzhvpFuI1sA==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.24.0.tgz", + "integrity": "sha512-jVzdzsbM5xrotH+W5f1s+JtUy1UWgjU0Cf4wMvffTB8m6wP5/kx0KiaLHlbJO+dMgtxKV8RQ/JvtlFcdZ1zCPA==", "cpu": [ "x64" ], @@ -476,9 +476,9 @@ } }, "node_modules/@esbuild/win32-arm64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.23.1.tgz", - "integrity": "sha512-4O+gPR5rEBe2FpKOVyiJ7wNDPA8nGzDuJ6gN4okSA1gEOYZ67N8JPk58tkWtdtPeLz7lBnY6I5L3jdsr3S+A6A==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.24.0.tgz", + "integrity": "sha512-iKc8GAslzRpBytO2/aN3d2yb2z8XTVfNV0PjGlCxKo5SgWmNXx82I/Q3aG1tFfS+A2igVCY97TJ8tnYwpUWLCA==", "cpu": [ "arm64" ], @@ -492,9 +492,9 @@ } }, "node_modules/@esbuild/win32-ia32": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.23.1.tgz", - "integrity": "sha512-BcaL0Vn6QwCwre3Y717nVHZbAa4UBEigzFm6VdsVdT/MbZ38xoj1X9HPkZhbmaBGUD1W8vxAfffbDe8bA6AKnQ==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.24.0.tgz", + "integrity": "sha512-vQW36KZolfIudCcTnaTpmLQ24Ha1RjygBo39/aLkM2kmjkWmZGEJ5Gn9l5/7tzXA42QGIoWbICfg6KLLkIw6yw==", "cpu": [ "ia32" ], @@ -508,9 +508,9 @@ } }, "node_modules/@esbuild/win32-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.23.1.tgz", - "integrity": "sha512-BHpFFeslkWrXWyUPnbKm+xYYVYruCinGcftSBaa8zoF9hZO4BcSCFUvHVTtzpIY6YzUnYtuEhZ+C9iEXjxnasg==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.24.0.tgz", + "integrity": "sha512-7IAFPrjSQIJrGsK6flwg7NFmwBoSTyF3rl7If0hNUFQU4ilTsEPL6GuMuU9BfIWVVGuRnuIidkSMC+c0Otu8IA==", "cpu": [ "x64" ], @@ -523,64 +523,11 @@ "node": ">=18" } }, - "node_modules/@protobufjs/aspromise": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", - "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==" - }, - "node_modules/@protobufjs/base64": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", - "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==" - }, - "node_modules/@protobufjs/codegen": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", - "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==" - }, - "node_modules/@protobufjs/eventemitter": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", - "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==" - }, - "node_modules/@protobufjs/fetch": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", - "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==", - "dependencies": { - "@protobufjs/aspromise": "^1.1.1", - "@protobufjs/inquire": "^1.1.0" - } - }, - "node_modules/@protobufjs/float": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", - "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==" - }, - "node_modules/@protobufjs/inquire": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", - "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==" - }, - "node_modules/@protobufjs/path": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", - "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==" - }, - "node_modules/@protobufjs/pool": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", - "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==" - }, - "node_modules/@protobufjs/utf8": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", - "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==" - }, "node_modules/@types/node": { - "version": "22.5.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.5.1.tgz", - "integrity": "sha512-KkHsxej0j9IW1KKOOAA/XBA0z08UFSrRQHErzEfA3Vgq57eXIMYboIlHJuYIfd+lwCQjtKqUu3UnmKbtUc9yRw==", + "version": "22.7.4", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.4.tgz", + "integrity": "sha512-y+NPi1rFzDs1NdQHHToqeiX2TIS79SWEAw9GYhkkx8bD0ChpfqC+n2j5OXOCpzfojBEBt6DnEnnG9MY0zk1XLg==", + "dev": true, "dependencies": { "undici-types": "~6.19.2" } @@ -616,9 +563,9 @@ } }, "node_modules/esbuild": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.23.1.tgz", - "integrity": "sha512-VVNz/9Sa0bs5SELtn3f7qhJCDPCF5oMEl5cO9/SSinpE9hbPVvxbd572HH5AKiP7WD8INO53GgfDDhRjkylHEg==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.24.0.tgz", + "integrity": "sha512-FuLPevChGDshgSicjisSooU0cemp/sGXR841D5LHMB7mTVOmsEHcAxaH3irL53+8YDIeVNQEySh4DaYU/iuPqQ==", "dev": true, "hasInstallScript": true, "bin": { @@ -628,58 +575,30 @@ "node": ">=18" }, "optionalDependencies": { - "@esbuild/aix-ppc64": "0.23.1", - "@esbuild/android-arm": "0.23.1", - "@esbuild/android-arm64": "0.23.1", - "@esbuild/android-x64": "0.23.1", - "@esbuild/darwin-arm64": "0.23.1", - "@esbuild/darwin-x64": "0.23.1", - "@esbuild/freebsd-arm64": "0.23.1", - "@esbuild/freebsd-x64": "0.23.1", - "@esbuild/linux-arm": "0.23.1", - "@esbuild/linux-arm64": "0.23.1", - "@esbuild/linux-ia32": "0.23.1", - "@esbuild/linux-loong64": "0.23.1", - "@esbuild/linux-mips64el": "0.23.1", - "@esbuild/linux-ppc64": "0.23.1", - "@esbuild/linux-riscv64": "0.23.1", - "@esbuild/linux-s390x": "0.23.1", - "@esbuild/linux-x64": "0.23.1", - "@esbuild/netbsd-x64": "0.23.1", - "@esbuild/openbsd-arm64": "0.23.1", - "@esbuild/openbsd-x64": "0.23.1", - "@esbuild/sunos-x64": "0.23.1", - "@esbuild/win32-arm64": "0.23.1", - "@esbuild/win32-ia32": "0.23.1", - "@esbuild/win32-x64": "0.23.1" - } - }, - "node_modules/long": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", - "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" - }, - "node_modules/protobufjs": { - "version": "7.3.0", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.3.0.tgz", - "integrity": "sha512-YWD03n3shzV9ImZRX3ccbjqLxj7NokGN0V/ESiBV5xWqrommYHYiihuIyavq03pWSGqlyvYUFmfoMKd+1rPA/g==", - "hasInstallScript": true, - "dependencies": { - "@protobufjs/aspromise": "^1.1.2", - "@protobufjs/base64": "^1.1.2", - "@protobufjs/codegen": "^2.0.4", - "@protobufjs/eventemitter": "^1.1.0", - "@protobufjs/fetch": "^1.1.0", - "@protobufjs/float": "^1.0.2", - "@protobufjs/inquire": "^1.1.0", - "@protobufjs/path": "^1.1.2", - "@protobufjs/pool": "^1.1.0", - "@protobufjs/utf8": "^1.1.0", - "@types/node": ">=13.7.0", - "long": "^5.0.0" - }, - "engines": { - "node": ">=12.0.0" + "@esbuild/aix-ppc64": "0.24.0", + "@esbuild/android-arm": "0.24.0", + "@esbuild/android-arm64": "0.24.0", + "@esbuild/android-x64": "0.24.0", + "@esbuild/darwin-arm64": "0.24.0", + "@esbuild/darwin-x64": "0.24.0", + "@esbuild/freebsd-arm64": "0.24.0", + "@esbuild/freebsd-x64": "0.24.0", + "@esbuild/linux-arm": "0.24.0", + "@esbuild/linux-arm64": "0.24.0", + "@esbuild/linux-ia32": "0.24.0", + "@esbuild/linux-loong64": "0.24.0", + "@esbuild/linux-mips64el": "0.24.0", + "@esbuild/linux-ppc64": "0.24.0", + "@esbuild/linux-riscv64": "0.24.0", + "@esbuild/linux-s390x": "0.24.0", + "@esbuild/linux-x64": "0.24.0", + "@esbuild/netbsd-x64": "0.24.0", + "@esbuild/openbsd-arm64": "0.24.0", + "@esbuild/openbsd-x64": "0.24.0", + "@esbuild/sunos-x64": "0.24.0", + "@esbuild/win32-arm64": "0.24.0", + "@esbuild/win32-ia32": "0.24.0", + "@esbuild/win32-x64": "0.24.0" } }, "node_modules/ts-poet": { @@ -691,32 +610,31 @@ } }, "node_modules/ts-proto": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/ts-proto/-/ts-proto-2.0.3.tgz", - "integrity": "sha512-nh1pCkdWy5gKGjNaYQZcKMDlWqaeQ8Kg6kma8b/EkLbI1zzg3fhIBu4KA+dR5NqosLkqcZxLMGDZJ/0T1b3prw==", + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ts-proto/-/ts-proto-2.2.1.tgz", + "integrity": "sha512-EiPj34febZLbLdEyo//J20ix44kFFRZJYGuEx43cOBZ0pLSGiBKLwy2ORfkeJTlhHFqZKPoaWdiRyI4pYqdR4Q==", "dependencies": { "@bufbuild/protobuf": "^2.0.0", "case-anything": "^2.1.13", "ts-poet": "^6.7.0", - "ts-proto-descriptors": "1.16.0" + "ts-proto-descriptors": "2.0.0" }, "bin": { "protoc-gen-ts_proto": "protoc-gen-ts_proto" } }, "node_modules/ts-proto-descriptors": { - "version": "1.16.0", - "resolved": "https://registry.npmjs.org/ts-proto-descriptors/-/ts-proto-descriptors-1.16.0.tgz", - "integrity": "sha512-3yKuzMLpltdpcyQji1PJZRfoo4OJjNieKTYkQY8pF7xGKsYz/RHe3aEe4KiRxcinoBmnEhmuI+yJTxLb922ULA==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ts-proto-descriptors/-/ts-proto-descriptors-2.0.0.tgz", + "integrity": "sha512-wHcTH3xIv11jxgkX5OyCSFfw27agpInAd6yh89hKG6zqIXnjW9SYqSER2CVQxdPj4czeOhGagNvZBEbJPy7qkw==", "dependencies": { - "long": "^5.2.3", - "protobufjs": "^7.2.4" + "@bufbuild/protobuf": "^2.0.0" } }, "node_modules/typescript": { - "version": "5.5.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.4.tgz", - "integrity": "sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==", + "version": "5.6.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.2.tgz", + "integrity": "sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==", "dev": true, "bin": { "tsc": "bin/tsc", @@ -729,7 +647,8 @@ "node_modules/undici-types": { "version": "6.19.8", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", - "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==" + "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", + "dev": true } } } diff --git a/impl/ts-proto/package.json b/impl/ts-proto/package.json index 0e16e992..3f0351a0 100644 --- a/impl/ts-proto/package.json +++ b/impl/ts-proto/package.json @@ -16,12 +16,12 @@ "test": "conformance_test_runner --maximum_edition PROTO3 --enforce_recommended --failure_list failing_tests.txt --text_format_failure_list failing_tests_text_format.txt --output_dir . runner.js" }, "devDependencies": { - "@bufbuild/buf": "^1.39.0", - "@types/node": "^22.5.1", - "esbuild": "^0.23.1", - "typescript": "^5.5.4" + "@bufbuild/buf": "^1.43.0", + "@types/node": "^22.7.4", + "esbuild": "^0.24.0", + "typescript": "^5.6.2" }, "dependencies": { - "ts-proto": "^2.0.3" + "ts-proto": "^2.2.1" } }