mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-09 21:52:24 +00:00
d47ea19d2f
If the message for a weak field is linked in, we treat it as if it were identical to a normal known field. However, if the weak field is not linked in, we treat it as if the field were not known. Change-Id: I576d911deec98e13211304024a6353734d055465 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/185457 Reviewed-by: Herbie Ong <herbie@google.com>
14 lines
350 B
Protocol Buffer
14 lines
350 B
Protocol Buffer
// Copyright 2019 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.proto.test.weak;
|
|
|
|
option go_package = "google.golang.org/protobuf/internal/testprotos/test/weak2";
|
|
|
|
message WeakImportMessage2 {
|
|
optional int32 a = 1;
|
|
}
|