123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167 |
- package protoiface
- import (
- "google.golang.org/protobuf/internal/pragma"
- "google.golang.org/protobuf/reflect/protoreflect"
- )
- type Methods = struct {
- pragma.NoUnkeyedLiterals
-
- Flags SupportFlags
-
-
- Size func(SizeInput) SizeOutput
-
-
-
- Marshal func(MarshalInput) (MarshalOutput, error)
-
-
- Unmarshal func(UnmarshalInput) (UnmarshalOutput, error)
-
- Merge func(MergeInput) MergeOutput
-
- CheckInitialized func(CheckInitializedInput) (CheckInitializedOutput, error)
- }
- type SupportFlags = uint64
- const (
-
- SupportMarshalDeterministic SupportFlags = 1 << iota
-
- SupportUnmarshalDiscardUnknown
- )
- type SizeInput = struct {
- pragma.NoUnkeyedLiterals
- Message protoreflect.Message
- Flags MarshalInputFlags
- }
- type SizeOutput = struct {
- pragma.NoUnkeyedLiterals
- Size int
- }
- type MarshalInput = struct {
- pragma.NoUnkeyedLiterals
- Message protoreflect.Message
- Buf []byte
- Flags MarshalInputFlags
- }
- type MarshalOutput = struct {
- pragma.NoUnkeyedLiterals
- Buf []byte
- }
- type MarshalInputFlags = uint8
- const (
- MarshalDeterministic MarshalInputFlags = 1 << iota
- MarshalUseCachedSize
- )
- type UnmarshalInput = struct {
- pragma.NoUnkeyedLiterals
- Message protoreflect.Message
- Buf []byte
- Flags UnmarshalInputFlags
- Resolver interface {
- FindExtensionByName(field protoreflect.FullName) (protoreflect.ExtensionType, error)
- FindExtensionByNumber(message protoreflect.FullName, field protoreflect.FieldNumber) (protoreflect.ExtensionType, error)
- }
- }
- type UnmarshalOutput = struct {
- pragma.NoUnkeyedLiterals
- Flags UnmarshalOutputFlags
- }
- type UnmarshalInputFlags = uint8
- const (
- UnmarshalDiscardUnknown UnmarshalInputFlags = 1 << iota
- )
- type UnmarshalOutputFlags = uint8
- const (
-
-
-
- UnmarshalInitialized UnmarshalOutputFlags = 1 << iota
- )
- type MergeInput = struct {
- pragma.NoUnkeyedLiterals
- Source protoreflect.Message
- Destination protoreflect.Message
- }
- type MergeOutput = struct {
- pragma.NoUnkeyedLiterals
- Flags MergeOutputFlags
- }
- type MergeOutputFlags = uint8
- const (
-
-
- MergeComplete MergeOutputFlags = 1 << iota
- )
- type CheckInitializedInput = struct {
- pragma.NoUnkeyedLiterals
- Message protoreflect.Message
- }
- type CheckInitializedOutput = struct {
- pragma.NoUnkeyedLiterals
- }
|