syntax = "proto2";

package wix.api;

import "google/protobuf/descriptor.proto";

option java_multiple_files = true;
option java_outer_classname = "IdempotencyProto";
option java_package = "com.wix.api";

/* Idempotency annotation for Loom Prime
Configures idempotency for the method.
See ExecutionGuard README for more details: https://github.com/wix-private/server-infra/blob/master/aglianico/execution-guard/README.md#loom-prime-with-zero-code

[NOTE]:
The annotation affects only Loom Prime services.
Any other service will ignore this annotation.
*/
extend google.protobuf.MethodOptions {
    optional Idempotency idempotency = 50153;
}

message Idempotency {
    optional string key = 1;
}
