/
redisservice_json.gen.go
111 lines (91 loc) · 3.8 KB
/
redisservice_json.gen.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
// Code generated by protoc-gen-jsonshim. DO NOT EDIT.
package v1alpha1
import (
bytes "bytes"
jsonpb "github.com/golang/protobuf/jsonpb"
)
// MarshalJSON is a custom marshaler for RedisService
func (this *RedisService) MarshalJSON() ([]byte, error) {
str, err := RedisserviceMarshaler.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for RedisService
func (this *RedisService) UnmarshalJSON(b []byte) error {
return RedisserviceUnmarshaler.Unmarshal(bytes.NewReader(b), this)
}
// MarshalJSON is a custom marshaler for RedisService_Settings
func (this *RedisService_Settings) MarshalJSON() ([]byte, error) {
str, err := RedisserviceMarshaler.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for RedisService_Settings
func (this *RedisService_Settings) UnmarshalJSON(b []byte) error {
return RedisserviceUnmarshaler.Unmarshal(bytes.NewReader(b), this)
}
// MarshalJSON is a custom marshaler for RedisService_KeyMatch
func (this *RedisService_KeyMatch) MarshalJSON() ([]byte, error) {
str, err := RedisserviceMarshaler.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for RedisService_KeyMatch
func (this *RedisService_KeyMatch) UnmarshalJSON(b []byte) error {
return RedisserviceUnmarshaler.Unmarshal(bytes.NewReader(b), this)
}
// MarshalJSON is a custom marshaler for RedisService_RouteMatch
func (this *RedisService_RouteMatch) MarshalJSON() ([]byte, error) {
str, err := RedisserviceMarshaler.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for RedisService_RouteMatch
func (this *RedisService_RouteMatch) UnmarshalJSON(b []byte) error {
return RedisserviceUnmarshaler.Unmarshal(bytes.NewReader(b), this)
}
// MarshalJSON is a custom marshaler for RedisService_Destination
func (this *RedisService_Destination) MarshalJSON() ([]byte, error) {
str, err := RedisserviceMarshaler.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for RedisService_Destination
func (this *RedisService_Destination) UnmarshalJSON(b []byte) error {
return RedisserviceUnmarshaler.Unmarshal(bytes.NewReader(b), this)
}
// MarshalJSON is a custom marshaler for RedisService_Mirror
func (this *RedisService_Mirror) MarshalJSON() ([]byte, error) {
str, err := RedisserviceMarshaler.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for RedisService_Mirror
func (this *RedisService_Mirror) UnmarshalJSON(b []byte) error {
return RedisserviceUnmarshaler.Unmarshal(bytes.NewReader(b), this)
}
// MarshalJSON is a custom marshaler for RedisService_Route
func (this *RedisService_Route) MarshalJSON() ([]byte, error) {
str, err := RedisserviceMarshaler.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for RedisService_Route
func (this *RedisService_Route) UnmarshalJSON(b []byte) error {
return RedisserviceUnmarshaler.Unmarshal(bytes.NewReader(b), this)
}
// MarshalJSON is a custom marshaler for Percent
func (this *Percent) MarshalJSON() ([]byte, error) {
str, err := RedisserviceMarshaler.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for Percent
func (this *Percent) UnmarshalJSON(b []byte) error {
return RedisserviceUnmarshaler.Unmarshal(bytes.NewReader(b), this)
}
// MarshalJSON is a custom marshaler for Fault
func (this *Fault) MarshalJSON() ([]byte, error) {
str, err := RedisserviceMarshaler.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for Fault
func (this *Fault) UnmarshalJSON(b []byte) error {
return RedisserviceUnmarshaler.Unmarshal(bytes.NewReader(b), this)
}
var (
RedisserviceMarshaler = &jsonpb.Marshaler{}
RedisserviceUnmarshaler = &jsonpb.Unmarshaler{AllowUnknownFields: true}
)