...

Text file src/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto3/fields.proto

Documentation: google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto3

     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
     5syntax = "proto3";
     6
     7package goproto.protoc.proto3;
     8
     9option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto3";
    10
    11message FieldTestMessage {
    12  string   optional_bool     = 1;
    13  Enum     optional_enum     = 2;
    14  int32    optional_int32    = 3;
    15  sint32   optional_sint32   = 4;
    16  uint32   optional_uint32   = 5;
    17  int64    optional_int64    = 6;
    18  sint64   optional_sint64   = 7;
    19  uint64   optional_uint64   = 8;
    20  sfixed32 optional_sfixed32 = 9;
    21  fixed32  optional_fixed32  = 10;
    22  float    optional_float    = 11;
    23  sfixed64 optional_sfixed64 = 12;
    24  fixed64  optional_fixed64  = 13;
    25  double   optional_double   = 14;
    26  string   optional_string   = 15;
    27  bytes    optional_bytes    = 16;
    28  Message  optional_Message  = 17;
    29
    30  repeated bool     repeated_bool     = 201;
    31  repeated Enum     repeated_enum     = 202;
    32  repeated int32    repeated_int32    = 203;
    33  repeated sint32   repeated_sint32   = 204;
    34  repeated uint32   repeated_uint32   = 205;
    35  repeated int64    repeated_int64    = 206;
    36  repeated sint64   repeated_sint64   = 207;
    37  repeated uint64   repeated_uint64   = 208;
    38  repeated sfixed32 repeated_sfixed32 = 209;
    39  repeated fixed32  repeated_fixed32  = 210;
    40  repeated float    repeated_float    = 211;
    41  repeated sfixed64 repeated_sfixed64 = 212;
    42  repeated fixed64  repeated_fixed64  = 213;
    43  repeated double   repeated_double   = 214;
    44  repeated string   repeated_string   = 215;
    45  repeated bytes    repeated_bytes    = 216;
    46  repeated Message  repeated_Message  = 217;
    47
    48  map<int32, int64>   map_int32_int64    = 500;
    49  map<string,Message> map_string_message = 501;
    50  map<fixed64,Enum>   map_fixed64_enum   = 502;
    51
    52  enum Enum { ZERO = 0; }
    53  message Message {}
    54}
    55

View as plain text