github.com/whiteCcinn/protobuf-go@v1.0.9/cmd/protoc-gen-go/testdata/proto2/nested_messages.proto (about)

     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  
     5  syntax = "proto2";
     6  
     7  package goproto.protoc.proto2;
     8  
     9  option go_package = "github.com/whiteCcinn/protobuf-go/cmd/protoc-gen-go/testdata/proto2";
    10  
    11  message Layer1 {
    12    message Layer2 {
    13      message Layer3 {
    14      }
    15      optional Layer3 l3 = 1;
    16    }
    17    optional Layer2 l2 = 1;
    18    optional Layer2.Layer3 l3 = 2;
    19  }