Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ COMPOSER ?= $(RUN) composer
t: terminal
terminal: var ## Start a terminal inside the php container
@$(if $(INSIDE_CONTAINER),echo 'Already inside docker container.'; exit 1,)
$(DOCKER_COMPOSE) run --rm $(ARGS) php bash
$(DOCKER_COMPOSE) run --rm $(ARGS) php sh
.PHONY: t terminal

run: ## Run a command using the php container: `make run CMD='php --version'`
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
"php": "^8.4",
"ext-bcmath": "*",
"thesis/protobuf": "^0.2",
"thesis/protobuf-descriptor-types": "^0.2",
"thesis/protobuf-descriptor-types": "^0.3",
"thesis/protoregistry": "^0.1.2"
},
"autoload": {
"psr-4": {
"Google\\Protobuf\\Compiler\\": "src/"
"Thesis\\Google\\Protobuf\\Compiler\\": "src/"
},
"files": [
"src/autoload.metadata.php"
Expand Down
18 changes: 9 additions & 9 deletions src/CodeGeneratorRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
/**
* Code generated by thesis/protoc-plugin. DO NOT EDIT.
* Versions:
* thesis/protoc-plugin — v0.4.3
* thesis/protoc-plugin — v0.6.0
* protoc — v6.33.5
* Source: google/protobuf/compiler/plugin.proto
*/

declare(strict_types=1);

namespace Google\Protobuf\Compiler;
namespace Thesis\Google\Protobuf\Compiler;

use Thesis\Protobuf\Reflection;

Expand All @@ -26,7 +26,7 @@
* code generator should generate code only for these files. Each file's
* descriptor will be included in proto_file, below.
* @param ?string $parameter The generator parameter passed on the command-line.
* @param list<\Google\Protobuf\FileDescriptorProto> $protoFile FileDescriptorProtos for all files in files_to_generate and everything
* @param list<\Thesis\Google\Protobuf\FileDescriptorProto> $protoFile FileDescriptorProtos for all files in files_to_generate and everything
* they import. The files will appear in topological order, so each file
* appears before any file that imports it.
*
Expand All @@ -45,21 +45,21 @@
*
* Type names of fields and extensions in the FileDescriptorProto are always
* fully qualified.
* @param list<\Google\Protobuf\FileDescriptorProto> $sourceFileDescriptors File descriptors with all options, including source-retention options.
* @param list<\Thesis\Google\Protobuf\FileDescriptorProto> $sourceFileDescriptors File descriptors with all options, including source-retention options.
* These descriptors are only provided for the files listed in
* files_to_generate.
* @param ?\Google\Protobuf\Compiler\Version $compilerVersion The version number of protocol compiler.
* @param ?\Thesis\Google\Protobuf\Compiler\Version $compilerVersion The version number of protocol compiler.
*/
public function __construct(
#[Reflection\Field(1, new Reflection\ListT(Reflection\StringT::T, false))]
public array $fileToGenerate = [],
#[Reflection\Field(2, Reflection\StringT::T)]
public ?string $parameter = null,
#[Reflection\Field(15, new Reflection\ListT(new Reflection\ObjectT(\Google\Protobuf\FileDescriptorProto::class), false))]
#[Reflection\Field(15, new Reflection\ListT(new Reflection\ObjectT(\Thesis\Google\Protobuf\FileDescriptorProto::class), false))]
public array $protoFile = [],
#[Reflection\Field(17, new Reflection\ListT(new Reflection\ObjectT(\Google\Protobuf\FileDescriptorProto::class), false))]
#[Reflection\Field(17, new Reflection\ListT(new Reflection\ObjectT(\Thesis\Google\Protobuf\FileDescriptorProto::class), false))]
public array $sourceFileDescriptors = [],
#[Reflection\Field(3, new Reflection\ObjectT(\Google\Protobuf\Compiler\Version::class))]
public ?\Google\Protobuf\Compiler\Version $compilerVersion = null,
#[Reflection\Field(3, new Reflection\ObjectT(\Thesis\Google\Protobuf\Compiler\Version::class))]
public ?\Thesis\Google\Protobuf\Compiler\Version $compilerVersion = null,
) {}
}
11 changes: 7 additions & 4 deletions src/CodeGeneratorResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
/**
* Code generated by thesis/protoc-plugin. DO NOT EDIT.
* Versions:
* thesis/protoc-plugin — v0.4.3
* thesis/protoc-plugin — v0.6.0
* protoc — v6.33.5
* Source: google/protobuf/compiler/plugin.proto
*/

declare(strict_types=1);

namespace Google\Protobuf\Compiler;
namespace Thesis\Google\Protobuf\Compiler;

use Thesis\Protobuf\Reflection;

Expand Down Expand Up @@ -40,7 +40,7 @@
* Edition enum, but we want to allow unknown values. It should be specified
* according the edition enum value, *not* the edition number. Only takes
* effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.
* @param list<\Google\Protobuf\Compiler\CodeGeneratorResponse\File> $file
* @param list<\Thesis\Google\Protobuf\Compiler\CodeGeneratorResponse\File> $file
*/
public function __construct(
#[Reflection\Field(1, Reflection\StringT::T)]
Expand All @@ -51,7 +51,10 @@ public function __construct(
public ?int $minimumEdition = null,
#[Reflection\Field(4, Reflection\Int32T::T)]
public ?int $maximumEdition = null,
#[Reflection\Field(15, new Reflection\ListT(new Reflection\ObjectT(\Google\Protobuf\Compiler\CodeGeneratorResponse\File::class), false))]
#[Reflection\Field(
15,
new Reflection\ListT(new Reflection\ObjectT(\Thesis\Google\Protobuf\Compiler\CodeGeneratorResponse\File::class), false),
)]
public array $file = [],
) {}
}
4 changes: 2 additions & 2 deletions src/CodeGeneratorResponse/Feature.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
/**
* Code generated by thesis/protoc-plugin. DO NOT EDIT.
* Versions:
* thesis/protoc-plugin — v0.4.3
* thesis/protoc-plugin — v0.6.0
* protoc — v6.33.5
* Source: google/protobuf/compiler/plugin.proto
*/

declare(strict_types=1);

namespace Google\Protobuf\Compiler\CodeGeneratorResponse;
namespace Thesis\Google\Protobuf\Compiler\CodeGeneratorResponse;

/**
* @api
Expand Down
10 changes: 5 additions & 5 deletions src/CodeGeneratorResponse/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
/**
* Code generated by thesis/protoc-plugin. DO NOT EDIT.
* Versions:
* thesis/protoc-plugin — v0.4.3
* thesis/protoc-plugin — v0.6.0
* protoc — v6.33.5
* Source: google/protobuf/compiler/plugin.proto
*/

declare(strict_types=1);

namespace Google\Protobuf\Compiler\CodeGeneratorResponse;
namespace Thesis\Google\Protobuf\Compiler\CodeGeneratorResponse;

use Thesis\Protobuf\Reflection;

Expand Down Expand Up @@ -71,7 +71,7 @@
*
* If |insertion_point| is present, |name| must also be present.
* @param ?string $content The file contents.
* @param ?\Google\Protobuf\GeneratedCodeInfo $generatedCodeInfo Information describing the file content being inserted. If an insertion
* @param ?\Thesis\Google\Protobuf\GeneratedCodeInfo $generatedCodeInfo Information describing the file content being inserted. If an insertion
* point is used, this information will be appropriately offset and inserted
* into the code generation metadata for the generated files.
*/
Expand All @@ -82,7 +82,7 @@ public function __construct(
public ?string $insertionPoint = null,
#[Reflection\Field(15, Reflection\StringT::T)]
public ?string $content = null,
#[Reflection\Field(16, new Reflection\ObjectT(\Google\Protobuf\GeneratedCodeInfo::class))]
public ?\Google\Protobuf\GeneratedCodeInfo $generatedCodeInfo = null,
#[Reflection\Field(16, new Reflection\ObjectT(\Thesis\Google\Protobuf\GeneratedCodeInfo::class))]
public ?\Thesis\Google\Protobuf\GeneratedCodeInfo $generatedCodeInfo = null,
) {}
}
14 changes: 7 additions & 7 deletions src/DescriptorRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
/**
* Code generated by thesis/protoc-plugin. DO NOT EDIT.
* Versions:
* thesis/protoc-plugin — v0.4.3
* thesis/protoc-plugin — v0.6.0
* protoc — v6.33.5
* Source: google/protobuf/compiler/plugin.proto
*/

declare(strict_types=1);

namespace Google\Protobuf\Compiler;
namespace Thesis\Google\Protobuf\Compiler;

use Override;
use Thesis\Protobuf\Registry;
Expand All @@ -32,13 +32,13 @@ public function register(Registry\Pool $pool): void
'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),
new File\MessageDescriptor('google.protobuf.compiler.Version', \Thesis\Google\Protobuf\Compiler\Version::class),
new File\MessageDescriptor('google.protobuf.compiler.CodeGeneratorRequest', \Thesis\Google\Protobuf\Compiler\CodeGeneratorRequest::class),
new File\MessageDescriptor('google.protobuf.compiler.CodeGeneratorResponse', \Thesis\Google\Protobuf\Compiler\CodeGeneratorResponse::class),
new File\MessageDescriptor('google.protobuf.compiler.CodeGeneratorResponse.File', \Thesis\Google\Protobuf\Compiler\CodeGeneratorResponse\File::class),
],
enums: [
new File\EnumDescriptor('google.protobuf.compiler.CodeGeneratorResponse.Feature', \Google\Protobuf\Compiler\CodeGeneratorResponse\Feature::class),
new File\EnumDescriptor('google.protobuf.compiler.CodeGeneratorResponse.Feature', \Thesis\Google\Protobuf\Compiler\CodeGeneratorResponse\Feature::class),
],
));
}
Expand Down
4 changes: 2 additions & 2 deletions src/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
/**
* Code generated by thesis/protoc-plugin. DO NOT EDIT.
* Versions:
* thesis/protoc-plugin — v0.4.3
* thesis/protoc-plugin — v0.6.0
* protoc — v6.33.5
* Source: google/protobuf/compiler/plugin.proto
*/

declare(strict_types=1);

namespace Google\Protobuf\Compiler;
namespace Thesis\Google\Protobuf\Compiler;

use Thesis\Protobuf\Reflection;

Expand Down
4 changes: 2 additions & 2 deletions src/autoload.metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
/**
* Code generated by thesis/protoc-plugin. DO NOT EDIT.
* Versions:
* thesis/protoc-plugin — v0.4.3
* thesis/protoc-plugin — v0.6.0
* protoc — v6.33.5
*/

declare(strict_types=1);

\Thesis\Protobuf\Registry\Pool::get()->register(
new \Thesis\Protobuf\Registry\OnceRegistrar(new \Google\Protobuf\Compiler\DescriptorRegistry()),
new \Thesis\Protobuf\Registry\OnceRegistrar(new \Thesis\Google\Protobuf\Compiler\DescriptorRegistry()),
);
Loading