/
quota_json.gen.go
executable file
·101 lines (83 loc) · 3.21 KB
/
quota_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
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: mixer/v1/config/client/quota.proto
package client
import (
bytes "bytes"
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
github_com_gogo_protobuf_jsonpb "github.com/gogo/protobuf/jsonpb"
proto "github.com/gogo/protobuf/proto"
_ "istio.io/gogo-genproto/googleapis/google/api"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// MarshalJSON is a custom marshaler for QuotaSpec
func (this *QuotaSpec) MarshalJSON() ([]byte, error) {
str, err := QuotaMarshaler.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for QuotaSpec
func (this *QuotaSpec) UnmarshalJSON(b []byte) error {
return QuotaUnmarshaler.Unmarshal(bytes.NewReader(b), this)
}
// MarshalJSON is a custom marshaler for QuotaRule
func (this *QuotaRule) MarshalJSON() ([]byte, error) {
str, err := QuotaMarshaler.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for QuotaRule
func (this *QuotaRule) UnmarshalJSON(b []byte) error {
return QuotaUnmarshaler.Unmarshal(bytes.NewReader(b), this)
}
// MarshalJSON is a custom marshaler for StringMatch
func (this *StringMatch) MarshalJSON() ([]byte, error) {
str, err := QuotaMarshaler.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for StringMatch
func (this *StringMatch) UnmarshalJSON(b []byte) error {
return QuotaUnmarshaler.Unmarshal(bytes.NewReader(b), this)
}
// MarshalJSON is a custom marshaler for AttributeMatch
func (this *AttributeMatch) MarshalJSON() ([]byte, error) {
str, err := QuotaMarshaler.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for AttributeMatch
func (this *AttributeMatch) UnmarshalJSON(b []byte) error {
return QuotaUnmarshaler.Unmarshal(bytes.NewReader(b), this)
}
// MarshalJSON is a custom marshaler for Quota
func (this *Quota) MarshalJSON() ([]byte, error) {
str, err := QuotaMarshaler.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for Quota
func (this *Quota) UnmarshalJSON(b []byte) error {
return QuotaUnmarshaler.Unmarshal(bytes.NewReader(b), this)
}
// MarshalJSON is a custom marshaler for QuotaSpecBinding
func (this *QuotaSpecBinding) MarshalJSON() ([]byte, error) {
str, err := QuotaMarshaler.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for QuotaSpecBinding
func (this *QuotaSpecBinding) UnmarshalJSON(b []byte) error {
return QuotaUnmarshaler.Unmarshal(bytes.NewReader(b), this)
}
// MarshalJSON is a custom marshaler for QuotaSpecBinding_QuotaSpecReference
func (this *QuotaSpecBinding_QuotaSpecReference) MarshalJSON() ([]byte, error) {
str, err := QuotaMarshaler.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for QuotaSpecBinding_QuotaSpecReference
func (this *QuotaSpecBinding_QuotaSpecReference) UnmarshalJSON(b []byte) error {
return QuotaUnmarshaler.Unmarshal(bytes.NewReader(b), this)
}
var (
QuotaMarshaler = &github_com_gogo_protobuf_jsonpb.Marshaler{}
QuotaUnmarshaler = &github_com_gogo_protobuf_jsonpb.Unmarshaler{}
)