diff --git a/src/CodeGeneratorRequest.php b/src/CodeGeneratorRequest.php index 175b571..81c196f 100644 --- a/src/CodeGeneratorRequest.php +++ b/src/CodeGeneratorRequest.php @@ -3,7 +3,7 @@ /** * Code generated by thesis/protoc-plugin. DO NOT EDIT. * Versions: - * thesis/protoc-plugin — v0.3.0 + * thesis/protoc-plugin — v0.4.3 * protoc — v6.33.5 * Source: google/protobuf/compiler/plugin.proto */ diff --git a/src/CodeGeneratorResponse.php b/src/CodeGeneratorResponse.php index 7491a44..3ab2c39 100644 --- a/src/CodeGeneratorResponse.php +++ b/src/CodeGeneratorResponse.php @@ -3,7 +3,7 @@ /** * Code generated by thesis/protoc-plugin. DO NOT EDIT. * Versions: - * thesis/protoc-plugin — v0.3.0 + * thesis/protoc-plugin — v0.4.3 * protoc — v6.33.5 * Source: google/protobuf/compiler/plugin.proto */ diff --git a/src/CodeGeneratorResponse/Feature.php b/src/CodeGeneratorResponse/Feature.php index 99cb4f1..17457e2 100644 --- a/src/CodeGeneratorResponse/Feature.php +++ b/src/CodeGeneratorResponse/Feature.php @@ -3,7 +3,7 @@ /** * Code generated by thesis/protoc-plugin. DO NOT EDIT. * Versions: - * thesis/protoc-plugin — v0.3.0 + * thesis/protoc-plugin — v0.4.3 * protoc — v6.33.5 * Source: google/protobuf/compiler/plugin.proto */ diff --git a/src/CodeGeneratorResponse/File.php b/src/CodeGeneratorResponse/File.php index c307069..04b580e 100644 --- a/src/CodeGeneratorResponse/File.php +++ b/src/CodeGeneratorResponse/File.php @@ -3,7 +3,7 @@ /** * Code generated by thesis/protoc-plugin. DO NOT EDIT. * Versions: - * thesis/protoc-plugin — v0.3.0 + * thesis/protoc-plugin — v0.4.3 * protoc — v6.33.5 * Source: google/protobuf/compiler/plugin.proto */ diff --git a/src/DescriptorRegistry.php b/src/DescriptorRegistry.php new file mode 100644 index 0000000..af28280 --- /dev/null +++ b/src/DescriptorRegistry.php @@ -0,0 +1,45 @@ +add(Registry\Descriptor::base64(self::PLUGIN_DESCRIPTOR_BUFFER), new File( + name: 'google/protobuf/compiler/plugin.proto', + dependencies: [ + 'google/protobuf/descriptor.proto', + ], + messages: [ + new File\MessageDescriptor('google.protobuf.compiler.Version', \Google\Protobuf\Compiler\Version::class), + new File\MessageDescriptor('google.protobuf.compiler.CodeGeneratorRequest', \Google\Protobuf\Compiler\CodeGeneratorRequest::class), + new File\MessageDescriptor('google.protobuf.compiler.CodeGeneratorResponse', \Google\Protobuf\Compiler\CodeGeneratorResponse::class), + new File\MessageDescriptor('google.protobuf.compiler.CodeGeneratorResponse.File', \Google\Protobuf\Compiler\CodeGeneratorResponse\File::class), + ], + enums: [ + new File\EnumDescriptor('google.protobuf.compiler.CodeGeneratorResponse.Feature', \Google\Protobuf\Compiler\CodeGeneratorResponse\Feature::class), + ], + )); + } +} diff --git a/src/Version.php b/src/Version.php index 590fa70..1b95a63 100644 --- a/src/Version.php +++ b/src/Version.php @@ -3,7 +3,7 @@ /** * Code generated by thesis/protoc-plugin. DO NOT EDIT. * Versions: - * thesis/protoc-plugin — v0.3.0 + * thesis/protoc-plugin — v0.4.3 * protoc — v6.33.5 * Source: google/protobuf/compiler/plugin.proto */ diff --git a/src/autoload.metadata.php b/src/autoload.metadata.php index 211be4e..4e9c63d 100644 --- a/src/autoload.metadata.php +++ b/src/autoload.metadata.php @@ -3,12 +3,12 @@ /** * Code generated by thesis/protoc-plugin. DO NOT EDIT. * Versions: - * thesis/protoc-plugin — v0.3.0 + * thesis/protoc-plugin — v0.4.3 * protoc — v6.33.5 */ declare(strict_types=1); \Thesis\Protobuf\Registry\Pool::get()->register( - new \Thesis\Protobuf\Registry\OnceRegistrar(new \Google\Protobuf\Compiler\GoogleProtobufCompilerPluginDescriptorRegistry()), + new \Thesis\Protobuf\Registry\OnceRegistrar(new \Google\Protobuf\Compiler\DescriptorRegistry()), );