mirror of
https://github.com/rclone/rclone.git
synced 2024-12-12 02:02:02 +01:00
232 lines
8.0 KiB
Go
232 lines
8.0 KiB
Go
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
// source: overlay.proto
|
|
|
|
package pb
|
|
|
|
import (
|
|
fmt "fmt"
|
|
math "math"
|
|
|
|
proto "github.com/gogo/protobuf/proto"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
type Restriction_Operator int32
|
|
|
|
const (
|
|
Restriction_LT Restriction_Operator = 0
|
|
Restriction_EQ Restriction_Operator = 1
|
|
Restriction_GT Restriction_Operator = 2
|
|
Restriction_LTE Restriction_Operator = 3
|
|
Restriction_GTE Restriction_Operator = 4
|
|
)
|
|
|
|
var Restriction_Operator_name = map[int32]string{
|
|
0: "LT",
|
|
1: "EQ",
|
|
2: "GT",
|
|
3: "LTE",
|
|
4: "GTE",
|
|
}
|
|
|
|
var Restriction_Operator_value = map[string]int32{
|
|
"LT": 0,
|
|
"EQ": 1,
|
|
"GT": 2,
|
|
"LTE": 3,
|
|
"GTE": 4,
|
|
}
|
|
|
|
func (x Restriction_Operator) String() string {
|
|
return proto.EnumName(Restriction_Operator_name, int32(x))
|
|
}
|
|
|
|
func (Restriction_Operator) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_61fc82527fbe24ad, []int{1, 0}
|
|
}
|
|
|
|
type Restriction_Operand int32
|
|
|
|
const (
|
|
Restriction_FREE_BANDWIDTH Restriction_Operand = 0
|
|
Restriction_FREE_DISK Restriction_Operand = 1
|
|
)
|
|
|
|
var Restriction_Operand_name = map[int32]string{
|
|
0: "FREE_BANDWIDTH",
|
|
1: "FREE_DISK",
|
|
}
|
|
|
|
var Restriction_Operand_value = map[string]int32{
|
|
"FREE_BANDWIDTH": 0,
|
|
"FREE_DISK": 1,
|
|
}
|
|
|
|
func (x Restriction_Operand) String() string {
|
|
return proto.EnumName(Restriction_Operand_name, int32(x))
|
|
}
|
|
|
|
func (Restriction_Operand) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_61fc82527fbe24ad, []int{1, 1}
|
|
}
|
|
|
|
type InfoResponse struct {
|
|
Type NodeType `protobuf:"varint,2,opt,name=type,proto3,enum=node.NodeType" json:"type,omitempty"`
|
|
Operator *NodeOperator `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"`
|
|
Capacity *NodeCapacity `protobuf:"bytes,4,opt,name=capacity,proto3" json:"capacity,omitempty"`
|
|
Version *NodeVersion `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *InfoResponse) Reset() { *m = InfoResponse{} }
|
|
func (m *InfoResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*InfoResponse) ProtoMessage() {}
|
|
func (*InfoResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_61fc82527fbe24ad, []int{0}
|
|
}
|
|
func (m *InfoResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_InfoResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *InfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_InfoResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *InfoResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_InfoResponse.Merge(m, src)
|
|
}
|
|
func (m *InfoResponse) XXX_Size() int {
|
|
return xxx_messageInfo_InfoResponse.Size(m)
|
|
}
|
|
func (m *InfoResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_InfoResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_InfoResponse proto.InternalMessageInfo
|
|
|
|
func (m *InfoResponse) GetType() NodeType {
|
|
if m != nil {
|
|
return m.Type
|
|
}
|
|
return NodeType_INVALID
|
|
}
|
|
|
|
func (m *InfoResponse) GetOperator() *NodeOperator {
|
|
if m != nil {
|
|
return m.Operator
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *InfoResponse) GetCapacity() *NodeCapacity {
|
|
if m != nil {
|
|
return m.Capacity
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *InfoResponse) GetVersion() *NodeVersion {
|
|
if m != nil {
|
|
return m.Version
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Restriction struct {
|
|
Operator Restriction_Operator `protobuf:"varint,1,opt,name=operator,proto3,enum=overlay.Restriction_Operator" json:"operator,omitempty"`
|
|
Operand Restriction_Operand `protobuf:"varint,2,opt,name=operand,proto3,enum=overlay.Restriction_Operand" json:"operand,omitempty"`
|
|
Value int64 `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Restriction) Reset() { *m = Restriction{} }
|
|
func (m *Restriction) String() string { return proto.CompactTextString(m) }
|
|
func (*Restriction) ProtoMessage() {}
|
|
func (*Restriction) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_61fc82527fbe24ad, []int{1}
|
|
}
|
|
func (m *Restriction) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Restriction.Unmarshal(m, b)
|
|
}
|
|
func (m *Restriction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Restriction.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Restriction) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Restriction.Merge(m, src)
|
|
}
|
|
func (m *Restriction) XXX_Size() int {
|
|
return xxx_messageInfo_Restriction.Size(m)
|
|
}
|
|
func (m *Restriction) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Restriction.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Restriction proto.InternalMessageInfo
|
|
|
|
func (m *Restriction) GetOperator() Restriction_Operator {
|
|
if m != nil {
|
|
return m.Operator
|
|
}
|
|
return Restriction_LT
|
|
}
|
|
|
|
func (m *Restriction) GetOperand() Restriction_Operand {
|
|
if m != nil {
|
|
return m.Operand
|
|
}
|
|
return Restriction_FREE_BANDWIDTH
|
|
}
|
|
|
|
func (m *Restriction) GetValue() int64 {
|
|
if m != nil {
|
|
return m.Value
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterEnum("overlay.Restriction_Operator", Restriction_Operator_name, Restriction_Operator_value)
|
|
proto.RegisterEnum("overlay.Restriction_Operand", Restriction_Operand_name, Restriction_Operand_value)
|
|
proto.RegisterType((*InfoResponse)(nil), "overlay.InfoResponse")
|
|
proto.RegisterType((*Restriction)(nil), "overlay.Restriction")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("overlay.proto", fileDescriptor_61fc82527fbe24ad) }
|
|
|
|
var fileDescriptor_61fc82527fbe24ad = []byte{
|
|
// 330 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0x5f, 0x4b, 0xf3, 0x30,
|
|
0x14, 0xc6, 0xd7, 0x75, 0x5b, 0xf7, 0x9e, 0xbd, 0x1b, 0x35, 0xec, 0xa2, 0x88, 0xc2, 0xe8, 0xd5,
|
|
0x40, 0xe9, 0x60, 0x8a, 0xe0, 0xa5, 0x73, 0x75, 0x0e, 0xc7, 0xc4, 0x58, 0x14, 0xbc, 0x91, 0xae,
|
|
0x8d, 0x50,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