diff --git a/integration/angular/simple-message.ts b/integration/angular/simple-message.ts index d8c926fec..c199d432c 100644 --- a/integration/angular/simple-message.ts +++ b/integration/angular/simple-message.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: simple-message.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/async-iterable-services-abort-signal/simple.ts b/integration/async-iterable-services-abort-signal/simple.ts index 8c8d47913..028d5156b 100644 --- a/integration/async-iterable-services-abort-signal/simple.ts +++ b/integration/async-iterable-services-abort-signal/simple.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: simple.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/async-iterable-services/simple.ts b/integration/async-iterable-services/simple.ts index 0f85114d0..1d3c2eddc 100644 --- a/integration/async-iterable-services/simple.ts +++ b/integration/async-iterable-services/simple.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: simple.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/avoid-import-conflicts-folder-name/ui.ts b/integration/avoid-import-conflicts-folder-name/ui.ts index 79dc8af24..e540b4f53 100644 --- a/integration/avoid-import-conflicts-folder-name/ui.ts +++ b/integration/avoid-import-conflicts-folder-name/ui.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: ui.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/avoid-import-conflicts-folder-name/ui/simple.ts b/integration/avoid-import-conflicts-folder-name/ui/simple.ts index fe2a43ba2..853fad2ca 100644 --- a/integration/avoid-import-conflicts-folder-name/ui/simple.ts +++ b/integration/avoid-import-conflicts-folder-name/ui/simple.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: ui/simple.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { diff --git a/integration/avoid-import-conflicts-types-only/simple.ts b/integration/avoid-import-conflicts-types-only/simple.ts index 0ac9a1c3c..1601e5328 100644 --- a/integration/avoid-import-conflicts-types-only/simple.ts +++ b/integration/avoid-import-conflicts-types-only/simple.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: simple.proto + /* eslint-disable */ import type { Simple as Simple2, SimpleEnum as SimpleEnum1 } from "./simple2"; diff --git a/integration/avoid-import-conflicts-types-only/simple2.ts b/integration/avoid-import-conflicts-types-only/simple2.ts index 8c35f3697..c9aa26b63 100644 --- a/integration/avoid-import-conflicts-types-only/simple2.ts +++ b/integration/avoid-import-conflicts-types-only/simple2.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: simple2.proto + /* eslint-disable */ export const protobufPackage = "simple2"; diff --git a/integration/avoid-import-conflicts/simple.ts b/integration/avoid-import-conflicts/simple.ts index 646f2c2c6..e359f97fd 100644 --- a/integration/avoid-import-conflicts/simple.ts +++ b/integration/avoid-import-conflicts/simple.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: simple.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { diff --git a/integration/avoid-import-conflicts/simple2.ts b/integration/avoid-import-conflicts/simple2.ts index c842a7c0f..fbbdee77d 100644 --- a/integration/avoid-import-conflicts/simple2.ts +++ b/integration/avoid-import-conflicts/simple2.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: simple2.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/barrel-imports/bar.ts b/integration/barrel-imports/bar.ts index ad0c51de7..8f5bf172e 100644 --- a/integration/barrel-imports/bar.ts +++ b/integration/barrel-imports/bar.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: bar.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/barrel-imports/foo.ts b/integration/barrel-imports/foo.ts index 290ea5d32..289b95332 100644 --- a/integration/barrel-imports/foo.ts +++ b/integration/barrel-imports/foo.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: foo.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Bar } from "./bar"; diff --git a/integration/batching-with-context-esModuleInterop/batching.ts b/integration/batching-with-context-esModuleInterop/batching.ts index a806c090e..a9751aa69 100644 --- a/integration/batching-with-context-esModuleInterop/batching.ts +++ b/integration/batching-with-context-esModuleInterop/batching.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: batching.proto + /* eslint-disable */ import DataLoader from "dataloader"; import hash from "object-hash"; diff --git a/integration/batching-with-context/batching.ts b/integration/batching-with-context/batching.ts index b698224cd..6cfef064f 100644 --- a/integration/batching-with-context/batching.ts +++ b/integration/batching-with-context/batching.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: batching.proto + /* eslint-disable */ import * as DataLoader from "dataloader"; import * as hash from "object-hash"; diff --git a/integration/batching/batching.ts b/integration/batching/batching.ts index 4b71dd37c..9045190fd 100644 --- a/integration/batching/batching.ts +++ b/integration/batching/batching.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: batching.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/before-after-request-streaming/example.ts b/integration/before-after-request-streaming/example.ts index 7946d1827..1f75445fd 100644 --- a/integration/before-after-request-streaming/example.ts +++ b/integration/before-after-request-streaming/example.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: example.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Observable } from "rxjs"; diff --git a/integration/before-after-request-streaming/google/protobuf/wrappers.ts b/integration/before-after-request-streaming/google/protobuf/wrappers.ts index 75e77c039..6159c1b46 100644 --- a/integration/before-after-request-streaming/google/protobuf/wrappers.ts +++ b/integration/before-after-request-streaming/google/protobuf/wrappers.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/wrappers.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/before-after-request/simple.ts b/integration/before-after-request/simple.ts index 1da2df759..acb3188ca 100644 --- a/integration/before-after-request/simple.ts +++ b/integration/before-after-request/simple.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: simple.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { diff --git a/integration/before-after-request/simple2.ts b/integration/before-after-request/simple2.ts index c842a7c0f..fbbdee77d 100644 --- a/integration/before-after-request/simple2.ts +++ b/integration/before-after-request/simple2.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: simple2.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/bytes-as-base64-browser/message.ts b/integration/bytes-as-base64-browser/message.ts index 87632f9e7..b0d3cd51e 100644 --- a/integration/bytes-as-base64-browser/message.ts +++ b/integration/bytes-as-base64-browser/message.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: message.proto + /* eslint-disable */ export const protobufPackage = ""; diff --git a/integration/bytes-as-base64-node/message.ts b/integration/bytes-as-base64-node/message.ts index ec2a9bee2..f464f96e5 100644 --- a/integration/bytes-as-base64-node/message.ts +++ b/integration/bytes-as-base64-node/message.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: message.proto + /* eslint-disable */ export const protobufPackage = ""; diff --git a/integration/bytes-as-base64/message.ts b/integration/bytes-as-base64/message.ts index 684c6e2f3..fb1932c73 100644 --- a/integration/bytes-as-base64/message.ts +++ b/integration/bytes-as-base64/message.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: message.proto + /* eslint-disable */ export const protobufPackage = ""; diff --git a/integration/bytes-node/google/protobuf/wrappers.ts b/integration/bytes-node/google/protobuf/wrappers.ts index a74379b5e..79e4d941a 100644 --- a/integration/bytes-node/google/protobuf/wrappers.ts +++ b/integration/bytes-node/google/protobuf/wrappers.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/wrappers.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/bytes-node/point.ts b/integration/bytes-node/point.ts index d2bce9d09..b6c48b558 100644 --- a/integration/bytes-node/point.ts +++ b/integration/bytes-node/point.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: point.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { BytesValue } from "./google/protobuf/wrappers"; diff --git a/integration/codegen.ts b/integration/codegen.ts index f2a959f76..f531cbc93 100644 --- a/integration/codegen.ts +++ b/integration/codegen.ts @@ -4,7 +4,7 @@ import { parse } from "path"; import { promisify } from "util"; import { generateFile, makeUtils } from "../src/main"; import { createTypeMap } from "../src/types"; -import { generateIndexFiles } from "../src/utils"; +import { generateIndexFiles, getVersions } from "../src/utils"; import { getTsPoetOpts, optionsFromParameter } from "../src/options"; import { BaseContext, createFileContext } from "../src/context"; import { generateTypeRegistry } from "../src/generate-type-registry"; @@ -28,6 +28,8 @@ async function generate(binFile: string, baseDir: string, parameter: string) { const request = CodeGeneratorRequest.decode(stdin); request.parameter = parameter; + const { protocVersion, tsProtoVersion } = await getVersions(request); + const options = optionsFromParameter(parameter || ""); const typeMap = createTypeMap(request, options); @@ -42,7 +44,10 @@ async function generate(binFile: string, baseDir: string, parameter: string) { const filePath = `${baseDir}/${path}`; const dirPath = parse(filePath).dir; await promisify(mkdir)(dirPath, { recursive: true }).catch(() => {}); - await promisify(writeFile)(filePath, code.toString({ ...getTsPoetOpts(options), path })); + await promisify(writeFile)( + filePath, + code.toString({ ...getTsPoetOpts(options, tsProtoVersion, protocVersion, file.name), path }), + ); } if (options.outputTypeRegistry) { @@ -54,7 +59,10 @@ async function generate(binFile: string, baseDir: string, parameter: string) { const filePath = `${baseDir}/${path}`; - await promisify(writeFile)(filePath, code.toString({ ...getTsPoetOpts(options), path })); + await promisify(writeFile)( + filePath, + code.toString({ ...getTsPoetOpts(options, tsProtoVersion, protocVersion), path }), + ); } if (options.outputIndex) { @@ -62,7 +70,10 @@ async function generate(binFile: string, baseDir: string, parameter: string) { const filePath = `${baseDir}/${path}`; const dirPath = parse(filePath).dir; await promisify(mkdir)(dirPath, { recursive: true }).catch(() => {}); - await promisify(writeFile)(filePath, code.toString({ ...getTsPoetOpts(options), path })); + await promisify(writeFile)( + filePath, + code.toString({ ...getTsPoetOpts(options, tsProtoVersion, protocVersion), path }), + ); } } } diff --git a/integration/const-enum/const-enum.ts b/integration/const-enum/const-enum.ts index 85c341609..5fdb2a634 100644 --- a/integration/const-enum/const-enum.ts +++ b/integration/const-enum/const-enum.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: const-enum.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/default-with-custom-metadata/default-with-custom-metadata.ts b/integration/default-with-custom-metadata/default-with-custom-metadata.ts index e4f30f0a9..0970df7f7 100644 --- a/integration/default-with-custom-metadata/default-with-custom-metadata.ts +++ b/integration/default-with-custom-metadata/default-with-custom-metadata.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: default-with-custom-metadata.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Foo } from "./custom-metadata"; diff --git a/integration/default-with-metadata/default-with-metadata.ts b/integration/default-with-metadata/default-with-metadata.ts index 406dc1844..1e29437da 100644 --- a/integration/default-with-metadata/default-with-metadata.ts +++ b/integration/default-with-metadata/default-with-metadata.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: default-with-metadata.proto + /* eslint-disable */ import { Metadata } from "@grpc/grpc-js"; import * as _m0 from "protobufjs/minimal"; diff --git a/integration/emit-default-values-json/google/protobuf/timestamp.ts b/integration/emit-default-values-json/google/protobuf/timestamp.ts index b38b58970..2f859c4c9 100644 --- a/integration/emit-default-values-json/google/protobuf/timestamp.ts +++ b/integration/emit-default-values-json/google/protobuf/timestamp.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/timestamp.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/emit-default-values-json/test.ts b/integration/emit-default-values-json/test.ts index 854650bea..09ba19137 100644 --- a/integration/emit-default-values-json/test.ts +++ b/integration/emit-default-values-json/test.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: test.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Timestamp } from "./google/protobuf/timestamp"; diff --git a/integration/enums-as-literals-with-string-enums/enums-as-literals-with-string-enums.ts b/integration/enums-as-literals-with-string-enums/enums-as-literals-with-string-enums.ts index 3d72ca249..9886183cb 100644 --- a/integration/enums-as-literals-with-string-enums/enums-as-literals-with-string-enums.ts +++ b/integration/enums-as-literals-with-string-enums/enums-as-literals-with-string-enums.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: enums-as-literals-with-string-enums.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/enums-as-literals/enums-as-literals.ts b/integration/enums-as-literals/enums-as-literals.ts index 54f80a823..81796eb24 100644 --- a/integration/enums-as-literals/enums-as-literals.ts +++ b/integration/enums-as-literals/enums-as-literals.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: enums-as-literals.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/enums-with-unrecognized-name-value/test.ts b/integration/enums-with-unrecognized-name-value/test.ts index 71b2415ef..d034088cb 100644 --- a/integration/enums-with-unrecognized-name-value/test.ts +++ b/integration/enums-with-unrecognized-name-value/test.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: test.proto + /* eslint-disable */ export const protobufPackage = ""; diff --git a/integration/extensions/test.ts b/integration/extensions/test.ts index f63496156..40ed0e4cc 100644 --- a/integration/extensions/test.ts +++ b/integration/extensions/test.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: test.proto + /* eslint-disable */ import Long = require("long"); import * as _m0 from "protobufjs/minimal"; diff --git a/integration/fieldmask-optional-all/fieldmask-optional.ts b/integration/fieldmask-optional-all/fieldmask-optional.ts index 6062674c2..56ce0d4a8 100644 --- a/integration/fieldmask-optional-all/fieldmask-optional.ts +++ b/integration/fieldmask-optional-all/fieldmask-optional.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: fieldmask-optional.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { FieldMask } from "./google/protobuf/field_mask"; diff --git a/integration/fieldmask-optional-all/google/protobuf/field_mask.ts b/integration/fieldmask-optional-all/google/protobuf/field_mask.ts index ee147ec88..2b8645d2f 100644 --- a/integration/fieldmask-optional-all/google/protobuf/field_mask.ts +++ b/integration/fieldmask-optional-all/google/protobuf/field_mask.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/field_mask.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/fieldmask/fieldmask.ts b/integration/fieldmask/fieldmask.ts index 4ab450588..86972954e 100644 --- a/integration/fieldmask/fieldmask.ts +++ b/integration/fieldmask/fieldmask.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: fieldmask.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { FieldMask } from "./google/protobuf/field_mask"; diff --git a/integration/fieldmask/google/protobuf/field_mask.ts b/integration/fieldmask/google/protobuf/field_mask.ts index 6621e05cb..a74cfa991 100644 --- a/integration/fieldmask/google/protobuf/field_mask.ts +++ b/integration/fieldmask/google/protobuf/field_mask.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/field_mask.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/fieldoption-jstype-with-forcelong-bigint/fieldoption-jstype-with-forcelong-bigint.ts b/integration/fieldoption-jstype-with-forcelong-bigint/fieldoption-jstype-with-forcelong-bigint.ts index 46343a7f9..212b11064 100644 --- a/integration/fieldoption-jstype-with-forcelong-bigint/fieldoption-jstype-with-forcelong-bigint.ts +++ b/integration/fieldoption-jstype-with-forcelong-bigint/fieldoption-jstype-with-forcelong-bigint.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: fieldoption-jstype-with-forcelong-bigint.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/fieldoption-jstype-with-forcelong-long/fieldoption-jstype-with-forcelong-long.ts b/integration/fieldoption-jstype-with-forcelong-long/fieldoption-jstype-with-forcelong-long.ts index 5b30ea8ee..59b97df54 100644 --- a/integration/fieldoption-jstype-with-forcelong-long/fieldoption-jstype-with-forcelong-long.ts +++ b/integration/fieldoption-jstype-with-forcelong-long/fieldoption-jstype-with-forcelong-long.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: fieldoption-jstype-with-forcelong-long.proto + /* eslint-disable */ import Long = require("long"); import * as _m0 from "protobufjs/minimal"; diff --git a/integration/fieldoption-jstype-with-forcelong-number/fieldoption-jstype-with-forcelong-number.ts b/integration/fieldoption-jstype-with-forcelong-number/fieldoption-jstype-with-forcelong-number.ts index 7933223b3..a286ac401 100644 --- a/integration/fieldoption-jstype-with-forcelong-number/fieldoption-jstype-with-forcelong-number.ts +++ b/integration/fieldoption-jstype-with-forcelong-number/fieldoption-jstype-with-forcelong-number.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: fieldoption-jstype-with-forcelong-number.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/fieldoption-jstype-with-forcelong-string/fieldoption-jstype-with-forcelong-string.ts b/integration/fieldoption-jstype-with-forcelong-string/fieldoption-jstype-with-forcelong-string.ts index 9ea0d6248..3382c0d9a 100644 --- a/integration/fieldoption-jstype-with-forcelong-string/fieldoption-jstype-with-forcelong-string.ts +++ b/integration/fieldoption-jstype-with-forcelong-string/fieldoption-jstype-with-forcelong-string.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: fieldoption-jstype-with-forcelong-string.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/fieldoption-jstype/fieldoption-jstype.ts b/integration/fieldoption-jstype/fieldoption-jstype.ts index d9b73bd63..67cb3c9f6 100644 --- a/integration/fieldoption-jstype/fieldoption-jstype.ts +++ b/integration/fieldoption-jstype/fieldoption-jstype.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: fieldoption-jstype.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/file-suffix/child.pb.ts b/integration/file-suffix/child.pb.ts index 344c0afb9..3713b2cc4 100644 --- a/integration/file-suffix/child.pb.ts +++ b/integration/file-suffix/child.pb.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: child.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/file-suffix/google/protobuf/timestamp.pb.ts b/integration/file-suffix/google/protobuf/timestamp.pb.ts index 0cf501b86..835f3f187 100644 --- a/integration/file-suffix/google/protobuf/timestamp.pb.ts +++ b/integration/file-suffix/google/protobuf/timestamp.pb.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/timestamp.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/file-suffix/parent.pb.ts b/integration/file-suffix/parent.pb.ts index e7502489d..fca471e3c 100644 --- a/integration/file-suffix/parent.pb.ts +++ b/integration/file-suffix/parent.pb.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: parent.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Child, ChildEnum, childEnumFromJSON, childEnumToJSON } from "./child.pb"; diff --git a/integration/from-partial-no-initialize/test.ts b/integration/from-partial-no-initialize/test.ts index 342276e9b..a34b5648f 100644 --- a/integration/from-partial-no-initialize/test.ts +++ b/integration/from-partial-no-initialize/test.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: test.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/fromJson-enums/from-json.ts b/integration/fromJson-enums/from-json.ts index ba926465d..25fbbe609 100644 --- a/integration/fromJson-enums/from-json.ts +++ b/integration/fromJson-enums/from-json.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: from-json.proto + /* eslint-disable */ export const protobufPackage = ""; diff --git a/integration/generic-metadata/hero.ts b/integration/generic-metadata/hero.ts index 0c15c7c8e..0d7f13b33 100644 --- a/integration/generic-metadata/hero.ts +++ b/integration/generic-metadata/hero.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: hero.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Observable } from "rxjs"; diff --git a/integration/generic-service-definitions-and-services/simple.ts b/integration/generic-service-definitions-and-services/simple.ts index 1f978d8e9..6adbda5f0 100644 --- a/integration/generic-service-definitions-and-services/simple.ts +++ b/integration/generic-service-definitions-and-services/simple.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: simple.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/generic-service-definitions/simple.ts b/integration/generic-service-definitions/simple.ts index 1f978d8e9..6adbda5f0 100644 --- a/integration/generic-service-definitions/simple.ts +++ b/integration/generic-service-definitions/simple.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: simple.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/global-this/global-this.ts b/integration/global-this/global-this.ts index eff04a77a..67b76a04b 100644 --- a/integration/global-this/global-this.ts +++ b/integration/global-this/global-this.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: global-this.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/groups/test.ts b/integration/groups/test.ts index 4b601ce63..bb3e0b142 100644 --- a/integration/groups/test.ts +++ b/integration/groups/test.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: test.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/grpc-js-use-date-false/google/protobuf/timestamp.ts b/integration/grpc-js-use-date-false/google/protobuf/timestamp.ts index 0cf501b86..835f3f187 100644 --- a/integration/grpc-js-use-date-false/google/protobuf/timestamp.ts +++ b/integration/grpc-js-use-date-false/google/protobuf/timestamp.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/timestamp.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/grpc-js-use-date-false/grpc-js-use-date-false.ts b/integration/grpc-js-use-date-false/grpc-js-use-date-false.ts index 304c723d3..4e9e2d3c9 100644 --- a/integration/grpc-js-use-date-false/grpc-js-use-date-false.ts +++ b/integration/grpc-js-use-date-false/grpc-js-use-date-false.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: grpc-js-use-date-false.proto + /* eslint-disable */ import { ChannelCredentials, Client, makeGenericClientConstructor, Metadata } from "@grpc/grpc-js"; import type { diff --git a/integration/grpc-js-use-date-string-nano/google/protobuf/timestamp.ts b/integration/grpc-js-use-date-string-nano/google/protobuf/timestamp.ts index 0cf501b86..835f3f187 100644 --- a/integration/grpc-js-use-date-string-nano/google/protobuf/timestamp.ts +++ b/integration/grpc-js-use-date-string-nano/google/protobuf/timestamp.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/timestamp.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/grpc-js-use-date-string-nano/grpc-js-use-date-string-nano.ts b/integration/grpc-js-use-date-string-nano/grpc-js-use-date-string-nano.ts index f89033f9c..f1cd2c35f 100644 --- a/integration/grpc-js-use-date-string-nano/grpc-js-use-date-string-nano.ts +++ b/integration/grpc-js-use-date-string-nano/grpc-js-use-date-string-nano.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: grpc-js-use-date-string-nano.proto + /* eslint-disable */ import { ChannelCredentials, Client, makeGenericClientConstructor, Metadata } from "@grpc/grpc-js"; import type { diff --git a/integration/grpc-js-use-date-string/google/protobuf/timestamp.ts b/integration/grpc-js-use-date-string/google/protobuf/timestamp.ts index 0cf501b86..835f3f187 100644 --- a/integration/grpc-js-use-date-string/google/protobuf/timestamp.ts +++ b/integration/grpc-js-use-date-string/google/protobuf/timestamp.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/timestamp.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/grpc-js-use-date-string/grpc-js-use-date-string.ts b/integration/grpc-js-use-date-string/grpc-js-use-date-string.ts index 9b5a4faa0..cf74ba653 100644 --- a/integration/grpc-js-use-date-string/grpc-js-use-date-string.ts +++ b/integration/grpc-js-use-date-string/grpc-js-use-date-string.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: grpc-js-use-date-string.proto + /* eslint-disable */ import { ChannelCredentials, Client, makeGenericClientConstructor, Metadata } from "@grpc/grpc-js"; import type { diff --git a/integration/grpc-js-use-date-true/google/protobuf/timestamp.ts b/integration/grpc-js-use-date-true/google/protobuf/timestamp.ts index 0cf501b86..835f3f187 100644 --- a/integration/grpc-js-use-date-true/google/protobuf/timestamp.ts +++ b/integration/grpc-js-use-date-true/google/protobuf/timestamp.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/timestamp.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/grpc-js-use-date-true/grpc-js-use-date-true.ts b/integration/grpc-js-use-date-true/grpc-js-use-date-true.ts index 40334bf08..3969c3a39 100644 --- a/integration/grpc-js-use-date-true/grpc-js-use-date-true.ts +++ b/integration/grpc-js-use-date-true/grpc-js-use-date-true.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: grpc-js-use-date-true.proto + /* eslint-disable */ import { ChannelCredentials, Client, makeGenericClientConstructor, Metadata } from "@grpc/grpc-js"; import type { diff --git a/integration/grpc-js/google/protobuf/empty.ts b/integration/grpc-js/google/protobuf/empty.ts index b43712c5b..2c276461a 100644 --- a/integration/grpc-js/google/protobuf/empty.ts +++ b/integration/grpc-js/google/protobuf/empty.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/empty.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/grpc-js/google/protobuf/struct.ts b/integration/grpc-js/google/protobuf/struct.ts index 849206f64..48c8311c0 100644 --- a/integration/grpc-js/google/protobuf/struct.ts +++ b/integration/grpc-js/google/protobuf/struct.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/struct.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/grpc-js/google/protobuf/timestamp.ts b/integration/grpc-js/google/protobuf/timestamp.ts index 0cf501b86..835f3f187 100644 --- a/integration/grpc-js/google/protobuf/timestamp.ts +++ b/integration/grpc-js/google/protobuf/timestamp.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/timestamp.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/grpc-js/google/protobuf/wrappers.ts b/integration/grpc-js/google/protobuf/wrappers.ts index 75e77c039..6159c1b46 100644 --- a/integration/grpc-js/google/protobuf/wrappers.ts +++ b/integration/grpc-js/google/protobuf/wrappers.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/wrappers.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/grpc-js/simple.ts b/integration/grpc-js/simple.ts index 4a136e9aa..9667cd583 100644 --- a/integration/grpc-js/simple.ts +++ b/integration/grpc-js/simple.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: simple.proto + /* eslint-disable */ import { ChannelCredentials, diff --git a/integration/grpc-web-abort-signal/example.ts b/integration/grpc-web-abort-signal/example.ts index eb35f2d4f..f3487df28 100644 --- a/integration/grpc-web-abort-signal/example.ts +++ b/integration/grpc-web-abort-signal/example.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: example.proto + /* eslint-disable */ import { grpc } from "@improbable-eng/grpc-web"; import { BrowserHeaders } from "browser-headers"; diff --git a/integration/grpc-web-go-server/example.ts b/integration/grpc-web-go-server/example.ts index f7e13410e..d900d7434 100644 --- a/integration/grpc-web-go-server/example.ts +++ b/integration/grpc-web-go-server/example.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: example.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Observable } from "rxjs"; diff --git a/integration/grpc-web-no-streaming-observable/example.ts b/integration/grpc-web-no-streaming-observable/example.ts index c2a82a9df..3c1cca451 100644 --- a/integration/grpc-web-no-streaming-observable/example.ts +++ b/integration/grpc-web-no-streaming-observable/example.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: example.proto + /* eslint-disable */ import { grpc } from "@improbable-eng/grpc-web"; import { BrowserHeaders } from "browser-headers"; diff --git a/integration/grpc-web-no-streaming/example.ts b/integration/grpc-web-no-streaming/example.ts index 9143fdc8f..422b9c362 100644 --- a/integration/grpc-web-no-streaming/example.ts +++ b/integration/grpc-web-no-streaming/example.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: example.proto + /* eslint-disable */ import { grpc } from "@improbable-eng/grpc-web"; import { BrowserHeaders } from "browser-headers"; diff --git a/integration/grpc-web/example.ts b/integration/grpc-web/example.ts index 910c0f64d..b6f9828b6 100644 --- a/integration/grpc-web/example.ts +++ b/integration/grpc-web/example.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: example.proto + /* eslint-disable */ import { grpc } from "@improbable-eng/grpc-web"; import { BrowserHeaders } from "browser-headers"; diff --git a/integration/grpc-web/google/protobuf/wrappers.ts b/integration/grpc-web/google/protobuf/wrappers.ts index 75e77c039..6159c1b46 100644 --- a/integration/grpc-web/google/protobuf/wrappers.ts +++ b/integration/grpc-web/google/protobuf/wrappers.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/wrappers.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/handle-error-in-default-service/simple.ts b/integration/handle-error-in-default-service/simple.ts index 475260254..7958d5088 100644 --- a/integration/handle-error-in-default-service/simple.ts +++ b/integration/handle-error-in-default-service/simple.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: simple.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/handle-error-with-after-response/simple.ts b/integration/handle-error-with-after-response/simple.ts index f41884e62..3520ddf46 100644 --- a/integration/handle-error-with-after-response/simple.ts +++ b/integration/handle-error-with-after-response/simple.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: simple.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/import-mapping/google/protobuf/timestamp.ts b/integration/import-mapping/google/protobuf/timestamp.ts index 0cf501b86..835f3f187 100644 --- a/integration/import-mapping/google/protobuf/timestamp.ts +++ b/integration/import-mapping/google/protobuf/timestamp.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/timestamp.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/import-mapping/mapping.ts b/integration/import-mapping/mapping.ts index 44ee57ef2..b5124fc6a 100644 --- a/integration/import-mapping/mapping.ts +++ b/integration/import-mapping/mapping.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: mapping.proto + /* eslint-disable */ import { Duration } from "@google/protobuf/duration"; import { Empty } from "@google/protobuf/empty"; diff --git a/integration/import-suffix/child.pb.ts b/integration/import-suffix/child.pb.ts index 1666ca356..e91f5784e 100644 --- a/integration/import-suffix/child.pb.ts +++ b/integration/import-suffix/child.pb.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: child.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal.js"; diff --git a/integration/import-suffix/google/protobuf/timestamp.pb.ts b/integration/import-suffix/google/protobuf/timestamp.pb.ts index 447ba735e..48e7003ff 100644 --- a/integration/import-suffix/google/protobuf/timestamp.pb.ts +++ b/integration/import-suffix/google/protobuf/timestamp.pb.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/timestamp.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal.js"; import Long = require("long"); diff --git a/integration/import-suffix/parent.pb.ts b/integration/import-suffix/parent.pb.ts index f48d139ea..578dc0a29 100644 --- a/integration/import-suffix/parent.pb.ts +++ b/integration/import-suffix/parent.pb.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: parent.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal.js"; import { Child, ChildEnum, childEnumFromJSON, childEnumToJSON } from "./child.pb.js"; diff --git a/integration/lower-case-svc-methods/math.ts b/integration/lower-case-svc-methods/math.ts index 401ecf22b..d49a19227 100644 --- a/integration/lower-case-svc-methods/math.ts +++ b/integration/lower-case-svc-methods/math.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: math.proto + /* eslint-disable */ import * as DataLoader from "dataloader"; import * as hash from "object-hash"; diff --git a/integration/map-bigint-optional/test.ts b/integration/map-bigint-optional/test.ts index 527097d04..832929534 100644 --- a/integration/map-bigint-optional/test.ts +++ b/integration/map-bigint-optional/test.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: test.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/map-long-optional/test.ts b/integration/map-long-optional/test.ts index c3b54541f..b0d5c822e 100644 --- a/integration/map-long-optional/test.ts +++ b/integration/map-long-optional/test.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: test.proto + /* eslint-disable */ import Long = require("long"); import * as _m0 from "protobufjs/minimal"; diff --git a/integration/map-longstring-optional/test.ts b/integration/map-longstring-optional/test.ts index 776cfce64..58f4a99dc 100644 --- a/integration/map-longstring-optional/test.ts +++ b/integration/map-longstring-optional/test.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: test.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/meta-typings/google/protobuf/timestamp.ts b/integration/meta-typings/google/protobuf/timestamp.ts index cf6373a8f..f5c64d397 100644 --- a/integration/meta-typings/google/protobuf/timestamp.ts +++ b/integration/meta-typings/google/protobuf/timestamp.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/timestamp.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { FileDescriptorProto } from "ts-proto-descriptors"; diff --git a/integration/meta-typings/google/protobuf/wrappers.ts b/integration/meta-typings/google/protobuf/wrappers.ts index f4b3cb783..eff223512 100644 --- a/integration/meta-typings/google/protobuf/wrappers.ts +++ b/integration/meta-typings/google/protobuf/wrappers.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/wrappers.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { FileDescriptorProto } from "ts-proto-descriptors"; diff --git a/integration/meta-typings/google/type/date.ts b/integration/meta-typings/google/type/date.ts index 7ef9a8e84..bc7cf4999 100644 --- a/integration/meta-typings/google/type/date.ts +++ b/integration/meta-typings/google/type/date.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/type/date.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { FileDescriptorProto } from "ts-proto-descriptors"; diff --git a/integration/meta-typings/import_dir/thing.ts b/integration/meta-typings/import_dir/thing.ts index af0ebba06..5edeb36c1 100644 --- a/integration/meta-typings/import_dir/thing.ts +++ b/integration/meta-typings/import_dir/thing.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: import_dir/thing.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { FileDescriptorProto } from "ts-proto-descriptors"; diff --git a/integration/meta-typings/simple.ts b/integration/meta-typings/simple.ts index 937a59762..2f4b35db8 100644 --- a/integration/meta-typings/simple.ts +++ b/integration/meta-typings/simple.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: simple.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { FileDescriptorProto } from "ts-proto-descriptors"; diff --git a/integration/nestjs-metadata-grpc-js/hero.ts b/integration/nestjs-metadata-grpc-js/hero.ts index 0d46ee1cb..42676706e 100644 --- a/integration/nestjs-metadata-grpc-js/hero.ts +++ b/integration/nestjs-metadata-grpc-js/hero.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: hero.proto + /* eslint-disable */ import { handleBidiStreamingCall, Metadata } from "@grpc/grpc-js"; import type { handleUnaryCall, UntypedServiceImplementation } from "@grpc/grpc-js"; diff --git a/integration/nestjs-metadata-observables/hero.ts b/integration/nestjs-metadata-observables/hero.ts index 197aa85d4..70412b645 100644 --- a/integration/nestjs-metadata-observables/hero.ts +++ b/integration/nestjs-metadata-observables/hero.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: hero.proto + /* eslint-disable */ import { Metadata } from "@grpc/grpc-js"; import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices"; diff --git a/integration/nestjs-metadata-restparameters/hero.ts b/integration/nestjs-metadata-restparameters/hero.ts index 6ef287bac..14bc93d02 100644 --- a/integration/nestjs-metadata-restparameters/hero.ts +++ b/integration/nestjs-metadata-restparameters/hero.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: hero.proto + /* eslint-disable */ import { Metadata } from "@grpc/grpc-js"; import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices"; diff --git a/integration/nestjs-metadata/hero.ts b/integration/nestjs-metadata/hero.ts index 54483ffd9..3204f8947 100644 --- a/integration/nestjs-metadata/hero.ts +++ b/integration/nestjs-metadata/hero.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: hero.proto + /* eslint-disable */ import { Metadata } from "@grpc/grpc-js"; import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices"; diff --git a/integration/nestjs-restparameters/hero.ts b/integration/nestjs-restparameters/hero.ts index abf56feb9..81aa6a4e6 100644 --- a/integration/nestjs-restparameters/hero.ts +++ b/integration/nestjs-restparameters/hero.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: hero.proto + /* eslint-disable */ import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices"; import { Observable } from "rxjs"; diff --git a/integration/nestjs-simple-observables/hero.ts b/integration/nestjs-simple-observables/hero.ts index 7c884baf4..b9a352bca 100644 --- a/integration/nestjs-simple-observables/hero.ts +++ b/integration/nestjs-simple-observables/hero.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: hero.proto + /* eslint-disable */ import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices"; import { Observable } from "rxjs"; diff --git a/integration/nestjs-simple-restparameters/google/protobuf/empty.ts b/integration/nestjs-simple-restparameters/google/protobuf/empty.ts index 642a965dc..48d25a195 100644 --- a/integration/nestjs-simple-restparameters/google/protobuf/empty.ts +++ b/integration/nestjs-simple-restparameters/google/protobuf/empty.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/empty.proto + /* eslint-disable */ export const protobufPackage = "google.protobuf"; diff --git a/integration/nestjs-simple-restparameters/hero.ts b/integration/nestjs-simple-restparameters/hero.ts index b7bb522a5..82970a0e1 100644 --- a/integration/nestjs-simple-restparameters/hero.ts +++ b/integration/nestjs-simple-restparameters/hero.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: hero.proto + /* eslint-disable */ import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices"; import { Observable } from "rxjs"; diff --git a/integration/nestjs-simple-usedate/google/protobuf/empty.ts b/integration/nestjs-simple-usedate/google/protobuf/empty.ts index 642a965dc..48d25a195 100644 --- a/integration/nestjs-simple-usedate/google/protobuf/empty.ts +++ b/integration/nestjs-simple-usedate/google/protobuf/empty.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/empty.proto + /* eslint-disable */ export const protobufPackage = "google.protobuf"; diff --git a/integration/nestjs-simple-usedate/google/protobuf/timestamp.ts b/integration/nestjs-simple-usedate/google/protobuf/timestamp.ts index 466815132..a11b3e549 100644 --- a/integration/nestjs-simple-usedate/google/protobuf/timestamp.ts +++ b/integration/nestjs-simple-usedate/google/protobuf/timestamp.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/timestamp.proto + /* eslint-disable */ export const protobufPackage = "google.protobuf"; diff --git a/integration/nestjs-simple-usedate/hero.ts b/integration/nestjs-simple-usedate/hero.ts index cf606e35d..61a2de974 100644 --- a/integration/nestjs-simple-usedate/hero.ts +++ b/integration/nestjs-simple-usedate/hero.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: hero.proto + /* eslint-disable */ import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices"; import { wrappers } from "protobufjs"; diff --git a/integration/nestjs-simple/google/protobuf/empty.ts b/integration/nestjs-simple/google/protobuf/empty.ts index 642a965dc..48d25a195 100644 --- a/integration/nestjs-simple/google/protobuf/empty.ts +++ b/integration/nestjs-simple/google/protobuf/empty.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/empty.proto + /* eslint-disable */ export const protobufPackage = "google.protobuf"; diff --git a/integration/nestjs-simple/google/protobuf/struct.ts b/integration/nestjs-simple/google/protobuf/struct.ts index de6125dfb..7a839ecbe 100644 --- a/integration/nestjs-simple/google/protobuf/struct.ts +++ b/integration/nestjs-simple/google/protobuf/struct.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/struct.proto + /* eslint-disable */ import { wrappers } from "protobufjs"; diff --git a/integration/nestjs-simple/google/protobuf/timestamp.ts b/integration/nestjs-simple/google/protobuf/timestamp.ts index 229cba608..3b4f18469 100644 --- a/integration/nestjs-simple/google/protobuf/timestamp.ts +++ b/integration/nestjs-simple/google/protobuf/timestamp.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/timestamp.proto + /* eslint-disable */ export const protobufPackage = "google.protobuf"; diff --git a/integration/nestjs-simple/hero.ts b/integration/nestjs-simple/hero.ts index a6d0e0788..39dc689f2 100644 --- a/integration/nestjs-simple/hero.ts +++ b/integration/nestjs-simple/hero.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: hero.proto + /* eslint-disable */ import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices"; import { wrappers } from "protobufjs"; diff --git a/integration/nice-grpc/google/protobuf/empty.ts b/integration/nice-grpc/google/protobuf/empty.ts index 21fddf8fe..b5e06f41e 100644 --- a/integration/nice-grpc/google/protobuf/empty.ts +++ b/integration/nice-grpc/google/protobuf/empty.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/empty.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/nice-grpc/google/protobuf/struct.ts b/integration/nice-grpc/google/protobuf/struct.ts index d773b780c..301efda6a 100644 --- a/integration/nice-grpc/google/protobuf/struct.ts +++ b/integration/nice-grpc/google/protobuf/struct.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/struct.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/nice-grpc/google/protobuf/timestamp.ts b/integration/nice-grpc/google/protobuf/timestamp.ts index 3d4edd591..db61d802a 100644 --- a/integration/nice-grpc/google/protobuf/timestamp.ts +++ b/integration/nice-grpc/google/protobuf/timestamp.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/timestamp.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/nice-grpc/google/protobuf/wrappers.ts b/integration/nice-grpc/google/protobuf/wrappers.ts index b1ea5d6ec..898e5b104 100644 --- a/integration/nice-grpc/google/protobuf/wrappers.ts +++ b/integration/nice-grpc/google/protobuf/wrappers.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/wrappers.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/nice-grpc/simple.ts b/integration/nice-grpc/simple.ts index cd2f18ad5..273be1b44 100644 --- a/integration/nice-grpc/simple.ts +++ b/integration/nice-grpc/simple.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: simple.proto + /* eslint-disable */ import type { CallContext, CallOptions } from "nice-grpc-common"; import * as _m0 from "protobufjs/minimal"; diff --git a/integration/no-comments/simple.ts b/integration/no-comments/simple.ts index a5da0481b..daadcba06 100644 --- a/integration/no-comments/simple.ts +++ b/integration/no-comments/simple.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: simple.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/no-proto-package/no-proto-package.ts b/integration/no-proto-package/no-proto-package.ts index bbc99c042..9e8de5794 100644 --- a/integration/no-proto-package/no-proto-package.ts +++ b/integration/no-proto-package/no-proto-package.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: no-proto-package.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Observable } from "rxjs"; diff --git a/integration/omit-optionals/simple.ts b/integration/omit-optionals/simple.ts index 2b4118d22..ffd1a0551 100644 --- a/integration/omit-optionals/simple.ts +++ b/integration/omit-optionals/simple.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: simple.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/oneof-properties/oneof.ts b/integration/oneof-properties/oneof.ts index 32eae1124..3b39e5394 100644 --- a/integration/oneof-properties/oneof.ts +++ b/integration/oneof-properties/oneof.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: oneof.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/oneof-unions-snake/google/protobuf/struct.ts b/integration/oneof-unions-snake/google/protobuf/struct.ts index 76745053b..a018129b2 100644 --- a/integration/oneof-unions-snake/google/protobuf/struct.ts +++ b/integration/oneof-unions-snake/google/protobuf/struct.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/struct.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/oneof-unions-snake/simple.ts b/integration/oneof-unions-snake/simple.ts index 5c454a07c..800de2d66 100644 --- a/integration/oneof-unions-snake/simple.ts +++ b/integration/oneof-unions-snake/simple.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: simple.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Struct } from "./google/protobuf/struct"; diff --git a/integration/oneof-unions/google/protobuf/struct.ts b/integration/oneof-unions/google/protobuf/struct.ts index a12c690df..f296b811f 100644 --- a/integration/oneof-unions/google/protobuf/struct.ts +++ b/integration/oneof-unions/google/protobuf/struct.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/struct.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/oneof-unions/oneof.ts b/integration/oneof-unions/oneof.ts index 3c7414cd0..dd30a7c3d 100644 --- a/integration/oneof-unions/oneof.ts +++ b/integration/oneof-unions/oneof.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: oneof.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Value } from "./google/protobuf/struct"; diff --git a/integration/only-types-grpc-metadata/only-types-grpc-metadata.ts b/integration/only-types-grpc-metadata/only-types-grpc-metadata.ts index 1848fde18..169efc3d9 100644 --- a/integration/only-types-grpc-metadata/only-types-grpc-metadata.ts +++ b/integration/only-types-grpc-metadata/only-types-grpc-metadata.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: only-types-grpc-metadata.proto + /* eslint-disable */ import { Metadata } from "@grpc/grpc-js"; diff --git a/integration/only-types/google/protobuf/any.ts b/integration/only-types/google/protobuf/any.ts index d762aac64..dadb04680 100644 --- a/integration/only-types/google/protobuf/any.ts +++ b/integration/only-types/google/protobuf/any.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/any.proto + /* eslint-disable */ export const protobufPackage = "google.protobuf"; diff --git a/integration/only-types/google/protobuf/timestamp.ts b/integration/only-types/google/protobuf/timestamp.ts index 814fb7fa0..58aeb6a07 100644 --- a/integration/only-types/google/protobuf/timestamp.ts +++ b/integration/only-types/google/protobuf/timestamp.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/timestamp.proto + /* eslint-disable */ export const protobufPackage = "google.protobuf"; diff --git a/integration/only-types/reservation.ts b/integration/only-types/reservation.ts index 452b9d354..3e5a2aa80 100644 --- a/integration/only-types/reservation.ts +++ b/integration/only-types/reservation.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: reservation.proto + /* eslint-disable */ import type { Any } from "./google/protobuf/any"; diff --git a/integration/optional-long/google/protobuf/timestamp.ts b/integration/optional-long/google/protobuf/timestamp.ts index aee5101ac..a91a5d15f 100644 --- a/integration/optional-long/google/protobuf/timestamp.ts +++ b/integration/optional-long/google/protobuf/timestamp.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/timestamp.proto + /* eslint-disable */ import Long = require("long"); import * as _m0 from "protobufjs/minimal"; diff --git a/integration/optional-long/test.ts b/integration/optional-long/test.ts index ca44c6796..d163eec05 100644 --- a/integration/optional-long/test.ts +++ b/integration/optional-long/test.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: test.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Timestamp } from "./google/protobuf/timestamp"; diff --git a/integration/optional-type-definitions/simple.ts b/integration/optional-type-definitions/simple.ts index 9e5c489be..e28589f06 100644 --- a/integration/optional-type-definitions/simple.ts +++ b/integration/optional-type-definitions/simple.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: simple.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/options/google/protobuf/descriptor.ts b/integration/options/google/protobuf/descriptor.ts index f74be1c6b..f997cad93 100644 --- a/integration/options/google/protobuf/descriptor.ts +++ b/integration/options/google/protobuf/descriptor.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/descriptor.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { FileDescriptorProto as FileDescriptorProto1 } from "ts-proto-descriptors"; diff --git a/integration/options/options.ts b/integration/options/options.ts index 3fe6f9dd0..04da3b0ca 100644 --- a/integration/options/options.ts +++ b/integration/options/options.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: options.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { FileDescriptorProto as FileDescriptorProto1 } from "ts-proto-descriptors"; diff --git a/integration/options/something/something.ts b/integration/options/something/something.ts index b731dc206..439217a3b 100644 --- a/integration/options/something/something.ts +++ b/integration/options/something/something.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: something/something.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { FileDescriptorProto as FileDescriptorProto1 } from "ts-proto-descriptors"; diff --git a/integration/output-decode-only/encode.ts b/integration/output-decode-only/encode.ts index 0e4ffb33f..5e750e60a 100644 --- a/integration/output-decode-only/encode.ts +++ b/integration/output-decode-only/encode.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: encode.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/output-decode-only/google/protobuf/wrappers.ts b/integration/output-decode-only/google/protobuf/wrappers.ts index 35767f587..7a9df04c1 100644 --- a/integration/output-decode-only/google/protobuf/wrappers.ts +++ b/integration/output-decode-only/google/protobuf/wrappers.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/wrappers.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/output-encode-no-creation-methods/encode.ts b/integration/output-encode-no-creation-methods/encode.ts index eec800002..c567e8118 100644 --- a/integration/output-encode-no-creation-methods/encode.ts +++ b/integration/output-encode-no-creation-methods/encode.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: encode.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/output-encode-no-creation-methods/google/protobuf/wrappers.ts b/integration/output-encode-no-creation-methods/google/protobuf/wrappers.ts index 4a60f4112..39159a59f 100644 --- a/integration/output-encode-no-creation-methods/google/protobuf/wrappers.ts +++ b/integration/output-encode-no-creation-methods/google/protobuf/wrappers.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/wrappers.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/output-encode-only/encode.ts b/integration/output-encode-only/encode.ts index 15e949014..a29ac991e 100644 --- a/integration/output-encode-only/encode.ts +++ b/integration/output-encode-only/encode.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: encode.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/output-encode-only/google/protobuf/wrappers.ts b/integration/output-encode-only/google/protobuf/wrappers.ts index 1b951819e..0aff0748a 100644 --- a/integration/output-encode-only/google/protobuf/wrappers.ts +++ b/integration/output-encode-only/google/protobuf/wrappers.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/wrappers.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/output-fromJSON-only/decode.ts b/integration/output-fromJSON-only/decode.ts index 0bfd0e63b..7182a9ecb 100644 --- a/integration/output-fromJSON-only/decode.ts +++ b/integration/output-fromJSON-only/decode.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: decode.proto + /* eslint-disable */ export const protobufPackage = ""; diff --git a/integration/output-fromJSON-only/google/protobuf/wrappers.ts b/integration/output-fromJSON-only/google/protobuf/wrappers.ts index 952ff4b74..e5150d998 100644 --- a/integration/output-fromJSON-only/google/protobuf/wrappers.ts +++ b/integration/output-fromJSON-only/google/protobuf/wrappers.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/wrappers.proto + /* eslint-disable */ export const protobufPackage = "google.protobuf"; diff --git a/integration/output-index/a.ts b/integration/output-index/a.ts index d2b61cf6e..6063787cb 100644 --- a/integration/output-index/a.ts +++ b/integration/output-index/a.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: a.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/output-index/index.base.ts b/integration/output-index/index.base.ts index b75bfa97f..1fdd1888b 100644 --- a/integration/output-index/index.base.ts +++ b/integration/output-index/index.base.ts @@ -1,3 +1,8 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 + /* eslint-disable */ export * from "./a"; diff --git a/integration/output-index/index.ts b/integration/output-index/index.ts index c41c2e7e5..9d2ecb930 100644 --- a/integration/output-index/index.ts +++ b/integration/output-index/index.ts @@ -1,3 +1,8 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 + /* eslint-disable */ export * as base from "./index.base"; diff --git a/integration/output-toJSON-only/encode.ts b/integration/output-toJSON-only/encode.ts index 3c8beed75..24ffc140c 100644 --- a/integration/output-toJSON-only/encode.ts +++ b/integration/output-toJSON-only/encode.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: encode.proto + /* eslint-disable */ export const protobufPackage = ""; diff --git a/integration/output-toJSON-only/google/protobuf/wrappers.ts b/integration/output-toJSON-only/google/protobuf/wrappers.ts index 1630863f0..07e760cfc 100644 --- a/integration/output-toJSON-only/google/protobuf/wrappers.ts +++ b/integration/output-toJSON-only/google/protobuf/wrappers.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/wrappers.proto + /* eslint-disable */ export const protobufPackage = "google.protobuf"; diff --git a/integration/point/point.ts b/integration/point/point.ts index 1a3ba3406..1b27e6816 100644 --- a/integration/point/point.ts +++ b/integration/point/point.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: point.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/proto2-long/simple.ts b/integration/proto2-long/simple.ts index ba691b678..db6a1a189 100644 --- a/integration/proto2-long/simple.ts +++ b/integration/proto2-long/simple.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: simple.proto + /* eslint-disable */ import Long = require("long"); import * as _m0 from "protobufjs/minimal"; diff --git a/integration/proto2-no-default-vals/simple.ts b/integration/proto2-no-default-vals/simple.ts index f17e5b4c6..c29b07d73 100644 --- a/integration/proto2-no-default-vals/simple.ts +++ b/integration/proto2-no-default-vals/simple.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: simple.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/proto2-no-optionals/simple.ts b/integration/proto2-no-optionals/simple.ts index 0fea2fbed..a73fa800d 100644 --- a/integration/proto2-no-optionals/simple.ts +++ b/integration/proto2-no-optionals/simple.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: simple.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/proto2/simple.ts b/integration/proto2/simple.ts index 23721f9fa..88c86c299 100644 --- a/integration/proto2/simple.ts +++ b/integration/proto2/simple.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: simple.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/remove-enum-prefix-string-enums/remove-enum-prefix-string-enums.ts b/integration/remove-enum-prefix-string-enums/remove-enum-prefix-string-enums.ts index 85ebed5fd..d2c0a9ab1 100644 --- a/integration/remove-enum-prefix-string-enums/remove-enum-prefix-string-enums.ts +++ b/integration/remove-enum-prefix-string-enums/remove-enum-prefix-string-enums.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: remove-enum-prefix-string-enums.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/remove-enum-prefix/remove-enum-prefix.ts b/integration/remove-enum-prefix/remove-enum-prefix.ts index ecf814647..ff6c6ce3a 100644 --- a/integration/remove-enum-prefix/remove-enum-prefix.ts +++ b/integration/remove-enum-prefix/remove-enum-prefix.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: remove-enum-prefix.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/reserved-words/reserved-words.ts b/integration/reserved-words/reserved-words.ts index c7192c998..3c4005159 100644 --- a/integration/reserved-words/reserved-words.ts +++ b/integration/reserved-words/reserved-words.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: reserved-words.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/return-observable/observable.ts b/integration/return-observable/observable.ts index 9e6bac934..943b07da4 100644 --- a/integration/return-observable/observable.ts +++ b/integration/return-observable/observable.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: observable.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Observable } from "rxjs"; diff --git a/integration/simple-deprecated-fields/simple.ts b/integration/simple-deprecated-fields/simple.ts index 198652acb..d01693e28 100644 --- a/integration/simple-deprecated-fields/simple.ts +++ b/integration/simple-deprecated-fields/simple.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: simple.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/simple-esmodule-interop/empty.ts b/integration/simple-esmodule-interop/empty.ts index 7bdf551c4..aedecce13 100644 --- a/integration/simple-esmodule-interop/empty.ts +++ b/integration/simple-esmodule-interop/empty.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: empty.proto + /* eslint-disable */ export const protobufPackage = "empty"; diff --git a/integration/simple-esmodule-interop/simple.ts b/integration/simple-esmodule-interop/simple.ts index 3f6013ec6..4e2688ac3 100644 --- a/integration/simple-esmodule-interop/simple.ts +++ b/integration/simple-esmodule-interop/simple.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: simple.proto + /* eslint-disable */ import Long from "long"; import _m0 from "protobufjs/minimal"; diff --git a/integration/simple-json-name/google/protobuf/timestamp.ts b/integration/simple-json-name/google/protobuf/timestamp.ts index 0cf501b86..835f3f187 100644 --- a/integration/simple-json-name/google/protobuf/timestamp.ts +++ b/integration/simple-json-name/google/protobuf/timestamp.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/timestamp.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/simple-json-name/simple.ts b/integration/simple-json-name/simple.ts index 7646692af..ce0e6f082 100644 --- a/integration/simple-json-name/simple.ts +++ b/integration/simple-json-name/simple.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: simple.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Timestamp } from "./google/protobuf/timestamp"; diff --git a/integration/simple-long-bigint/google/protobuf/timestamp.ts b/integration/simple-long-bigint/google/protobuf/timestamp.ts index 8ddcf6b68..123b0bad0 100644 --- a/integration/simple-long-bigint/google/protobuf/timestamp.ts +++ b/integration/simple-long-bigint/google/protobuf/timestamp.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/timestamp.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/simple-long-bigint/google/protobuf/wrappers.ts b/integration/simple-long-bigint/google/protobuf/wrappers.ts index d1b9292fb..8154688f4 100644 --- a/integration/simple-long-bigint/google/protobuf/wrappers.ts +++ b/integration/simple-long-bigint/google/protobuf/wrappers.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/wrappers.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/simple-long-bigint/simple.ts b/integration/simple-long-bigint/simple.ts index 78af89d65..1970c6449 100644 --- a/integration/simple-long-bigint/simple.ts +++ b/integration/simple-long-bigint/simple.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: simple.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Timestamp } from "./google/protobuf/timestamp"; diff --git a/integration/simple-long-string/google/protobuf/timestamp.ts b/integration/simple-long-string/google/protobuf/timestamp.ts index f44912e94..4b3e10672 100644 --- a/integration/simple-long-string/google/protobuf/timestamp.ts +++ b/integration/simple-long-string/google/protobuf/timestamp.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/timestamp.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/simple-long-string/google/protobuf/wrappers.ts b/integration/simple-long-string/google/protobuf/wrappers.ts index 2e92e4832..15dceeabb 100644 --- a/integration/simple-long-string/google/protobuf/wrappers.ts +++ b/integration/simple-long-string/google/protobuf/wrappers.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/wrappers.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/simple-long-string/simple.ts b/integration/simple-long-string/simple.ts index 05f93999f..fc526acb5 100644 --- a/integration/simple-long-string/simple.ts +++ b/integration/simple-long-string/simple.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: simple.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Timestamp } from "./google/protobuf/timestamp"; diff --git a/integration/simple-long/google/protobuf/wrappers.ts b/integration/simple-long/google/protobuf/wrappers.ts index b33583f85..314825951 100644 --- a/integration/simple-long/google/protobuf/wrappers.ts +++ b/integration/simple-long/google/protobuf/wrappers.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/wrappers.proto + /* eslint-disable */ import Long = require("long"); import * as _m0 from "protobufjs/minimal"; diff --git a/integration/simple-long/simple.ts b/integration/simple-long/simple.ts index edad609c9..c121f8253 100644 --- a/integration/simple-long/simple.ts +++ b/integration/simple-long/simple.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: simple.proto + /* eslint-disable */ import Long = require("long"); import * as _m0 from "protobufjs/minimal"; diff --git a/integration/simple-optionals/google/protobuf/timestamp.ts b/integration/simple-optionals/google/protobuf/timestamp.ts index 0cf501b86..835f3f187 100644 --- a/integration/simple-optionals/google/protobuf/timestamp.ts +++ b/integration/simple-optionals/google/protobuf/timestamp.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/timestamp.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/simple-optionals/google/protobuf/wrappers.ts b/integration/simple-optionals/google/protobuf/wrappers.ts index 75e77c039..6159c1b46 100644 --- a/integration/simple-optionals/google/protobuf/wrappers.ts +++ b/integration/simple-optionals/google/protobuf/wrappers.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/wrappers.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/simple-optionals/import_dir/thing.ts b/integration/simple-optionals/import_dir/thing.ts index 49ce0ed45..0326d2e54 100644 --- a/integration/simple-optionals/import_dir/thing.ts +++ b/integration/simple-optionals/import_dir/thing.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: import_dir/thing.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Timestamp } from "../google/protobuf/timestamp"; diff --git a/integration/simple-optionals/simple.ts b/integration/simple-optionals/simple.ts index a360451d0..c8a7ce874 100644 --- a/integration/simple-optionals/simple.ts +++ b/integration/simple-optionals/simple.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: simple.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Timestamp } from "./google/protobuf/timestamp"; diff --git a/integration/simple-optionals/thing.ts b/integration/simple-optionals/thing.ts index 469d11393..11078f83e 100644 --- a/integration/simple-optionals/thing.ts +++ b/integration/simple-optionals/thing.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: thing.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Timestamp } from "./google/protobuf/timestamp"; diff --git a/integration/simple-proto2/simple.ts b/integration/simple-proto2/simple.ts index 0d69b7886..9756e8bfb 100644 --- a/integration/simple-proto2/simple.ts +++ b/integration/simple-proto2/simple.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: simple.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/simple-prototype-defaults/google/protobuf/timestamp.ts b/integration/simple-prototype-defaults/google/protobuf/timestamp.ts index 641e84c16..835129168 100644 --- a/integration/simple-prototype-defaults/google/protobuf/timestamp.ts +++ b/integration/simple-prototype-defaults/google/protobuf/timestamp.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/timestamp.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/simple-prototype-defaults/google/protobuf/wrappers.ts b/integration/simple-prototype-defaults/google/protobuf/wrappers.ts index 48bbd7f6f..b180a1c12 100644 --- a/integration/simple-prototype-defaults/google/protobuf/wrappers.ts +++ b/integration/simple-prototype-defaults/google/protobuf/wrappers.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/wrappers.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/simple-prototype-defaults/google/type/date.ts b/integration/simple-prototype-defaults/google/type/date.ts index 28dd048f2..9ba0e2f42 100644 --- a/integration/simple-prototype-defaults/google/type/date.ts +++ b/integration/simple-prototype-defaults/google/type/date.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/type/date.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/simple-prototype-defaults/import_dir/thing.ts b/integration/simple-prototype-defaults/import_dir/thing.ts index 29074100c..79cbc625e 100644 --- a/integration/simple-prototype-defaults/import_dir/thing.ts +++ b/integration/simple-prototype-defaults/import_dir/thing.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: import_dir/thing.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Timestamp } from "../google/protobuf/timestamp"; diff --git a/integration/simple-prototype-defaults/simple.ts b/integration/simple-prototype-defaults/simple.ts index 910198f1e..9e8cf3cc8 100644 --- a/integration/simple-prototype-defaults/simple.ts +++ b/integration/simple-prototype-defaults/simple.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: simple.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Timestamp } from "./google/protobuf/timestamp"; diff --git a/integration/simple-snake/google/protobuf/struct.ts b/integration/simple-snake/google/protobuf/struct.ts index 0a84f9dc7..38401a8a3 100644 --- a/integration/simple-snake/google/protobuf/struct.ts +++ b/integration/simple-snake/google/protobuf/struct.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/struct.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/simple-snake/google/protobuf/timestamp.ts b/integration/simple-snake/google/protobuf/timestamp.ts index 0cf501b86..835f3f187 100644 --- a/integration/simple-snake/google/protobuf/timestamp.ts +++ b/integration/simple-snake/google/protobuf/timestamp.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/timestamp.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/simple-snake/google/protobuf/wrappers.ts b/integration/simple-snake/google/protobuf/wrappers.ts index 75e77c039..6159c1b46 100644 --- a/integration/simple-snake/google/protobuf/wrappers.ts +++ b/integration/simple-snake/google/protobuf/wrappers.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/wrappers.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/simple-snake/import_dir/thing.ts b/integration/simple-snake/import_dir/thing.ts index 190d6d8f3..c34a89050 100644 --- a/integration/simple-snake/import_dir/thing.ts +++ b/integration/simple-snake/import_dir/thing.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: import_dir/thing.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Timestamp } from "../google/protobuf/timestamp"; diff --git a/integration/simple-snake/simple.ts b/integration/simple-snake/simple.ts index 642443709..508d1e619 100644 --- a/integration/simple-snake/simple.ts +++ b/integration/simple-snake/simple.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: simple.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Struct } from "./google/protobuf/struct"; diff --git a/integration/simple-string-enums/google/protobuf/struct.ts b/integration/simple-string-enums/google/protobuf/struct.ts index 8f12e5f25..6ccda2481 100644 --- a/integration/simple-string-enums/google/protobuf/struct.ts +++ b/integration/simple-string-enums/google/protobuf/struct.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/struct.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/simple-string-enums/simple.ts b/integration/simple-string-enums/simple.ts index 4873245b5..220ca16d4 100644 --- a/integration/simple-string-enums/simple.ts +++ b/integration/simple-string-enums/simple.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: simple.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { NullValue, nullValueFromJSON, nullValueToJSON, nullValueToNumber } from "./google/protobuf/struct"; diff --git a/integration/simple-unrecognized-enum/google/protobuf/timestamp.ts b/integration/simple-unrecognized-enum/google/protobuf/timestamp.ts index 0cf501b86..835f3f187 100644 --- a/integration/simple-unrecognized-enum/google/protobuf/timestamp.ts +++ b/integration/simple-unrecognized-enum/google/protobuf/timestamp.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/timestamp.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/simple-unrecognized-enum/google/protobuf/wrappers.ts b/integration/simple-unrecognized-enum/google/protobuf/wrappers.ts index 75e77c039..6159c1b46 100644 --- a/integration/simple-unrecognized-enum/google/protobuf/wrappers.ts +++ b/integration/simple-unrecognized-enum/google/protobuf/wrappers.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/wrappers.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/simple-unrecognized-enum/import_dir/thing.ts b/integration/simple-unrecognized-enum/import_dir/thing.ts index 6f3f3a7ca..18146e9fa 100644 --- a/integration/simple-unrecognized-enum/import_dir/thing.ts +++ b/integration/simple-unrecognized-enum/import_dir/thing.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: import_dir/thing.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Timestamp } from "../google/protobuf/timestamp"; diff --git a/integration/simple-unrecognized-enum/simple.ts b/integration/simple-unrecognized-enum/simple.ts index 2025b503d..e8e1b9313 100644 --- a/integration/simple-unrecognized-enum/simple.ts +++ b/integration/simple-unrecognized-enum/simple.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: simple.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Timestamp } from "./google/protobuf/timestamp"; diff --git a/integration/simple/google/protobuf/timestamp.ts b/integration/simple/google/protobuf/timestamp.ts index 0cf501b86..835f3f187 100644 --- a/integration/simple/google/protobuf/timestamp.ts +++ b/integration/simple/google/protobuf/timestamp.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/timestamp.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/simple/google/protobuf/wrappers.ts b/integration/simple/google/protobuf/wrappers.ts index 75e77c039..6159c1b46 100644 --- a/integration/simple/google/protobuf/wrappers.ts +++ b/integration/simple/google/protobuf/wrappers.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/wrappers.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/simple/google/type/date.ts b/integration/simple/google/type/date.ts index ad231208b..a2b003440 100644 --- a/integration/simple/google/type/date.ts +++ b/integration/simple/google/type/date.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/type/date.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/simple/import_dir/thing.ts b/integration/simple/import_dir/thing.ts index 6f3f3a7ca..18146e9fa 100644 --- a/integration/simple/import_dir/thing.ts +++ b/integration/simple/import_dir/thing.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: import_dir/thing.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Timestamp } from "../google/protobuf/timestamp"; diff --git a/integration/simple/simple.ts b/integration/simple/simple.ts index 2b999977c..e433aca21 100644 --- a/integration/simple/simple.ts +++ b/integration/simple/simple.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: simple.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Timestamp } from "./google/protobuf/timestamp"; diff --git a/integration/static-only-type-registry/bar/bar.ts b/integration/static-only-type-registry/bar/bar.ts index 7e754efaf..eb020ac81 100644 --- a/integration/static-only-type-registry/bar/bar.ts +++ b/integration/static-only-type-registry/bar/bar.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: bar/bar.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Foo } from "../foo"; diff --git a/integration/static-only-type-registry/foo.ts b/integration/static-only-type-registry/foo.ts index 88479ce04..4e44c439d 100644 --- a/integration/static-only-type-registry/foo.ts +++ b/integration/static-only-type-registry/foo.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: foo.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Struct } from "./google/protobuf/struct"; diff --git a/integration/static-only-type-registry/google/protobuf/struct.ts b/integration/static-only-type-registry/google/protobuf/struct.ts index ca34a0f08..48c428192 100644 --- a/integration/static-only-type-registry/google/protobuf/struct.ts +++ b/integration/static-only-type-registry/google/protobuf/struct.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/struct.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { messageTypeRegistry } from "../../typeRegistry"; diff --git a/integration/static-only-type-registry/google/protobuf/timestamp.ts b/integration/static-only-type-registry/google/protobuf/timestamp.ts index bdda2d12c..221a2282d 100644 --- a/integration/static-only-type-registry/google/protobuf/timestamp.ts +++ b/integration/static-only-type-registry/google/protobuf/timestamp.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/timestamp.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { messageTypeRegistry } from "../../typeRegistry"; diff --git a/integration/static-only-type-registry/typeRegistry.ts b/integration/static-only-type-registry/typeRegistry.ts index fc7dc8d52..4b8608c2d 100644 --- a/integration/static-only-type-registry/typeRegistry.ts +++ b/integration/static-only-type-registry/typeRegistry.ts @@ -1,3 +1,8 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/static-only/bar/bar.ts b/integration/static-only/bar/bar.ts index 589957161..9c6fc820d 100644 --- a/integration/static-only/bar/bar.ts +++ b/integration/static-only/bar/bar.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: bar/bar.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Foo } from "../foo"; diff --git a/integration/static-only/foo.ts b/integration/static-only/foo.ts index 49d3417d0..972cd8c15 100644 --- a/integration/static-only/foo.ts +++ b/integration/static-only/foo.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: foo.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Struct } from "./google/protobuf/struct"; diff --git a/integration/static-only/google/protobuf/struct.ts b/integration/static-only/google/protobuf/struct.ts index 046a09e01..e4e46a15d 100644 --- a/integration/static-only/google/protobuf/struct.ts +++ b/integration/static-only/google/protobuf/struct.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/struct.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/static-only/google/protobuf/timestamp.ts b/integration/static-only/google/protobuf/timestamp.ts index 7425845d4..b088f57a7 100644 --- a/integration/static-only/google/protobuf/timestamp.ts +++ b/integration/static-only/google/protobuf/timestamp.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/timestamp.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/struct/google/protobuf/struct.ts b/integration/struct/google/protobuf/struct.ts index 849206f64..48c8311c0 100644 --- a/integration/struct/google/protobuf/struct.ts +++ b/integration/struct/google/protobuf/struct.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/struct.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/struct/struct.ts b/integration/struct/struct.ts index d2886662a..aeb68161e 100644 --- a/integration/struct/struct.ts +++ b/integration/struct/struct.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: struct.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Struct } from "./google/protobuf/struct"; diff --git a/integration/type-annotations/bar/bar.ts b/integration/type-annotations/bar/bar.ts index 561a9bf72..8c8eef1b4 100644 --- a/integration/type-annotations/bar/bar.ts +++ b/integration/type-annotations/bar/bar.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: bar/bar.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Foo } from "../foo"; diff --git a/integration/type-annotations/foo.ts b/integration/type-annotations/foo.ts index 5720cf796..464a50edb 100644 --- a/integration/type-annotations/foo.ts +++ b/integration/type-annotations/foo.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: foo.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Struct } from "./google/protobuf/struct"; diff --git a/integration/type-annotations/google/protobuf/struct.ts b/integration/type-annotations/google/protobuf/struct.ts index de5edcd11..5d9ff6907 100644 --- a/integration/type-annotations/google/protobuf/struct.ts +++ b/integration/type-annotations/google/protobuf/struct.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/struct.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/type-annotations/google/protobuf/timestamp.ts b/integration/type-annotations/google/protobuf/timestamp.ts index 36962d3ce..c85b82add 100644 --- a/integration/type-annotations/google/protobuf/timestamp.ts +++ b/integration/type-annotations/google/protobuf/timestamp.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/timestamp.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/type-registry/bar/bar.ts b/integration/type-registry/bar/bar.ts index 7bc8e907c..7e5f7d155 100644 --- a/integration/type-registry/bar/bar.ts +++ b/integration/type-registry/bar/bar.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: bar/bar.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Foo } from "../foo"; diff --git a/integration/type-registry/foo.ts b/integration/type-registry/foo.ts index 01d135889..8a9448fad 100644 --- a/integration/type-registry/foo.ts +++ b/integration/type-registry/foo.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: foo.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Struct } from "./google/protobuf/struct"; diff --git a/integration/type-registry/google/protobuf/struct.ts b/integration/type-registry/google/protobuf/struct.ts index 3f445b3de..0f2451293 100644 --- a/integration/type-registry/google/protobuf/struct.ts +++ b/integration/type-registry/google/protobuf/struct.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/struct.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { messageTypeRegistry } from "../../typeRegistry"; diff --git a/integration/type-registry/google/protobuf/timestamp.ts b/integration/type-registry/google/protobuf/timestamp.ts index c23ac18ef..7f67f09e8 100644 --- a/integration/type-registry/google/protobuf/timestamp.ts +++ b/integration/type-registry/google/protobuf/timestamp.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/timestamp.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { messageTypeRegistry } from "../../typeRegistry"; diff --git a/integration/type-registry/typeRegistry.ts b/integration/type-registry/typeRegistry.ts index f824e4d15..81f268f81 100644 --- a/integration/type-registry/typeRegistry.ts +++ b/integration/type-registry/typeRegistry.ts @@ -1,3 +1,8 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/types-with-underscores/file.ts b/integration/types-with-underscores/file.ts index ba017073c..eab83f816 100644 --- a/integration/types-with-underscores/file.ts +++ b/integration/types-with-underscores/file.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: file.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/unknown-fields/google/protobuf/compiler/plugin.ts b/integration/unknown-fields/google/protobuf/compiler/plugin.ts index e927c5041..c7af20d68 100644 --- a/integration/unknown-fields/google/protobuf/compiler/plugin.ts +++ b/integration/unknown-fields/google/protobuf/compiler/plugin.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/compiler/plugin.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { FileDescriptorProto, GeneratedCodeInfo } from "../descriptor"; diff --git a/integration/unknown-fields/google/protobuf/descriptor.ts b/integration/unknown-fields/google/protobuf/descriptor.ts index c8b0a8c36..5c3fea5ec 100644 --- a/integration/unknown-fields/google/protobuf/descriptor.ts +++ b/integration/unknown-fields/google/protobuf/descriptor.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/descriptor.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/unknown-fields/options.ts b/integration/unknown-fields/options.ts index 4f2081e96..593c84482 100644 --- a/integration/unknown-fields/options.ts +++ b/integration/unknown-fields/options.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: options.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/unknown-fields/something/something.ts b/integration/unknown-fields/something/something.ts index 48b9ebde2..9e924be09 100644 --- a/integration/unknown-fields/something/something.ts +++ b/integration/unknown-fields/something/something.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: something/something.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/use-date-false/google/protobuf/timestamp.ts b/integration/use-date-false/google/protobuf/timestamp.ts index 0cf501b86..835f3f187 100644 --- a/integration/use-date-false/google/protobuf/timestamp.ts +++ b/integration/use-date-false/google/protobuf/timestamp.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/timestamp.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/use-date-false/metadata.ts b/integration/use-date-false/metadata.ts index ef69aaa8b..47971f34c 100644 --- a/integration/use-date-false/metadata.ts +++ b/integration/use-date-false/metadata.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: metadata.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Timestamp } from "./google/protobuf/timestamp"; diff --git a/integration/use-date-string/google/protobuf/timestamp.ts b/integration/use-date-string/google/protobuf/timestamp.ts index 0cf501b86..835f3f187 100644 --- a/integration/use-date-string/google/protobuf/timestamp.ts +++ b/integration/use-date-string/google/protobuf/timestamp.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/timestamp.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/use-date-string/use-date-string.ts b/integration/use-date-string/use-date-string.ts index 597094714..609289a46 100644 --- a/integration/use-date-string/use-date-string.ts +++ b/integration/use-date-string/use-date-string.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: use-date-string.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Timestamp } from "./google/protobuf/timestamp"; diff --git a/integration/use-date-true/google/protobuf/empty.ts b/integration/use-date-true/google/protobuf/empty.ts index b43712c5b..2c276461a 100644 --- a/integration/use-date-true/google/protobuf/empty.ts +++ b/integration/use-date-true/google/protobuf/empty.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/empty.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/use-date-true/google/protobuf/timestamp.ts b/integration/use-date-true/google/protobuf/timestamp.ts index 0cf501b86..835f3f187 100644 --- a/integration/use-date-true/google/protobuf/timestamp.ts +++ b/integration/use-date-true/google/protobuf/timestamp.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/timestamp.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/use-date-true/use-date-true.ts b/integration/use-date-true/use-date-true.ts index e47a9fd29..837454a91 100644 --- a/integration/use-date-true/use-date-true.ts +++ b/integration/use-date-true/use-date-true.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: use-date-true.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Empty } from "./google/protobuf/empty"; diff --git a/integration/use-exact-types-false/foo.ts b/integration/use-exact-types-false/foo.ts index 740d23115..c5722a17e 100644 --- a/integration/use-exact-types-false/foo.ts +++ b/integration/use-exact-types-false/foo.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: foo.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/use-json-name/google/protobuf/timestamp.ts b/integration/use-json-name/google/protobuf/timestamp.ts index 0cf501b86..835f3f187 100644 --- a/integration/use-json-name/google/protobuf/timestamp.ts +++ b/integration/use-json-name/google/protobuf/timestamp.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/timestamp.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/use-json-name/use-json-name.ts b/integration/use-json-name/use-json-name.ts index bb82ad4da..7605db92c 100644 --- a/integration/use-json-name/use-json-name.ts +++ b/integration/use-json-name/use-json-name.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: use-json-name.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Timestamp } from "./google/protobuf/timestamp"; diff --git a/integration/use-json-timestamp-raw/google/protobuf/timestamp.ts b/integration/use-json-timestamp-raw/google/protobuf/timestamp.ts index 0cf501b86..835f3f187 100644 --- a/integration/use-json-timestamp-raw/google/protobuf/timestamp.ts +++ b/integration/use-json-timestamp-raw/google/protobuf/timestamp.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/timestamp.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/use-json-timestamp-raw/metadata.ts b/integration/use-json-timestamp-raw/metadata.ts index 4fc03ae4e..0ed5b0619 100644 --- a/integration/use-json-timestamp-raw/metadata.ts +++ b/integration/use-json-timestamp-raw/metadata.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: metadata.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Timestamp } from "./google/protobuf/timestamp"; diff --git a/integration/use-json-wire-format/google/protobuf/duration.ts b/integration/use-json-wire-format/google/protobuf/duration.ts index a5338b563..8cf10aff2 100644 --- a/integration/use-json-wire-format/google/protobuf/duration.ts +++ b/integration/use-json-wire-format/google/protobuf/duration.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/duration.proto + /* eslint-disable */ export const protobufPackage = "google.protobuf"; diff --git a/integration/use-json-wire-format/google/protobuf/field_mask.ts b/integration/use-json-wire-format/google/protobuf/field_mask.ts index db1f33cb4..f41f5699d 100644 --- a/integration/use-json-wire-format/google/protobuf/field_mask.ts +++ b/integration/use-json-wire-format/google/protobuf/field_mask.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/field_mask.proto + /* eslint-disable */ export const protobufPackage = "google.protobuf"; diff --git a/integration/use-json-wire-format/google/protobuf/timestamp.ts b/integration/use-json-wire-format/google/protobuf/timestamp.ts index cfd3d8c88..2b989ac17 100644 --- a/integration/use-json-wire-format/google/protobuf/timestamp.ts +++ b/integration/use-json-wire-format/google/protobuf/timestamp.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/timestamp.proto + /* eslint-disable */ export const protobufPackage = "google.protobuf"; diff --git a/integration/use-json-wire-format/use-json-wire-format.ts b/integration/use-json-wire-format/use-json-wire-format.ts index 15439502b..cebcd2d27 100644 --- a/integration/use-json-wire-format/use-json-wire-format.ts +++ b/integration/use-json-wire-format/use-json-wire-format.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: use-json-wire-format.proto + /* eslint-disable */ export const protobufPackage = ""; diff --git a/integration/use-map-type/google/protobuf/struct.ts b/integration/use-map-type/google/protobuf/struct.ts index 1d5514fa1..8461925da 100644 --- a/integration/use-map-type/google/protobuf/struct.ts +++ b/integration/use-map-type/google/protobuf/struct.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/struct.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/use-map-type/google/protobuf/timestamp.ts b/integration/use-map-type/google/protobuf/timestamp.ts index 0cf501b86..835f3f187 100644 --- a/integration/use-map-type/google/protobuf/timestamp.ts +++ b/integration/use-map-type/google/protobuf/timestamp.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/timestamp.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/use-map-type/use-map-type.ts b/integration/use-map-type/use-map-type.ts index be40a5c9e..6a099f171 100644 --- a/integration/use-map-type/use-map-type.ts +++ b/integration/use-map-type/use-map-type.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: use-map-type.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Struct } from "./google/protobuf/struct"; diff --git a/integration/use-null-as-optional/use-null-as-optional.ts b/integration/use-null-as-optional/use-null-as-optional.ts index 999350987..d10d74f2a 100644 --- a/integration/use-null-as-optional/use-null-as-optional.ts +++ b/integration/use-null-as-optional/use-null-as-optional.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: use-null-as-optional.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/use-null-nestjs-simple/google/protobuf/empty.ts b/integration/use-null-nestjs-simple/google/protobuf/empty.ts index 642a965dc..48d25a195 100644 --- a/integration/use-null-nestjs-simple/google/protobuf/empty.ts +++ b/integration/use-null-nestjs-simple/google/protobuf/empty.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/empty.proto + /* eslint-disable */ export const protobufPackage = "google.protobuf"; diff --git a/integration/use-null-nestjs-simple/user.ts b/integration/use-null-nestjs-simple/user.ts index 5bd1ca30b..2cbe16a39 100644 --- a/integration/use-null-nestjs-simple/user.ts +++ b/integration/use-null-nestjs-simple/user.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: user.proto + /* eslint-disable */ import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices"; import { Observable } from "rxjs"; diff --git a/integration/use-numeric-enum-json/google/protobuf/struct.ts b/integration/use-numeric-enum-json/google/protobuf/struct.ts index 956cb310e..e82ceb4fb 100644 --- a/integration/use-numeric-enum-json/google/protobuf/struct.ts +++ b/integration/use-numeric-enum-json/google/protobuf/struct.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/struct.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/use-numeric-enum-json/simple.ts b/integration/use-numeric-enum-json/simple.ts index a4931475e..c659d0944 100644 --- a/integration/use-numeric-enum-json/simple.ts +++ b/integration/use-numeric-enum-json/simple.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: simple.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { NullValue, nullValueFromJSON, nullValueToJSON } from "./google/protobuf/struct"; diff --git a/integration/use-objectid-true-external-import/objectid/objectid.ts b/integration/use-objectid-true-external-import/objectid/objectid.ts index be7d888c6..f2837719c 100644 --- a/integration/use-objectid-true-external-import/objectid/objectid.ts +++ b/integration/use-objectid-true-external-import/objectid/objectid.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: objectid/objectid.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/use-objectid-true-external-import/use-objectid-true.ts b/integration/use-objectid-true-external-import/use-objectid-true.ts index d33489596..cc97145d3 100644 --- a/integration/use-objectid-true-external-import/use-objectid-true.ts +++ b/integration/use-objectid-true-external-import/use-objectid-true.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: use-objectid-true.proto + /* eslint-disable */ import * as mongodb from "mongodb"; import * as _m0 from "protobufjs/minimal"; diff --git a/integration/use-optionals-all/google/protobuf/struct.ts b/integration/use-optionals-all/google/protobuf/struct.ts index e465e0978..c9b24a2b8 100644 --- a/integration/use-optionals-all/google/protobuf/struct.ts +++ b/integration/use-optionals-all/google/protobuf/struct.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/struct.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/use-optionals-all/google/protobuf/timestamp.ts b/integration/use-optionals-all/google/protobuf/timestamp.ts index 48f0125bb..a37e650e3 100644 --- a/integration/use-optionals-all/google/protobuf/timestamp.ts +++ b/integration/use-optionals-all/google/protobuf/timestamp.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/timestamp.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/use-optionals-all/test.ts b/integration/use-optionals-all/test.ts index ae00e88b2..37635b969 100644 --- a/integration/use-optionals-all/test.ts +++ b/integration/use-optionals-all/test.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: test.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Struct } from "./google/protobuf/struct"; diff --git a/integration/use-optionals-deprecated-only/test.ts b/integration/use-optionals-deprecated-only/test.ts index 40f8ad3f3..958836e62 100644 --- a/integration/use-optionals-deprecated-only/test.ts +++ b/integration/use-optionals-deprecated-only/test.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: test.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/use-optionals-no-undefined/google/protobuf/struct.ts b/integration/use-optionals-no-undefined/google/protobuf/struct.ts index 6b72c2577..b043bf185 100644 --- a/integration/use-optionals-no-undefined/google/protobuf/struct.ts +++ b/integration/use-optionals-no-undefined/google/protobuf/struct.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/struct.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/use-optionals-no-undefined/test.ts b/integration/use-optionals-no-undefined/test.ts index 4c2d6023f..17b535ff5 100644 --- a/integration/use-optionals-no-undefined/test.ts +++ b/integration/use-optionals-no-undefined/test.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: test.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Struct } from "./google/protobuf/struct"; diff --git a/integration/use-readonly-types/google/protobuf/field_mask.ts b/integration/use-readonly-types/google/protobuf/field_mask.ts index c43dde56b..74c714c9a 100644 --- a/integration/use-readonly-types/google/protobuf/field_mask.ts +++ b/integration/use-readonly-types/google/protobuf/field_mask.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/field_mask.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/use-readonly-types/google/protobuf/struct.ts b/integration/use-readonly-types/google/protobuf/struct.ts index 83ef5f717..95de394c3 100644 --- a/integration/use-readonly-types/google/protobuf/struct.ts +++ b/integration/use-readonly-types/google/protobuf/struct.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/struct.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/use-readonly-types/use-readonly-types.ts b/integration/use-readonly-types/use-readonly-types.ts index e939aa92b..b7783cba1 100644 --- a/integration/use-readonly-types/use-readonly-types.ts +++ b/integration/use-readonly-types/use-readonly-types.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: use-readonly-types.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { FieldMask } from "./google/protobuf/field_mask"; diff --git a/integration/value/google/protobuf/struct.ts b/integration/value/google/protobuf/struct.ts index 849206f64..48c8311c0 100644 --- a/integration/value/google/protobuf/struct.ts +++ b/integration/value/google/protobuf/struct.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/struct.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/value/google/protobuf/wrappers.ts b/integration/value/google/protobuf/wrappers.ts index 75e77c039..6159c1b46 100644 --- a/integration/value/google/protobuf/wrappers.ts +++ b/integration/value/google/protobuf/wrappers.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/wrappers.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/value/value.ts b/integration/value/value.ts index 73ab6a13d..876ca6899 100644 --- a/integration/value/value.ts +++ b/integration/value/value.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: value.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { ListValue, Struct, Value } from "./google/protobuf/struct"; diff --git a/integration/vector-tile/vector_tile.ts b/integration/vector-tile/vector_tile.ts index 66bf7da02..479942d16 100644 --- a/integration/vector-tile/vector_tile.ts +++ b/integration/vector-tile/vector_tile.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: vector_tile.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/wrappers-regression/google/protobuf/empty.ts b/integration/wrappers-regression/google/protobuf/empty.ts index b43712c5b..2c276461a 100644 --- a/integration/wrappers-regression/google/protobuf/empty.ts +++ b/integration/wrappers-regression/google/protobuf/empty.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/empty.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; diff --git a/integration/wrappers-regression/google/protobuf/timestamp.ts b/integration/wrappers-regression/google/protobuf/timestamp.ts index 0cf501b86..835f3f187 100644 --- a/integration/wrappers-regression/google/protobuf/timestamp.ts +++ b/integration/wrappers-regression/google/protobuf/timestamp.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/timestamp.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/wrappers-regression/google/protobuf/wrappers.ts b/integration/wrappers-regression/google/protobuf/wrappers.ts index 75e77c039..6159c1b46 100644 --- a/integration/wrappers-regression/google/protobuf/wrappers.ts +++ b/integration/wrappers-regression/google/protobuf/wrappers.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: google/protobuf/wrappers.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import Long = require("long"); diff --git a/integration/wrappers-regression/wrappers-regression.ts b/integration/wrappers-regression/wrappers-regression.ts index 1b343440a..e8efb57a6 100644 --- a/integration/wrappers-regression/wrappers-regression.ts +++ b/integration/wrappers-regression/wrappers-regression.ts @@ -1,3 +1,9 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.173.0 +// protoc v3.19.1 +// source: wrappers-regression.proto + /* eslint-disable */ import * as _m0 from "protobufjs/minimal"; import { Observable } from "rxjs"; diff --git a/src/options.ts b/src/options.ts index 9b003fd12..f47fd7742 100644 --- a/src/options.ts +++ b/src/options.ts @@ -316,11 +316,25 @@ function parseParamValue(value: string): string | boolean { return value === "true" ? true : value === "false" ? false : value; } -export function getTsPoetOpts(options: Options): ToStringOpts { +export function getTsPoetOpts( + options: Options, + tsProtoVersion: string, + protocVersion: string, + fileName?: string, +): ToStringOpts { const { importSuffix, esModuleInterop } = options; const pbjs = "protobufjs/minimal" + importSuffix; return { - prefix: `/* eslint-disable */`, + // Comment block at the top of every source file, since these comments require specific + // syntax incompatible with ts-poet, we will hard-code the string and prepend to the + // generator output. + prefix: `// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto ${tsProtoVersion} +// protoc ${protocVersion} +${fileName ? `// source: ${fileName}` : ""} + + /* eslint-disable */`, dprintOptions: { preferSingleLine: true, lineWidth: 120 }, forceRequireImport: esModuleInterop ? [] : ["long"], forceDefaultImport: esModuleInterop ? [pbjs] : [], diff --git a/src/plugin.ts b/src/plugin.ts index 0dc793719..e0df00540 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -1,9 +1,14 @@ -import { CodeGeneratorRequest, CodeGeneratorResponse, CodeGeneratorResponse_Feature } from "ts-proto-descriptors"; +import { + CodeGeneratorRequest, + CodeGeneratorResponse, + CodeGeneratorResponse_Feature, + FileDescriptorProto, +} from "ts-proto-descriptors"; import { promisify } from "util"; -import { generateIndexFiles, protoFilesToGenerate, readToBuffer } from "./utils"; +import { generateIndexFiles, getVersions, protoFilesToGenerate, readToBuffer } from "./utils"; import { generateFile, makeUtils } from "./main"; import { createTypeMap } from "./types"; -import { BaseContext, Context, createFileContext } from "./context"; +import { BaseContext, createFileContext } from "./context"; import { getTsPoetOpts, optionsFromParameter } from "./options"; import { generateTypeRegistry } from "./generate-type-registry"; @@ -14,11 +19,14 @@ async function main() { // const request = CodeGeneratorRequest.fromObject(json); const request = CodeGeneratorRequest.decode(stdin); + const { protocVersion, tsProtoVersion } = await getVersions(request); + const options = optionsFromParameter(request.parameter); const typeMap = createTypeMap(request, options); const utils = makeUtils(options); const ctx: BaseContext = { typeMap, options, utils }; - let filesToGenerate; + + let filesToGenerate: FileDescriptorProto[]; if (options.emitImportedFiles) { const fileSet = new Set(); @@ -43,7 +51,7 @@ async function main() { const files = await Promise.all( filesToGenerate.map(async (file) => { const [path, code] = generateFile({ ...ctx, currentFile: createFileContext(file) }, file); - const content = code.toString({ ...getTsPoetOpts(options), path }); + const content = code.toString({ ...getTsPoetOpts(options, tsProtoVersion, protocVersion, file.name), path }); return { name: path, content }; }), ); @@ -55,13 +63,13 @@ async function main() { const path = "typeRegistry.ts"; const code = generateTypeRegistry(ctx); - const content = code.toString({ ...getTsPoetOpts(options), path }); + const content = code.toString({ ...getTsPoetOpts(options, tsProtoVersion, protocVersion), path }); files.push({ name: path, content }); } if (options.outputIndex) { for (const [path, code] of generateIndexFiles(filesToGenerate, options)) { - const content = code.toString({ ...getTsPoetOpts(options), path }); + const content = code.toString({ ...getTsPoetOpts(options, tsProtoVersion, protocVersion), path }); files.push({ name: path, content }); } } diff --git a/src/utils.ts b/src/utils.ts index d938d347c..7f87dd318 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -142,13 +142,6 @@ export function maybeAddComment( } } -// Comment block at the top of every source file, since these comments require specific -// syntax incompatible with ts-poet, we will hard-code the string and prepend to the -// generator output. -export function prefixDisableLinter(spec: string): string { - return `/* eslint-disable */\n${spec}`; -} - export function maybePrefixPackage(fileDesc: FileDescriptorProto, rest: string): string { const prefix = fileDesc.package === "" ? "" : `${fileDesc.package}.`; return `${prefix}${rest}`; @@ -326,3 +319,20 @@ export function withAndMaybeCheckIsNotNull(options: Pick, typeName: string) { return maybeCheckIsNotNull(options, typeName, "&&"); } + +export async function getVersions(request: CodeGeneratorRequest) { + let protocVersion = "unknown"; + if (request.compilerVersion) { + const { major, minor, patch } = request.compilerVersion; + protocVersion = `v${major}.${minor}.${patch}`; + } + + const path: string = "../package.json"; + const packageJson = await import(path); + const tsProtoVersion = `v${packageJson?.version ?? "unknown"}`; + + return { + protocVersion, + tsProtoVersion, + }; +} diff --git a/tests/tsconfig.json b/tests/tsconfig.json index c9c7fccf7..63e875178 100644 --- a/tests/tsconfig.json +++ b/tests/tsconfig.json @@ -6,7 +6,8 @@ "strict": true, "outDir": "build", "skipLibCheck": true, - "experimentalDecorators": true + "experimentalDecorators": true, + "resolveJsonModule": true }, "include": ["./*.ts"], } diff --git a/tsconfig.json b/tsconfig.json index 866a93614..cfc0ea4ca 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,7 +7,8 @@ "outDir": "build", "skipLibCheck": true, "experimentalDecorators": true, - "declaration": true + "declaration": true, + "resolveJsonModule": true }, "include": ["src"] }