-
Notifications
You must be signed in to change notification settings - Fork 4.4k
/
serverdiscovery_json.gen.go
44 lines (36 loc) · 1.39 KB
/
serverdiscovery_json.gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Code generated by protoc-json-shim. DO NOT EDIT.
package pbserverdiscovery
import (
protojson "google.golang.org/protobuf/encoding/protojson"
)
// MarshalJSON is a custom marshaler for WatchServersRequest
func (this *WatchServersRequest) MarshalJSON() ([]byte, error) {
str, err := ServerdiscoveryMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for WatchServersRequest
func (this *WatchServersRequest) UnmarshalJSON(b []byte) error {
return ServerdiscoveryUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for WatchServersResponse
func (this *WatchServersResponse) MarshalJSON() ([]byte, error) {
str, err := ServerdiscoveryMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for WatchServersResponse
func (this *WatchServersResponse) UnmarshalJSON(b []byte) error {
return ServerdiscoveryUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for Server
func (this *Server) MarshalJSON() ([]byte, error) {
str, err := ServerdiscoveryMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for Server
func (this *Server) UnmarshalJSON(b []byte) error {
return ServerdiscoveryUnmarshaler.Unmarshal(b, this)
}
var (
ServerdiscoveryMarshaler = &protojson.MarshalOptions{}
ServerdiscoveryUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false}
)