github.com/cilium/cilium@v1.16.2/api/v1/observer/observer.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: observer/observer.proto 6 7 package observer 8 9 import ( 10 "google.golang.org/protobuf/encoding/protojson" 11 ) 12 13 // MarshalJSON implements json.Marshaler 14 func (msg *ServerStatusRequest) MarshalJSON() ([]byte, error) { 15 return protojson.MarshalOptions{ 16 UseProtoNames: true, 17 }.Marshal(msg) 18 } 19 20 // UnmarshalJSON implements json.Unmarshaler 21 func (msg *ServerStatusRequest) UnmarshalJSON(b []byte) error { 22 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 23 } 24 25 // MarshalJSON implements json.Marshaler 26 func (msg *ServerStatusResponse) MarshalJSON() ([]byte, error) { 27 return protojson.MarshalOptions{ 28 UseProtoNames: true, 29 }.Marshal(msg) 30 } 31 32 // UnmarshalJSON implements json.Unmarshaler 33 func (msg *ServerStatusResponse) UnmarshalJSON(b []byte) error { 34 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 35 } 36 37 // MarshalJSON implements json.Marshaler 38 func (msg *GetFlowsRequest) MarshalJSON() ([]byte, error) { 39 return protojson.MarshalOptions{ 40 UseProtoNames: true, 41 }.Marshal(msg) 42 } 43 44 // UnmarshalJSON implements json.Unmarshaler 45 func (msg *GetFlowsRequest) UnmarshalJSON(b []byte) error { 46 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 47 } 48 49 // MarshalJSON implements json.Marshaler 50 func (msg *GetFlowsRequest_Experimental) MarshalJSON() ([]byte, error) { 51 return protojson.MarshalOptions{ 52 UseProtoNames: true, 53 }.Marshal(msg) 54 } 55 56 // UnmarshalJSON implements json.Unmarshaler 57 func (msg *GetFlowsRequest_Experimental) UnmarshalJSON(b []byte) error { 58 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 59 } 60 61 // MarshalJSON implements json.Marshaler 62 func (msg *GetFlowsResponse) MarshalJSON() ([]byte, error) { 63 return protojson.MarshalOptions{ 64 UseProtoNames: true, 65 }.Marshal(msg) 66 } 67 68 // UnmarshalJSON implements json.Unmarshaler 69 func (msg *GetFlowsResponse) UnmarshalJSON(b []byte) error { 70 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 71 } 72 73 // MarshalJSON implements json.Marshaler 74 func (msg *GetAgentEventsRequest) MarshalJSON() ([]byte, error) { 75 return protojson.MarshalOptions{ 76 UseProtoNames: true, 77 }.Marshal(msg) 78 } 79 80 // UnmarshalJSON implements json.Unmarshaler 81 func (msg *GetAgentEventsRequest) UnmarshalJSON(b []byte) error { 82 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 83 } 84 85 // MarshalJSON implements json.Marshaler 86 func (msg *GetAgentEventsResponse) MarshalJSON() ([]byte, error) { 87 return protojson.MarshalOptions{ 88 UseProtoNames: true, 89 }.Marshal(msg) 90 } 91 92 // UnmarshalJSON implements json.Unmarshaler 93 func (msg *GetAgentEventsResponse) UnmarshalJSON(b []byte) error { 94 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 95 } 96 97 // MarshalJSON implements json.Marshaler 98 func (msg *GetDebugEventsRequest) MarshalJSON() ([]byte, error) { 99 return protojson.MarshalOptions{ 100 UseProtoNames: true, 101 }.Marshal(msg) 102 } 103 104 // UnmarshalJSON implements json.Unmarshaler 105 func (msg *GetDebugEventsRequest) UnmarshalJSON(b []byte) error { 106 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 107 } 108 109 // MarshalJSON implements json.Marshaler 110 func (msg *GetDebugEventsResponse) MarshalJSON() ([]byte, error) { 111 return protojson.MarshalOptions{ 112 UseProtoNames: true, 113 }.Marshal(msg) 114 } 115 116 // UnmarshalJSON implements json.Unmarshaler 117 func (msg *GetDebugEventsResponse) UnmarshalJSON(b []byte) error { 118 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 119 } 120 121 // MarshalJSON implements json.Marshaler 122 func (msg *GetNodesRequest) MarshalJSON() ([]byte, error) { 123 return protojson.MarshalOptions{ 124 UseProtoNames: true, 125 }.Marshal(msg) 126 } 127 128 // UnmarshalJSON implements json.Unmarshaler 129 func (msg *GetNodesRequest) UnmarshalJSON(b []byte) error { 130 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 131 } 132 133 // MarshalJSON implements json.Marshaler 134 func (msg *GetNodesResponse) MarshalJSON() ([]byte, error) { 135 return protojson.MarshalOptions{ 136 UseProtoNames: true, 137 }.Marshal(msg) 138 } 139 140 // UnmarshalJSON implements json.Unmarshaler 141 func (msg *GetNodesResponse) UnmarshalJSON(b []byte) error { 142 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 143 } 144 145 // MarshalJSON implements json.Marshaler 146 func (msg *Node) MarshalJSON() ([]byte, error) { 147 return protojson.MarshalOptions{ 148 UseProtoNames: true, 149 }.Marshal(msg) 150 } 151 152 // UnmarshalJSON implements json.Unmarshaler 153 func (msg *Node) UnmarshalJSON(b []byte) error { 154 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 155 } 156 157 // MarshalJSON implements json.Marshaler 158 func (msg *TLS) MarshalJSON() ([]byte, error) { 159 return protojson.MarshalOptions{ 160 UseProtoNames: true, 161 }.Marshal(msg) 162 } 163 164 // UnmarshalJSON implements json.Unmarshaler 165 func (msg *TLS) UnmarshalJSON(b []byte) error { 166 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 167 } 168 169 // MarshalJSON implements json.Marshaler 170 func (msg *GetNamespacesRequest) MarshalJSON() ([]byte, error) { 171 return protojson.MarshalOptions{ 172 UseProtoNames: true, 173 }.Marshal(msg) 174 } 175 176 // UnmarshalJSON implements json.Unmarshaler 177 func (msg *GetNamespacesRequest) UnmarshalJSON(b []byte) error { 178 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 179 } 180 181 // MarshalJSON implements json.Marshaler 182 func (msg *GetNamespacesResponse) MarshalJSON() ([]byte, error) { 183 return protojson.MarshalOptions{ 184 UseProtoNames: true, 185 }.Marshal(msg) 186 } 187 188 // UnmarshalJSON implements json.Unmarshaler 189 func (msg *GetNamespacesResponse) UnmarshalJSON(b []byte) error { 190 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 191 } 192 193 // MarshalJSON implements json.Marshaler 194 func (msg *Namespace) MarshalJSON() ([]byte, error) { 195 return protojson.MarshalOptions{ 196 UseProtoNames: true, 197 }.Marshal(msg) 198 } 199 200 // UnmarshalJSON implements json.Unmarshaler 201 func (msg *Namespace) UnmarshalJSON(b []byte) error { 202 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 203 } 204 205 // MarshalJSON implements json.Marshaler 206 func (msg *ExportEvent) MarshalJSON() ([]byte, error) { 207 return protojson.MarshalOptions{ 208 UseProtoNames: true, 209 }.Marshal(msg) 210 } 211 212 // UnmarshalJSON implements json.Unmarshaler 213 func (msg *ExportEvent) UnmarshalJSON(b []byte) error { 214 return protojson.UnmarshalOptions{}.Unmarshal(b, msg) 215 }