Class: Google::Protobuf::MethodOptions::IdempotencyLevel

Inherits:
Object
  • Object
show all
Extended by:
Protobug::Enum
Defined in:
lib/google/protobuf/descriptor_pb.rb

Overview

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.

Constant Summary collapse

IDEMPOTENCY_UNKNOWN =
new("IDEMPOTENCY_UNKNOWN", 0).freeze
NO_SIDE_EFFECTS =

implies idempotent

new("NO_SIDE_EFFECTS", 1).freeze
IDEMPOTENT =
new(
  "IDEMPOTENT",
  2
).freeze