Compare commits
No commits in common. "b868d34594238cc9f46d44ceb475132aa508a99e" and "02a3091853c04414d81856ff1f38d8c721e68a10" have entirely different histories.
b868d34594
...
02a3091853
@ -1,8 +1,8 @@
|
|||||||
module github.com/cyrilix/robocar-protobuf/go
|
module github.com/cyrilix/robocar-protobuf/go
|
||||||
|
|
||||||
go 1.18
|
go 1.17
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/golang/protobuf v1.5.2
|
github.com/golang/protobuf v1.5.2
|
||||||
google.golang.org/protobuf v1.28.0
|
google.golang.org/protobuf v1.27.1
|
||||||
)
|
)
|
||||||
|
@ -7,5 +7,5 @@ golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IV
|
|||||||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||||
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
|
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
|
||||||
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
|
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
|
||||||
google.golang.org/protobuf v1.28.0 h1:w43yiav+6bVFTBQFZX0r7ipe9JQ1QsbMgHwbBziscLw=
|
google.golang.org/protobuf v1.27.1 h1:SnqbnDw1V7RiZcXPx5MEeqPv2s79L9i7BJUlG/+RurQ=
|
||||||
google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
|
google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
|
||||||
|
19
go/vendor/google.golang.org/protobuf/encoding/protowire/wire.go
generated
vendored
19
go/vendor/google.golang.org/protobuf/encoding/protowire/wire.go
generated
vendored
@ -21,11 +21,10 @@ import (
|
|||||||
type Number int32
|
type Number int32
|
||||||
|
|
||||||
const (
|
const (
|
||||||
MinValidNumber Number = 1
|
MinValidNumber Number = 1
|
||||||
FirstReservedNumber Number = 19000
|
FirstReservedNumber Number = 19000
|
||||||
LastReservedNumber Number = 19999
|
LastReservedNumber Number = 19999
|
||||||
MaxValidNumber Number = 1<<29 - 1
|
MaxValidNumber Number = 1<<29 - 1
|
||||||
DefaultRecursionLimit = 10000
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// IsValid reports whether the field number is semantically valid.
|
// IsValid reports whether the field number is semantically valid.
|
||||||
@ -56,7 +55,6 @@ const (
|
|||||||
errCodeOverflow
|
errCodeOverflow
|
||||||
errCodeReserved
|
errCodeReserved
|
||||||
errCodeEndGroup
|
errCodeEndGroup
|
||||||
errCodeRecursionDepth
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -114,10 +112,6 @@ func ConsumeField(b []byte) (Number, Type, int) {
|
|||||||
// When parsing a group, the length includes the end group marker and
|
// When parsing a group, the length includes the end group marker and
|
||||||
// the end group is verified to match the starting field number.
|
// the end group is verified to match the starting field number.
|
||||||
func ConsumeFieldValue(num Number, typ Type, b []byte) (n int) {
|
func ConsumeFieldValue(num Number, typ Type, b []byte) (n int) {
|
||||||
return consumeFieldValueD(num, typ, b, DefaultRecursionLimit)
|
|
||||||
}
|
|
||||||
|
|
||||||
func consumeFieldValueD(num Number, typ Type, b []byte, depth int) (n int) {
|
|
||||||
switch typ {
|
switch typ {
|
||||||
case VarintType:
|
case VarintType:
|
||||||
_, n = ConsumeVarint(b)
|
_, n = ConsumeVarint(b)
|
||||||
@ -132,9 +126,6 @@ func consumeFieldValueD(num Number, typ Type, b []byte, depth int) (n int) {
|
|||||||
_, n = ConsumeBytes(b)
|
_, n = ConsumeBytes(b)
|
||||||
return n
|
return n
|
||||||
case StartGroupType:
|
case StartGroupType:
|
||||||
if depth < 0 {
|
|
||||||
return errCodeRecursionDepth
|
|
||||||
}
|
|
||||||
n0 := len(b)
|
n0 := len(b)
|
||||||
for {
|
for {
|
||||||
num2, typ2, n := ConsumeTag(b)
|
num2, typ2, n := ConsumeTag(b)
|
||||||
@ -149,7 +140,7 @@ func consumeFieldValueD(num Number, typ Type, b []byte, depth int) (n int) {
|
|||||||
return n0 - len(b)
|
return n0 - len(b)
|
||||||
}
|
}
|
||||||
|
|
||||||
n = consumeFieldValueD(num2, typ2, b, depth-1)
|
n = ConsumeFieldValue(num2, typ2, b)
|
||||||
if n < 0 {
|
if n < 0 {
|
||||||
return n // forward error code
|
return n // forward error code
|
||||||
}
|
}
|
||||||
|
2
go/vendor/google.golang.org/protobuf/internal/encoding/text/decode.go
generated
vendored
2
go/vendor/google.golang.org/protobuf/internal/encoding/text/decode.go
generated
vendored
@ -381,7 +381,7 @@ func (d *Decoder) currentOpenKind() (Kind, byte) {
|
|||||||
case '[':
|
case '[':
|
||||||
return ListOpen, ']'
|
return ListOpen, ']'
|
||||||
}
|
}
|
||||||
panic(fmt.Sprintf("Decoder: openStack contains invalid byte %c", openCh))
|
panic(fmt.Sprintf("Decoder: openStack contains invalid byte %s", string(openCh)))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (d *Decoder) pushOpenStack(ch byte) {
|
func (d *Decoder) pushOpenStack(ch byte) {
|
||||||
|
1
go/vendor/google.golang.org/protobuf/internal/errors/is_go112.go
generated
vendored
1
go/vendor/google.golang.org/protobuf/internal/errors/is_go112.go
generated
vendored
@ -2,7 +2,6 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !go1.13
|
|
||||||
// +build !go1.13
|
// +build !go1.13
|
||||||
|
|
||||||
package errors
|
package errors
|
||||||
|
1
go/vendor/google.golang.org/protobuf/internal/errors/is_go113.go
generated
vendored
1
go/vendor/google.golang.org/protobuf/internal/errors/is_go113.go
generated
vendored
@ -2,7 +2,6 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build go1.13
|
|
||||||
// +build go1.13
|
// +build go1.13
|
||||||
|
|
||||||
package errors
|
package errors
|
||||||
|
1
go/vendor/google.golang.org/protobuf/internal/flags/proto_legacy_disable.go
generated
vendored
1
go/vendor/google.golang.org/protobuf/internal/flags/proto_legacy_disable.go
generated
vendored
@ -2,7 +2,6 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !protolegacy
|
|
||||||
// +build !protolegacy
|
// +build !protolegacy
|
||||||
|
|
||||||
package flags
|
package flags
|
||||||
|
1
go/vendor/google.golang.org/protobuf/internal/flags/proto_legacy_enable.go
generated
vendored
1
go/vendor/google.golang.org/protobuf/internal/flags/proto_legacy_enable.go
generated
vendored
@ -2,7 +2,6 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build protolegacy
|
|
||||||
// +build protolegacy
|
// +build protolegacy
|
||||||
|
|
||||||
package flags
|
package flags
|
||||||
|
1
go/vendor/google.golang.org/protobuf/internal/impl/codec_map_go111.go
generated
vendored
1
go/vendor/google.golang.org/protobuf/internal/impl/codec_map_go111.go
generated
vendored
@ -2,7 +2,6 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !go1.12
|
|
||||||
// +build !go1.12
|
// +build !go1.12
|
||||||
|
|
||||||
package impl
|
package impl
|
||||||
|
1
go/vendor/google.golang.org/protobuf/internal/impl/codec_map_go112.go
generated
vendored
1
go/vendor/google.golang.org/protobuf/internal/impl/codec_map_go112.go
generated
vendored
@ -2,7 +2,6 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build go1.12
|
|
||||||
// +build go1.12
|
// +build go1.12
|
||||||
|
|
||||||
package impl
|
package impl
|
||||||
|
1
go/vendor/google.golang.org/protobuf/internal/impl/codec_reflect.go
generated
vendored
1
go/vendor/google.golang.org/protobuf/internal/impl/codec_reflect.go
generated
vendored
@ -2,7 +2,6 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build purego || appengine
|
|
||||||
// +build purego appengine
|
// +build purego appengine
|
||||||
|
|
||||||
package impl
|
package impl
|
||||||
|
1
go/vendor/google.golang.org/protobuf/internal/impl/codec_unsafe.go
generated
vendored
1
go/vendor/google.golang.org/protobuf/internal/impl/codec_unsafe.go
generated
vendored
@ -2,7 +2,6 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !purego && !appengine
|
|
||||||
// +build !purego,!appengine
|
// +build !purego,!appengine
|
||||||
|
|
||||||
package impl
|
package impl
|
||||||
|
8
go/vendor/google.golang.org/protobuf/internal/impl/decode.go
generated
vendored
8
go/vendor/google.golang.org/protobuf/internal/impl/decode.go
generated
vendored
@ -18,7 +18,6 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var errDecode = errors.New("cannot parse invalid wire-format data")
|
var errDecode = errors.New("cannot parse invalid wire-format data")
|
||||||
var errRecursionDepth = errors.New("exceeded maximum recursion depth")
|
|
||||||
|
|
||||||
type unmarshalOptions struct {
|
type unmarshalOptions struct {
|
||||||
flags protoiface.UnmarshalInputFlags
|
flags protoiface.UnmarshalInputFlags
|
||||||
@ -26,7 +25,6 @@ type unmarshalOptions struct {
|
|||||||
FindExtensionByName(field protoreflect.FullName) (protoreflect.ExtensionType, error)
|
FindExtensionByName(field protoreflect.FullName) (protoreflect.ExtensionType, error)
|
||||||
FindExtensionByNumber(message protoreflect.FullName, field protoreflect.FieldNumber) (protoreflect.ExtensionType, error)
|
FindExtensionByNumber(message protoreflect.FullName, field protoreflect.FieldNumber) (protoreflect.ExtensionType, error)
|
||||||
}
|
}
|
||||||
depth int
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o unmarshalOptions) Options() proto.UnmarshalOptions {
|
func (o unmarshalOptions) Options() proto.UnmarshalOptions {
|
||||||
@ -46,7 +44,6 @@ func (o unmarshalOptions) IsDefault() bool {
|
|||||||
|
|
||||||
var lazyUnmarshalOptions = unmarshalOptions{
|
var lazyUnmarshalOptions = unmarshalOptions{
|
||||||
resolver: preg.GlobalTypes,
|
resolver: preg.GlobalTypes,
|
||||||
depth: protowire.DefaultRecursionLimit,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type unmarshalOutput struct {
|
type unmarshalOutput struct {
|
||||||
@ -65,7 +62,6 @@ func (mi *MessageInfo) unmarshal(in piface.UnmarshalInput) (piface.UnmarshalOutp
|
|||||||
out, err := mi.unmarshalPointer(in.Buf, p, 0, unmarshalOptions{
|
out, err := mi.unmarshalPointer(in.Buf, p, 0, unmarshalOptions{
|
||||||
flags: in.Flags,
|
flags: in.Flags,
|
||||||
resolver: in.Resolver,
|
resolver: in.Resolver,
|
||||||
depth: in.Depth,
|
|
||||||
})
|
})
|
||||||
var flags piface.UnmarshalOutputFlags
|
var flags piface.UnmarshalOutputFlags
|
||||||
if out.initialized {
|
if out.initialized {
|
||||||
@ -86,10 +82,6 @@ var errUnknown = errors.New("unknown")
|
|||||||
|
|
||||||
func (mi *MessageInfo) unmarshalPointer(b []byte, p pointer, groupTag protowire.Number, opts unmarshalOptions) (out unmarshalOutput, err error) {
|
func (mi *MessageInfo) unmarshalPointer(b []byte, p pointer, groupTag protowire.Number, opts unmarshalOptions) (out unmarshalOutput, err error) {
|
||||||
mi.init()
|
mi.init()
|
||||||
opts.depth--
|
|
||||||
if opts.depth < 0 {
|
|
||||||
return out, errRecursionDepth
|
|
||||||
}
|
|
||||||
if flags.ProtoLegacy && mi.isMessageSet {
|
if flags.ProtoLegacy && mi.isMessageSet {
|
||||||
return unmarshalMessageSet(mi, b, p, opts)
|
return unmarshalMessageSet(mi, b, p, opts)
|
||||||
}
|
}
|
||||||
|
1
go/vendor/google.golang.org/protobuf/internal/impl/pointer_reflect.go
generated
vendored
1
go/vendor/google.golang.org/protobuf/internal/impl/pointer_reflect.go
generated
vendored
@ -2,7 +2,6 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build purego || appengine
|
|
||||||
// +build purego appengine
|
// +build purego appengine
|
||||||
|
|
||||||
package impl
|
package impl
|
||||||
|
1
go/vendor/google.golang.org/protobuf/internal/impl/pointer_unsafe.go
generated
vendored
1
go/vendor/google.golang.org/protobuf/internal/impl/pointer_unsafe.go
generated
vendored
@ -2,7 +2,6 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !purego && !appengine
|
|
||||||
// +build !purego,!appengine
|
// +build !purego,!appengine
|
||||||
|
|
||||||
package impl
|
package impl
|
||||||
|
1
go/vendor/google.golang.org/protobuf/internal/strs/strings_pure.go
generated
vendored
1
go/vendor/google.golang.org/protobuf/internal/strs/strings_pure.go
generated
vendored
@ -2,7 +2,6 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build purego || appengine
|
|
||||||
// +build purego appengine
|
// +build purego appengine
|
||||||
|
|
||||||
package strs
|
package strs
|
||||||
|
1
go/vendor/google.golang.org/protobuf/internal/strs/strings_unsafe.go
generated
vendored
1
go/vendor/google.golang.org/protobuf/internal/strs/strings_unsafe.go
generated
vendored
@ -2,7 +2,6 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !purego && !appengine
|
|
||||||
// +build !purego,!appengine
|
// +build !purego,!appengine
|
||||||
|
|
||||||
package strs
|
package strs
|
||||||
|
4
go/vendor/google.golang.org/protobuf/internal/version/version.go
generated
vendored
4
go/vendor/google.golang.org/protobuf/internal/version/version.go
generated
vendored
@ -52,8 +52,8 @@ import (
|
|||||||
// 10. Send out the CL for review and submit it.
|
// 10. Send out the CL for review and submit it.
|
||||||
const (
|
const (
|
||||||
Major = 1
|
Major = 1
|
||||||
Minor = 28
|
Minor = 27
|
||||||
Patch = 0
|
Patch = 1
|
||||||
PreRelease = ""
|
PreRelease = ""
|
||||||
)
|
)
|
||||||
|
|
||||||
|
17
go/vendor/google.golang.org/protobuf/proto/decode.go
generated
vendored
17
go/vendor/google.golang.org/protobuf/proto/decode.go
generated
vendored
@ -42,25 +42,18 @@ type UnmarshalOptions struct {
|
|||||||
FindExtensionByName(field protoreflect.FullName) (protoreflect.ExtensionType, error)
|
FindExtensionByName(field protoreflect.FullName) (protoreflect.ExtensionType, error)
|
||||||
FindExtensionByNumber(message protoreflect.FullName, field protoreflect.FieldNumber) (protoreflect.ExtensionType, error)
|
FindExtensionByNumber(message protoreflect.FullName, field protoreflect.FieldNumber) (protoreflect.ExtensionType, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
// RecursionLimit limits how deeply messages may be nested.
|
|
||||||
// If zero, a default limit is applied.
|
|
||||||
RecursionLimit int
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Unmarshal parses the wire-format message in b and places the result in m.
|
// Unmarshal parses the wire-format message in b and places the result in m.
|
||||||
// The provided message must be mutable (e.g., a non-nil pointer to a message).
|
// The provided message must be mutable (e.g., a non-nil pointer to a message).
|
||||||
func Unmarshal(b []byte, m Message) error {
|
func Unmarshal(b []byte, m Message) error {
|
||||||
_, err := UnmarshalOptions{RecursionLimit: protowire.DefaultRecursionLimit}.unmarshal(b, m.ProtoReflect())
|
_, err := UnmarshalOptions{}.unmarshal(b, m.ProtoReflect())
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Unmarshal parses the wire-format message in b and places the result in m.
|
// Unmarshal parses the wire-format message in b and places the result in m.
|
||||||
// The provided message must be mutable (e.g., a non-nil pointer to a message).
|
// The provided message must be mutable (e.g., a non-nil pointer to a message).
|
||||||
func (o UnmarshalOptions) Unmarshal(b []byte, m Message) error {
|
func (o UnmarshalOptions) Unmarshal(b []byte, m Message) error {
|
||||||
if o.RecursionLimit == 0 {
|
|
||||||
o.RecursionLimit = protowire.DefaultRecursionLimit
|
|
||||||
}
|
|
||||||
_, err := o.unmarshal(b, m.ProtoReflect())
|
_, err := o.unmarshal(b, m.ProtoReflect())
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@ -70,9 +63,6 @@ func (o UnmarshalOptions) Unmarshal(b []byte, m Message) error {
|
|||||||
// This method permits fine-grained control over the unmarshaler.
|
// This method permits fine-grained control over the unmarshaler.
|
||||||
// Most users should use Unmarshal instead.
|
// Most users should use Unmarshal instead.
|
||||||
func (o UnmarshalOptions) UnmarshalState(in protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
|
func (o UnmarshalOptions) UnmarshalState(in protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
|
||||||
if o.RecursionLimit == 0 {
|
|
||||||
o.RecursionLimit = protowire.DefaultRecursionLimit
|
|
||||||
}
|
|
||||||
return o.unmarshal(in.Buf, in.Message)
|
return o.unmarshal(in.Buf, in.Message)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -96,17 +86,12 @@ func (o UnmarshalOptions) unmarshal(b []byte, m protoreflect.Message) (out proto
|
|||||||
Message: m,
|
Message: m,
|
||||||
Buf: b,
|
Buf: b,
|
||||||
Resolver: o.Resolver,
|
Resolver: o.Resolver,
|
||||||
Depth: o.RecursionLimit,
|
|
||||||
}
|
}
|
||||||
if o.DiscardUnknown {
|
if o.DiscardUnknown {
|
||||||
in.Flags |= protoiface.UnmarshalDiscardUnknown
|
in.Flags |= protoiface.UnmarshalDiscardUnknown
|
||||||
}
|
}
|
||||||
out, err = methods.Unmarshal(in)
|
out, err = methods.Unmarshal(in)
|
||||||
} else {
|
} else {
|
||||||
o.RecursionLimit--
|
|
||||||
if o.RecursionLimit < 0 {
|
|
||||||
return out, errors.New("exceeded max recursion depth")
|
|
||||||
}
|
|
||||||
err = o.unmarshalMessageSlow(b, m)
|
err = o.unmarshalMessageSlow(b, m)
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
1
go/vendor/google.golang.org/protobuf/proto/proto_methods.go
generated
vendored
1
go/vendor/google.golang.org/protobuf/proto/proto_methods.go
generated
vendored
@ -3,7 +3,6 @@
|
|||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// The protoreflect build tag disables use of fast-path methods.
|
// The protoreflect build tag disables use of fast-path methods.
|
||||||
//go:build !protoreflect
|
|
||||||
// +build !protoreflect
|
// +build !protoreflect
|
||||||
|
|
||||||
package proto
|
package proto
|
||||||
|
1
go/vendor/google.golang.org/protobuf/proto/proto_reflect.go
generated
vendored
1
go/vendor/google.golang.org/protobuf/proto/proto_reflect.go
generated
vendored
@ -3,7 +3,6 @@
|
|||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// The protoreflect build tag disables use of fast-path methods.
|
// The protoreflect build tag disables use of fast-path methods.
|
||||||
//go:build protoreflect
|
|
||||||
// +build protoreflect
|
// +build protoreflect
|
||||||
|
|
||||||
package proto
|
package proto
|
||||||
|
1
go/vendor/google.golang.org/protobuf/reflect/protoreflect/methods.go
generated
vendored
1
go/vendor/google.golang.org/protobuf/reflect/protoreflect/methods.go
generated
vendored
@ -53,7 +53,6 @@ type (
|
|||||||
FindExtensionByName(field FullName) (ExtensionType, error)
|
FindExtensionByName(field FullName) (ExtensionType, error)
|
||||||
FindExtensionByNumber(message FullName, field FieldNumber) (ExtensionType, error)
|
FindExtensionByNumber(message FullName, field FieldNumber) (ExtensionType, error)
|
||||||
}
|
}
|
||||||
Depth int
|
|
||||||
}
|
}
|
||||||
unmarshalOutput = struct {
|
unmarshalOutput = struct {
|
||||||
pragma.NoUnkeyedLiterals
|
pragma.NoUnkeyedLiterals
|
||||||
|
1
go/vendor/google.golang.org/protobuf/reflect/protoreflect/value_pure.go
generated
vendored
1
go/vendor/google.golang.org/protobuf/reflect/protoreflect/value_pure.go
generated
vendored
@ -2,7 +2,6 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build purego || appengine
|
|
||||||
// +build purego appengine
|
// +build purego appengine
|
||||||
|
|
||||||
package protoreflect
|
package protoreflect
|
||||||
|
25
go/vendor/google.golang.org/protobuf/reflect/protoreflect/value_union.go
generated
vendored
25
go/vendor/google.golang.org/protobuf/reflect/protoreflect/value_union.go
generated
vendored
@ -41,31 +41,6 @@ import (
|
|||||||
// Converting to/from a Value and a concrete Go value panics on type mismatch.
|
// Converting to/from a Value and a concrete Go value panics on type mismatch.
|
||||||
// For example, ValueOf("hello").Int() panics because this attempts to
|
// For example, ValueOf("hello").Int() panics because this attempts to
|
||||||
// retrieve an int64 from a string.
|
// retrieve an int64 from a string.
|
||||||
//
|
|
||||||
// List, Map, and Message Values are called "composite" values.
|
|
||||||
//
|
|
||||||
// A composite Value may alias (reference) memory at some location,
|
|
||||||
// such that changes to the Value updates the that location.
|
|
||||||
// A composite value acquired with a Mutable method, such as Message.Mutable,
|
|
||||||
// always references the source object.
|
|
||||||
//
|
|
||||||
// For example:
|
|
||||||
// // Append a 0 to a "repeated int32" field.
|
|
||||||
// // Since the Value returned by Mutable is guaranteed to alias
|
|
||||||
// // the source message, modifying the Value modifies the message.
|
|
||||||
// message.Mutable(fieldDesc).(List).Append(protoreflect.ValueOfInt32(0))
|
|
||||||
//
|
|
||||||
// // Assign [0] to a "repeated int32" field by creating a new Value,
|
|
||||||
// // modifying it, and assigning it.
|
|
||||||
// list := message.NewField(fieldDesc).(List)
|
|
||||||
// list.Append(protoreflect.ValueOfInt32(0))
|
|
||||||
// message.Set(fieldDesc, list)
|
|
||||||
// // ERROR: Since it is not defined whether Set aliases the source,
|
|
||||||
// // appending to the List here may or may not modify the message.
|
|
||||||
// list.Append(protoreflect.ValueOfInt32(0))
|
|
||||||
//
|
|
||||||
// Some operations, such as Message.Get, may return an "empty, read-only"
|
|
||||||
// composite Value. Modifying an empty, read-only value panics.
|
|
||||||
type Value value
|
type Value value
|
||||||
|
|
||||||
// The protoreflect API uses a custom Value union type instead of interface{}
|
// The protoreflect API uses a custom Value union type instead of interface{}
|
||||||
|
1
go/vendor/google.golang.org/protobuf/reflect/protoreflect/value_unsafe.go
generated
vendored
1
go/vendor/google.golang.org/protobuf/reflect/protoreflect/value_unsafe.go
generated
vendored
@ -2,7 +2,6 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !purego && !appengine
|
|
||||||
// +build !purego,!appengine
|
// +build !purego,!appengine
|
||||||
|
|
||||||
package protoreflect
|
package protoreflect
|
||||||
|
1
go/vendor/google.golang.org/protobuf/runtime/protoiface/methods.go
generated
vendored
1
go/vendor/google.golang.org/protobuf/runtime/protoiface/methods.go
generated
vendored
@ -103,7 +103,6 @@ type UnmarshalInput = struct {
|
|||||||
FindExtensionByName(field protoreflect.FullName) (protoreflect.ExtensionType, error)
|
FindExtensionByName(field protoreflect.FullName) (protoreflect.ExtensionType, error)
|
||||||
FindExtensionByNumber(message protoreflect.FullName, field protoreflect.FieldNumber) (protoreflect.ExtensionType, error)
|
FindExtensionByNumber(message protoreflect.FullName, field protoreflect.FieldNumber) (protoreflect.ExtensionType, error)
|
||||||
}
|
}
|
||||||
Depth int
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalOutput is output from the Unmarshal method.
|
// UnmarshalOutput is output from the Unmarshal method.
|
||||||
|
4
go/vendor/modules.txt
vendored
4
go/vendor/modules.txt
vendored
@ -1,8 +1,8 @@
|
|||||||
# github.com/golang/protobuf v1.5.2
|
# github.com/golang/protobuf v1.5.2
|
||||||
## explicit; go 1.9
|
## explicit; go 1.9
|
||||||
github.com/golang/protobuf/ptypes/timestamp
|
github.com/golang/protobuf/ptypes/timestamp
|
||||||
# google.golang.org/protobuf v1.28.0
|
# google.golang.org/protobuf v1.27.1
|
||||||
## explicit; go 1.11
|
## explicit; go 1.9
|
||||||
google.golang.org/protobuf/encoding/prototext
|
google.golang.org/protobuf/encoding/prototext
|
||||||
google.golang.org/protobuf/encoding/protowire
|
google.golang.org/protobuf/encoding/protowire
|
||||||
google.golang.org/protobuf/internal/descfmt
|
google.golang.org/protobuf/internal/descfmt
|
||||||
|
Loading…
Reference in New Issue
Block a user