github.com/cilium/cilium@v1.16.2/api/v1/peer/peer.pb.json.go (about)

     1  // SPDX-License-Identifier: Apache-2.0
     2  // Copyright Authors of Hubble
     3  
     4  // Code generated by protoc-gen-go-json. DO NOT EDIT.
     5  // source: peer/peer.proto
     6  
     7  package peer
     8  
     9  import (
    10  	"google.golang.org/protobuf/encoding/protojson"
    11  )
    12  
    13  // MarshalJSON implements json.Marshaler
    14  func (msg *NotifyRequest) MarshalJSON() ([]byte, error) {
    15  	return protojson.MarshalOptions{
    16  		UseProtoNames: true,
    17  	}.Marshal(msg)
    18  }
    19  
    20  // UnmarshalJSON implements json.Unmarshaler
    21  func (msg *NotifyRequest) UnmarshalJSON(b []byte) error {
    22  	return protojson.UnmarshalOptions{}.Unmarshal(b, msg)
    23  }
    24  
    25  // MarshalJSON implements json.Marshaler
    26  func (msg *ChangeNotification) MarshalJSON() ([]byte, error) {
    27  	return protojson.MarshalOptions{
    28  		UseProtoNames: true,
    29  	}.Marshal(msg)
    30  }
    31  
    32  // UnmarshalJSON implements json.Unmarshaler
    33  func (msg *ChangeNotification) UnmarshalJSON(b []byte) error {
    34  	return protojson.UnmarshalOptions{}.Unmarshal(b, msg)
    35  }
    36  
    37  // MarshalJSON implements json.Marshaler
    38  func (msg *TLS) MarshalJSON() ([]byte, error) {
    39  	return protojson.MarshalOptions{
    40  		UseProtoNames: true,
    41  	}.Marshal(msg)
    42  }
    43  
    44  // UnmarshalJSON implements json.Unmarshaler
    45  func (msg *TLS) UnmarshalJSON(b []byte) error {
    46  	return protojson.UnmarshalOptions{}.Unmarshal(b, msg)
    47  }