IdempotencyLevel.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: google/protobuf/descriptor.proto
  4. namespace Google\Protobuf\Internal\MethodOptions;
  5. /**
  6. * Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
  7. * or neither? HTTP based RPC implementation may choose GET verb for safe
  8. * methods, and PUT verb for idempotent methods instead of the default POST.
  9. *
  10. * Protobuf type <code>google.protobuf.MethodOptions.IdempotencyLevel</code>
  11. */
  12. class IdempotencyLevel
  13. {
  14. /**
  15. * Generated from protobuf enum <code>IDEMPOTENCY_UNKNOWN = 0;</code>
  16. */
  17. const IDEMPOTENCY_UNKNOWN = 0;
  18. /**
  19. * implies idempotent
  20. *
  21. * Generated from protobuf enum <code>NO_SIDE_EFFECTS = 1;</code>
  22. */
  23. const NO_SIDE_EFFECTS = 1;
  24. /**
  25. * idempotent, but may have side effects
  26. *
  27. * Generated from protobuf enum <code>IDEMPOTENT = 2;</code>
  28. */
  29. const IDEMPOTENT = 2;
  30. }
  31. // Adding a class alias for backwards compatibility with the previous class name.
  32. class_alias(IdempotencyLevel::class, \Google\Protobuf\Internal\MethodOptions_IdempotencyLevel::class);