1// Code generated by protoc-gen-gogo. DO NOT EDIT.
2// source: authentication/v1alpha1/policy.proto
3
4// This package defines user-facing authentication policy.
5
6package v1alpha1
7
8import (
9	bytes "bytes"
10	fmt "fmt"
11	github_com_gogo_protobuf_jsonpb "github.com/gogo/protobuf/jsonpb"
12	proto "github.com/gogo/protobuf/proto"
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 StringMatch
23func (this *StringMatch) MarshalJSON() ([]byte, error) {
24	str, err := PolicyMarshaler.MarshalToString(this)
25	return []byte(str), err
26}
27
28// UnmarshalJSON is a custom unmarshaler for StringMatch
29func (this *StringMatch) UnmarshalJSON(b []byte) error {
30	return PolicyUnmarshaler.Unmarshal(bytes.NewReader(b), this)
31}
32
33// MarshalJSON is a custom marshaler for MutualTls
34func (this *MutualTls) MarshalJSON() ([]byte, error) {
35	str, err := PolicyMarshaler.MarshalToString(this)
36	return []byte(str), err
37}
38
39// UnmarshalJSON is a custom unmarshaler for MutualTls
40func (this *MutualTls) UnmarshalJSON(b []byte) error {
41	return PolicyUnmarshaler.Unmarshal(bytes.NewReader(b), this)
42}
43
44// MarshalJSON is a custom marshaler for Jwt
45func (this *Jwt) MarshalJSON() ([]byte, error) {
46	str, err := PolicyMarshaler.MarshalToString(this)
47	return []byte(str), err
48}
49
50// UnmarshalJSON is a custom unmarshaler for Jwt
51func (this *Jwt) UnmarshalJSON(b []byte) error {
52	return PolicyUnmarshaler.Unmarshal(bytes.NewReader(b), this)
53}
54
55// MarshalJSON is a custom marshaler for Jwt_TriggerRule
56func (this *Jwt_TriggerRule) MarshalJSON() ([]byte, error) {
57	str, err := PolicyMarshaler.MarshalToString(this)
58	return []byte(str), err
59}
60
61// UnmarshalJSON is a custom unmarshaler for Jwt_TriggerRule
62func (this *Jwt_TriggerRule) UnmarshalJSON(b []byte) error {
63	return PolicyUnmarshaler.Unmarshal(bytes.NewReader(b), this)
64}
65
66// MarshalJSON is a custom marshaler for PeerAuthenticationMethod
67func (this *PeerAuthenticationMethod) MarshalJSON() ([]byte, error) {
68	str, err := PolicyMarshaler.MarshalToString(this)
69	return []byte(str), err
70}
71
72// UnmarshalJSON is a custom unmarshaler for PeerAuthenticationMethod
73func (this *PeerAuthenticationMethod) UnmarshalJSON(b []byte) error {
74	return PolicyUnmarshaler.Unmarshal(bytes.NewReader(b), this)
75}
76
77// MarshalJSON is a custom marshaler for OriginAuthenticationMethod
78func (this *OriginAuthenticationMethod) MarshalJSON() ([]byte, error) {
79	str, err := PolicyMarshaler.MarshalToString(this)
80	return []byte(str), err
81}
82
83// UnmarshalJSON is a custom unmarshaler for OriginAuthenticationMethod
84func (this *OriginAuthenticationMethod) UnmarshalJSON(b []byte) error {
85	return PolicyUnmarshaler.Unmarshal(bytes.NewReader(b), this)
86}
87
88// MarshalJSON is a custom marshaler for Policy
89func (this *Policy) MarshalJSON() ([]byte, error) {
90	str, err := PolicyMarshaler.MarshalToString(this)
91	return []byte(str), err
92}
93
94// UnmarshalJSON is a custom unmarshaler for Policy
95func (this *Policy) UnmarshalJSON(b []byte) error {
96	return PolicyUnmarshaler.Unmarshal(bytes.NewReader(b), this)
97}
98
99// MarshalJSON is a custom marshaler for TargetSelector
100func (this *TargetSelector) MarshalJSON() ([]byte, error) {
101	str, err := PolicyMarshaler.MarshalToString(this)
102	return []byte(str), err
103}
104
105// UnmarshalJSON is a custom unmarshaler for TargetSelector
106func (this *TargetSelector) UnmarshalJSON(b []byte) error {
107	return PolicyUnmarshaler.Unmarshal(bytes.NewReader(b), this)
108}
109
110// MarshalJSON is a custom marshaler for PortSelector
111func (this *PortSelector) MarshalJSON() ([]byte, error) {
112	str, err := PolicyMarshaler.MarshalToString(this)
113	return []byte(str), err
114}
115
116// UnmarshalJSON is a custom unmarshaler for PortSelector
117func (this *PortSelector) UnmarshalJSON(b []byte) error {
118	return PolicyUnmarshaler.Unmarshal(bytes.NewReader(b), this)
119}
120
121var (
122	PolicyMarshaler   = &github_com_gogo_protobuf_jsonpb.Marshaler{}
123	PolicyUnmarshaler = &github_com_gogo_protobuf_jsonpb.Unmarshaler{}
124)
125