Skip to content
Snippets Groups Projects
Commit 700dfd9b authored by Stanley Cheung's avatar Stanley Cheung
Browse files

php test math proto: add default value

parent 0fff02c3
No related branches found
No related tags found
No related merge requests found
...@@ -28,30 +28,30 @@ ...@@ -28,30 +28,30 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
syntax = "proto3"; syntax = "proto2";
package math; package math;
message DivArgs { message DivArgs {
optional int64 dividend = 1; optional int64 dividend = 1 [default = 0];
optional int64 divisor = 2; optional int64 divisor = 2 [default = 0];
} }
message DivReply { message DivReply {
optional int64 quotient = 1; optional int64 quotient = 1 [default = 0];
optional int64 remainder = 2; optional int64 remainder = 2 [default = 0];
} }
message FibArgs { message FibArgs {
optional int64 limit = 1; optional int64 limit = 1 [default = 0];
} }
message Num { message Num {
optional int64 num = 1; optional int64 num = 1 [default = 0];
} }
message FibReply { message FibReply {
optional int64 count = 1; optional int64 count = 1 [default = 0];
} }
service Math { service Math {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment