-
Notifications
You must be signed in to change notification settings - Fork 0
/
object_vtproto.pb.go
87 lines (79 loc) · 2.01 KB
/
object_vtproto.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
// Code generated by protoc-gen-go-vtproto. DO NOT EDIT.
// protoc-gen-go-vtproto version: v0.6.0
// source: prodvana/protection/object.proto
package protection
import (
proto "google.golang.org/protobuf/proto"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
func (m *Protection) CloneVT() *Protection {
if m == nil {
return (*Protection)(nil)
}
r := new(Protection)
r.Meta = m.Meta.CloneVT()
r.Config = m.Config.CloneVT()
r.Builtin = m.Builtin
if len(m.unknownFields) > 0 {
r.unknownFields = make([]byte, len(m.unknownFields))
copy(r.unknownFields, m.unknownFields)
}
return r
}
func (m *Protection) CloneMessageVT() proto.Message {
return m.CloneVT()
}
func (this *Protection) StableEqualVT(that *Protection) bool {
if this == that {
return true
} else if this == nil || that == nil {
return false
}
if !this.Meta.StableEqualVT(that.Meta) {
return false
}
if !this.Config.StableEqualVT(that.Config) {
return false
}
if this.Builtin != that.Builtin {
return false
}
return string(this.unknownFields) == string(that.unknownFields)
}
func (this *Protection) StableEqualMessageVT(thatMsg proto.Message) bool {
that, ok := thatMsg.(*Protection)
if !ok {
return false
}
return this.StableEqualVT(that)
}
func (this *Protection) EqualVT(that *Protection) bool {
if this == that {
return true
} else if this == nil || that == nil {
return false
}
if !this.Meta.EqualVT(that.Meta) {
return false
}
if !this.Config.EqualVT(that.Config) {
return false
}
if this.Builtin != that.Builtin {
return false
}
return string(this.unknownFields) == string(that.unknownFields)
}
func (this *Protection) EqualMessageVT(thatMsg proto.Message) bool {
that, ok := thatMsg.(*Protection)
if !ok {
return false
}
return this.EqualVT(that)
}