// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: authentication/v1alpha1/policy.proto // This package defines user-facing authentication policy. package v1alpha1 import ( bytes "bytes" fmt "fmt" 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 StringMatch func (this *StringMatch) MarshalJSON() ([]byte, error) { str, err := PolicyMarshaler.MarshalToString(this) return []byte(str), err } // UnmarshalJSON is a custom unmarshaler for StringMatch func (this *StringMatch) UnmarshalJSON(b []byte) error { return PolicyUnmarshaler.Unmarshal(bytes.NewReader(b), this) } // MarshalJSON is a custom marshaler for MutualTls func (this *MutualTls) MarshalJSON() ([]byte, error) { str, err := PolicyMarshaler.MarshalToString(this) return []byte(str), err } // UnmarshalJSON is a custom unmarshaler for MutualTls func (this *MutualTls) UnmarshalJSON(b []byte) error { return PolicyUnmarshaler.Unmarshal(bytes.NewReader(b), this) } // MarshalJSON is a custom marshaler for Jwt func (this *Jwt) MarshalJSON() ([]byte, error) { str, err := PolicyMarshaler.MarshalToString(this) return []byte(str), err } // UnmarshalJSON is a custom unmarshaler for Jwt func (this *Jwt) UnmarshalJSON(b []byte) error { return PolicyUnmarshaler.Unmarshal(bytes.NewReader(b), this) } // MarshalJSON is a custom marshaler for Jwt_TriggerRule func (this *Jwt_TriggerRule) MarshalJSON() ([]byte, error) { str, err := PolicyMarshaler.MarshalToString(this) return []byte(str), err } // UnmarshalJSON is a custom unmarshaler for Jwt_TriggerRule func (this *Jwt_TriggerRule) UnmarshalJSON(b []byte) error { return PolicyUnmarshaler.Unmarshal(bytes.NewReader(b), this) } // MarshalJSON is a custom marshaler for PeerAuthenticationMethod func (this *PeerAuthenticationMethod) MarshalJSON() ([]byte, error) { str, err := PolicyMarshaler.MarshalToString(this) return []byte(str), err } // UnmarshalJSON is a custom unmarshaler for PeerAuthenticationMethod func (this *PeerAuthenticationMethod) UnmarshalJSON(b []byte) error { return PolicyUnmarshaler.Unmarshal(bytes.NewReader(b), this) } // MarshalJSON is a custom marshaler for OriginAuthenticationMethod func (this *OriginAuthenticationMethod) MarshalJSON() ([]byte, error) { str, err := PolicyMarshaler.MarshalToString(this) return []byte(str), err } // UnmarshalJSON is a custom unmarshaler for OriginAuthenticationMethod func (this *OriginAuthenticationMethod) UnmarshalJSON(b []byte) error { return PolicyUnmarshaler.Unmarshal(bytes.NewReader(b), this) } // MarshalJSON is a custom marshaler for Policy func (this *Policy) MarshalJSON() ([]byte, error) { str, err := PolicyMarshaler.MarshalToString(this) return []byte(str), err } // UnmarshalJSON is a custom unmarshaler for Policy func (this *Policy) UnmarshalJSON(b []byte) error { return PolicyUnmarshaler.Unmarshal(bytes.NewReader(b), this) } // MarshalJSON is a custom marshaler for TargetSelector func (this *TargetSelector) MarshalJSON() ([]byte, error) { str, err := PolicyMarshaler.MarshalToString(this) return []byte(str), err } // UnmarshalJSON is a custom unmarshaler for TargetSelector func (this *TargetSelector) UnmarshalJSON(b []byte) error { return PolicyUnmarshaler.Unmarshal(bytes.NewReader(b), this) } // MarshalJSON is a custom marshaler for PortSelector func (this *PortSelector) MarshalJSON() ([]byte, error) { str, err := PolicyMarshaler.MarshalToString(this) return []byte(str), err } // UnmarshalJSON is a custom unmarshaler for PortSelector func (this *PortSelector) UnmarshalJSON(b []byte) error { return PolicyUnmarshaler.Unmarshal(bytes.NewReader(b), this) } var ( PolicyMarshaler = &github_com_gogo_protobuf_jsonpb.Marshaler{} PolicyUnmarshaler = &github_com_gogo_protobuf_jsonpb.Unmarshaler{} )