etcdserver.proto 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. syntax = "proto2";
  2. package etcdserverpb;
  3. import "gogoproto/gogo.proto";
  4. option (gogoproto.marshaler_all) = true;
  5. option (gogoproto.sizer_all) = true;
  6. option (gogoproto.unmarshaler_all) = true;
  7. option (gogoproto.goproto_getters_all) = false;
  8. message Request {
  9. optional uint64 ID = 1 [(gogoproto.nullable) = false];
  10. optional string Method = 2 [(gogoproto.nullable) = false];
  11. optional string Path = 3 [(gogoproto.nullable) = false];
  12. optional string Val = 4 [(gogoproto.nullable) = false];
  13. optional bool Dir = 5 [(gogoproto.nullable) = false];
  14. optional string PrevValue = 6 [(gogoproto.nullable) = false];
  15. optional uint64 PrevIndex = 7 [(gogoproto.nullable) = false];
  16. optional bool PrevExist = 8 [(gogoproto.nullable) = true];
  17. optional int64 Expiration = 9 [(gogoproto.nullable) = false];
  18. optional bool Wait = 10 [(gogoproto.nullable) = false];
  19. optional uint64 Since = 11 [(gogoproto.nullable) = false];
  20. optional bool Recursive = 12 [(gogoproto.nullable) = false];
  21. optional bool Sorted = 13 [(gogoproto.nullable) = false];
  22. optional bool Quorum = 14 [(gogoproto.nullable) = false];
  23. optional int64 Time = 15 [(gogoproto.nullable) = false];
  24. optional bool Stream = 16 [(gogoproto.nullable) = false];
  25. optional bool Refresh = 17 [(gogoproto.nullable) = true];
  26. }
  27. message Metadata {
  28. optional uint64 NodeID = 1 [(gogoproto.nullable) = false];
  29. optional uint64 ClusterID = 2 [(gogoproto.nullable) = false];
  30. }