File: test3.proto

package info (click to toggle)
golang-github-golang-protobuf-1-5 1.5.4-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid
  • size: 1,032 kB
  • sloc: sh: 35; makefile: 3
file content (44 lines) | stat: -rw-r--r-- 891 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

syntax = "proto3";

option go_package = "github.com/golang/protobuf/internal/testprotos/jsonpb_proto";

package jsonpb_test;

message Simple3 {
  double dub = 1;
}

message SimpleSlice3 {
  repeated string slices = 1;
}

message SimpleMap3 {
  map<string,string> stringy = 1;
}

message SimpleNull3 {
  Simple3 simple = 1;
}

enum Numeral {
  UNKNOWN = 0;
  ARABIC = 1;
  ROMAN = 2;
}

message Mappy {
  map<int64, int32> nummy = 1;
  map<string, string> strry = 2;
  map<int32, Simple3> objjy = 3;
  map<int64, string> buggy = 4;
  map<bool, bool> booly = 5;
  map<string, Numeral> enumy = 6;
  map<int32, bool> s32booly = 7;
  map<int64, bool> s64booly = 8;
  map<uint32, bool> u32booly = 9;
  map<uint64, bool> u64booly = 10;
}