consul/proto-public/pbmesh/v2beta1/api_gateway_json.gen.go
sarahalsmiller 1eca44aef9
NET-7153 Proto messages for API Gateway (#20250)
* API Gateway proto

* fix lint issue

* new line

* run make proto format

* regened with comment

* lint

* utilizie existing TLS struct

* Update proto-public/pbmesh/v2beta1/api_gateway.proto

Co-authored-by: Nathan Coleman <nathan.coleman@hashicorp.com>

* generated file

* Update proto-public/pbmesh/v2beta1/api_gateway.proto

* regen with comment

* format the comment

---------

Co-authored-by: Nathan Coleman <nathan.coleman@hashicorp.com>
2024-01-24 12:10:20 -06:00

45 lines
1.4 KiB
Go

// Code generated by protoc-json-shim. DO NOT EDIT.
package meshv2beta1
import (
protojson "google.golang.org/protobuf/encoding/protojson"
)
// MarshalJSON is a custom marshaler for APIGateway
func (this *APIGateway) MarshalJSON() ([]byte, error) {
str, err := ApiGatewayMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for APIGateway
func (this *APIGateway) UnmarshalJSON(b []byte) error {
return ApiGatewayUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for APIGatewayListener
func (this *APIGatewayListener) MarshalJSON() ([]byte, error) {
str, err := ApiGatewayMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for APIGatewayListener
func (this *APIGatewayListener) UnmarshalJSON(b []byte) error {
return ApiGatewayUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for APIGatewayTLSConfiguration
func (this *APIGatewayTLSConfiguration) MarshalJSON() ([]byte, error) {
str, err := ApiGatewayMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for APIGatewayTLSConfiguration
func (this *APIGatewayTLSConfiguration) UnmarshalJSON(b []byte) error {
return ApiGatewayUnmarshaler.Unmarshal(b, this)
}
var (
ApiGatewayMarshaler = &protojson.MarshalOptions{}
ApiGatewayUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false}
)