chore: upgrade dependencies
This commit is contained in:
		
							
								
								
									
										3
									
								
								vendor/google.golang.org/protobuf/encoding/prototext/decode.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								vendor/google.golang.org/protobuf/encoding/prototext/decode.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -744,9 +744,6 @@ func (d decoder) skipValue() error {
 | 
			
		||||
				// Skip items. This will not validate whether skipped values are
 | 
			
		||||
				// of the same type or not, same behavior as C++
 | 
			
		||||
				// TextFormat::Parser::AllowUnknownField(true) version 3.8.0.
 | 
			
		||||
				if err := d.skipValue(); err != nil {
 | 
			
		||||
					return err
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										19
									
								
								vendor/google.golang.org/protobuf/encoding/protowire/wire.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										19
									
								
								vendor/google.golang.org/protobuf/encoding/protowire/wire.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -21,10 +21,11 @@ import (
 | 
			
		||||
type Number int32
 | 
			
		||||
 | 
			
		||||
const (
 | 
			
		||||
	MinValidNumber      Number = 1
 | 
			
		||||
	FirstReservedNumber Number = 19000
 | 
			
		||||
	LastReservedNumber  Number = 19999
 | 
			
		||||
	MaxValidNumber      Number = 1<<29 - 1
 | 
			
		||||
	MinValidNumber        Number = 1
 | 
			
		||||
	FirstReservedNumber   Number = 19000
 | 
			
		||||
	LastReservedNumber    Number = 19999
 | 
			
		||||
	MaxValidNumber        Number = 1<<29 - 1
 | 
			
		||||
	DefaultRecursionLimit        = 10000
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// IsValid reports whether the field number is semantically valid.
 | 
			
		||||
@@ -55,6 +56,7 @@ const (
 | 
			
		||||
	errCodeOverflow
 | 
			
		||||
	errCodeReserved
 | 
			
		||||
	errCodeEndGroup
 | 
			
		||||
	errCodeRecursionDepth
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
var (
 | 
			
		||||
@@ -112,6 +114,10 @@ func ConsumeField(b []byte) (Number, Type, int) {
 | 
			
		||||
// When parsing a group, the length includes the end group marker and
 | 
			
		||||
// the end group is verified to match the starting field number.
 | 
			
		||||
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 {
 | 
			
		||||
	case VarintType:
 | 
			
		||||
		_, n = ConsumeVarint(b)
 | 
			
		||||
@@ -126,6 +132,9 @@ func ConsumeFieldValue(num Number, typ Type, b []byte) (n int) {
 | 
			
		||||
		_, n = ConsumeBytes(b)
 | 
			
		||||
		return n
 | 
			
		||||
	case StartGroupType:
 | 
			
		||||
		if depth < 0 {
 | 
			
		||||
			return errCodeRecursionDepth
 | 
			
		||||
		}
 | 
			
		||||
		n0 := len(b)
 | 
			
		||||
		for {
 | 
			
		||||
			num2, typ2, n := ConsumeTag(b)
 | 
			
		||||
@@ -140,7 +149,7 @@ func ConsumeFieldValue(num Number, typ Type, b []byte) (n int) {
 | 
			
		||||
				return n0 - len(b)
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			n = ConsumeFieldValue(num2, typ2, b)
 | 
			
		||||
			n = consumeFieldValueD(num2, typ2, b, depth-1)
 | 
			
		||||
			if n < 0 {
 | 
			
		||||
				return n // forward error code
 | 
			
		||||
			}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								vendor/google.golang.org/protobuf/internal/encoding/text/decode.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/google.golang.org/protobuf/internal/encoding/text/decode.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -381,7 +381,7 @@ func (d *Decoder) currentOpenKind() (Kind, byte) {
 | 
			
		||||
	case '[':
 | 
			
		||||
		return ListOpen, ']'
 | 
			
		||||
	}
 | 
			
		||||
	panic(fmt.Sprintf("Decoder: openStack contains invalid byte %s", string(openCh)))
 | 
			
		||||
	panic(fmt.Sprintf("Decoder: openStack contains invalid byte %c", openCh))
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (d *Decoder) pushOpenStack(ch byte) {
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										5
									
								
								vendor/google.golang.org/protobuf/internal/encoding/text/encode.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								vendor/google.golang.org/protobuf/internal/encoding/text/encode.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -263,3 +263,8 @@ func (e *Encoder) Snapshot() encoderState {
 | 
			
		||||
func (e *Encoder) Reset(es encoderState) {
 | 
			
		||||
	e.encoderState = es
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// AppendString appends the escaped form of the input string to b.
 | 
			
		||||
func AppendString(b []byte, s string) []byte {
 | 
			
		||||
	return appendString(b, s, false)
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1
									
								
								vendor/google.golang.org/protobuf/internal/errors/is_go112.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								vendor/google.golang.org/protobuf/internal/errors/is_go112.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -2,6 +2,7 @@
 | 
			
		||||
// Use of this source code is governed by a BSD-style
 | 
			
		||||
// license that can be found in the LICENSE file.
 | 
			
		||||
 | 
			
		||||
//go:build !go1.13
 | 
			
		||||
// +build !go1.13
 | 
			
		||||
 | 
			
		||||
package errors
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1
									
								
								vendor/google.golang.org/protobuf/internal/errors/is_go113.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								vendor/google.golang.org/protobuf/internal/errors/is_go113.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -2,6 +2,7 @@
 | 
			
		||||
// Use of this source code is governed by a BSD-style
 | 
			
		||||
// license that can be found in the LICENSE file.
 | 
			
		||||
 | 
			
		||||
//go:build go1.13
 | 
			
		||||
// +build go1.13
 | 
			
		||||
 | 
			
		||||
package errors
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1
									
								
								vendor/google.golang.org/protobuf/internal/flags/proto_legacy_disable.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								vendor/google.golang.org/protobuf/internal/flags/proto_legacy_disable.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -2,6 +2,7 @@
 | 
			
		||||
// Use of this source code is governed by a BSD-style
 | 
			
		||||
// license that can be found in the LICENSE file.
 | 
			
		||||
 | 
			
		||||
//go:build !protolegacy
 | 
			
		||||
// +build !protolegacy
 | 
			
		||||
 | 
			
		||||
package flags
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1
									
								
								vendor/google.golang.org/protobuf/internal/flags/proto_legacy_enable.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								vendor/google.golang.org/protobuf/internal/flags/proto_legacy_enable.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -2,6 +2,7 @@
 | 
			
		||||
// Use of this source code is governed by a BSD-style
 | 
			
		||||
// license that can be found in the LICENSE file.
 | 
			
		||||
 | 
			
		||||
//go:build protolegacy
 | 
			
		||||
// +build protolegacy
 | 
			
		||||
 | 
			
		||||
package flags
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1
									
								
								vendor/google.golang.org/protobuf/internal/impl/codec_map_go111.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								vendor/google.golang.org/protobuf/internal/impl/codec_map_go111.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -2,6 +2,7 @@
 | 
			
		||||
// Use of this source code is governed by a BSD-style
 | 
			
		||||
// license that can be found in the LICENSE file.
 | 
			
		||||
 | 
			
		||||
//go:build !go1.12
 | 
			
		||||
// +build !go1.12
 | 
			
		||||
 | 
			
		||||
package impl
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1
									
								
								vendor/google.golang.org/protobuf/internal/impl/codec_map_go112.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								vendor/google.golang.org/protobuf/internal/impl/codec_map_go112.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -2,6 +2,7 @@
 | 
			
		||||
// Use of this source code is governed by a BSD-style
 | 
			
		||||
// license that can be found in the LICENSE file.
 | 
			
		||||
 | 
			
		||||
//go:build go1.12
 | 
			
		||||
// +build go1.12
 | 
			
		||||
 | 
			
		||||
package impl
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1
									
								
								vendor/google.golang.org/protobuf/internal/impl/codec_reflect.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								vendor/google.golang.org/protobuf/internal/impl/codec_reflect.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -2,6 +2,7 @@
 | 
			
		||||
// Use of this source code is governed by a BSD-style
 | 
			
		||||
// license that can be found in the LICENSE file.
 | 
			
		||||
 | 
			
		||||
//go:build purego || appengine
 | 
			
		||||
// +build purego appengine
 | 
			
		||||
 | 
			
		||||
package impl
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1
									
								
								vendor/google.golang.org/protobuf/internal/impl/codec_unsafe.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								vendor/google.golang.org/protobuf/internal/impl/codec_unsafe.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -2,6 +2,7 @@
 | 
			
		||||
// Use of this source code is governed by a BSD-style
 | 
			
		||||
// license that can be found in the LICENSE file.
 | 
			
		||||
 | 
			
		||||
//go:build !purego && !appengine
 | 
			
		||||
// +build !purego,!appengine
 | 
			
		||||
 | 
			
		||||
package impl
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										8
									
								
								vendor/google.golang.org/protobuf/internal/impl/decode.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								vendor/google.golang.org/protobuf/internal/impl/decode.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -18,6 +18,7 @@ import (
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
var errDecode = errors.New("cannot parse invalid wire-format data")
 | 
			
		||||
var errRecursionDepth = errors.New("exceeded maximum recursion depth")
 | 
			
		||||
 | 
			
		||||
type unmarshalOptions struct {
 | 
			
		||||
	flags    protoiface.UnmarshalInputFlags
 | 
			
		||||
@@ -25,6 +26,7 @@ type unmarshalOptions struct {
 | 
			
		||||
		FindExtensionByName(field protoreflect.FullName) (protoreflect.ExtensionType, error)
 | 
			
		||||
		FindExtensionByNumber(message protoreflect.FullName, field protoreflect.FieldNumber) (protoreflect.ExtensionType, error)
 | 
			
		||||
	}
 | 
			
		||||
	depth int
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (o unmarshalOptions) Options() proto.UnmarshalOptions {
 | 
			
		||||
@@ -44,6 +46,7 @@ func (o unmarshalOptions) IsDefault() bool {
 | 
			
		||||
 | 
			
		||||
var lazyUnmarshalOptions = unmarshalOptions{
 | 
			
		||||
	resolver: preg.GlobalTypes,
 | 
			
		||||
	depth:    protowire.DefaultRecursionLimit,
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type unmarshalOutput struct {
 | 
			
		||||
@@ -62,6 +65,7 @@ func (mi *MessageInfo) unmarshal(in piface.UnmarshalInput) (piface.UnmarshalOutp
 | 
			
		||||
	out, err := mi.unmarshalPointer(in.Buf, p, 0, unmarshalOptions{
 | 
			
		||||
		flags:    in.Flags,
 | 
			
		||||
		resolver: in.Resolver,
 | 
			
		||||
		depth:    in.Depth,
 | 
			
		||||
	})
 | 
			
		||||
	var flags piface.UnmarshalOutputFlags
 | 
			
		||||
	if out.initialized {
 | 
			
		||||
@@ -82,6 +86,10 @@ var errUnknown = errors.New("unknown")
 | 
			
		||||
 | 
			
		||||
func (mi *MessageInfo) unmarshalPointer(b []byte, p pointer, groupTag protowire.Number, opts unmarshalOptions) (out unmarshalOutput, err error) {
 | 
			
		||||
	mi.init()
 | 
			
		||||
	opts.depth--
 | 
			
		||||
	if opts.depth < 0 {
 | 
			
		||||
		return out, errRecursionDepth
 | 
			
		||||
	}
 | 
			
		||||
	if flags.ProtoLegacy && mi.isMessageSet {
 | 
			
		||||
		return unmarshalMessageSet(mi, b, p, opts)
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										7
									
								
								vendor/google.golang.org/protobuf/internal/impl/legacy_message.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								vendor/google.golang.org/protobuf/internal/impl/legacy_message.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -440,6 +440,13 @@ func legacyMerge(in piface.MergeInput) piface.MergeOutput {
 | 
			
		||||
	if !ok {
 | 
			
		||||
		return piface.MergeOutput{}
 | 
			
		||||
	}
 | 
			
		||||
	if !in.Source.IsValid() {
 | 
			
		||||
		// Legacy Marshal methods may not function on nil messages.
 | 
			
		||||
		// Check for a typed nil source only after we confirm that
 | 
			
		||||
		// legacy Marshal/Unmarshal methods are present, for
 | 
			
		||||
		// consistency.
 | 
			
		||||
		return piface.MergeOutput{Flags: piface.MergeComplete}
 | 
			
		||||
	}
 | 
			
		||||
	b, err := marshaler.Marshal()
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return piface.MergeOutput{}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1
									
								
								vendor/google.golang.org/protobuf/internal/impl/pointer_reflect.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								vendor/google.golang.org/protobuf/internal/impl/pointer_reflect.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -2,6 +2,7 @@
 | 
			
		||||
// Use of this source code is governed by a BSD-style
 | 
			
		||||
// license that can be found in the LICENSE file.
 | 
			
		||||
 | 
			
		||||
//go:build purego || appengine
 | 
			
		||||
// +build purego appengine
 | 
			
		||||
 | 
			
		||||
package impl
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1
									
								
								vendor/google.golang.org/protobuf/internal/impl/pointer_unsafe.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								vendor/google.golang.org/protobuf/internal/impl/pointer_unsafe.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -2,6 +2,7 @@
 | 
			
		||||
// Use of this source code is governed by a BSD-style
 | 
			
		||||
// license that can be found in the LICENSE file.
 | 
			
		||||
 | 
			
		||||
//go:build !purego && !appengine
 | 
			
		||||
// +build !purego,!appengine
 | 
			
		||||
 | 
			
		||||
package impl
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1
									
								
								vendor/google.golang.org/protobuf/internal/strs/strings_pure.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								vendor/google.golang.org/protobuf/internal/strs/strings_pure.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -2,6 +2,7 @@
 | 
			
		||||
// Use of this source code is governed by a BSD-style
 | 
			
		||||
// license that can be found in the LICENSE file.
 | 
			
		||||
 | 
			
		||||
//go:build purego || appengine
 | 
			
		||||
// +build purego appengine
 | 
			
		||||
 | 
			
		||||
package strs
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1
									
								
								vendor/google.golang.org/protobuf/internal/strs/strings_unsafe.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								vendor/google.golang.org/protobuf/internal/strs/strings_unsafe.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -2,6 +2,7 @@
 | 
			
		||||
// Use of this source code is governed by a BSD-style
 | 
			
		||||
// license that can be found in the LICENSE file.
 | 
			
		||||
 | 
			
		||||
//go:build !purego && !appengine
 | 
			
		||||
// +build !purego,!appengine
 | 
			
		||||
 | 
			
		||||
package strs
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								vendor/google.golang.org/protobuf/internal/version/version.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/google.golang.org/protobuf/internal/version/version.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -52,7 +52,7 @@ import (
 | 
			
		||||
//	10. Send out the CL for review and submit it.
 | 
			
		||||
const (
 | 
			
		||||
	Major      = 1
 | 
			
		||||
	Minor      = 26
 | 
			
		||||
	Minor      = 28
 | 
			
		||||
	Patch      = 0
 | 
			
		||||
	PreRelease = ""
 | 
			
		||||
)
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										17
									
								
								vendor/google.golang.org/protobuf/proto/decode.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										17
									
								
								vendor/google.golang.org/protobuf/proto/decode.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -42,18 +42,25 @@ type UnmarshalOptions struct {
 | 
			
		||||
		FindExtensionByName(field protoreflect.FullName) (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.
 | 
			
		||||
// The provided message must be mutable (e.g., a non-nil pointer to a message).
 | 
			
		||||
func Unmarshal(b []byte, m Message) error {
 | 
			
		||||
	_, err := UnmarshalOptions{}.unmarshal(b, m.ProtoReflect())
 | 
			
		||||
	_, err := UnmarshalOptions{RecursionLimit: protowire.DefaultRecursionLimit}.unmarshal(b, m.ProtoReflect())
 | 
			
		||||
	return err
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// 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).
 | 
			
		||||
func (o UnmarshalOptions) Unmarshal(b []byte, m Message) error {
 | 
			
		||||
	if o.RecursionLimit == 0 {
 | 
			
		||||
		o.RecursionLimit = protowire.DefaultRecursionLimit
 | 
			
		||||
	}
 | 
			
		||||
	_, err := o.unmarshal(b, m.ProtoReflect())
 | 
			
		||||
	return err
 | 
			
		||||
}
 | 
			
		||||
@@ -63,6 +70,9 @@ func (o UnmarshalOptions) Unmarshal(b []byte, m Message) error {
 | 
			
		||||
// This method permits fine-grained control over the unmarshaler.
 | 
			
		||||
// Most users should use Unmarshal instead.
 | 
			
		||||
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)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -86,12 +96,17 @@ func (o UnmarshalOptions) unmarshal(b []byte, m protoreflect.Message) (out proto
 | 
			
		||||
			Message:  m,
 | 
			
		||||
			Buf:      b,
 | 
			
		||||
			Resolver: o.Resolver,
 | 
			
		||||
			Depth:    o.RecursionLimit,
 | 
			
		||||
		}
 | 
			
		||||
		if o.DiscardUnknown {
 | 
			
		||||
			in.Flags |= protoiface.UnmarshalDiscardUnknown
 | 
			
		||||
		}
 | 
			
		||||
		out, err = methods.Unmarshal(in)
 | 
			
		||||
	} else {
 | 
			
		||||
		o.RecursionLimit--
 | 
			
		||||
		if o.RecursionLimit < 0 {
 | 
			
		||||
			return out, errors.New("exceeded max recursion depth")
 | 
			
		||||
		}
 | 
			
		||||
		err = o.unmarshalMessageSlow(b, m)
 | 
			
		||||
	}
 | 
			
		||||
	if err != nil {
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1
									
								
								vendor/google.golang.org/protobuf/proto/proto_methods.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								vendor/google.golang.org/protobuf/proto/proto_methods.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -3,6 +3,7 @@
 | 
			
		||||
// license that can be found in the LICENSE file.
 | 
			
		||||
 | 
			
		||||
// The protoreflect build tag disables use of fast-path methods.
 | 
			
		||||
//go:build !protoreflect
 | 
			
		||||
// +build !protoreflect
 | 
			
		||||
 | 
			
		||||
package proto
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1
									
								
								vendor/google.golang.org/protobuf/proto/proto_reflect.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								vendor/google.golang.org/protobuf/proto/proto_reflect.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -3,6 +3,7 @@
 | 
			
		||||
// license that can be found in the LICENSE file.
 | 
			
		||||
 | 
			
		||||
// The protoreflect build tag disables use of fast-path methods.
 | 
			
		||||
//go:build protoreflect
 | 
			
		||||
// +build protoreflect
 | 
			
		||||
 | 
			
		||||
package proto
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1
									
								
								vendor/google.golang.org/protobuf/reflect/protoreflect/methods.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								vendor/google.golang.org/protobuf/reflect/protoreflect/methods.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -53,6 +53,7 @@ type (
 | 
			
		||||
			FindExtensionByName(field FullName) (ExtensionType, error)
 | 
			
		||||
			FindExtensionByNumber(message FullName, field FieldNumber) (ExtensionType, error)
 | 
			
		||||
		}
 | 
			
		||||
		Depth int
 | 
			
		||||
	}
 | 
			
		||||
	unmarshalOutput = struct {
 | 
			
		||||
		pragma.NoUnkeyedLiterals
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1
									
								
								vendor/google.golang.org/protobuf/reflect/protoreflect/value_pure.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								vendor/google.golang.org/protobuf/reflect/protoreflect/value_pure.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -2,6 +2,7 @@
 | 
			
		||||
// Use of this source code is governed by a BSD-style
 | 
			
		||||
// license that can be found in the LICENSE file.
 | 
			
		||||
 | 
			
		||||
//go:build purego || appengine
 | 
			
		||||
// +build purego appengine
 | 
			
		||||
 | 
			
		||||
package protoreflect
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										25
									
								
								vendor/google.golang.org/protobuf/reflect/protoreflect/value_union.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										25
									
								
								vendor/google.golang.org/protobuf/reflect/protoreflect/value_union.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -41,6 +41,31 @@ import (
 | 
			
		||||
// Converting to/from a Value and a concrete Go value panics on type mismatch.
 | 
			
		||||
// For example, ValueOf("hello").Int() panics because this attempts to
 | 
			
		||||
// 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
 | 
			
		||||
 | 
			
		||||
// The protoreflect API uses a custom Value union type instead of interface{}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1
									
								
								vendor/google.golang.org/protobuf/reflect/protoreflect/value_unsafe.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								vendor/google.golang.org/protobuf/reflect/protoreflect/value_unsafe.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -2,6 +2,7 @@
 | 
			
		||||
// Use of this source code is governed by a BSD-style
 | 
			
		||||
// license that can be found in the LICENSE file.
 | 
			
		||||
 | 
			
		||||
//go:build !purego && !appengine
 | 
			
		||||
// +build !purego,!appengine
 | 
			
		||||
 | 
			
		||||
package protoreflect
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										43
									
								
								vendor/google.golang.org/protobuf/reflect/protoregistry/registry.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										43
									
								
								vendor/google.golang.org/protobuf/reflect/protoregistry/registry.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -94,7 +94,8 @@ type Files struct {
 | 
			
		||||
	// Note that enum values are in the top-level since that are in the same
 | 
			
		||||
	// scope as the parent enum.
 | 
			
		||||
	descsByName map[protoreflect.FullName]interface{}
 | 
			
		||||
	filesByPath map[string]protoreflect.FileDescriptor
 | 
			
		||||
	filesByPath map[string][]protoreflect.FileDescriptor
 | 
			
		||||
	numFiles    int
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type packageDescriptor struct {
 | 
			
		||||
@@ -117,17 +118,16 @@ func (r *Files) RegisterFile(file protoreflect.FileDescriptor) error {
 | 
			
		||||
		r.descsByName = map[protoreflect.FullName]interface{}{
 | 
			
		||||
			"": &packageDescriptor{},
 | 
			
		||||
		}
 | 
			
		||||
		r.filesByPath = make(map[string]protoreflect.FileDescriptor)
 | 
			
		||||
		r.filesByPath = make(map[string][]protoreflect.FileDescriptor)
 | 
			
		||||
	}
 | 
			
		||||
	path := file.Path()
 | 
			
		||||
	if prev := r.filesByPath[path]; prev != nil {
 | 
			
		||||
	if prev := r.filesByPath[path]; len(prev) > 0 {
 | 
			
		||||
		r.checkGenProtoConflict(path)
 | 
			
		||||
		err := errors.New("file %q is already registered", file.Path())
 | 
			
		||||
		err = amendErrorWithCaller(err, prev, file)
 | 
			
		||||
		if r == GlobalFiles && ignoreConflict(file, err) {
 | 
			
		||||
			err = nil
 | 
			
		||||
		err = amendErrorWithCaller(err, prev[0], file)
 | 
			
		||||
		if !(r == GlobalFiles && ignoreConflict(file, err)) {
 | 
			
		||||
			return err
 | 
			
		||||
		}
 | 
			
		||||
		return err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	for name := file.Package(); name != ""; name = name.Parent() {
 | 
			
		||||
@@ -168,7 +168,8 @@ func (r *Files) RegisterFile(file protoreflect.FileDescriptor) error {
 | 
			
		||||
	rangeTopLevelDescriptors(file, func(d protoreflect.Descriptor) {
 | 
			
		||||
		r.descsByName[d.FullName()] = d
 | 
			
		||||
	})
 | 
			
		||||
	r.filesByPath[path] = file
 | 
			
		||||
	r.filesByPath[path] = append(r.filesByPath[path], file)
 | 
			
		||||
	r.numFiles++
 | 
			
		||||
	return nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -308,6 +309,7 @@ func (s *nameSuffix) Pop() (name protoreflect.Name) {
 | 
			
		||||
// FindFileByPath looks up a file by the path.
 | 
			
		||||
//
 | 
			
		||||
// This returns (nil, NotFound) if not found.
 | 
			
		||||
// This returns an error if multiple files have the same path.
 | 
			
		||||
func (r *Files) FindFileByPath(path string) (protoreflect.FileDescriptor, error) {
 | 
			
		||||
	if r == nil {
 | 
			
		||||
		return nil, NotFound
 | 
			
		||||
@@ -316,13 +318,19 @@ func (r *Files) FindFileByPath(path string) (protoreflect.FileDescriptor, error)
 | 
			
		||||
		globalMutex.RLock()
 | 
			
		||||
		defer globalMutex.RUnlock()
 | 
			
		||||
	}
 | 
			
		||||
	if fd, ok := r.filesByPath[path]; ok {
 | 
			
		||||
		return fd, nil
 | 
			
		||||
	fds := r.filesByPath[path]
 | 
			
		||||
	switch len(fds) {
 | 
			
		||||
	case 0:
 | 
			
		||||
		return nil, NotFound
 | 
			
		||||
	case 1:
 | 
			
		||||
		return fds[0], nil
 | 
			
		||||
	default:
 | 
			
		||||
		return nil, errors.New("multiple files named %q", path)
 | 
			
		||||
	}
 | 
			
		||||
	return nil, NotFound
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// NumFiles reports the number of registered files.
 | 
			
		||||
// NumFiles reports the number of registered files,
 | 
			
		||||
// including duplicate files with the same name.
 | 
			
		||||
func (r *Files) NumFiles() int {
 | 
			
		||||
	if r == nil {
 | 
			
		||||
		return 0
 | 
			
		||||
@@ -331,10 +339,11 @@ func (r *Files) NumFiles() int {
 | 
			
		||||
		globalMutex.RLock()
 | 
			
		||||
		defer globalMutex.RUnlock()
 | 
			
		||||
	}
 | 
			
		||||
	return len(r.filesByPath)
 | 
			
		||||
	return r.numFiles
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// RangeFiles iterates over all registered files while f returns true.
 | 
			
		||||
// If multiple files have the same name, RangeFiles iterates over all of them.
 | 
			
		||||
// The iteration order is undefined.
 | 
			
		||||
func (r *Files) RangeFiles(f func(protoreflect.FileDescriptor) bool) {
 | 
			
		||||
	if r == nil {
 | 
			
		||||
@@ -344,9 +353,11 @@ func (r *Files) RangeFiles(f func(protoreflect.FileDescriptor) bool) {
 | 
			
		||||
		globalMutex.RLock()
 | 
			
		||||
		defer globalMutex.RUnlock()
 | 
			
		||||
	}
 | 
			
		||||
	for _, file := range r.filesByPath {
 | 
			
		||||
		if !f(file) {
 | 
			
		||||
			return
 | 
			
		||||
	for _, files := range r.filesByPath {
 | 
			
		||||
		for _, file := range files {
 | 
			
		||||
			if !f(file) {
 | 
			
		||||
				return
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1
									
								
								vendor/google.golang.org/protobuf/runtime/protoiface/methods.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								vendor/google.golang.org/protobuf/runtime/protoiface/methods.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -103,6 +103,7 @@ type UnmarshalInput = struct {
 | 
			
		||||
		FindExtensionByName(field protoreflect.FullName) (protoreflect.ExtensionType, error)
 | 
			
		||||
		FindExtensionByNumber(message protoreflect.FullName, field protoreflect.FieldNumber) (protoreflect.ExtensionType, error)
 | 
			
		||||
	}
 | 
			
		||||
	Depth int
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// UnmarshalOutput is output from the Unmarshal method.
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										82
									
								
								vendor/google.golang.org/protobuf/types/descriptorpb/descriptor.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										82
									
								
								vendor/google.golang.org/protobuf/types/descriptorpb/descriptor.pb.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -43,7 +43,6 @@ package descriptorpb
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
 | 
			
		||||
	protoiface "google.golang.org/protobuf/runtime/protoiface"
 | 
			
		||||
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
 | 
			
		||||
	reflect "reflect"
 | 
			
		||||
	sync "sync"
 | 
			
		||||
@@ -829,15 +828,6 @@ func (*ExtensionRangeOptions) Descriptor() ([]byte, []int) {
 | 
			
		||||
	return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{3}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var extRange_ExtensionRangeOptions = []protoiface.ExtensionRangeV1{
 | 
			
		||||
	{Start: 1000, End: 536870911},
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Deprecated: Use ExtensionRangeOptions.ProtoReflect.Descriptor.ExtensionRanges instead.
 | 
			
		||||
func (*ExtensionRangeOptions) ExtensionRangeArray() []protoiface.ExtensionRangeV1 {
 | 
			
		||||
	return extRange_ExtensionRangeOptions
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *ExtensionRangeOptions) GetUninterpretedOption() []*UninterpretedOption {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.UninterpretedOption
 | 
			
		||||
@@ -1520,15 +1510,6 @@ func (*FileOptions) Descriptor() ([]byte, []int) {
 | 
			
		||||
	return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{10}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var extRange_FileOptions = []protoiface.ExtensionRangeV1{
 | 
			
		||||
	{Start: 1000, End: 536870911},
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Deprecated: Use FileOptions.ProtoReflect.Descriptor.ExtensionRanges instead.
 | 
			
		||||
func (*FileOptions) ExtensionRangeArray() []protoiface.ExtensionRangeV1 {
 | 
			
		||||
	return extRange_FileOptions
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *FileOptions) GetJavaPackage() string {
 | 
			
		||||
	if x != nil && x.JavaPackage != nil {
 | 
			
		||||
		return *x.JavaPackage
 | 
			
		||||
@@ -1776,15 +1757,6 @@ func (*MessageOptions) Descriptor() ([]byte, []int) {
 | 
			
		||||
	return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{11}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var extRange_MessageOptions = []protoiface.ExtensionRangeV1{
 | 
			
		||||
	{Start: 1000, End: 536870911},
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Deprecated: Use MessageOptions.ProtoReflect.Descriptor.ExtensionRanges instead.
 | 
			
		||||
func (*MessageOptions) ExtensionRangeArray() []protoiface.ExtensionRangeV1 {
 | 
			
		||||
	return extRange_MessageOptions
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *MessageOptions) GetMessageSetWireFormat() bool {
 | 
			
		||||
	if x != nil && x.MessageSetWireFormat != nil {
 | 
			
		||||
		return *x.MessageSetWireFormat
 | 
			
		||||
@@ -1930,15 +1902,6 @@ func (*FieldOptions) Descriptor() ([]byte, []int) {
 | 
			
		||||
	return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{12}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var extRange_FieldOptions = []protoiface.ExtensionRangeV1{
 | 
			
		||||
	{Start: 1000, End: 536870911},
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Deprecated: Use FieldOptions.ProtoReflect.Descriptor.ExtensionRanges instead.
 | 
			
		||||
func (*FieldOptions) ExtensionRangeArray() []protoiface.ExtensionRangeV1 {
 | 
			
		||||
	return extRange_FieldOptions
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *FieldOptions) GetCtype() FieldOptions_CType {
 | 
			
		||||
	if x != nil && x.Ctype != nil {
 | 
			
		||||
		return *x.Ctype
 | 
			
		||||
@@ -2030,15 +1993,6 @@ func (*OneofOptions) Descriptor() ([]byte, []int) {
 | 
			
		||||
	return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{13}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var extRange_OneofOptions = []protoiface.ExtensionRangeV1{
 | 
			
		||||
	{Start: 1000, End: 536870911},
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Deprecated: Use OneofOptions.ProtoReflect.Descriptor.ExtensionRanges instead.
 | 
			
		||||
func (*OneofOptions) ExtensionRangeArray() []protoiface.ExtensionRangeV1 {
 | 
			
		||||
	return extRange_OneofOptions
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *OneofOptions) GetUninterpretedOption() []*UninterpretedOption {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.UninterpretedOption
 | 
			
		||||
@@ -2101,15 +2055,6 @@ func (*EnumOptions) Descriptor() ([]byte, []int) {
 | 
			
		||||
	return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{14}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var extRange_EnumOptions = []protoiface.ExtensionRangeV1{
 | 
			
		||||
	{Start: 1000, End: 536870911},
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Deprecated: Use EnumOptions.ProtoReflect.Descriptor.ExtensionRanges instead.
 | 
			
		||||
func (*EnumOptions) ExtensionRangeArray() []protoiface.ExtensionRangeV1 {
 | 
			
		||||
	return extRange_EnumOptions
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *EnumOptions) GetAllowAlias() bool {
 | 
			
		||||
	if x != nil && x.AllowAlias != nil {
 | 
			
		||||
		return *x.AllowAlias
 | 
			
		||||
@@ -2183,15 +2128,6 @@ func (*EnumValueOptions) Descriptor() ([]byte, []int) {
 | 
			
		||||
	return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{15}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var extRange_EnumValueOptions = []protoiface.ExtensionRangeV1{
 | 
			
		||||
	{Start: 1000, End: 536870911},
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Deprecated: Use EnumValueOptions.ProtoReflect.Descriptor.ExtensionRanges instead.
 | 
			
		||||
func (*EnumValueOptions) ExtensionRangeArray() []protoiface.ExtensionRangeV1 {
 | 
			
		||||
	return extRange_EnumValueOptions
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *EnumValueOptions) GetDeprecated() bool {
 | 
			
		||||
	if x != nil && x.Deprecated != nil {
 | 
			
		||||
		return *x.Deprecated
 | 
			
		||||
@@ -2258,15 +2194,6 @@ func (*ServiceOptions) Descriptor() ([]byte, []int) {
 | 
			
		||||
	return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{16}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var extRange_ServiceOptions = []protoiface.ExtensionRangeV1{
 | 
			
		||||
	{Start: 1000, End: 536870911},
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Deprecated: Use ServiceOptions.ProtoReflect.Descriptor.ExtensionRanges instead.
 | 
			
		||||
func (*ServiceOptions) ExtensionRangeArray() []protoiface.ExtensionRangeV1 {
 | 
			
		||||
	return extRange_ServiceOptions
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *ServiceOptions) GetDeprecated() bool {
 | 
			
		||||
	if x != nil && x.Deprecated != nil {
 | 
			
		||||
		return *x.Deprecated
 | 
			
		||||
@@ -2335,15 +2262,6 @@ func (*MethodOptions) Descriptor() ([]byte, []int) {
 | 
			
		||||
	return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{17}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var extRange_MethodOptions = []protoiface.ExtensionRangeV1{
 | 
			
		||||
	{Start: 1000, End: 536870911},
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Deprecated: Use MethodOptions.ProtoReflect.Descriptor.ExtensionRanges instead.
 | 
			
		||||
func (*MethodOptions) ExtensionRangeArray() []protoiface.ExtensionRangeV1 {
 | 
			
		||||
	return extRange_MethodOptions
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *MethodOptions) GetDeprecated() bool {
 | 
			
		||||
	if x != nil && x.Deprecated != nil {
 | 
			
		||||
		return *x.Deprecated
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user