protobuf-go/cmd/protoc-gen-go/testdata/annotations/annotations.proto
Cody Schroeder cf06b0c33c compiler/protogen: add Semantic.SET to setter annotations
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>
2023-05-01 15:43:20 +00:00

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;
}