This repository has been archived by the owner on Jan 26, 2022. It is now read-only.
/
limit_bandwidth.pb.go
73 lines (60 loc) · 1.95 KB
/
limit_bandwidth.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
// Code generated by protoc-gen-go.
// source: limit_bandwidth.proto
// DO NOT EDIT!
package warden
import proto "code.google.com/p/goprotobuf/proto"
import json "encoding/json"
import math "math"
// Reference proto, json, and math imports to suppress error if they are not otherwise used.
var _ = proto.Marshal
var _ = &json.SyntaxError{}
var _ = math.Inf
type LimitBandwidthRequest struct {
Handle *string `protobuf:"bytes,1,req,name=handle" json:"handle,omitempty"`
Rate *uint64 `protobuf:"varint,2,req,name=rate" json:"rate,omitempty"`
Burst *uint64 `protobuf:"varint,3,req,name=burst" json:"burst,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *LimitBandwidthRequest) Reset() { *m = LimitBandwidthRequest{} }
func (m *LimitBandwidthRequest) String() string { return proto.CompactTextString(m) }
func (*LimitBandwidthRequest) ProtoMessage() {}
func (m *LimitBandwidthRequest) GetHandle() string {
if m != nil && m.Handle != nil {
return *m.Handle
}
return ""
}
func (m *LimitBandwidthRequest) GetRate() uint64 {
if m != nil && m.Rate != nil {
return *m.Rate
}
return 0
}
func (m *LimitBandwidthRequest) GetBurst() uint64 {
if m != nil && m.Burst != nil {
return *m.Burst
}
return 0
}
type LimitBandwidthResponse struct {
Rate *uint64 `protobuf:"varint,1,req,name=rate" json:"rate,omitempty"`
Burst *uint64 `protobuf:"varint,2,req,name=burst" json:"burst,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *LimitBandwidthResponse) Reset() { *m = LimitBandwidthResponse{} }
func (m *LimitBandwidthResponse) String() string { return proto.CompactTextString(m) }
func (*LimitBandwidthResponse) ProtoMessage() {}
func (m *LimitBandwidthResponse) GetRate() uint64 {
if m != nil && m.Rate != nil {
return *m.Rate
}
return 0
}
func (m *LimitBandwidthResponse) GetBurst() uint64 {
if m != nil && m.Burst != nil {
return *m.Burst
}
return 0
}
func init() {
}