Debian Codegraph @

envoy/config/retry/previous_priorities/previous_priorities_config_vtproto.pb.go

raw
1 //go:build vtprotobuf
2 // +build vtprotobuf
3
4 // Code generated by protoc-gen-go-vtproto. DO NOT EDIT.
5 // source: envoy/config/retry/previous_priorities/previous_priorities_config.proto
6
7 package previous_priorities
8
9 import (
10 protohelpers "github.com/planetscale/vtprotobuf/protohelpers"
11 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
12 )
13
14 const (
15 // Verify that this generated code is sufficiently up-to-date.
16 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
17 // Verify that runtime/protoimpl is sufficiently up-to-date.
18 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
19 )
20
21 func (m *PreviousPrioritiesConfig) MarshalVTStrict() (dAtA []byte, err error) {
22 if m == nil {
23 return nil, nil
24 }
25 size := m.SizeVT()
26 dAtA = make([]byte, size)
27 n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
28 if err != nil {
29 return nil, err
30 }
31 return dAtA[:n], nil
32 }
33
34 func (m *PreviousPrioritiesConfig) MarshalToVTStrict(dAtA []byte) (int, error) {
35 size := m.SizeVT()
36 return m.MarshalToSizedBufferVTStrict(dAtA[:size])
37 }
38
39 func (m *PreviousPrioritiesConfig) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
40 if m == nil {
41 return 0, nil
42 }
43 i := len(dAtA)
44 _ = i
45 var l int
46 _ = l
47 if m.unknownFields != nil {
48 i -= len(m.unknownFields)
49 copy(dAtA[i:], m.unknownFields)
50 }
51 if m.UpdateFrequency != 0 {
52 i = protohelpers.EncodeVarint(dAtA, i, uint64(m.UpdateFrequency))
53 i--
54 dAtA[i] = 0x8
55 }
56 return len(dAtA) - i, nil
57 }
58
59 func (m *PreviousPrioritiesConfig) SizeVT() (n int) {
60 if m == nil {
61 return 0
62 }
63 var l int
64 _ = l
65 if m.UpdateFrequency != 0 {
66 n += 1 + protohelpers.SizeOfVarint(uint64(m.UpdateFrequency))
67 }
68 n += len(m.unknownFields)
69 return n
70 }