mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2024-12-28 18:25:46 +00:00
cf06b0c33c
Provide an API to add the GeneratedCodeInfo.Annotation.Semantic enum to annotations. Change-Id: I92ab30619a94a117679a0eb16d8cb5b3a1352586 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/489795 Reviewed-by: Lasse Folger <lassefolger@google.com> Reviewed-by: Damien Neil <dneil@google.com>
22 lines
553 B
Protocol Buffer
22 lines
553 B
Protocol Buffer
// 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.
|
|
|
|
syntax = "proto2";
|
|
|
|
package goproto.protoc.annotations;
|
|
|
|
import weak "cmd/protoc-gen-go/testdata/imports/fmt/m.proto";
|
|
|
|
option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/annotations";
|
|
|
|
message AnnotationsTestMessage {
|
|
optional string AnnotationsTestField = 1;
|
|
|
|
optional fmt.M m = 2 [weak = true];
|
|
}
|
|
|
|
enum AnnotationsTestEnum {
|
|
ANNOTATIONS_TEST_ENUM_VALUE = 0;
|
|
}
|