...

Text file src/google.golang.org/protobuf/internal/testprotos/irregular/test.proto

Documentation: google.golang.org/protobuf/internal/testprotos/irregular

     1// Copyright 2019 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
     5// This file contains a message which references a message that implements the
     6// proto.Message interface but does not have the structure of a normal generated
     7// message.
     8
     9syntax = "proto2";
    10
    11package goproto.proto.irregular;
    12
    13import "internal/testprotos/irregular/irregular.proto";
    14
    15option go_package = "google.golang.org/protobuf/internal/testprotos/irregular";
    16
    17message Message {
    18  optional IrregularMessage optional_message = 1;
    19  repeated IrregularMessage repeated_message = 2;
    20  required IrregularMessage required_message = 3;
    21  map<string,IrregularMessage> map_message = 4;
    22  oneof union {
    23    IrregularMessage oneof_message = 5;
    24    AberrantMessage oneof_aberrant_message = 6;
    25  }
    26
    27  optional AberrantMessage optional_aberrant_message = 7;
    28  repeated AberrantMessage repeated_aberrant_message = 8;
    29  required AberrantMessage required_aberrant_message = 9;
    30  map<string,AberrantMessage> map_aberrant_message = 10;
    31}

View as plain text