github.com/whiteCcinn/protobuf-go@v1.0.9/internal/testprotos/legacy/bug1052/bug1052.proto (about)

     1  // Copyright 2020 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 exercises a deadlock in registation of legacy extensions:
     6  // https://github.com/golang/protobuf/issues/1052
     7  //
     8  // The corresponding .pb.go file was generated with protoc 3.11.3 and
     9  // protoc-gen-go 1.3.3.
    10  
    11  syntax = "proto2";
    12  
    13  package goproto.proto.legacy;
    14  
    15  import "google/protobuf/descriptor.proto";
    16  
    17  option go_package = "github.com/whiteCcinn/protobuf-go/internal/testprotos/legacy/bug1052";
    18  
    19  enum Enum {
    20    ZERO = 0;
    21  }
    22  
    23  extend google.protobuf.MethodOptions {
    24    optional Enum extension_enum = 5000;
    25  }
    26