etcdserver.proto 1.4 KB

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