From 46ae90dc5e145b12fffa7e053a908a9f3e066286 Mon Sep 17 00:00:00 2001 From: Paul Yang Date: Thu, 8 Dec 2016 11:16:49 -0800 Subject: Make php generated code conform to PSR-4. (#2435) 1. Generate single file for each message. 2. Lazily initiate metadata. --- .../Internal/MethodOptions_IdempotencyLevel.php | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 php/src/Google/Protobuf/Internal/MethodOptions_IdempotencyLevel.php (limited to 'php/src/Google/Protobuf/Internal/MethodOptions_IdempotencyLevel.php') diff --git a/php/src/Google/Protobuf/Internal/MethodOptions_IdempotencyLevel.php b/php/src/Google/Protobuf/Internal/MethodOptions_IdempotencyLevel.php new file mode 100644 index 00000000..62768b5c --- /dev/null +++ b/php/src/Google/Protobuf/Internal/MethodOptions_IdempotencyLevel.php @@ -0,0 +1,39 @@ + + * Is this method side-effect-free (or safe in HTTP parlance), or idempotent, + * or neither? HTTP based RPC implementation may choose GET verb for safe + * methods, and PUT verb for idempotent methods instead of the default POST. + * + * + * Protobuf enum google.protobuf.MethodOptions.IdempotencyLevel + */ +namespace Google\Protobuf\Internal; + +class MethodOptions_IdempotencyLevel +{ + /** + * IDEMPOTENCY_UNKNOWN = 0; + */ + const IDEMPOTENCY_UNKNOWN = 0; + /** + *
+     * implies idempotent
+     * 
+ * + * NO_SIDE_EFFECTS = 1; + */ + const NO_SIDE_EFFECTS = 1; + /** + *
+     * idempotent, but may have side effects
+     * 
+ * + * IDEMPOTENT = 2; + */ + const IDEMPOTENT = 2; +} + -- cgit v1.2.3