protobuf-go/proto
Joe Tsai 118baf6390 all: funnel similar functionality through a single function
Some companies (e.g., Google) run a profiling service where they may
choose to special-case certain symbols in a binary to classify
commonly used libraries like protobufs.

This CL funnels similar functionality through a single function
so that they can be more easily identified. This is by no means a
firm statement that these identifiers will never change names,
but at least the code documents warnings to avoid changing the
name of certain identifiers.

This CL provides the following semi-stable symbol names:
	"google.golang.org/protobuf/proto".MarshalOptions.size
	"google.golang.org/protobuf/proto".MarshalOptions.marshal
	"google.golang.org/protobuf/proto".UnmarshalOptions.unmarshal
	"google.golang.org/protobuf/encoding/prototext".MarshalOptions.marshal
	"google.golang.org/protobuf/encoding/prototext".UnmarshalOptions.unmarshal
	"google.golang.org/protobuf/encoding/protojson".MarshalOptions.marshal
	"google.golang.org/protobuf/encoding/protojson".UnmarshalOptions.unmarshal

Merge and Clone are not part of the above set since there is a
possibility that MergeOptions will be added in the future.

We use an unexported method so that we have the freedom to change the
method however we want since profilers do not care about that.

Change-Id: Ia79af260d00125f48139420e1e18a86482bd1829
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/234079
Reviewed-by: Damien Neil <dneil@google.com>
2020-05-15 18:21:49 +00:00
..
bench_test.go
checkinit_test.go all: rename IsInitialized as CheckInitialized 2020-02-20 20:45:40 +00:00
checkinit.go all: consistently treat nil message interface as an empty read-only message 2020-04-20 23:12:56 +00:00
decode_gen.go encoding/protowire: make package publicly available 2020-03-20 07:42:18 +00:00
decode_test.go all: implement support for proto3 optional semantics 2020-04-29 20:02:24 +00:00
decode.go all: funnel similar functionality through a single function 2020-05-15 18:21:49 +00:00
doc.go all: rename IsInitialized as CheckInitialized 2020-02-20 20:45:40 +00:00
encode_gen.go encoding/protowire: make package publicly available 2020-03-20 07:42:18 +00:00
encode_test.go all: implement support for proto3 optional semantics 2020-04-29 20:02:24 +00:00
encode.go all: funnel similar functionality through a single function 2020-05-15 18:21:49 +00:00
equal_test.go all: implement support for proto3 optional semantics 2020-04-29 20:02:24 +00:00
equal.go encoding/protowire: make package publicly available 2020-03-20 07:42:18 +00:00
extension_test.go all: implement support for proto3 optional semantics 2020-04-29 20:02:24 +00:00
extension.go all: improve extension validation 2020-04-23 06:01:13 +00:00
merge_test.go all: implement support for proto3 optional semantics 2020-04-29 20:02:24 +00:00
merge.go all: improve panic messages for better debugability 2020-05-05 21:10:54 +00:00
messageset_test.go testing/protopack: make package publicly available 2020-03-20 18:05:51 +00:00
messageset.go all: funnel similar functionality through a single function 2020-05-15 18:21:49 +00:00
methods_test.go proto: fix signature of UnmarshalState and MarshalState 2020-03-09 20:02:17 +00:00
nil_test.go all: improve extension validation 2020-04-23 06:01:13 +00:00
noenforceutf8_test.go testing/protopack: make package publicly available 2020-03-20 18:05:51 +00:00
proto_methods.go
proto_reflect.go
proto.go
reset_test.go all: remove stray "." from license headers 2020-02-20 18:54:38 +00:00
reset.go all: improve panic messages for better debugability 2020-05-05 21:10:54 +00:00
size_gen.go all: funnel similar functionality through a single function 2020-05-15 18:21:49 +00:00
size.go all: funnel similar functionality through a single function 2020-05-15 18:21:49 +00:00
testmessages_test.go internal/impl: validate UTF-8 for proto3 optional strings 2020-05-01 17:23:32 +00:00
validate_test.go all: remove stray "." from license headers 2020-02-20 18:54:38 +00:00
weak_test.go testing/protopack: make package publicly available 2020-03-20 18:05:51 +00:00
wrappers.go