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 @@ -20,12 +20,12 @@
"require": {
"php": "^8.4",
"thesis/protobuf": "^0.2",
"thesis/protobuf-known-types": "^0.2",
"thesis/protobuf-known-types": "^0.3",
"thesis/protoregistry": "^0.1.2"
},
"autoload": {
"psr-4": {
"Google\\Type\\": "src/"
"Thesis\\Google\\Type\\": "src/"
},
"files": [
"src/autoload.metadata.php"
Expand Down
4 changes: 2 additions & 2 deletions src/CalendarPeriod.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/type/calendar_period.proto
*/

declare(strict_types=1);

namespace Google\Type;
namespace Thesis\Google\Type;

/**
* @api
Expand Down
10 changes: 5 additions & 5 deletions src/Color.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/type/color.proto
*/

declare(strict_types=1);

namespace Google\Type;
namespace Thesis\Google\Type;

use Thesis\Protobuf\Reflection;

Expand Down Expand Up @@ -148,7 +148,7 @@
* @param float $red The amount of red in the color as a value in the interval [0, 1].
* @param float $green The amount of green in the color as a value in the interval [0, 1].
* @param float $blue The amount of blue in the color as a value in the interval [0, 1].
* @param ?\Google\Protobuf\FloatValue $alpha The fraction of this color that should be applied to the pixel. That is,
* @param ?\Thesis\Google\Protobuf\FloatValue $alpha The fraction of this color that should be applied to the pixel. That is,
* the final pixel color is defined by the equation:
*
* `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)`
Expand All @@ -167,7 +167,7 @@ public function __construct(
public float $green = 0,
#[Reflection\Field(3, Reflection\FloatT::T)]
public float $blue = 0,
#[Reflection\Field(4, new Reflection\ObjectT(\Google\Protobuf\FloatValue::class))]
public ?\Google\Protobuf\FloatValue $alpha = null,
#[Reflection\Field(4, new Reflection\ObjectT(\Thesis\Google\Protobuf\FloatValue::class))]
public ?\Thesis\Google\Protobuf\FloatValue $alpha = null,
) {}
}
4 changes: 2 additions & 2 deletions src/Date.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/type/date.proto
*/

declare(strict_types=1);

namespace Google\Type;
namespace Thesis\Google\Type;

use Thesis\Protobuf\Reflection;

Expand Down
8 changes: 4 additions & 4 deletions src/DateTime.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/type/datetime.proto
*/

declare(strict_types=1);

namespace Google\Type;
namespace Thesis\Google\Type;

use Thesis\Protobuf\Reflection;

Expand Down Expand Up @@ -74,7 +74,7 @@ public function __construct(
public int $seconds = 0,
#[Reflection\Field(7, Reflection\Int32T::T)]
public int $nanos = 0,
#[Reflection\OneOf([\Google\Type\DateTime\TimeOffsetUtcOffset::class, \Google\Type\DateTime\TimeOffsetTimeZone::class])]
public ?\Google\Type\DateTime\TimeOffset $timeOffset = null,
#[Reflection\OneOf([\Thesis\Google\Type\DateTime\TimeOffsetUtcOffset::class, \Thesis\Google\Type\DateTime\TimeOffsetTimeZone::class])]
public ?\Thesis\Google\Type\DateTime\TimeOffset $timeOffset = null,
) {}
}
4 changes: 2 additions & 2 deletions src/DateTime/TimeOffset.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/type/datetime.proto
*/

declare(strict_types=1);

namespace Google\Type\DateTime;
namespace Thesis\Google\Type\DateTime;

/**
* @api
Expand Down
12 changes: 6 additions & 6 deletions src/DateTime/TimeOffsetTimeZone.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,27 @@
/**
* 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/type/datetime.proto
*/

declare(strict_types=1);

namespace Google\Type\DateTime;
namespace Thesis\Google\Type\DateTime;

use Thesis\Protobuf\Reflection;

/**
* @api
*/
final readonly class TimeOffsetTimeZone implements \Google\Type\DateTime\TimeOffset
final readonly class TimeOffsetTimeZone implements \Thesis\Google\Type\DateTime\TimeOffset
{
/**
* @param ?\Google\Type\TimeZone $timeZone Time zone.
* @param ?\Thesis\Google\Type\TimeZone $timeZone Time zone.
*/
public function __construct(
#[Reflection\Field(9, new Reflection\ObjectT(\Google\Type\TimeZone::class))]
public ?\Google\Type\TimeZone $timeZone = null,
#[Reflection\Field(9, new Reflection\ObjectT(\Thesis\Google\Type\TimeZone::class))]
public ?\Thesis\Google\Type\TimeZone $timeZone = null,
) {}
}
12 changes: 6 additions & 6 deletions src/DateTime/TimeOffsetUtcOffset.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,29 @@
/**
* 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/type/datetime.proto
*/

declare(strict_types=1);

namespace Google\Type\DateTime;
namespace Thesis\Google\Type\DateTime;

use Thesis\Protobuf\Reflection;

/**
* @api
*/
final readonly class TimeOffsetUtcOffset implements \Google\Type\DateTime\TimeOffset
final readonly class TimeOffsetUtcOffset implements \Thesis\Google\Type\DateTime\TimeOffset
{
/**
* @param ?\Google\Protobuf\Duration $utcOffset UTC offset. Must be whole seconds, between -18 hours and +18 hours.
* @param ?\Thesis\Google\Protobuf\Duration $utcOffset UTC offset. Must be whole seconds, between -18 hours and +18 hours.
* For example, a UTC offset of -4:00 would be represented as
* { seconds: -14400 }.
*/
public function __construct(
#[Reflection\Field(8, new Reflection\ObjectT(\Google\Protobuf\Duration::class))]
public ?\Google\Protobuf\Duration $utcOffset = null,
#[Reflection\Field(8, new Reflection\ObjectT(\Thesis\Google\Protobuf\Duration::class))]
public ?\Thesis\Google\Protobuf\Duration $utcOffset = null,
) {}
}
4 changes: 2 additions & 2 deletions src/DayOfWeek.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/type/dayofweek.proto
*/

declare(strict_types=1);

namespace Google\Type;
namespace Thesis\Google\Type;

/**
* @api
Expand Down
4 changes: 2 additions & 2 deletions src/Decimal.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/type/decimal.proto
*/

declare(strict_types=1);

namespace Google\Type;
namespace Thesis\Google\Type;

use Thesis\Protobuf\Reflection;

Expand Down
Loading
Loading