Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-p2p-pubsub-router
Commits
63750eb1
Commit
63750eb1
authored
Dec 09, 2019
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: regenerate protobuf decoder
parent
922250b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
72 deletions
+56
-72
pb/message.pb.go
pb/message.pb.go
+56
-72
No files found.
pb/message.pb.go
View file @
63750eb1
...
...
@@ -8,6 +8,7 @@ import (
proto
"github.com/gogo/protobuf/proto"
io
"io"
math
"math"
math_bits
"math/bits"
)
// Reference imports to suppress errors if they are not otherwise used.
...
...
@@ -19,7 +20,7 @@ var _ = math.Inf
// 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
.
GoGoProtoPackageIsVersion
2
// please upgrade the proto package
const
_
=
proto
.
GoGoProtoPackageIsVersion
3
// please upgrade the proto package
type
FetchResponse_StatusCode
int32
...
...
@@ -70,7 +71,7 @@ func (m *FetchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
return
xxx_messageInfo_FetchRequest
.
Marshal
(
b
,
m
,
deterministic
)
}
else
{
b
=
b
[
:
cap
(
b
)]
n
,
err
:=
m
.
MarshalTo
(
b
)
n
,
err
:=
m
.
MarshalTo
SizedBuffer
(
b
)
if
err
!=
nil
{
return
nil
,
err
}
...
...
@@ -118,7 +119,7 @@ func (m *FetchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error
return
xxx_messageInfo_FetchResponse
.
Marshal
(
b
,
m
,
deterministic
)
}
else
{
b
=
b
[
:
cap
(
b
)]
n
,
err
:=
m
.
MarshalTo
(
b
)
n
,
err
:=
m
.
MarshalTo
SizedBuffer
(
b
)
if
err
!=
nil
{
return
nil
,
err
}
...
...
@@ -180,7 +181,7 @@ var fileDescriptor_33c57e4bae7b9afd = []byte{
func
(
m
*
FetchRequest
)
Marshal
()
(
dAtA
[]
byte
,
err
error
)
{
size
:=
m
.
Size
()
dAtA
=
make
([]
byte
,
size
)
n
,
err
:=
m
.
MarshalTo
(
dAtA
)
n
,
err
:=
m
.
MarshalTo
SizedBuffer
(
dAtA
[
:
size
]
)
if
err
!=
nil
{
return
nil
,
err
}
...
...
@@ -188,26 +189,33 @@ func (m *FetchRequest) Marshal() (dAtA []byte, err error) {
}
func
(
m
*
FetchRequest
)
MarshalTo
(
dAtA
[]
byte
)
(
int
,
error
)
{
var
i
int
size
:=
m
.
Size
()
return
m
.
MarshalToSizedBuffer
(
dAtA
[
:
size
])
}
func
(
m
*
FetchRequest
)
MarshalToSizedBuffer
(
dAtA
[]
byte
)
(
int
,
error
)
{
i
:=
len
(
dAtA
)
_
=
i
var
l
int
_
=
l
if
m
.
XXX_unrecognized
!=
nil
{
i
-=
len
(
m
.
XXX_unrecognized
)
copy
(
dAtA
[
i
:
],
m
.
XXX_unrecognized
)
}
if
len
(
m
.
Identifier
)
>
0
{
dAtA
[
i
]
=
0xa
i
++
i
-=
len
(
m
.
Identifier
)
copy
(
dAtA
[
i
:
],
m
.
Identifier
)
i
=
encodeVarintMessage
(
dAtA
,
i
,
uint64
(
len
(
m
.
Identifier
)))
i
+=
copy
(
dAtA
[
i
:
],
m
.
Identifier
)
}
if
m
.
XXX_unrecognized
!=
nil
{
i
+=
copy
(
dAtA
[
i
:
],
m
.
XXX_unrecognized
)
i
--
dAtA
[
i
]
=
0xa
}
return
i
,
nil
return
len
(
dAtA
)
-
i
,
nil
}
func
(
m
*
FetchResponse
)
Marshal
()
(
dAtA
[]
byte
,
err
error
)
{
size
:=
m
.
Size
()
dAtA
=
make
([]
byte
,
size
)
n
,
err
:=
m
.
MarshalTo
(
dAtA
)
n
,
err
:=
m
.
MarshalTo
SizedBuffer
(
dAtA
[
:
size
]
)
if
err
!=
nil
{
return
nil
,
err
}
...
...
@@ -215,35 +223,44 @@ func (m *FetchResponse) Marshal() (dAtA []byte, err error) {
}
func
(
m
*
FetchResponse
)
MarshalTo
(
dAtA
[]
byte
)
(
int
,
error
)
{
var
i
int
size
:=
m
.
Size
()
return
m
.
MarshalToSizedBuffer
(
dAtA
[
:
size
])
}
func
(
m
*
FetchResponse
)
MarshalToSizedBuffer
(
dAtA
[]
byte
)
(
int
,
error
)
{
i
:=
len
(
dAtA
)
_
=
i
var
l
int
_
=
l
if
m
.
Status
!=
0
{
dAtA
[
i
]
=
0x8
i
++
i
=
encodeVarintMessage
(
dAtA
,
i
,
uint64
(
m
.
Status
))
if
m
.
XXX_unrecognized
!=
nil
{
i
-=
len
(
m
.
XXX_unrecognized
)
copy
(
dAtA
[
i
:
],
m
.
XXX_unrecognized
)
}
if
len
(
m
.
Data
)
>
0
{
dAtA
[
i
]
=
0x12
i
++
i
-=
len
(
m
.
Data
)
copy
(
dAtA
[
i
:
],
m
.
Data
)
i
=
encodeVarintMessage
(
dAtA
,
i
,
uint64
(
len
(
m
.
Data
)))
i
+=
copy
(
dAtA
[
i
:
],
m
.
Data
)
i
--
dAtA
[
i
]
=
0x12
}
if
m
.
XXX_unrecognized
!=
nil
{
i
+=
copy
(
dAtA
[
i
:
],
m
.
XXX_unrecognized
)
if
m
.
Status
!=
0
{
i
=
encodeVarintMessage
(
dAtA
,
i
,
uint64
(
m
.
Status
))
i
--
dAtA
[
i
]
=
0x8
}
return
i
,
nil
return
len
(
dAtA
)
-
i
,
nil
}
func
encodeVarintMessage
(
dAtA
[]
byte
,
offset
int
,
v
uint64
)
int
{
offset
-=
sovMessage
(
v
)
base
:=
offset
for
v
>=
1
<<
7
{
dAtA
[
offset
]
=
uint8
(
v
&
0x7f
|
0x80
)
v
>>=
7
offset
++
}
dAtA
[
offset
]
=
uint8
(
v
)
return
offset
+
1
return
base
}
func
(
m
*
FetchRequest
)
Size
()
(
n
int
)
{
if
m
==
nil
{
...
...
@@ -281,14 +298,7 @@ func (m *FetchResponse) Size() (n int) {
}
func
sovMessage
(
x
uint64
)
(
n
int
)
{
for
{
n
++
x
>>=
7
if
x
==
0
{
break
}
}
return
n
return
(
math_bits
.
Len64
(
x
|
1
)
+
6
)
/
7
}
func
sozMessage
(
x
uint64
)
(
n
int
)
{
return
sovMessage
(
uint64
((
x
<<
1
)
^
uint64
((
int64
(
x
)
>>
63
))))
...
...
@@ -489,6 +499,7 @@ func (m *FetchResponse) Unmarshal(dAtA []byte) error {
func
skipMessage
(
dAtA
[]
byte
)
(
n
int
,
err
error
)
{
l
:=
len
(
dAtA
)
iNdEx
:=
0
depth
:=
0
for
iNdEx
<
l
{
var
wire
uint64
for
shift
:=
uint
(
0
);
;
shift
+=
7
{
...
...
@@ -520,10 +531,8 @@ func skipMessage(dAtA []byte) (n int, err error) {
break
}
}
return
iNdEx
,
nil
case
1
:
iNdEx
+=
8
return
iNdEx
,
nil
case
2
:
var
length
int
for
shift
:=
uint
(
0
);
;
shift
+=
7
{
...
...
@@ -547,52 +556,27 @@ func skipMessage(dAtA []byte) (n int, err error) {
if
iNdEx
<
0
{
return
0
,
ErrInvalidLengthMessage
}
return
iNdEx
,
nil
case
3
:
for
{
var
innerWire
uint64
var
start
int
=
iNdEx
for
shift
:=
uint
(
0
);
;
shift
+=
7
{
if
shift
>=
64
{
return
0
,
ErrIntOverflowMessage
}
if
iNdEx
>=
l
{
return
0
,
io
.
ErrUnexpectedEOF
}
b
:=
dAtA
[
iNdEx
]
iNdEx
++
innerWire
|=
(
uint64
(
b
)
&
0x7F
)
<<
shift
if
b
<
0x80
{
break
}
}
innerWireType
:=
int
(
innerWire
&
0x7
)
if
innerWireType
==
4
{
break
}
next
,
err
:=
skipMessage
(
dAtA
[
start
:
])
if
err
!=
nil
{
return
0
,
err
}
iNdEx
=
start
+
next
if
iNdEx
<
0
{
return
0
,
ErrInvalidLengthMessage
}
}
return
iNdEx
,
nil
depth
++
case
4
:
return
iNdEx
,
nil
if
depth
==
0
{
return
0
,
ErrUnexpectedEndOfGroupMessage
}
depth
--
case
5
:
iNdEx
+=
4
return
iNdEx
,
nil
default
:
return
0
,
fmt
.
Errorf
(
"proto: illegal wireType %d"
,
wireType
)
}
if
depth
==
0
{
return
iNdEx
,
nil
}
}
panic
(
"unreachable"
)
return
0
,
io
.
ErrUnexpectedEOF
}
var
(
ErrInvalidLengthMessage
=
fmt
.
Errorf
(
"proto: negative length found during unmarshaling"
)
ErrIntOverflowMessage
=
fmt
.
Errorf
(
"proto: integer overflow"
)
ErrInvalidLengthMessage
=
fmt
.
Errorf
(
"proto: negative length found during unmarshaling"
)
ErrIntOverflowMessage
=
fmt
.
Errorf
(
"proto: integer overflow"
)
ErrUnexpectedEndOfGroupMessage
=
fmt
.
Errorf
(
"proto: unexpected end of group"
)
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment