Skip to main content

Enumeration: IdempotencyLevel

protobuf.MethodOptions.IdempotencyLevel

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.

Enumeration Members

IDEMPOTENCY_UNKNOWN

IDEMPOTENCY_UNKNOWN = 0

IDEMPOTENCY_UNKNOWN value


IDEMPOTENT

IDEMPOTENT = 2

idempotent, but may have side effects


NO_SIDE_EFFECTS

NO_SIDE_EFFECTS = 1

implies idempotent