fields.proto 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // Copyright 2018 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. syntax = "proto3";
  5. package goproto.protoc.proto3;
  6. option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto3";
  7. message FieldTestMessage {
  8. string optional_bool = 1;
  9. Enum optional_enum = 2;
  10. int32 optional_int32 = 3;
  11. sint32 optional_sint32 = 4;
  12. uint32 optional_uint32 = 5;
  13. int64 optional_int64 = 6;
  14. sint64 optional_sint64 = 7;
  15. uint64 optional_uint64 = 8;
  16. sfixed32 optional_sfixed32 = 9;
  17. fixed32 optional_fixed32 = 10;
  18. float optional_float = 11;
  19. sfixed64 optional_sfixed64 = 12;
  20. fixed64 optional_fixed64 = 13;
  21. double optional_double = 14;
  22. string optional_string = 15;
  23. bytes optional_bytes = 16;
  24. Message optional_Message = 17;
  25. repeated bool repeated_bool = 201;
  26. repeated Enum repeated_enum = 202;
  27. repeated int32 repeated_int32 = 203;
  28. repeated sint32 repeated_sint32 = 204;
  29. repeated uint32 repeated_uint32 = 205;
  30. repeated int64 repeated_int64 = 206;
  31. repeated sint64 repeated_sint64 = 207;
  32. repeated uint64 repeated_uint64 = 208;
  33. repeated sfixed32 repeated_sfixed32 = 209;
  34. repeated fixed32 repeated_fixed32 = 210;
  35. repeated float repeated_float = 211;
  36. repeated sfixed64 repeated_sfixed64 = 212;
  37. repeated fixed64 repeated_fixed64 = 213;
  38. repeated double repeated_double = 214;
  39. repeated string repeated_string = 215;
  40. repeated bytes repeated_bytes = 216;
  41. repeated Message repeated_Message = 217;
  42. map<int32, int64> map_int32_int64 = 500;
  43. map<string,Message> map_string_message = 501;
  44. map<fixed64,Enum> map_fixed64_enum = 502;
  45. enum Enum { ZERO = 0; }
  46. message Message {}
  47. }