// Code generated by protoc-gen-jsonshim. DO NOT EDIT.
package v1alpha1

import (
	bytes "bytes"
	jsonpb "github.com/golang/protobuf/jsonpb"
)

// MarshalJSON is a custom marshaler for IstioMeshGatewaySpec
func (this *IstioMeshGatewaySpec) MarshalJSON() ([]byte, error) {
	str, err := IstiomeshgatewayMarshaler.MarshalToString(this)
	return []byte(str), err
}

// UnmarshalJSON is a custom unmarshaler for IstioMeshGatewaySpec
func (this *IstioMeshGatewaySpec) UnmarshalJSON(b []byte) error {
	return IstiomeshgatewayUnmarshaler.Unmarshal(bytes.NewReader(b), this)
}

// MarshalJSON is a custom marshaler for Properties
func (this *Properties) MarshalJSON() ([]byte, error) {
	str, err := IstiomeshgatewayMarshaler.MarshalToString(this)
	return []byte(str), err
}

// UnmarshalJSON is a custom unmarshaler for Properties
func (this *Properties) UnmarshalJSON(b []byte) error {
	return IstiomeshgatewayUnmarshaler.Unmarshal(bytes.NewReader(b), this)
}

// MarshalJSON is a custom marshaler for IstioMeshGatewayStatus
func (this *IstioMeshGatewayStatus) MarshalJSON() ([]byte, error) {
	str, err := IstiomeshgatewayMarshaler.MarshalToString(this)
	return []byte(str), err
}

// UnmarshalJSON is a custom unmarshaler for IstioMeshGatewayStatus
func (this *IstioMeshGatewayStatus) UnmarshalJSON(b []byte) error {
	return IstiomeshgatewayUnmarshaler.Unmarshal(bytes.NewReader(b), this)
}

var (
	IstiomeshgatewayMarshaler   = &jsonpb.Marshaler{Int64Uint64asIntegers: true}
	IstiomeshgatewayUnmarshaler = &jsonpb.Unmarshaler{AllowUnknownFields: true}
)
