diff --git a/src/CodeGeneratorRequest.php b/src/CodeGeneratorRequest.php index 175b571..41b955d 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.1 * protoc — v6.33.5 * Source: google/protobuf/compiler/plugin.proto */ diff --git a/src/CodeGeneratorResponse.php b/src/CodeGeneratorResponse.php index 7491a44..75d8d61 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.1 * protoc — v6.33.5 * Source: google/protobuf/compiler/plugin.proto */ diff --git a/src/CodeGeneratorResponse/Feature.php b/src/CodeGeneratorResponse/Feature.php index 99cb4f1..8c50ddb 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.1 * protoc — v6.33.5 * Source: google/protobuf/compiler/plugin.proto */ diff --git a/src/CodeGeneratorResponse/File.php b/src/CodeGeneratorResponse/File.php index c307069..935e62d 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.1 * 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..1f4ad59 --- /dev/null +++ b/src/DescriptorRegistry.php @@ -0,0 +1,45 @@ +add(Registry\Descriptor::base64(self::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..0e04956 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.1 * protoc — v6.33.5 * Source: google/protobuf/compiler/plugin.proto */ diff --git a/src/autoload.metadata.php b/src/autoload.metadata.php index 211be4e..74598a8 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.1 * 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()), );