This repository has been archived by the owner on Feb 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
/
hepa.json.pb.go
75 lines (65 loc) · 1.94 KB
/
hepa.json.pb.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// Code generated by protoc-gen-go-json. DO NOT EDIT.
// Source: hepa.proto
package pb
import (
bytes "bytes"
json "encoding/json"
jsonpb "github.com/erda-project/erda-infra/pkg/transport/http/encoding/jsonpb"
protojson "google.golang.org/protobuf/encoding/protojson"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the "encoding/json" package it is being compiled against.
var _ json.Marshaler = (*Page)(nil)
var _ json.Unmarshaler = (*Page)(nil)
var _ json.Marshaler = (*PageResult)(nil)
var _ json.Unmarshaler = (*PageResult)(nil)
var _ json.Marshaler = (*NewPageResult)(nil)
var _ json.Unmarshaler = (*NewPageResult)(nil)
// Page implement json.Marshaler.
func (m *Page) MarshalJSON() ([]byte, error) {
buf := &bytes.Buffer{}
err := (&jsonpb.Marshaler{
OrigName: false,
EnumsAsInts: false,
EmitDefaults: true,
}).Marshal(buf, m)
return buf.Bytes(), err
}
// Page implement json.Marshaler.
func (m *Page) UnmarshalJSON(b []byte) error {
return (&protojson.UnmarshalOptions{
DiscardUnknown: true,
}).Unmarshal(b, m)
}
// PageResult implement json.Marshaler.
func (m *PageResult) MarshalJSON() ([]byte, error) {
buf := &bytes.Buffer{}
err := (&jsonpb.Marshaler{
OrigName: false,
EnumsAsInts: false,
EmitDefaults: true,
}).Marshal(buf, m)
return buf.Bytes(), err
}
// PageResult implement json.Marshaler.
func (m *PageResult) UnmarshalJSON(b []byte) error {
return (&protojson.UnmarshalOptions{
DiscardUnknown: true,
}).Unmarshal(b, m)
}
// NewPageResult implement json.Marshaler.
func (m *NewPageResult) MarshalJSON() ([]byte, error) {
buf := &bytes.Buffer{}
err := (&jsonpb.Marshaler{
OrigName: false,
EnumsAsInts: false,
EmitDefaults: true,
}).Marshal(buf, m)
return buf.Bytes(), err
}
// NewPageResult implement json.Marshaler.
func (m *NewPageResult) UnmarshalJSON(b []byte) error {
return (&protojson.UnmarshalOptions{
DiscardUnknown: true,
}).Unmarshal(b, m)
}