forked from istio/api
/
mixer_json.gen.go
149 lines (122 loc) · 5.08 KB
/
mixer_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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: mixer/v1/mixer.proto
// This package defines the Mixer API that the sidecar proxy uses to perform
// precondition checks, manage quotas, and report telemetry.
package v1
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"
_ "github.com/gogo/protobuf/types"
_ "istio.io/gogo-genproto/googleapis/google/rpc"
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 CheckRequest
func (this *CheckRequest) MarshalJSON() ([]byte, error) {
str, err := MixerMarshaler.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for CheckRequest
func (this *CheckRequest) UnmarshalJSON(b []byte) error {
return MixerUnmarshaler.Unmarshal(bytes.NewReader(b), this)
}
// MarshalJSON is a custom marshaler for CheckRequest_QuotaParams
func (this *CheckRequest_QuotaParams) MarshalJSON() ([]byte, error) {
str, err := MixerMarshaler.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for CheckRequest_QuotaParams
func (this *CheckRequest_QuotaParams) UnmarshalJSON(b []byte) error {
return MixerUnmarshaler.Unmarshal(bytes.NewReader(b), this)
}
// MarshalJSON is a custom marshaler for CheckResponse
func (this *CheckResponse) MarshalJSON() ([]byte, error) {
str, err := MixerMarshaler.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for CheckResponse
func (this *CheckResponse) UnmarshalJSON(b []byte) error {
return MixerUnmarshaler.Unmarshal(bytes.NewReader(b), this)
}
// MarshalJSON is a custom marshaler for CheckResponse_PreconditionResult
func (this *CheckResponse_PreconditionResult) MarshalJSON() ([]byte, error) {
str, err := MixerMarshaler.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for CheckResponse_PreconditionResult
func (this *CheckResponse_PreconditionResult) UnmarshalJSON(b []byte) error {
return MixerUnmarshaler.Unmarshal(bytes.NewReader(b), this)
}
// MarshalJSON is a custom marshaler for CheckResponse_QuotaResult
func (this *CheckResponse_QuotaResult) MarshalJSON() ([]byte, error) {
str, err := MixerMarshaler.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for CheckResponse_QuotaResult
func (this *CheckResponse_QuotaResult) UnmarshalJSON(b []byte) error {
return MixerUnmarshaler.Unmarshal(bytes.NewReader(b), this)
}
// MarshalJSON is a custom marshaler for ReferencedAttributes
func (this *ReferencedAttributes) MarshalJSON() ([]byte, error) {
str, err := MixerMarshaler.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for ReferencedAttributes
func (this *ReferencedAttributes) UnmarshalJSON(b []byte) error {
return MixerUnmarshaler.Unmarshal(bytes.NewReader(b), this)
}
// MarshalJSON is a custom marshaler for ReferencedAttributes_AttributeMatch
func (this *ReferencedAttributes_AttributeMatch) MarshalJSON() ([]byte, error) {
str, err := MixerMarshaler.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for ReferencedAttributes_AttributeMatch
func (this *ReferencedAttributes_AttributeMatch) UnmarshalJSON(b []byte) error {
return MixerUnmarshaler.Unmarshal(bytes.NewReader(b), this)
}
// MarshalJSON is a custom marshaler for HeaderOperation
func (this *HeaderOperation) MarshalJSON() ([]byte, error) {
str, err := MixerMarshaler.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for HeaderOperation
func (this *HeaderOperation) UnmarshalJSON(b []byte) error {
return MixerUnmarshaler.Unmarshal(bytes.NewReader(b), this)
}
// MarshalJSON is a custom marshaler for RouteDirective
func (this *RouteDirective) MarshalJSON() ([]byte, error) {
str, err := MixerMarshaler.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for RouteDirective
func (this *RouteDirective) UnmarshalJSON(b []byte) error {
return MixerUnmarshaler.Unmarshal(bytes.NewReader(b), this)
}
// MarshalJSON is a custom marshaler for ReportRequest
func (this *ReportRequest) MarshalJSON() ([]byte, error) {
str, err := MixerMarshaler.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for ReportRequest
func (this *ReportRequest) UnmarshalJSON(b []byte) error {
return MixerUnmarshaler.Unmarshal(bytes.NewReader(b), this)
}
// MarshalJSON is a custom marshaler for ReportResponse
func (this *ReportResponse) MarshalJSON() ([]byte, error) {
str, err := MixerMarshaler.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for ReportResponse
func (this *ReportResponse) UnmarshalJSON(b []byte) error {
return MixerUnmarshaler.Unmarshal(bytes.NewReader(b), this)
}
var (
MixerMarshaler = &github_com_gogo_protobuf_jsonpb.Marshaler{}
MixerUnmarshaler = &github_com_gogo_protobuf_jsonpb.Unmarshaler{}
)