mirror of https://github.com/hashicorp/consul
23 lines
756 B
Go
23 lines
756 B
Go
// Code generated by protoc-json-shim. DO NOT EDIT.
|
|
package authv2beta1
|
|
|
|
import (
|
|
protojson "google.golang.org/protobuf/encoding/protojson"
|
|
)
|
|
|
|
// MarshalJSON is a custom marshaler for ComputedTrafficPermissions
|
|
func (this *ComputedTrafficPermissions) MarshalJSON() ([]byte, error) {
|
|
str, err := ComputedTrafficPermissionsMarshaler.Marshal(this)
|
|
return []byte(str), err
|
|
}
|
|
|
|
// UnmarshalJSON is a custom unmarshaler for ComputedTrafficPermissions
|
|
func (this *ComputedTrafficPermissions) UnmarshalJSON(b []byte) error {
|
|
return ComputedTrafficPermissionsUnmarshaler.Unmarshal(b, this)
|
|
}
|
|
|
|
var (
|
|
ComputedTrafficPermissionsMarshaler = &protojson.MarshalOptions{}
|
|
ComputedTrafficPermissionsUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false}
|
|
)
|