mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-04 02:38:50 +00:00
01ab29648e
This change was created by running: git ls-files | xargs sed -i "s|google.golang.org/proto|github.com/golang/protobuf/v2|g" This change is *not* an endorsement of "github.com/golang/protobuf/v2" as the final import path when the v2 API is eventually released as stable. We continue to reserve the right to make breaking changes as we see fit. This change enables us to host the v2 API on a repository that is go-gettable (since go.googlesource.com is not a known host by the "go get" tool; and google.golang.org/proto was just a stub URL that is not currently served). Thus, we can start work on a forked version of the v1 API that explores what it would take to implement v1 in terms of v2 in a backwards compatible way. Change-Id: Ia3ebc41ac4238af62ee140200d3158b53ac9ec48 Reviewed-on: https://go-review.googlesource.com/136736 Reviewed-by: Damien Neil <dneil@google.com>
54 lines
2.1 KiB
Protocol Buffer
54 lines
2.1 KiB
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 = "proto3";
|
|
|
|
import "google/protobuf/descriptor.proto";
|
|
|
|
package goproto.protoc.extension.proto3;
|
|
|
|
option go_package = "github.com/golang/protobuf/v2/cmd/protoc-gen-go/testdata/extensions/proto3";
|
|
|
|
message Message {}
|
|
enum Enum { ZERO = 0; }
|
|
|
|
// The only types proto3 is allowed to extend are descriptor options.
|
|
extend google.protobuf.MessageOptions {
|
|
bool extension_bool = 1001;
|
|
Enum extension_enum = 1002;
|
|
int32 extension_int32 = 1003;
|
|
sint32 extension_sint32 = 1004;
|
|
uint32 extension_uint32 = 1005;
|
|
int64 extension_int64 = 1006;
|
|
sint64 extension_sint64 = 1007;
|
|
uint64 extension_uint64 = 1008;
|
|
sfixed32 extension_sfixed32 = 1009;
|
|
fixed32 extension_fixed32 = 1010;
|
|
float extension_float = 1011;
|
|
sfixed64 extension_sfixed64 = 1012;
|
|
fixed64 extension_fixed64 = 1013;
|
|
double extension_double = 1014;
|
|
string extension_string = 1015;
|
|
bytes extension_bytes = 1016;
|
|
Message extension_Message = 1017;
|
|
|
|
repeated bool repeated_extension_bool = 2001;
|
|
repeated Enum repeated_extension_enum = 2002;
|
|
repeated int32 repeated_extension_int32 = 2003;
|
|
repeated sint32 repeated_extension_sint32 = 2004;
|
|
repeated uint32 repeated_extension_uint32 = 2005;
|
|
repeated int64 repeated_extension_int64 = 2006;
|
|
repeated sint64 repeated_extension_sint64 = 2007;
|
|
repeated uint64 repeated_extension_uint64 = 2008;
|
|
repeated sfixed32 repeated_extension_sfixed32 = 2009;
|
|
repeated fixed32 repeated_extension_fixed32 = 2010;
|
|
repeated float repeated_extension_float = 2011;
|
|
repeated sfixed64 repeated_extension_sfixed64 = 2012;
|
|
repeated fixed64 repeated_extension_fixed64 = 2013;
|
|
repeated double repeated_extension_double = 2014;
|
|
repeated string repeated_extension_string = 2015;
|
|
repeated bytes repeated_extension_bytes = 2016;
|
|
repeated Message repeated_extension_Message = 2017;
|
|
}
|