2019-01-18 15:22:49 +02:00
|
|
|
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
2018-04-18 18:30:45 +03:00
|
|
|
// source: rendezvous.proto
|
|
|
|
|
|
|
|
|
|
package rendezvous_pb
|
|
|
|
|
|
2021-09-29 14:33:27 -04:00
|
|
|
import (
|
|
|
|
|
fmt "fmt"
|
|
|
|
|
proto "github.com/golang/protobuf/proto"
|
|
|
|
|
io "io"
|
|
|
|
|
math "math"
|
|
|
|
|
math_bits "math/bits"
|
2021-10-01 15:31:29 -04:00
|
|
|
pb "github.com/libp2p/go-libp2p-core/record/pb"
|
2021-09-29 14:33:27 -04:00
|
|
|
)
|
2019-01-18 15:22:49 +02:00
|
|
|
|
2018-04-18 18:30:45 +03:00
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
|
var _ = proto.Marshal
|
|
|
|
|
var _ = fmt.Errorf
|
|
|
|
|
var _ = math.Inf
|
|
|
|
|
|
2019-01-18 15:22:49 +02:00
|
|
|
// 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.
|
2021-09-29 14:33:27 -04:00
|
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
2019-01-18 15:22:49 +02:00
|
|
|
|
2018-04-18 18:30:45 +03:00
|
|
|
type Message_MessageType int32
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
Message_REGISTER Message_MessageType = 0
|
|
|
|
|
Message_REGISTER_RESPONSE Message_MessageType = 1
|
2021-10-04 14:08:34 -04:00
|
|
|
Message_DISCOVER Message_MessageType = 2
|
|
|
|
|
Message_DISCOVER_RESPONSE Message_MessageType = 3
|
2018-04-18 18:30:45 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
var Message_MessageType_name = map[int32]string{
|
|
|
|
|
0: "REGISTER",
|
|
|
|
|
1: "REGISTER_RESPONSE",
|
2021-10-04 14:08:34 -04:00
|
|
|
2: "DISCOVER",
|
|
|
|
|
3: "DISCOVER_RESPONSE",
|
2018-04-18 18:30:45 +03:00
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
|
2018-04-18 18:30:45 +03:00
|
|
|
var Message_MessageType_value = map[string]int32{
|
|
|
|
|
"REGISTER": 0,
|
|
|
|
|
"REGISTER_RESPONSE": 1,
|
2021-10-04 14:08:34 -04:00
|
|
|
"DISCOVER": 2,
|
|
|
|
|
"DISCOVER_RESPONSE": 3,
|
2018-04-18 18:30:45 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x Message_MessageType) String() string {
|
|
|
|
|
return proto.EnumName(Message_MessageType_name, int32(x))
|
|
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
|
2019-01-18 15:22:49 +02:00
|
|
|
func (Message_MessageType) EnumDescriptor() ([]byte, []int) {
|
2021-09-29 14:33:27 -04:00
|
|
|
return fileDescriptor_ef0a1d5737df1c36, []int{0, 0}
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
2018-04-18 18:30:45 +03:00
|
|
|
|
2018-04-21 12:05:36 +03:00
|
|
|
type Message_ResponseStatus int32
|
2018-04-18 18:30:45 +03:00
|
|
|
|
|
|
|
|
const (
|
2018-04-21 12:05:36 +03:00
|
|
|
Message_OK Message_ResponseStatus = 0
|
|
|
|
|
Message_E_INVALID_NAMESPACE Message_ResponseStatus = 100
|
|
|
|
|
Message_E_INVALID_PEER_INFO Message_ResponseStatus = 101
|
|
|
|
|
Message_E_INVALID_TTL Message_ResponseStatus = 102
|
|
|
|
|
Message_E_NOT_AUTHORIZED Message_ResponseStatus = 200
|
|
|
|
|
Message_E_INTERNAL_ERROR Message_ResponseStatus = 300
|
2019-01-18 15:22:49 +02:00
|
|
|
Message_E_UNAVAILABLE Message_ResponseStatus = 400
|
2018-04-18 18:30:45 +03:00
|
|
|
)
|
|
|
|
|
|
2018-04-21 12:05:36 +03:00
|
|
|
var Message_ResponseStatus_name = map[int32]string{
|
2018-04-18 18:30:45 +03:00
|
|
|
0: "OK",
|
|
|
|
|
100: "E_INVALID_NAMESPACE",
|
|
|
|
|
101: "E_INVALID_PEER_INFO",
|
2018-04-20 10:43:36 +03:00
|
|
|
102: "E_INVALID_TTL",
|
2018-04-18 18:30:45 +03:00
|
|
|
200: "E_NOT_AUTHORIZED",
|
2018-04-21 12:05:36 +03:00
|
|
|
300: "E_INTERNAL_ERROR",
|
2019-01-18 15:22:49 +02:00
|
|
|
400: "E_UNAVAILABLE",
|
2018-04-18 18:30:45 +03:00
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
|
2018-04-21 12:05:36 +03:00
|
|
|
var Message_ResponseStatus_value = map[string]int32{
|
2019-01-18 15:22:49 +02:00
|
|
|
"OK": 0,
|
2018-04-18 18:30:45 +03:00
|
|
|
"E_INVALID_NAMESPACE": 100,
|
|
|
|
|
"E_INVALID_PEER_INFO": 101,
|
2018-04-20 10:43:36 +03:00
|
|
|
"E_INVALID_TTL": 102,
|
2018-04-18 18:30:45 +03:00
|
|
|
"E_NOT_AUTHORIZED": 200,
|
2018-04-21 12:05:36 +03:00
|
|
|
"E_INTERNAL_ERROR": 300,
|
2019-01-18 15:22:49 +02:00
|
|
|
"E_UNAVAILABLE": 400,
|
2018-04-18 18:30:45 +03:00
|
|
|
}
|
|
|
|
|
|
2018-04-21 12:05:36 +03:00
|
|
|
func (x Message_ResponseStatus) String() string {
|
|
|
|
|
return proto.EnumName(Message_ResponseStatus_name, int32(x))
|
2018-04-18 18:30:45 +03:00
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
|
2019-01-18 15:22:49 +02:00
|
|
|
func (Message_ResponseStatus) EnumDescriptor() ([]byte, []int) {
|
2021-09-29 14:33:27 -04:00
|
|
|
return fileDescriptor_ef0a1d5737df1c36, []int{0, 1}
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
2018-04-18 18:30:45 +03:00
|
|
|
|
|
|
|
|
type Message struct {
|
2021-09-29 14:33:27 -04:00
|
|
|
Type Message_MessageType `protobuf:"varint,1,opt,name=type,proto3,enum=rendezvous.pb.Message_MessageType" json:"type,omitempty"`
|
|
|
|
|
Register *Message_Register `protobuf:"bytes,2,opt,name=register,proto3" json:"register,omitempty"`
|
|
|
|
|
RegisterResponse *Message_RegisterResponse `protobuf:"bytes,3,opt,name=registerResponse,proto3" json:"registerResponse,omitempty"`
|
2021-10-01 13:39:50 -04:00
|
|
|
Discover *Message_Discover `protobuf:"bytes,4,opt,name=discover,proto3" json:"discover,omitempty"`
|
|
|
|
|
DiscoverResponse *Message_DiscoverResponse `protobuf:"bytes,5,opt,name=discoverResponse,proto3" json:"discoverResponse,omitempty"`
|
2019-01-18 15:22:49 +02:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2018-04-18 18:30:45 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Message) Reset() { *m = Message{} }
|
|
|
|
|
func (m *Message) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*Message) ProtoMessage() {}
|
2019-01-18 15:22:49 +02:00
|
|
|
func (*Message) Descriptor() ([]byte, []int) {
|
2021-09-29 14:33:27 -04:00
|
|
|
return fileDescriptor_ef0a1d5737df1c36, []int{0}
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
|
|
|
|
func (m *Message) XXX_Unmarshal(b []byte) error {
|
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
|
}
|
|
|
|
|
func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
|
if deterministic {
|
|
|
|
|
return xxx_messageInfo_Message.Marshal(b, m, deterministic)
|
|
|
|
|
} else {
|
|
|
|
|
b = b[:cap(b)]
|
2021-09-29 14:33:27 -04:00
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
2019-01-18 15:22:49 +02:00
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return b[:n], nil
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
func (m *Message) XXX_Merge(src proto.Message) {
|
|
|
|
|
xxx_messageInfo_Message.Merge(m, src)
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
|
|
|
|
func (m *Message) XXX_Size() int {
|
|
|
|
|
return m.Size()
|
|
|
|
|
}
|
|
|
|
|
func (m *Message) XXX_DiscardUnknown() {
|
|
|
|
|
xxx_messageInfo_Message.DiscardUnknown(m)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_Message proto.InternalMessageInfo
|
2018-04-18 18:30:45 +03:00
|
|
|
|
|
|
|
|
func (m *Message) GetType() Message_MessageType {
|
2021-09-29 14:33:27 -04:00
|
|
|
if m != nil {
|
|
|
|
|
return m.Type
|
2018-04-18 18:30:45 +03:00
|
|
|
}
|
|
|
|
|
return Message_REGISTER
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Message) GetRegister() *Message_Register {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.Register
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Message) GetRegisterResponse() *Message_RegisterResponse {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.RegisterResponse
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Message) GetDiscover() *Message_Discover {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.Discover
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Message) GetDiscoverResponse() *Message_DiscoverResponse {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.DiscoverResponse
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Message_Register struct {
|
2021-10-01 13:39:50 -04:00
|
|
|
Ns string `protobuf:"bytes,1,opt,name=ns,proto3" json:"ns,omitempty"`
|
|
|
|
|
Peer *pb.Envelope `protobuf:"bytes,2,opt,name=peer,proto3" json:"peer,omitempty"`
|
|
|
|
|
Ttl int64 `protobuf:"varint,3,opt,name=ttl,proto3" json:"ttl,omitempty"`
|
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2018-04-18 18:30:45 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Message_Register) Reset() { *m = Message_Register{} }
|
|
|
|
|
func (m *Message_Register) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*Message_Register) ProtoMessage() {}
|
2019-01-18 15:22:49 +02:00
|
|
|
func (*Message_Register) Descriptor() ([]byte, []int) {
|
2021-10-01 13:39:50 -04:00
|
|
|
return fileDescriptor_ef0a1d5737df1c36, []int{0, 0}
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
|
|
|
|
func (m *Message_Register) XXX_Unmarshal(b []byte) error {
|
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
|
}
|
|
|
|
|
func (m *Message_Register) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
|
if deterministic {
|
|
|
|
|
return xxx_messageInfo_Message_Register.Marshal(b, m, deterministic)
|
|
|
|
|
} else {
|
|
|
|
|
b = b[:cap(b)]
|
2021-09-29 14:33:27 -04:00
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
2019-01-18 15:22:49 +02:00
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return b[:n], nil
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
func (m *Message_Register) XXX_Merge(src proto.Message) {
|
|
|
|
|
xxx_messageInfo_Message_Register.Merge(m, src)
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
|
|
|
|
func (m *Message_Register) XXX_Size() int {
|
|
|
|
|
return m.Size()
|
|
|
|
|
}
|
|
|
|
|
func (m *Message_Register) XXX_DiscardUnknown() {
|
|
|
|
|
xxx_messageInfo_Message_Register.DiscardUnknown(m)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_Message_Register proto.InternalMessageInfo
|
2018-04-18 18:30:45 +03:00
|
|
|
|
|
|
|
|
func (m *Message_Register) GetNs() string {
|
2021-09-29 14:33:27 -04:00
|
|
|
if m != nil {
|
|
|
|
|
return m.Ns
|
2018-04-18 18:30:45 +03:00
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
2021-10-01 13:39:50 -04:00
|
|
|
func (m *Message_Register) GetPeer() *pb.Envelope {
|
2018-04-18 18:30:45 +03:00
|
|
|
if m != nil {
|
|
|
|
|
return m.Peer
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Message_Register) GetTtl() int64 {
|
2021-09-29 14:33:27 -04:00
|
|
|
if m != nil {
|
|
|
|
|
return m.Ttl
|
2018-04-18 18:30:45 +03:00
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Message_RegisterResponse struct {
|
2021-09-29 14:33:27 -04:00
|
|
|
Status Message_ResponseStatus `protobuf:"varint,1,opt,name=status,proto3,enum=rendezvous.pb.Message_ResponseStatus" json:"status,omitempty"`
|
|
|
|
|
StatusText string `protobuf:"bytes,2,opt,name=statusText,proto3" json:"statusText,omitempty"`
|
|
|
|
|
Ttl int64 `protobuf:"varint,3,opt,name=ttl,proto3" json:"ttl,omitempty"`
|
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2018-04-18 18:30:45 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Message_RegisterResponse) Reset() { *m = Message_RegisterResponse{} }
|
|
|
|
|
func (m *Message_RegisterResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*Message_RegisterResponse) ProtoMessage() {}
|
2019-01-18 15:22:49 +02:00
|
|
|
func (*Message_RegisterResponse) Descriptor() ([]byte, []int) {
|
2021-10-01 13:39:50 -04:00
|
|
|
return fileDescriptor_ef0a1d5737df1c36, []int{0, 1}
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
|
|
|
|
func (m *Message_RegisterResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
|
}
|
|
|
|
|
func (m *Message_RegisterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
|
if deterministic {
|
|
|
|
|
return xxx_messageInfo_Message_RegisterResponse.Marshal(b, m, deterministic)
|
|
|
|
|
} else {
|
|
|
|
|
b = b[:cap(b)]
|
2021-09-29 14:33:27 -04:00
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
2019-01-18 15:22:49 +02:00
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return b[:n], nil
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
func (m *Message_RegisterResponse) XXX_Merge(src proto.Message) {
|
|
|
|
|
xxx_messageInfo_Message_RegisterResponse.Merge(m, src)
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
|
|
|
|
func (m *Message_RegisterResponse) XXX_Size() int {
|
|
|
|
|
return m.Size()
|
|
|
|
|
}
|
|
|
|
|
func (m *Message_RegisterResponse) XXX_DiscardUnknown() {
|
|
|
|
|
xxx_messageInfo_Message_RegisterResponse.DiscardUnknown(m)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_Message_RegisterResponse proto.InternalMessageInfo
|
2018-04-18 18:30:45 +03:00
|
|
|
|
2018-04-21 12:05:36 +03:00
|
|
|
func (m *Message_RegisterResponse) GetStatus() Message_ResponseStatus {
|
2021-09-29 14:33:27 -04:00
|
|
|
if m != nil {
|
|
|
|
|
return m.Status
|
2018-04-18 18:30:45 +03:00
|
|
|
}
|
|
|
|
|
return Message_OK
|
|
|
|
|
}
|
|
|
|
|
|
2018-04-21 12:05:36 +03:00
|
|
|
func (m *Message_RegisterResponse) GetStatusText() string {
|
2021-09-29 14:33:27 -04:00
|
|
|
if m != nil {
|
|
|
|
|
return m.StatusText
|
2018-04-21 12:05:36 +03:00
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
2019-01-18 15:22:49 +02:00
|
|
|
func (m *Message_RegisterResponse) GetTtl() int64 {
|
2021-09-29 14:33:27 -04:00
|
|
|
if m != nil {
|
|
|
|
|
return m.Ttl
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
2018-04-18 18:30:45 +03:00
|
|
|
type Message_Discover struct {
|
2021-09-29 14:33:27 -04:00
|
|
|
Ns string `protobuf:"bytes,1,opt,name=ns,proto3" json:"ns,omitempty"`
|
|
|
|
|
Limit int64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
|
2019-01-18 15:22:49 +02:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2018-04-18 18:30:45 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Message_Discover) Reset() { *m = Message_Discover{} }
|
|
|
|
|
func (m *Message_Discover) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*Message_Discover) ProtoMessage() {}
|
2019-01-18 15:22:49 +02:00
|
|
|
func (*Message_Discover) Descriptor() ([]byte, []int) {
|
2021-10-01 13:39:50 -04:00
|
|
|
return fileDescriptor_ef0a1d5737df1c36, []int{0, 2}
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
|
|
|
|
func (m *Message_Discover) XXX_Unmarshal(b []byte) error {
|
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
|
}
|
|
|
|
|
func (m *Message_Discover) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
|
if deterministic {
|
|
|
|
|
return xxx_messageInfo_Message_Discover.Marshal(b, m, deterministic)
|
|
|
|
|
} else {
|
|
|
|
|
b = b[:cap(b)]
|
2021-09-29 14:33:27 -04:00
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
2019-01-18 15:22:49 +02:00
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return b[:n], nil
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
func (m *Message_Discover) XXX_Merge(src proto.Message) {
|
|
|
|
|
xxx_messageInfo_Message_Discover.Merge(m, src)
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
|
|
|
|
func (m *Message_Discover) XXX_Size() int {
|
|
|
|
|
return m.Size()
|
|
|
|
|
}
|
|
|
|
|
func (m *Message_Discover) XXX_DiscardUnknown() {
|
|
|
|
|
xxx_messageInfo_Message_Discover.DiscardUnknown(m)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_Message_Discover proto.InternalMessageInfo
|
2018-04-18 18:30:45 +03:00
|
|
|
|
|
|
|
|
func (m *Message_Discover) GetNs() string {
|
2021-09-29 14:33:27 -04:00
|
|
|
if m != nil {
|
|
|
|
|
return m.Ns
|
2018-04-18 18:30:45 +03:00
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Message_Discover) GetLimit() int64 {
|
|
|
|
|
if m != nil {
|
2021-09-29 14:33:27 -04:00
|
|
|
return m.Limit
|
2018-04-18 18:30:45 +03:00
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
return 0
|
2018-04-18 18:30:45 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Message_DiscoverResponse struct {
|
2021-09-29 14:33:27 -04:00
|
|
|
Registrations []*Message_Register `protobuf:"bytes,1,rep,name=registrations,proto3" json:"registrations,omitempty"`
|
|
|
|
|
Status Message_ResponseStatus `protobuf:"varint,3,opt,name=status,proto3,enum=rendezvous.pb.Message_ResponseStatus" json:"status,omitempty"`
|
|
|
|
|
StatusText string `protobuf:"bytes,4,opt,name=statusText,proto3" json:"statusText,omitempty"`
|
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2018-04-18 18:30:45 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Message_DiscoverResponse) Reset() { *m = Message_DiscoverResponse{} }
|
|
|
|
|
func (m *Message_DiscoverResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*Message_DiscoverResponse) ProtoMessage() {}
|
2019-01-18 15:22:49 +02:00
|
|
|
func (*Message_DiscoverResponse) Descriptor() ([]byte, []int) {
|
2021-10-01 13:39:50 -04:00
|
|
|
return fileDescriptor_ef0a1d5737df1c36, []int{0, 3}
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
|
|
|
|
func (m *Message_DiscoverResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
|
}
|
|
|
|
|
func (m *Message_DiscoverResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
|
if deterministic {
|
|
|
|
|
return xxx_messageInfo_Message_DiscoverResponse.Marshal(b, m, deterministic)
|
|
|
|
|
} else {
|
|
|
|
|
b = b[:cap(b)]
|
2021-09-29 14:33:27 -04:00
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
2019-01-18 15:22:49 +02:00
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return b[:n], nil
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
func (m *Message_DiscoverResponse) XXX_Merge(src proto.Message) {
|
|
|
|
|
xxx_messageInfo_Message_DiscoverResponse.Merge(m, src)
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
|
|
|
|
func (m *Message_DiscoverResponse) XXX_Size() int {
|
|
|
|
|
return m.Size()
|
|
|
|
|
}
|
|
|
|
|
func (m *Message_DiscoverResponse) XXX_DiscardUnknown() {
|
|
|
|
|
xxx_messageInfo_Message_DiscoverResponse.DiscardUnknown(m)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_Message_DiscoverResponse proto.InternalMessageInfo
|
2018-04-18 18:30:45 +03:00
|
|
|
|
|
|
|
|
func (m *Message_DiscoverResponse) GetRegistrations() []*Message_Register {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.Registrations
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
2018-04-21 12:05:36 +03:00
|
|
|
func (m *Message_DiscoverResponse) GetStatus() Message_ResponseStatus {
|
2021-09-29 14:33:27 -04:00
|
|
|
if m != nil {
|
|
|
|
|
return m.Status
|
2018-04-21 12:05:36 +03:00
|
|
|
}
|
|
|
|
|
return Message_OK
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Message_DiscoverResponse) GetStatusText() string {
|
2021-09-29 14:33:27 -04:00
|
|
|
if m != nil {
|
|
|
|
|
return m.StatusText
|
2018-04-21 12:05:36 +03:00
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
2018-04-18 18:30:45 +03:00
|
|
|
func init() {
|
2021-09-29 14:33:27 -04:00
|
|
|
proto.RegisterEnum("rendezvous.pb.Message_MessageType", Message_MessageType_name, Message_MessageType_value)
|
|
|
|
|
proto.RegisterEnum("rendezvous.pb.Message_ResponseStatus", Message_ResponseStatus_name, Message_ResponseStatus_value)
|
2018-04-18 18:30:45 +03:00
|
|
|
proto.RegisterType((*Message)(nil), "rendezvous.pb.Message")
|
|
|
|
|
proto.RegisterType((*Message_Register)(nil), "rendezvous.pb.Message.Register")
|
|
|
|
|
proto.RegisterType((*Message_RegisterResponse)(nil), "rendezvous.pb.Message.RegisterResponse")
|
|
|
|
|
proto.RegisterType((*Message_Discover)(nil), "rendezvous.pb.Message.Discover")
|
|
|
|
|
proto.RegisterType((*Message_DiscoverResponse)(nil), "rendezvous.pb.Message.DiscoverResponse")
|
|
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
|
|
|
|
|
func init() { proto.RegisterFile("rendezvous.proto", fileDescriptor_ef0a1d5737df1c36) }
|
|
|
|
|
|
|
|
|
|
var fileDescriptor_ef0a1d5737df1c36 = []byte{
|
2021-10-04 14:08:34 -04:00
|
|
|
// 543 bytes of a gzipped FileDescriptorProto
|
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0xcb, 0x6e, 0xd3, 0x40,
|
|
|
|
|
0x14, 0xcd, 0xd8, 0x69, 0x48, 0x6f, 0x49, 0x34, 0x9d, 0x52, 0x11, 0x65, 0x11, 0xaa, 0x48, 0xa8,
|
|
|
|
|
0x5d, 0xa5, 0xa8, 0x48, 0x6c, 0x10, 0x0b, 0xb7, 0x19, 0xc0, 0xc2, 0xb5, 0xa3, 0x6b, 0x27, 0x48,
|
|
|
|
|
0x6c, 0xac, 0xa4, 0x19, 0x2a, 0x4b, 0xc1, 0xb6, 0x3c, 0x6e, 0x44, 0xd9, 0xf2, 0x03, 0x2c, 0xd9,
|
|
|
|
|
0xb1, 0x47, 0x7c, 0x00, 0x9f, 0xd0, 0x25, 0x9f, 0x80, 0xc2, 0x8f, 0x20, 0xbf, 0xd2, 0x3c, 0x68,
|
|
|
|
|
0x41, 0x62, 0x95, 0xb9, 0x77, 0xce, 0x39, 0x39, 0xf7, 0x5c, 0xdb, 0x40, 0x23, 0xe1, 0x8f, 0xc5,
|
|
|
|
|
0x87, 0x69, 0x70, 0x21, 0x3b, 0x61, 0x14, 0xc4, 0x01, 0xab, 0x2d, 0x76, 0x46, 0xcd, 0x46, 0x24,
|
|
|
|
|
0xce, 0x82, 0x68, 0x7c, 0x18, 0x8e, 0x0e, 0x85, 0x3f, 0x15, 0x93, 0x20, 0x14, 0x19, 0xb0, 0xfd,
|
|
|
|
|
0xb5, 0x0a, 0x77, 0x4e, 0x85, 0x94, 0xc3, 0x73, 0xc1, 0x9e, 0x40, 0x39, 0xbe, 0x0c, 0x45, 0x83,
|
|
|
|
|
0xec, 0x91, 0x83, 0xfa, 0x51, 0xbb, 0xb3, 0xa4, 0xd1, 0xc9, 0x51, 0xc5, 0xaf, 0x73, 0x19, 0x0a,
|
|
|
|
|
0x4c, 0xf1, 0xec, 0x29, 0x54, 0x23, 0x71, 0xee, 0xc9, 0x58, 0x44, 0x0d, 0x65, 0x8f, 0x1c, 0x6c,
|
|
|
|
|
0x1d, 0x3d, 0xb8, 0x81, 0x8b, 0x39, 0x0c, 0xe7, 0x04, 0x66, 0x27, 0xee, 0xf3, 0xae, 0x90, 0x61,
|
|
|
|
|
0xe0, 0x4b, 0xd1, 0x50, 0x53, 0x91, 0xfd, 0xbf, 0x89, 0xe4, 0x70, 0x5c, 0x13, 0x48, 0x1c, 0x8d,
|
|
|
|
|
0x3d, 0x79, 0x16, 0x4c, 0x45, 0xd4, 0x28, 0xdf, 0xea, 0xa8, 0x9b, 0xc3, 0x70, 0x4e, 0x48, 0x1c,
|
|
|
|
|
0x15, 0xe7, 0xb9, 0xa3, 0x8d, 0x5b, 0x1d, 0x75, 0x57, 0xe0, 0xb8, 0x26, 0xd0, 0xec, 0x43, 0xb5,
|
|
|
|
|
0xf0, 0xcd, 0xea, 0xa0, 0xf8, 0x32, 0x4d, 0x79, 0x13, 0x15, 0x5f, 0xb2, 0x7d, 0x28, 0x87, 0x62,
|
|
|
|
|
0x9e, 0xdd, 0x4e, 0x27, 0x5b, 0x56, 0xf2, 0x07, 0x3c, 0x5f, 0x16, 0xa6, 0x00, 0x46, 0x41, 0x8d,
|
|
|
|
|
0xe3, 0x49, 0x1a, 0x8f, 0x8a, 0xc9, 0xb1, 0xf9, 0x91, 0x00, 0x5d, 0xcd, 0x83, 0x3d, 0x83, 0x8a,
|
|
|
|
|
0x8c, 0x87, 0xf1, 0x85, 0xcc, 0x37, 0xf9, 0xf0, 0xc6, 0x20, 0x33, 0x82, 0x9d, 0x82, 0x31, 0x27,
|
|
|
|
|
0xb1, 0x16, 0x40, 0x76, 0x72, 0xc4, 0xfb, 0x38, 0x35, 0xb5, 0x89, 0x0b, 0x9d, 0x3f, 0xb8, 0x78,
|
|
|
|
|
0x04, 0xd5, 0x22, 0x82, 0xb5, 0xe1, 0xee, 0xc1, 0xc6, 0xc4, 0x7b, 0xe7, 0x65, 0x42, 0x2a, 0x66,
|
|
|
|
|
0x45, 0xf3, 0x3b, 0x01, 0xba, 0x9a, 0x1a, 0xe3, 0x50, 0xcb, 0x36, 0x19, 0x0d, 0x63, 0x2f, 0x48,
|
|
|
|
|
0x55, 0xd4, 0x7f, 0x79, 0x98, 0x96, 0x59, 0x0b, 0xe3, 0xab, 0xff, 0x3f, 0x7e, 0x79, 0x75, 0xfc,
|
|
|
|
|
0xf6, 0x6b, 0xd8, 0x5a, 0x78, 0x05, 0xd8, 0x5d, 0xa8, 0x22, 0x7f, 0xa1, 0xdb, 0x0e, 0x47, 0x5a,
|
|
|
|
|
0x62, 0xbb, 0xb0, 0x5d, 0x54, 0x2e, 0x72, 0xbb, 0x67, 0x99, 0x36, 0xa7, 0x24, 0x01, 0x75, 0x75,
|
|
|
|
|
0xfb, 0xc4, 0x1a, 0x70, 0xa4, 0x4a, 0x02, 0x2a, 0xaa, 0x6b, 0x90, 0xda, 0xfe, 0x42, 0xa0, 0xbe,
|
|
|
|
|
0xec, 0x89, 0x55, 0x40, 0xb1, 0x5e, 0xd1, 0x12, 0xbb, 0x0f, 0x3b, 0xdc, 0xd5, 0xcd, 0x81, 0x66,
|
|
|
|
|
0xe8, 0x5d, 0xd7, 0xd4, 0x4e, 0xb9, 0xdd, 0xd3, 0x4e, 0x38, 0x1d, 0x2f, 0x5f, 0xf4, 0x38, 0x47,
|
|
|
|
|
0x57, 0x37, 0x9f, 0x5b, 0x54, 0xb0, 0x6d, 0xa8, 0x5d, 0x5f, 0x38, 0x8e, 0x41, 0xdf, 0xb2, 0x5d,
|
|
|
|
|
0xa0, 0xdc, 0x35, 0x2d, 0xc7, 0xd5, 0xfa, 0xce, 0x4b, 0x0b, 0xf5, 0x37, 0xbc, 0x4b, 0xaf, 0x48,
|
|
|
|
|
0xd6, 0xd6, 0x4d, 0x87, 0xa3, 0xa9, 0x19, 0x2e, 0x47, 0xb4, 0x90, 0x7e, 0x53, 0x18, 0x4b, 0x04,
|
|
|
|
|
0xfa, 0xa6, 0x36, 0xd0, 0x74, 0x43, 0x3b, 0x36, 0x38, 0xfd, 0xa4, 0x1e, 0xd3, 0xab, 0x59, 0x8b,
|
|
|
|
|
0xfc, 0x98, 0xb5, 0xc8, 0xcf, 0x59, 0x8b, 0x7c, 0xfe, 0xd5, 0x2a, 0x8d, 0x2a, 0xe9, 0x57, 0xe4,
|
|
|
|
|
0xf1, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x12, 0xe2, 0x82, 0x67, 0x82, 0x04, 0x00, 0x00,
|
2021-09-29 14:33:27 -04:00
|
|
|
}
|
|
|
|
|
|
2019-01-18 15:22:49 +02:00
|
|
|
func (m *Message) Marshal() (dAtA []byte, err error) {
|
|
|
|
|
size := m.Size()
|
|
|
|
|
dAtA = make([]byte, size)
|
2021-09-29 14:33:27 -04:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 15:22:49 +02:00
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return dAtA[:n], nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Message) MarshalTo(dAtA []byte) (int, error) {
|
2021-09-29 14:33:27 -04:00
|
|
|
size := m.Size()
|
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
|
i := len(dAtA)
|
2019-01-18 15:22:49 +02:00
|
|
|
_ = i
|
|
|
|
|
var l int
|
|
|
|
|
_ = l
|
2021-09-29 14:33:27 -04:00
|
|
|
if m.XXX_unrecognized != nil {
|
|
|
|
|
i -= len(m.XXX_unrecognized)
|
|
|
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
if m.DiscoverResponse != nil {
|
|
|
|
|
{
|
|
|
|
|
size, err := m.DiscoverResponse.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
|
if err != nil {
|
|
|
|
|
return 0, err
|
|
|
|
|
}
|
|
|
|
|
i -= size
|
|
|
|
|
i = encodeVarintRendezvous(dAtA, i, uint64(size))
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
i--
|
2021-10-01 13:39:50 -04:00
|
|
|
dAtA[i] = 0x2a
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
if m.Discover != nil {
|
|
|
|
|
{
|
|
|
|
|
size, err := m.Discover.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
|
if err != nil {
|
|
|
|
|
return 0, err
|
|
|
|
|
}
|
|
|
|
|
i -= size
|
|
|
|
|
i = encodeVarintRendezvous(dAtA, i, uint64(size))
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
i--
|
|
|
|
|
dAtA[i] = 0x22
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
if m.RegisterResponse != nil {
|
|
|
|
|
{
|
|
|
|
|
size, err := m.RegisterResponse.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
|
if err != nil {
|
|
|
|
|
return 0, err
|
|
|
|
|
}
|
|
|
|
|
i -= size
|
|
|
|
|
i = encodeVarintRendezvous(dAtA, i, uint64(size))
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
i--
|
|
|
|
|
dAtA[i] = 0x1a
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
if m.Register != nil {
|
|
|
|
|
{
|
|
|
|
|
size, err := m.Register.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
|
if err != nil {
|
|
|
|
|
return 0, err
|
|
|
|
|
}
|
|
|
|
|
i -= size
|
|
|
|
|
i = encodeVarintRendezvous(dAtA, i, uint64(size))
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
i--
|
|
|
|
|
dAtA[i] = 0x12
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
if m.Type != 0 {
|
|
|
|
|
i = encodeVarintRendezvous(dAtA, i, uint64(m.Type))
|
|
|
|
|
i--
|
|
|
|
|
dAtA[i] = 0x8
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
return len(dAtA) - i, nil
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Message_Register) Marshal() (dAtA []byte, err error) {
|
|
|
|
|
size := m.Size()
|
|
|
|
|
dAtA = make([]byte, size)
|
2021-09-29 14:33:27 -04:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 15:22:49 +02:00
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return dAtA[:n], nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Message_Register) MarshalTo(dAtA []byte) (int, error) {
|
2021-09-29 14:33:27 -04:00
|
|
|
size := m.Size()
|
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Message_Register) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
|
i := len(dAtA)
|
2019-01-18 15:22:49 +02:00
|
|
|
_ = i
|
|
|
|
|
var l int
|
|
|
|
|
_ = l
|
2021-09-29 14:33:27 -04:00
|
|
|
if m.XXX_unrecognized != nil {
|
|
|
|
|
i -= len(m.XXX_unrecognized)
|
|
|
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
|
|
|
}
|
|
|
|
|
if m.Ttl != 0 {
|
|
|
|
|
i = encodeVarintRendezvous(dAtA, i, uint64(m.Ttl))
|
|
|
|
|
i--
|
|
|
|
|
dAtA[i] = 0x18
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
|
|
|
|
if m.Peer != nil {
|
2021-09-29 14:33:27 -04:00
|
|
|
{
|
|
|
|
|
size, err := m.Peer.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
|
if err != nil {
|
|
|
|
|
return 0, err
|
|
|
|
|
}
|
|
|
|
|
i -= size
|
|
|
|
|
i = encodeVarintRendezvous(dAtA, i, uint64(size))
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
i--
|
|
|
|
|
dAtA[i] = 0x12
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
if len(m.Ns) > 0 {
|
|
|
|
|
i -= len(m.Ns)
|
|
|
|
|
copy(dAtA[i:], m.Ns)
|
|
|
|
|
i = encodeVarintRendezvous(dAtA, i, uint64(len(m.Ns)))
|
|
|
|
|
i--
|
|
|
|
|
dAtA[i] = 0xa
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
return len(dAtA) - i, nil
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Message_RegisterResponse) Marshal() (dAtA []byte, err error) {
|
|
|
|
|
size := m.Size()
|
|
|
|
|
dAtA = make([]byte, size)
|
2021-09-29 14:33:27 -04:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 15:22:49 +02:00
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return dAtA[:n], nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Message_RegisterResponse) MarshalTo(dAtA []byte) (int, error) {
|
2021-09-29 14:33:27 -04:00
|
|
|
size := m.Size()
|
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Message_RegisterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
|
i := len(dAtA)
|
2019-01-18 15:22:49 +02:00
|
|
|
_ = i
|
|
|
|
|
var l int
|
|
|
|
|
_ = l
|
2021-09-29 14:33:27 -04:00
|
|
|
if m.XXX_unrecognized != nil {
|
|
|
|
|
i -= len(m.XXX_unrecognized)
|
|
|
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
if m.Ttl != 0 {
|
|
|
|
|
i = encodeVarintRendezvous(dAtA, i, uint64(m.Ttl))
|
|
|
|
|
i--
|
2019-01-18 15:22:49 +02:00
|
|
|
dAtA[i] = 0x18
|
|
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
if len(m.StatusText) > 0 {
|
|
|
|
|
i -= len(m.StatusText)
|
|
|
|
|
copy(dAtA[i:], m.StatusText)
|
|
|
|
|
i = encodeVarintRendezvous(dAtA, i, uint64(len(m.StatusText)))
|
|
|
|
|
i--
|
|
|
|
|
dAtA[i] = 0x12
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
if m.Status != 0 {
|
|
|
|
|
i = encodeVarintRendezvous(dAtA, i, uint64(m.Status))
|
|
|
|
|
i--
|
|
|
|
|
dAtA[i] = 0x8
|
|
|
|
|
}
|
|
|
|
|
return len(dAtA) - i, nil
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Message_Discover) Marshal() (dAtA []byte, err error) {
|
|
|
|
|
size := m.Size()
|
|
|
|
|
dAtA = make([]byte, size)
|
2021-09-29 14:33:27 -04:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 15:22:49 +02:00
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return dAtA[:n], nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Message_Discover) MarshalTo(dAtA []byte) (int, error) {
|
2021-09-29 14:33:27 -04:00
|
|
|
size := m.Size()
|
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Message_Discover) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
|
i := len(dAtA)
|
2019-01-18 15:22:49 +02:00
|
|
|
_ = i
|
|
|
|
|
var l int
|
|
|
|
|
_ = l
|
2021-09-29 14:33:27 -04:00
|
|
|
if m.XXX_unrecognized != nil {
|
|
|
|
|
i -= len(m.XXX_unrecognized)
|
|
|
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
if m.Limit != 0 {
|
|
|
|
|
i = encodeVarintRendezvous(dAtA, i, uint64(m.Limit))
|
|
|
|
|
i--
|
2019-01-18 15:22:49 +02:00
|
|
|
dAtA[i] = 0x10
|
|
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
if len(m.Ns) > 0 {
|
|
|
|
|
i -= len(m.Ns)
|
|
|
|
|
copy(dAtA[i:], m.Ns)
|
|
|
|
|
i = encodeVarintRendezvous(dAtA, i, uint64(len(m.Ns)))
|
|
|
|
|
i--
|
|
|
|
|
dAtA[i] = 0xa
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
return len(dAtA) - i, nil
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Message_DiscoverResponse) Marshal() (dAtA []byte, err error) {
|
|
|
|
|
size := m.Size()
|
|
|
|
|
dAtA = make([]byte, size)
|
2021-09-29 14:33:27 -04:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 15:22:49 +02:00
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return dAtA[:n], nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Message_DiscoverResponse) MarshalTo(dAtA []byte) (int, error) {
|
2021-09-29 14:33:27 -04:00
|
|
|
size := m.Size()
|
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Message_DiscoverResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
|
i := len(dAtA)
|
2019-01-18 15:22:49 +02:00
|
|
|
_ = i
|
|
|
|
|
var l int
|
|
|
|
|
_ = l
|
2021-09-29 14:33:27 -04:00
|
|
|
if m.XXX_unrecognized != nil {
|
|
|
|
|
i -= len(m.XXX_unrecognized)
|
|
|
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
|
|
|
}
|
|
|
|
|
if len(m.StatusText) > 0 {
|
|
|
|
|
i -= len(m.StatusText)
|
|
|
|
|
copy(dAtA[i:], m.StatusText)
|
|
|
|
|
i = encodeVarintRendezvous(dAtA, i, uint64(len(m.StatusText)))
|
|
|
|
|
i--
|
|
|
|
|
dAtA[i] = 0x22
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
if m.Status != 0 {
|
|
|
|
|
i = encodeVarintRendezvous(dAtA, i, uint64(m.Status))
|
|
|
|
|
i--
|
2019-01-18 15:22:49 +02:00
|
|
|
dAtA[i] = 0x18
|
|
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
if len(m.Registrations) > 0 {
|
|
|
|
|
for iNdEx := len(m.Registrations) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
|
{
|
|
|
|
|
size, err := m.Registrations[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
|
if err != nil {
|
|
|
|
|
return 0, err
|
|
|
|
|
}
|
|
|
|
|
i -= size
|
|
|
|
|
i = encodeVarintRendezvous(dAtA, i, uint64(size))
|
|
|
|
|
}
|
|
|
|
|
i--
|
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
|
}
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
return len(dAtA) - i, nil
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func encodeVarintRendezvous(dAtA []byte, offset int, v uint64) int {
|
2021-09-29 14:33:27 -04:00
|
|
|
offset -= sovRendezvous(v)
|
|
|
|
|
base := offset
|
2019-01-18 15:22:49 +02:00
|
|
|
for v >= 1<<7 {
|
|
|
|
|
dAtA[offset] = uint8(v&0x7f | 0x80)
|
|
|
|
|
v >>= 7
|
|
|
|
|
offset++
|
|
|
|
|
}
|
|
|
|
|
dAtA[offset] = uint8(v)
|
2021-09-29 14:33:27 -04:00
|
|
|
return base
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
|
|
|
|
func (m *Message) Size() (n int) {
|
|
|
|
|
if m == nil {
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
var l int
|
|
|
|
|
_ = l
|
2021-09-29 14:33:27 -04:00
|
|
|
if m.Type != 0 {
|
|
|
|
|
n += 1 + sovRendezvous(uint64(m.Type))
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
|
|
|
|
if m.Register != nil {
|
|
|
|
|
l = m.Register.Size()
|
|
|
|
|
n += 1 + l + sovRendezvous(uint64(l))
|
|
|
|
|
}
|
|
|
|
|
if m.RegisterResponse != nil {
|
|
|
|
|
l = m.RegisterResponse.Size()
|
|
|
|
|
n += 1 + l + sovRendezvous(uint64(l))
|
|
|
|
|
}
|
|
|
|
|
if m.Discover != nil {
|
|
|
|
|
l = m.Discover.Size()
|
|
|
|
|
n += 1 + l + sovRendezvous(uint64(l))
|
|
|
|
|
}
|
|
|
|
|
if m.DiscoverResponse != nil {
|
|
|
|
|
l = m.DiscoverResponse.Size()
|
|
|
|
|
n += 1 + l + sovRendezvous(uint64(l))
|
|
|
|
|
}
|
|
|
|
|
if m.XXX_unrecognized != nil {
|
|
|
|
|
n += len(m.XXX_unrecognized)
|
|
|
|
|
}
|
|
|
|
|
return n
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Message_Register) Size() (n int) {
|
|
|
|
|
if m == nil {
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
var l int
|
|
|
|
|
_ = l
|
2021-09-29 14:33:27 -04:00
|
|
|
l = len(m.Ns)
|
|
|
|
|
if l > 0 {
|
2019-01-18 15:22:49 +02:00
|
|
|
n += 1 + l + sovRendezvous(uint64(l))
|
|
|
|
|
}
|
|
|
|
|
if m.Peer != nil {
|
|
|
|
|
l = m.Peer.Size()
|
|
|
|
|
n += 1 + l + sovRendezvous(uint64(l))
|
|
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
if m.Ttl != 0 {
|
|
|
|
|
n += 1 + sovRendezvous(uint64(m.Ttl))
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
|
|
|
|
if m.XXX_unrecognized != nil {
|
|
|
|
|
n += len(m.XXX_unrecognized)
|
|
|
|
|
}
|
|
|
|
|
return n
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Message_RegisterResponse) Size() (n int) {
|
|
|
|
|
if m == nil {
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
var l int
|
|
|
|
|
_ = l
|
2021-09-29 14:33:27 -04:00
|
|
|
if m.Status != 0 {
|
|
|
|
|
n += 1 + sovRendezvous(uint64(m.Status))
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
l = len(m.StatusText)
|
|
|
|
|
if l > 0 {
|
2019-01-18 15:22:49 +02:00
|
|
|
n += 1 + l + sovRendezvous(uint64(l))
|
|
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
if m.Ttl != 0 {
|
|
|
|
|
n += 1 + sovRendezvous(uint64(m.Ttl))
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
|
|
|
|
if m.XXX_unrecognized != nil {
|
|
|
|
|
n += len(m.XXX_unrecognized)
|
|
|
|
|
}
|
|
|
|
|
return n
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Message_Discover) Size() (n int) {
|
|
|
|
|
if m == nil {
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
var l int
|
|
|
|
|
_ = l
|
2021-09-29 14:33:27 -04:00
|
|
|
l = len(m.Ns)
|
|
|
|
|
if l > 0 {
|
2019-01-18 15:22:49 +02:00
|
|
|
n += 1 + l + sovRendezvous(uint64(l))
|
|
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
if m.Limit != 0 {
|
|
|
|
|
n += 1 + sovRendezvous(uint64(m.Limit))
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
|
|
|
|
if m.XXX_unrecognized != nil {
|
|
|
|
|
n += len(m.XXX_unrecognized)
|
|
|
|
|
}
|
|
|
|
|
return n
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Message_DiscoverResponse) Size() (n int) {
|
|
|
|
|
if m == nil {
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
var l int
|
|
|
|
|
_ = l
|
|
|
|
|
if len(m.Registrations) > 0 {
|
|
|
|
|
for _, e := range m.Registrations {
|
|
|
|
|
l = e.Size()
|
|
|
|
|
n += 1 + l + sovRendezvous(uint64(l))
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
if m.Status != 0 {
|
|
|
|
|
n += 1 + sovRendezvous(uint64(m.Status))
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
l = len(m.StatusText)
|
|
|
|
|
if l > 0 {
|
2019-01-18 15:22:49 +02:00
|
|
|
n += 1 + l + sovRendezvous(uint64(l))
|
|
|
|
|
}
|
|
|
|
|
if m.XXX_unrecognized != nil {
|
|
|
|
|
n += len(m.XXX_unrecognized)
|
|
|
|
|
}
|
|
|
|
|
return n
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func sovRendezvous(x uint64) (n int) {
|
2021-09-29 14:33:27 -04:00
|
|
|
return (math_bits.Len64(x|1) + 6) / 7
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
|
|
|
|
func sozRendezvous(x uint64) (n int) {
|
|
|
|
|
return sovRendezvous(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
|
|
|
|
}
|
|
|
|
|
func (m *Message) Unmarshal(dAtA []byte) error {
|
|
|
|
|
l := len(dAtA)
|
|
|
|
|
iNdEx := 0
|
|
|
|
|
for iNdEx < l {
|
|
|
|
|
preIndex := iNdEx
|
|
|
|
|
var wire uint64
|
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
|
if shift >= 64 {
|
|
|
|
|
return ErrIntOverflowRendezvous
|
|
|
|
|
}
|
|
|
|
|
if iNdEx >= l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
|
iNdEx++
|
2021-09-29 14:33:27 -04:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 15:22:49 +02:00
|
|
|
if b < 0x80 {
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
|
if wireType == 4 {
|
|
|
|
|
return fmt.Errorf("proto: Message: wiretype end group for non-group")
|
|
|
|
|
}
|
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
|
return fmt.Errorf("proto: Message: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
|
}
|
|
|
|
|
switch fieldNum {
|
|
|
|
|
case 1:
|
|
|
|
|
if wireType != 0 {
|
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
|
|
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
m.Type = 0
|
2019-01-18 15:22:49 +02:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
|
if shift >= 64 {
|
|
|
|
|
return ErrIntOverflowRendezvous
|
|
|
|
|
}
|
|
|
|
|
if iNdEx >= l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
|
iNdEx++
|
2021-09-29 14:33:27 -04:00
|
|
|
m.Type |= Message_MessageType(b&0x7F) << shift
|
2019-01-18 15:22:49 +02:00
|
|
|
if b < 0x80 {
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
case 2:
|
|
|
|
|
if wireType != 2 {
|
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Register", wireType)
|
|
|
|
|
}
|
|
|
|
|
var msglen int
|
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
|
if shift >= 64 {
|
|
|
|
|
return ErrIntOverflowRendezvous
|
|
|
|
|
}
|
|
|
|
|
if iNdEx >= l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
|
iNdEx++
|
2021-09-29 14:33:27 -04:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 15:22:49 +02:00
|
|
|
if b < 0x80 {
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if msglen < 0 {
|
|
|
|
|
return ErrInvalidLengthRendezvous
|
|
|
|
|
}
|
|
|
|
|
postIndex := iNdEx + msglen
|
2021-09-29 14:33:27 -04:00
|
|
|
if postIndex < 0 {
|
|
|
|
|
return ErrInvalidLengthRendezvous
|
|
|
|
|
}
|
2019-01-18 15:22:49 +02:00
|
|
|
if postIndex > l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
if m.Register == nil {
|
|
|
|
|
m.Register = &Message_Register{}
|
|
|
|
|
}
|
|
|
|
|
if err := m.Register.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
iNdEx = postIndex
|
|
|
|
|
case 3:
|
|
|
|
|
if wireType != 2 {
|
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field RegisterResponse", wireType)
|
|
|
|
|
}
|
|
|
|
|
var msglen int
|
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
|
if shift >= 64 {
|
|
|
|
|
return ErrIntOverflowRendezvous
|
|
|
|
|
}
|
|
|
|
|
if iNdEx >= l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
|
iNdEx++
|
2021-09-29 14:33:27 -04:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 15:22:49 +02:00
|
|
|
if b < 0x80 {
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if msglen < 0 {
|
|
|
|
|
return ErrInvalidLengthRendezvous
|
|
|
|
|
}
|
|
|
|
|
postIndex := iNdEx + msglen
|
2021-09-29 14:33:27 -04:00
|
|
|
if postIndex < 0 {
|
|
|
|
|
return ErrInvalidLengthRendezvous
|
|
|
|
|
}
|
2019-01-18 15:22:49 +02:00
|
|
|
if postIndex > l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
if m.RegisterResponse == nil {
|
|
|
|
|
m.RegisterResponse = &Message_RegisterResponse{}
|
|
|
|
|
}
|
|
|
|
|
if err := m.RegisterResponse.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
iNdEx = postIndex
|
|
|
|
|
case 4:
|
|
|
|
|
if wireType != 2 {
|
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Discover", wireType)
|
|
|
|
|
}
|
|
|
|
|
var msglen int
|
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
|
if shift >= 64 {
|
|
|
|
|
return ErrIntOverflowRendezvous
|
|
|
|
|
}
|
|
|
|
|
if iNdEx >= l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
|
iNdEx++
|
2021-09-29 14:33:27 -04:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 15:22:49 +02:00
|
|
|
if b < 0x80 {
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if msglen < 0 {
|
|
|
|
|
return ErrInvalidLengthRendezvous
|
|
|
|
|
}
|
|
|
|
|
postIndex := iNdEx + msglen
|
2021-09-29 14:33:27 -04:00
|
|
|
if postIndex < 0 {
|
|
|
|
|
return ErrInvalidLengthRendezvous
|
|
|
|
|
}
|
2019-01-18 15:22:49 +02:00
|
|
|
if postIndex > l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
if m.Discover == nil {
|
|
|
|
|
m.Discover = &Message_Discover{}
|
|
|
|
|
}
|
|
|
|
|
if err := m.Discover.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
iNdEx = postIndex
|
2021-10-01 13:39:50 -04:00
|
|
|
case 5:
|
2019-01-18 15:22:49 +02:00
|
|
|
if wireType != 2 {
|
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field DiscoverResponse", wireType)
|
|
|
|
|
}
|
|
|
|
|
var msglen int
|
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
|
if shift >= 64 {
|
|
|
|
|
return ErrIntOverflowRendezvous
|
|
|
|
|
}
|
|
|
|
|
if iNdEx >= l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
|
iNdEx++
|
2021-09-29 14:33:27 -04:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 15:22:49 +02:00
|
|
|
if b < 0x80 {
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if msglen < 0 {
|
|
|
|
|
return ErrInvalidLengthRendezvous
|
|
|
|
|
}
|
|
|
|
|
postIndex := iNdEx + msglen
|
2021-09-29 14:33:27 -04:00
|
|
|
if postIndex < 0 {
|
|
|
|
|
return ErrInvalidLengthRendezvous
|
|
|
|
|
}
|
2019-01-18 15:22:49 +02:00
|
|
|
if postIndex > l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
if m.DiscoverResponse == nil {
|
|
|
|
|
m.DiscoverResponse = &Message_DiscoverResponse{}
|
|
|
|
|
}
|
|
|
|
|
if err := m.DiscoverResponse.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
iNdEx = postIndex
|
|
|
|
|
default:
|
|
|
|
|
iNdEx = preIndex
|
|
|
|
|
skippy, err := skipRendezvous(dAtA[iNdEx:])
|
|
|
|
|
if err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 15:22:49 +02:00
|
|
|
return ErrInvalidLengthRendezvous
|
|
|
|
|
}
|
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
|
|
|
iNdEx += skippy
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
func (m *Message_Register) Unmarshal(dAtA []byte) error {
|
|
|
|
|
l := len(dAtA)
|
|
|
|
|
iNdEx := 0
|
|
|
|
|
for iNdEx < l {
|
|
|
|
|
preIndex := iNdEx
|
|
|
|
|
var wire uint64
|
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
|
if shift >= 64 {
|
|
|
|
|
return ErrIntOverflowRendezvous
|
|
|
|
|
}
|
|
|
|
|
if iNdEx >= l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
|
iNdEx++
|
2021-09-29 14:33:27 -04:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 15:22:49 +02:00
|
|
|
if b < 0x80 {
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
|
if wireType == 4 {
|
|
|
|
|
return fmt.Errorf("proto: Register: wiretype end group for non-group")
|
|
|
|
|
}
|
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
|
return fmt.Errorf("proto: Register: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
|
}
|
|
|
|
|
switch fieldNum {
|
|
|
|
|
case 1:
|
|
|
|
|
if wireType != 2 {
|
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Ns", wireType)
|
|
|
|
|
}
|
|
|
|
|
var stringLen uint64
|
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
|
if shift >= 64 {
|
|
|
|
|
return ErrIntOverflowRendezvous
|
|
|
|
|
}
|
|
|
|
|
if iNdEx >= l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
|
iNdEx++
|
2021-09-29 14:33:27 -04:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-01-18 15:22:49 +02:00
|
|
|
if b < 0x80 {
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
|
if intStringLen < 0 {
|
|
|
|
|
return ErrInvalidLengthRendezvous
|
|
|
|
|
}
|
|
|
|
|
postIndex := iNdEx + intStringLen
|
2021-09-29 14:33:27 -04:00
|
|
|
if postIndex < 0 {
|
|
|
|
|
return ErrInvalidLengthRendezvous
|
|
|
|
|
}
|
2019-01-18 15:22:49 +02:00
|
|
|
if postIndex > l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
m.Ns = string(dAtA[iNdEx:postIndex])
|
2019-01-18 15:22:49 +02:00
|
|
|
iNdEx = postIndex
|
|
|
|
|
case 2:
|
|
|
|
|
if wireType != 2 {
|
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Peer", wireType)
|
|
|
|
|
}
|
|
|
|
|
var msglen int
|
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
|
if shift >= 64 {
|
|
|
|
|
return ErrIntOverflowRendezvous
|
|
|
|
|
}
|
|
|
|
|
if iNdEx >= l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
|
iNdEx++
|
2021-09-29 14:33:27 -04:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 15:22:49 +02:00
|
|
|
if b < 0x80 {
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if msglen < 0 {
|
|
|
|
|
return ErrInvalidLengthRendezvous
|
|
|
|
|
}
|
|
|
|
|
postIndex := iNdEx + msglen
|
2021-09-29 14:33:27 -04:00
|
|
|
if postIndex < 0 {
|
|
|
|
|
return ErrInvalidLengthRendezvous
|
|
|
|
|
}
|
2019-01-18 15:22:49 +02:00
|
|
|
if postIndex > l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
if m.Peer == nil {
|
2021-10-01 13:39:50 -04:00
|
|
|
m.Peer = &pb.Envelope{}
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
|
|
|
|
if err := m.Peer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
iNdEx = postIndex
|
|
|
|
|
case 3:
|
|
|
|
|
if wireType != 0 {
|
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Ttl", wireType)
|
|
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
m.Ttl = 0
|
2019-01-18 15:22:49 +02:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
|
if shift >= 64 {
|
|
|
|
|
return ErrIntOverflowRendezvous
|
|
|
|
|
}
|
|
|
|
|
if iNdEx >= l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
|
iNdEx++
|
2021-09-29 14:33:27 -04:00
|
|
|
m.Ttl |= int64(b&0x7F) << shift
|
2019-01-18 15:22:49 +02:00
|
|
|
if b < 0x80 {
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
default:
|
|
|
|
|
iNdEx = preIndex
|
|
|
|
|
skippy, err := skipRendezvous(dAtA[iNdEx:])
|
|
|
|
|
if err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 15:22:49 +02:00
|
|
|
return ErrInvalidLengthRendezvous
|
|
|
|
|
}
|
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
|
|
|
iNdEx += skippy
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
func (m *Message_RegisterResponse) Unmarshal(dAtA []byte) error {
|
|
|
|
|
l := len(dAtA)
|
|
|
|
|
iNdEx := 0
|
|
|
|
|
for iNdEx < l {
|
|
|
|
|
preIndex := iNdEx
|
|
|
|
|
var wire uint64
|
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
|
if shift >= 64 {
|
|
|
|
|
return ErrIntOverflowRendezvous
|
|
|
|
|
}
|
|
|
|
|
if iNdEx >= l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
|
iNdEx++
|
2021-09-29 14:33:27 -04:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 15:22:49 +02:00
|
|
|
if b < 0x80 {
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
|
if wireType == 4 {
|
|
|
|
|
return fmt.Errorf("proto: RegisterResponse: wiretype end group for non-group")
|
|
|
|
|
}
|
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
|
return fmt.Errorf("proto: RegisterResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
|
}
|
|
|
|
|
switch fieldNum {
|
|
|
|
|
case 1:
|
|
|
|
|
if wireType != 0 {
|
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
|
|
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
m.Status = 0
|
2019-01-18 15:22:49 +02:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
|
if shift >= 64 {
|
|
|
|
|
return ErrIntOverflowRendezvous
|
|
|
|
|
}
|
|
|
|
|
if iNdEx >= l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
|
iNdEx++
|
2021-09-29 14:33:27 -04:00
|
|
|
m.Status |= Message_ResponseStatus(b&0x7F) << shift
|
2019-01-18 15:22:49 +02:00
|
|
|
if b < 0x80 {
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
case 2:
|
|
|
|
|
if wireType != 2 {
|
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field StatusText", wireType)
|
|
|
|
|
}
|
|
|
|
|
var stringLen uint64
|
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
|
if shift >= 64 {
|
|
|
|
|
return ErrIntOverflowRendezvous
|
|
|
|
|
}
|
|
|
|
|
if iNdEx >= l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
|
iNdEx++
|
2021-09-29 14:33:27 -04:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-01-18 15:22:49 +02:00
|
|
|
if b < 0x80 {
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
|
if intStringLen < 0 {
|
|
|
|
|
return ErrInvalidLengthRendezvous
|
|
|
|
|
}
|
|
|
|
|
postIndex := iNdEx + intStringLen
|
2021-09-29 14:33:27 -04:00
|
|
|
if postIndex < 0 {
|
|
|
|
|
return ErrInvalidLengthRendezvous
|
|
|
|
|
}
|
2019-01-18 15:22:49 +02:00
|
|
|
if postIndex > l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
m.StatusText = string(dAtA[iNdEx:postIndex])
|
2019-01-18 15:22:49 +02:00
|
|
|
iNdEx = postIndex
|
|
|
|
|
case 3:
|
|
|
|
|
if wireType != 0 {
|
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Ttl", wireType)
|
|
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
m.Ttl = 0
|
2019-01-18 15:22:49 +02:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
|
if shift >= 64 {
|
|
|
|
|
return ErrIntOverflowRendezvous
|
|
|
|
|
}
|
|
|
|
|
if iNdEx >= l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
|
iNdEx++
|
2021-09-29 14:33:27 -04:00
|
|
|
m.Ttl |= int64(b&0x7F) << shift
|
2019-01-18 15:22:49 +02:00
|
|
|
if b < 0x80 {
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
default:
|
|
|
|
|
iNdEx = preIndex
|
|
|
|
|
skippy, err := skipRendezvous(dAtA[iNdEx:])
|
|
|
|
|
if err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 15:22:49 +02:00
|
|
|
return ErrInvalidLengthRendezvous
|
|
|
|
|
}
|
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
|
|
|
iNdEx += skippy
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
func (m *Message_Discover) Unmarshal(dAtA []byte) error {
|
|
|
|
|
l := len(dAtA)
|
|
|
|
|
iNdEx := 0
|
|
|
|
|
for iNdEx < l {
|
|
|
|
|
preIndex := iNdEx
|
|
|
|
|
var wire uint64
|
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
|
if shift >= 64 {
|
|
|
|
|
return ErrIntOverflowRendezvous
|
|
|
|
|
}
|
|
|
|
|
if iNdEx >= l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
|
iNdEx++
|
2021-09-29 14:33:27 -04:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 15:22:49 +02:00
|
|
|
if b < 0x80 {
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
|
if wireType == 4 {
|
|
|
|
|
return fmt.Errorf("proto: Discover: wiretype end group for non-group")
|
|
|
|
|
}
|
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
|
return fmt.Errorf("proto: Discover: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
|
}
|
|
|
|
|
switch fieldNum {
|
|
|
|
|
case 1:
|
|
|
|
|
if wireType != 2 {
|
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Ns", wireType)
|
|
|
|
|
}
|
|
|
|
|
var stringLen uint64
|
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
|
if shift >= 64 {
|
|
|
|
|
return ErrIntOverflowRendezvous
|
|
|
|
|
}
|
|
|
|
|
if iNdEx >= l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
|
iNdEx++
|
2021-09-29 14:33:27 -04:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-01-18 15:22:49 +02:00
|
|
|
if b < 0x80 {
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
|
if intStringLen < 0 {
|
|
|
|
|
return ErrInvalidLengthRendezvous
|
|
|
|
|
}
|
|
|
|
|
postIndex := iNdEx + intStringLen
|
2021-09-29 14:33:27 -04:00
|
|
|
if postIndex < 0 {
|
|
|
|
|
return ErrInvalidLengthRendezvous
|
|
|
|
|
}
|
2019-01-18 15:22:49 +02:00
|
|
|
if postIndex > l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
m.Ns = string(dAtA[iNdEx:postIndex])
|
2019-01-18 15:22:49 +02:00
|
|
|
iNdEx = postIndex
|
|
|
|
|
case 2:
|
|
|
|
|
if wireType != 0 {
|
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType)
|
|
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
m.Limit = 0
|
2019-01-18 15:22:49 +02:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
|
if shift >= 64 {
|
|
|
|
|
return ErrIntOverflowRendezvous
|
|
|
|
|
}
|
|
|
|
|
if iNdEx >= l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
|
iNdEx++
|
2021-09-29 14:33:27 -04:00
|
|
|
m.Limit |= int64(b&0x7F) << shift
|
2019-01-18 15:22:49 +02:00
|
|
|
if b < 0x80 {
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
default:
|
|
|
|
|
iNdEx = preIndex
|
|
|
|
|
skippy, err := skipRendezvous(dAtA[iNdEx:])
|
|
|
|
|
if err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 15:22:49 +02:00
|
|
|
return ErrInvalidLengthRendezvous
|
|
|
|
|
}
|
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
|
|
|
iNdEx += skippy
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
func (m *Message_DiscoverResponse) Unmarshal(dAtA []byte) error {
|
|
|
|
|
l := len(dAtA)
|
|
|
|
|
iNdEx := 0
|
|
|
|
|
for iNdEx < l {
|
|
|
|
|
preIndex := iNdEx
|
|
|
|
|
var wire uint64
|
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
|
if shift >= 64 {
|
|
|
|
|
return ErrIntOverflowRendezvous
|
|
|
|
|
}
|
|
|
|
|
if iNdEx >= l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
|
iNdEx++
|
2021-09-29 14:33:27 -04:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 15:22:49 +02:00
|
|
|
if b < 0x80 {
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
|
if wireType == 4 {
|
|
|
|
|
return fmt.Errorf("proto: DiscoverResponse: wiretype end group for non-group")
|
|
|
|
|
}
|
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
|
return fmt.Errorf("proto: DiscoverResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
|
}
|
|
|
|
|
switch fieldNum {
|
|
|
|
|
case 1:
|
|
|
|
|
if wireType != 2 {
|
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Registrations", wireType)
|
|
|
|
|
}
|
|
|
|
|
var msglen int
|
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
|
if shift >= 64 {
|
|
|
|
|
return ErrIntOverflowRendezvous
|
|
|
|
|
}
|
|
|
|
|
if iNdEx >= l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
|
iNdEx++
|
2021-09-29 14:33:27 -04:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 15:22:49 +02:00
|
|
|
if b < 0x80 {
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if msglen < 0 {
|
|
|
|
|
return ErrInvalidLengthRendezvous
|
|
|
|
|
}
|
|
|
|
|
postIndex := iNdEx + msglen
|
2021-09-29 14:33:27 -04:00
|
|
|
if postIndex < 0 {
|
|
|
|
|
return ErrInvalidLengthRendezvous
|
|
|
|
|
}
|
2019-01-18 15:22:49 +02:00
|
|
|
if postIndex > l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
m.Registrations = append(m.Registrations, &Message_Register{})
|
|
|
|
|
if err := m.Registrations[len(m.Registrations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
iNdEx = postIndex
|
|
|
|
|
case 3:
|
|
|
|
|
if wireType != 0 {
|
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
|
|
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
m.Status = 0
|
2019-01-18 15:22:49 +02:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
|
if shift >= 64 {
|
|
|
|
|
return ErrIntOverflowRendezvous
|
|
|
|
|
}
|
|
|
|
|
if iNdEx >= l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
|
iNdEx++
|
2021-09-29 14:33:27 -04:00
|
|
|
m.Status |= Message_ResponseStatus(b&0x7F) << shift
|
2019-01-18 15:22:49 +02:00
|
|
|
if b < 0x80 {
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
case 4:
|
|
|
|
|
if wireType != 2 {
|
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field StatusText", wireType)
|
|
|
|
|
}
|
|
|
|
|
var stringLen uint64
|
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
|
if shift >= 64 {
|
|
|
|
|
return ErrIntOverflowRendezvous
|
|
|
|
|
}
|
|
|
|
|
if iNdEx >= l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
|
iNdEx++
|
2021-09-29 14:33:27 -04:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-01-18 15:22:49 +02:00
|
|
|
if b < 0x80 {
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
|
if intStringLen < 0 {
|
|
|
|
|
return ErrInvalidLengthRendezvous
|
|
|
|
|
}
|
|
|
|
|
postIndex := iNdEx + intStringLen
|
2021-09-29 14:33:27 -04:00
|
|
|
if postIndex < 0 {
|
|
|
|
|
return ErrInvalidLengthRendezvous
|
|
|
|
|
}
|
2019-01-18 15:22:49 +02:00
|
|
|
if postIndex > l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
m.StatusText = string(dAtA[iNdEx:postIndex])
|
2019-01-18 15:22:49 +02:00
|
|
|
iNdEx = postIndex
|
|
|
|
|
default:
|
|
|
|
|
iNdEx = preIndex
|
|
|
|
|
skippy, err := skipRendezvous(dAtA[iNdEx:])
|
|
|
|
|
if err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 15:22:49 +02:00
|
|
|
return ErrInvalidLengthRendezvous
|
|
|
|
|
}
|
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
|
|
|
iNdEx += skippy
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
func skipRendezvous(dAtA []byte) (n int, err error) {
|
|
|
|
|
l := len(dAtA)
|
|
|
|
|
iNdEx := 0
|
2021-09-29 14:33:27 -04:00
|
|
|
depth := 0
|
2019-01-18 15:22:49 +02:00
|
|
|
for iNdEx < l {
|
|
|
|
|
var wire uint64
|
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
|
if shift >= 64 {
|
|
|
|
|
return 0, ErrIntOverflowRendezvous
|
|
|
|
|
}
|
|
|
|
|
if iNdEx >= l {
|
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
|
iNdEx++
|
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
|
if b < 0x80 {
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
|
switch wireType {
|
|
|
|
|
case 0:
|
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
|
if shift >= 64 {
|
|
|
|
|
return 0, ErrIntOverflowRendezvous
|
|
|
|
|
}
|
|
|
|
|
if iNdEx >= l {
|
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
iNdEx++
|
|
|
|
|
if dAtA[iNdEx-1] < 0x80 {
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
case 1:
|
|
|
|
|
iNdEx += 8
|
|
|
|
|
case 2:
|
|
|
|
|
var length int
|
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
|
if shift >= 64 {
|
|
|
|
|
return 0, ErrIntOverflowRendezvous
|
|
|
|
|
}
|
|
|
|
|
if iNdEx >= l {
|
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
|
iNdEx++
|
|
|
|
|
length |= (int(b) & 0x7F) << shift
|
|
|
|
|
if b < 0x80 {
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if length < 0 {
|
|
|
|
|
return 0, ErrInvalidLengthRendezvous
|
|
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
iNdEx += length
|
2019-01-18 15:22:49 +02:00
|
|
|
case 3:
|
2021-09-29 14:33:27 -04:00
|
|
|
depth++
|
2019-01-18 15:22:49 +02:00
|
|
|
case 4:
|
2021-09-29 14:33:27 -04:00
|
|
|
if depth == 0 {
|
|
|
|
|
return 0, ErrUnexpectedEndOfGroupRendezvous
|
|
|
|
|
}
|
|
|
|
|
depth--
|
2019-01-18 15:22:49 +02:00
|
|
|
case 5:
|
|
|
|
|
iNdEx += 4
|
|
|
|
|
default:
|
|
|
|
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
|
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
if iNdEx < 0 {
|
|
|
|
|
return 0, ErrInvalidLengthRendezvous
|
|
|
|
|
}
|
|
|
|
|
if depth == 0 {
|
|
|
|
|
return iNdEx, nil
|
|
|
|
|
}
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
2021-09-29 14:33:27 -04:00
|
|
|
return 0, io.ErrUnexpectedEOF
|
2019-01-18 15:22:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var (
|
2021-09-29 14:33:27 -04:00
|
|
|
ErrInvalidLengthRendezvous = fmt.Errorf("proto: negative length found during unmarshaling")
|
|
|
|
|
ErrIntOverflowRendezvous = fmt.Errorf("proto: integer overflow")
|
|
|
|
|
ErrUnexpectedEndOfGroupRendezvous = fmt.Errorf("proto: unexpected end of group")
|
2019-01-18 15:22:49 +02:00
|
|
|
)
|