test_messages.proto 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // Copyright 2015 gRPC authors.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. message LongValues {
  16. int64 int_64 = 1;
  17. uint64 uint_64 = 2;
  18. sint64 sint_64 = 3;
  19. fixed64 fixed_64 = 4;
  20. sfixed64 sfixed_64 = 5;
  21. }
  22. message SequenceValues {
  23. bytes bytes_field = 1;
  24. repeated int32 repeated_field = 2;
  25. }
  26. message OneOfValues {
  27. oneof oneof_choice {
  28. int32 int_choice = 1;
  29. string string_choice = 2;
  30. }
  31. }
  32. enum TestEnum {
  33. ZERO = 0;
  34. ONE = 1;
  35. TWO = 2;
  36. }
  37. message EnumValues {
  38. TestEnum enum_value = 1;
  39. }