1// Code generated by protoc-gen-gogo. DO NOT EDIT. 2// source: policy/v1beta1/cfg.proto 3 4package v1beta1 5 6import ( 7 bytes "bytes" 8 fmt "fmt" 9 _ "github.com/gogo/protobuf/gogoproto" 10 github_com_gogo_protobuf_jsonpb "github.com/gogo/protobuf/jsonpb" 11 proto "github.com/gogo/protobuf/proto" 12 _ "github.com/gogo/protobuf/types" 13 _ "istio.io/gogo-genproto/googleapis/google/api" 14 math "math" 15) 16 17// Reference imports to suppress errors if they are not otherwise used. 18var _ = proto.Marshal 19var _ = fmt.Errorf 20var _ = math.Inf 21 22// MarshalJSON is a custom marshaler for AttributeManifest 23func (this *AttributeManifest) MarshalJSON() ([]byte, error) { 24 str, err := CfgMarshaler.MarshalToString(this) 25 return []byte(str), err 26} 27 28// UnmarshalJSON is a custom unmarshaler for AttributeManifest 29func (this *AttributeManifest) UnmarshalJSON(b []byte) error { 30 return CfgUnmarshaler.Unmarshal(bytes.NewReader(b), this) 31} 32 33// MarshalJSON is a custom marshaler for AttributeManifest_AttributeInfo 34func (this *AttributeManifest_AttributeInfo) MarshalJSON() ([]byte, error) { 35 str, err := CfgMarshaler.MarshalToString(this) 36 return []byte(str), err 37} 38 39// UnmarshalJSON is a custom unmarshaler for AttributeManifest_AttributeInfo 40func (this *AttributeManifest_AttributeInfo) UnmarshalJSON(b []byte) error { 41 return CfgUnmarshaler.Unmarshal(bytes.NewReader(b), this) 42} 43 44// MarshalJSON is a custom marshaler for Rule 45func (this *Rule) MarshalJSON() ([]byte, error) { 46 str, err := CfgMarshaler.MarshalToString(this) 47 return []byte(str), err 48} 49 50// UnmarshalJSON is a custom unmarshaler for Rule 51func (this *Rule) UnmarshalJSON(b []byte) error { 52 return CfgUnmarshaler.Unmarshal(bytes.NewReader(b), this) 53} 54 55// MarshalJSON is a custom marshaler for Rule_HeaderOperationTemplate 56func (this *Rule_HeaderOperationTemplate) MarshalJSON() ([]byte, error) { 57 str, err := CfgMarshaler.MarshalToString(this) 58 return []byte(str), err 59} 60 61// UnmarshalJSON is a custom unmarshaler for Rule_HeaderOperationTemplate 62func (this *Rule_HeaderOperationTemplate) UnmarshalJSON(b []byte) error { 63 return CfgUnmarshaler.Unmarshal(bytes.NewReader(b), this) 64} 65 66// MarshalJSON is a custom marshaler for Action 67func (this *Action) MarshalJSON() ([]byte, error) { 68 str, err := CfgMarshaler.MarshalToString(this) 69 return []byte(str), err 70} 71 72// UnmarshalJSON is a custom unmarshaler for Action 73func (this *Action) UnmarshalJSON(b []byte) error { 74 return CfgUnmarshaler.Unmarshal(bytes.NewReader(b), this) 75} 76 77// MarshalJSON is a custom marshaler for Instance 78func (this *Instance) MarshalJSON() ([]byte, error) { 79 str, err := CfgMarshaler.MarshalToString(this) 80 return []byte(str), err 81} 82 83// UnmarshalJSON is a custom unmarshaler for Instance 84func (this *Instance) UnmarshalJSON(b []byte) error { 85 return CfgUnmarshaler.Unmarshal(bytes.NewReader(b), this) 86} 87 88// MarshalJSON is a custom marshaler for Handler 89func (this *Handler) MarshalJSON() ([]byte, error) { 90 str, err := CfgMarshaler.MarshalToString(this) 91 return []byte(str), err 92} 93 94// UnmarshalJSON is a custom unmarshaler for Handler 95func (this *Handler) UnmarshalJSON(b []byte) error { 96 return CfgUnmarshaler.Unmarshal(bytes.NewReader(b), this) 97} 98 99// MarshalJSON is a custom marshaler for Connection 100func (this *Connection) MarshalJSON() ([]byte, error) { 101 str, err := CfgMarshaler.MarshalToString(this) 102 return []byte(str), err 103} 104 105// UnmarshalJSON is a custom unmarshaler for Connection 106func (this *Connection) UnmarshalJSON(b []byte) error { 107 return CfgUnmarshaler.Unmarshal(bytes.NewReader(b), this) 108} 109 110// MarshalJSON is a custom marshaler for Sampling 111func (this *Sampling) MarshalJSON() ([]byte, error) { 112 str, err := CfgMarshaler.MarshalToString(this) 113 return []byte(str), err 114} 115 116// UnmarshalJSON is a custom unmarshaler for Sampling 117func (this *Sampling) UnmarshalJSON(b []byte) error { 118 return CfgUnmarshaler.Unmarshal(bytes.NewReader(b), this) 119} 120 121// MarshalJSON is a custom marshaler for RandomSampling 122func (this *RandomSampling) MarshalJSON() ([]byte, error) { 123 str, err := CfgMarshaler.MarshalToString(this) 124 return []byte(str), err 125} 126 127// UnmarshalJSON is a custom unmarshaler for RandomSampling 128func (this *RandomSampling) UnmarshalJSON(b []byte) error { 129 return CfgUnmarshaler.Unmarshal(bytes.NewReader(b), this) 130} 131 132// MarshalJSON is a custom marshaler for RateLimitSampling 133func (this *RateLimitSampling) MarshalJSON() ([]byte, error) { 134 str, err := CfgMarshaler.MarshalToString(this) 135 return []byte(str), err 136} 137 138// UnmarshalJSON is a custom unmarshaler for RateLimitSampling 139func (this *RateLimitSampling) UnmarshalJSON(b []byte) error { 140 return CfgUnmarshaler.Unmarshal(bytes.NewReader(b), this) 141} 142 143// MarshalJSON is a custom marshaler for FractionalPercent 144func (this *FractionalPercent) MarshalJSON() ([]byte, error) { 145 str, err := CfgMarshaler.MarshalToString(this) 146 return []byte(str), err 147} 148 149// UnmarshalJSON is a custom unmarshaler for FractionalPercent 150func (this *FractionalPercent) UnmarshalJSON(b []byte) error { 151 return CfgUnmarshaler.Unmarshal(bytes.NewReader(b), this) 152} 153 154// MarshalJSON is a custom marshaler for Authentication 155func (this *Authentication) MarshalJSON() ([]byte, error) { 156 str, err := CfgMarshaler.MarshalToString(this) 157 return []byte(str), err 158} 159 160// UnmarshalJSON is a custom unmarshaler for Authentication 161func (this *Authentication) UnmarshalJSON(b []byte) error { 162 return CfgUnmarshaler.Unmarshal(bytes.NewReader(b), this) 163} 164 165// MarshalJSON is a custom marshaler for Tls 166func (this *Tls) MarshalJSON() ([]byte, error) { 167 str, err := CfgMarshaler.MarshalToString(this) 168 return []byte(str), err 169} 170 171// UnmarshalJSON is a custom unmarshaler for Tls 172func (this *Tls) UnmarshalJSON(b []byte) error { 173 return CfgUnmarshaler.Unmarshal(bytes.NewReader(b), this) 174} 175 176// MarshalJSON is a custom marshaler for OAuth 177func (this *OAuth) MarshalJSON() ([]byte, error) { 178 str, err := CfgMarshaler.MarshalToString(this) 179 return []byte(str), err 180} 181 182// UnmarshalJSON is a custom unmarshaler for OAuth 183func (this *OAuth) UnmarshalJSON(b []byte) error { 184 return CfgUnmarshaler.Unmarshal(bytes.NewReader(b), this) 185} 186 187// MarshalJSON is a custom marshaler for Mutual 188func (this *Mutual) MarshalJSON() ([]byte, error) { 189 str, err := CfgMarshaler.MarshalToString(this) 190 return []byte(str), err 191} 192 193// UnmarshalJSON is a custom unmarshaler for Mutual 194func (this *Mutual) UnmarshalJSON(b []byte) error { 195 return CfgUnmarshaler.Unmarshal(bytes.NewReader(b), this) 196} 197 198var ( 199 CfgMarshaler = &github_com_gogo_protobuf_jsonpb.Marshaler{} 200 CfgUnmarshaler = &github_com_gogo_protobuf_jsonpb.Unmarshaler{} 201) 202