File: test.proto

package info (click to toggle)
golang-google-protobuf 1.32.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 10,724 kB
  • sloc: sh: 94; makefile: 4
file content (45 lines) | stat: -rw-r--r-- 844 bytes parent folder | download | duplicates (3)
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
45
// Copyright 2018 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.

// Different proto type definitions for testing the Types registry.
syntax = "proto2";

package testprotos;
option go_package = "google.golang.org/protobuf/internal/testprotos/registry";

message Message1 {
  extensions 10 to max;
}

message Message2 {}

message Message3 {}

enum Enum1 {
  ONE = 1;
}

enum Enum2 {
  UNO = 1;
}

enum Enum3 {
  YI = 1;
}

extend Message1 {
  optional string string_field = 11;
  optional Enum1 enum_field = 12;
  optional Message2 message_field = 13;
}

message Message4 {
  optional bool bool_field = 30;

  extend Message1 {
    optional Message2 message_field = 21;
    optional Enum1 enum_field = 22;
    optional string string_field = 23;
  }
}