You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
428 B
Protocol Buffer
25 lines
428 B
Protocol Buffer
syntax = "proto2";
|
|
|
|
package jraft;
|
|
|
|
option java_package = "com.alipay.sofa.jraft.example.counter.rpc";
|
|
option java_outer_classname = "CounterOutter";
|
|
|
|
|
|
message GetValueRequest {
|
|
repeated bool readOnlySafe = 1;
|
|
}
|
|
|
|
message IncrementAndGetRequest {
|
|
required int64 delta = 1;
|
|
}
|
|
|
|
message ValueResponse {
|
|
required int64 value = 1;
|
|
required bool success = 2;
|
|
optional string redirect = 3;
|
|
optional string errorMsg = 4;
|
|
}
|
|
|
|
|