Debian Codegraph @

envoy/config/retry/previous_hosts/v2/previous_hosts_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_hosts/v2/previous_hosts.proto
6
7 package previous_hostsv2
8
9 import (
10 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
11 )
12
13 const (
14 // Verify that this generated code is sufficiently up-to-date.
15 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
16 // Verify that runtime/protoimpl is sufficiently up-to-date.
17 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
18 )
19
20 func (m *PreviousHostsPredicate) MarshalVTStrict() (dAtA []byte, err error) {
21 if m == nil {
22 return nil, nil
23 }
24 size := m.SizeVT()
25 dAtA = make([]byte, size)
26 n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
27 if err != nil {
28 return nil, err
29 }
30 return dAtA[:n], nil
31 }
32
33 func (m *PreviousHostsPredicate) MarshalToVTStrict(dAtA []byte) (int, error) {
34 size := m.SizeVT()
35 return m.MarshalToSizedBufferVTStrict(dAtA[:size])
36 }
37
38 func (m *PreviousHostsPredicate) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
39 if m == nil {
40 return 0, nil
41 }
42 i := len(dAtA)
43 _ = i
44 var l int
45 _ = l
46 if m.unknownFields != nil {
47 i -= len(m.unknownFields)
48 copy(dAtA[i:], m.unknownFields)
49 }
50 return len(dAtA) - i, nil
51 }
52
53 func (m *PreviousHostsPredicate) SizeVT() (n int) {
54 if m == nil {
55 return 0
56 }
57 var l int
58 _ = l
59 n += len(m.unknownFields)
60 return n
61 }