php test math proto: add default value

pull/1579/head
Stanley Cheung 10 years ago
parent 0fff02c3ba
commit 700dfd9b23
  1. 16
      src/php/tests/generated_code/math.proto

@ -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 {

Loading…
Cancel
Save