github.com/cilium/cilium@v1.16.2/api/v1/recorder/recorder.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: recorder/recorder.proto
     6  
     7  package recorder
     8  
     9  import (
    10  	"google.golang.org/protobuf/encoding/protojson"
    11  )
    12  
    13  // MarshalJSON implements json.Marshaler
    14  func (msg *RecordRequest) MarshalJSON() ([]byte, error) {
    15  	return protojson.MarshalOptions{
    16  		UseProtoNames: true,
    17  	}.Marshal(msg)
    18  }
    19  
    20  // UnmarshalJSON implements json.Unmarshaler
    21  func (msg *RecordRequest) UnmarshalJSON(b []byte) error {
    22  	return protojson.UnmarshalOptions{}.Unmarshal(b, msg)
    23  }
    24  
    25  // MarshalJSON implements json.Marshaler
    26  func (msg *StartRecording) MarshalJSON() ([]byte, error) {
    27  	return protojson.MarshalOptions{
    28  		UseProtoNames: true,
    29  	}.Marshal(msg)
    30  }
    31  
    32  // UnmarshalJSON implements json.Unmarshaler
    33  func (msg *StartRecording) UnmarshalJSON(b []byte) error {
    34  	return protojson.UnmarshalOptions{}.Unmarshal(b, msg)
    35  }
    36  
    37  // MarshalJSON implements json.Marshaler
    38  func (msg *StopCondition) MarshalJSON() ([]byte, error) {
    39  	return protojson.MarshalOptions{
    40  		UseProtoNames: true,
    41  	}.Marshal(msg)
    42  }
    43  
    44  // UnmarshalJSON implements json.Unmarshaler
    45  func (msg *StopCondition) UnmarshalJSON(b []byte) error {
    46  	return protojson.UnmarshalOptions{}.Unmarshal(b, msg)
    47  }
    48  
    49  // MarshalJSON implements json.Marshaler
    50  func (msg *FileSinkConfiguration) MarshalJSON() ([]byte, error) {
    51  	return protojson.MarshalOptions{
    52  		UseProtoNames: true,
    53  	}.Marshal(msg)
    54  }
    55  
    56  // UnmarshalJSON implements json.Unmarshaler
    57  func (msg *FileSinkConfiguration) UnmarshalJSON(b []byte) error {
    58  	return protojson.UnmarshalOptions{}.Unmarshal(b, msg)
    59  }
    60  
    61  // MarshalJSON implements json.Marshaler
    62  func (msg *Filter) MarshalJSON() ([]byte, error) {
    63  	return protojson.MarshalOptions{
    64  		UseProtoNames: true,
    65  	}.Marshal(msg)
    66  }
    67  
    68  // UnmarshalJSON implements json.Unmarshaler
    69  func (msg *Filter) UnmarshalJSON(b []byte) error {
    70  	return protojson.UnmarshalOptions{}.Unmarshal(b, msg)
    71  }
    72  
    73  // MarshalJSON implements json.Marshaler
    74  func (msg *StopRecording) MarshalJSON() ([]byte, error) {
    75  	return protojson.MarshalOptions{
    76  		UseProtoNames: true,
    77  	}.Marshal(msg)
    78  }
    79  
    80  // UnmarshalJSON implements json.Unmarshaler
    81  func (msg *StopRecording) UnmarshalJSON(b []byte) error {
    82  	return protojson.UnmarshalOptions{}.Unmarshal(b, msg)
    83  }
    84  
    85  // MarshalJSON implements json.Marshaler
    86  func (msg *RecordResponse) MarshalJSON() ([]byte, error) {
    87  	return protojson.MarshalOptions{
    88  		UseProtoNames: true,
    89  	}.Marshal(msg)
    90  }
    91  
    92  // UnmarshalJSON implements json.Unmarshaler
    93  func (msg *RecordResponse) UnmarshalJSON(b []byte) error {
    94  	return protojson.UnmarshalOptions{}.Unmarshal(b, msg)
    95  }
    96  
    97  // MarshalJSON implements json.Marshaler
    98  func (msg *RecordingStatistics) MarshalJSON() ([]byte, error) {
    99  	return protojson.MarshalOptions{
   100  		UseProtoNames: true,
   101  	}.Marshal(msg)
   102  }
   103  
   104  // UnmarshalJSON implements json.Unmarshaler
   105  func (msg *RecordingStatistics) UnmarshalJSON(b []byte) error {
   106  	return protojson.UnmarshalOptions{}.Unmarshal(b, msg)
   107  }
   108  
   109  // MarshalJSON implements json.Marshaler
   110  func (msg *RecordingRunningResponse) MarshalJSON() ([]byte, error) {
   111  	return protojson.MarshalOptions{
   112  		UseProtoNames: true,
   113  	}.Marshal(msg)
   114  }
   115  
   116  // UnmarshalJSON implements json.Unmarshaler
   117  func (msg *RecordingRunningResponse) UnmarshalJSON(b []byte) error {
   118  	return protojson.UnmarshalOptions{}.Unmarshal(b, msg)
   119  }
   120  
   121  // MarshalJSON implements json.Marshaler
   122  func (msg *RecordingStoppedResponse) MarshalJSON() ([]byte, error) {
   123  	return protojson.MarshalOptions{
   124  		UseProtoNames: true,
   125  	}.Marshal(msg)
   126  }
   127  
   128  // UnmarshalJSON implements json.Unmarshaler
   129  func (msg *RecordingStoppedResponse) UnmarshalJSON(b []byte) error {
   130  	return protojson.UnmarshalOptions{}.Unmarshal(b, msg)
   131  }
   132  
   133  // MarshalJSON implements json.Marshaler
   134  func (msg *FileSinkResult) MarshalJSON() ([]byte, error) {
   135  	return protojson.MarshalOptions{
   136  		UseProtoNames: true,
   137  	}.Marshal(msg)
   138  }
   139  
   140  // UnmarshalJSON implements json.Unmarshaler
   141  func (msg *FileSinkResult) UnmarshalJSON(b []byte) error {
   142  	return protojson.UnmarshalOptions{}.Unmarshal(b, msg)
   143  }