package types
import (
context "context"
fmt "fmt"
_ "github.com/cosmos/cosmos-sdk/types"
github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types"
_ "github.com/gogo/protobuf/gogoproto"
grpc1 "github.com/gogo/protobuf/grpc"
proto "github.com/gogo/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
io "io"
math "math"
math_bits "math/bits"
)
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const _ = proto.GoGoProtoPackageIsVersion3
type MsgCreateRoute struct {
Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
Destination string `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
}
func (m *MsgCreateRoute) Reset() { *m = MsgCreateRoute{} }
func (m *MsgCreateRoute) String() string { return proto.CompactTextString(m) }
func (*MsgCreateRoute) ProtoMessage() {}
func (*MsgCreateRoute) Descriptor() ([]byte, []int) {
return fileDescriptor_c3762e80adb8270a, []int{0}
}
func (m *MsgCreateRoute) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgCreateRoute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgCreateRoute.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgCreateRoute) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgCreateRoute.Merge(m, src)
}
func (m *MsgCreateRoute) XXX_Size() int {
return m.Size()
}
func (m *MsgCreateRoute) XXX_DiscardUnknown() {
xxx_messageInfo_MsgCreateRoute.DiscardUnknown(m)
}
var xxx_messageInfo_MsgCreateRoute proto.InternalMessageInfo
type MsgEditRoute struct {
Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
Destination string `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"`
Value github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,3,opt,name=value,proto3,casttype=github.com/cosmos/cosmos-sdk/types.Coin" json:"value"`
}
func (m *MsgEditRoute) Reset() { *m = MsgEditRoute{} }
func (m *MsgEditRoute) String() string { return proto.CompactTextString(m) }
func (*MsgEditRoute) ProtoMessage() {}
func (*MsgEditRoute) Descriptor() ([]byte, []int) {
return fileDescriptor_c3762e80adb8270a, []int{1}
}
func (m *MsgEditRoute) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgEditRoute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgEditRoute.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgEditRoute) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgEditRoute.Merge(m, src)
}
func (m *MsgEditRoute) XXX_Size() int {
return m.Size()
}
func (m *MsgEditRoute) XXX_DiscardUnknown() {
xxx_messageInfo_MsgEditRoute.DiscardUnknown(m)
}
var xxx_messageInfo_MsgEditRoute proto.InternalMessageInfo
type MsgDeleteRoute struct {
Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
Destination string `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"`
}
func (m *MsgDeleteRoute) Reset() { *m = MsgDeleteRoute{} }
func (m *MsgDeleteRoute) String() string { return proto.CompactTextString(m) }
func (*MsgDeleteRoute) ProtoMessage() {}
func (*MsgDeleteRoute) Descriptor() ([]byte, []int) {
return fileDescriptor_c3762e80adb8270a, []int{2}
}
func (m *MsgDeleteRoute) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgDeleteRoute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgDeleteRoute.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgDeleteRoute) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgDeleteRoute.Merge(m, src)
}
func (m *MsgDeleteRoute) XXX_Size() int {
return m.Size()
}
func (m *MsgDeleteRoute) XXX_DiscardUnknown() {
xxx_messageInfo_MsgDeleteRoute.DiscardUnknown(m)
}
var xxx_messageInfo_MsgDeleteRoute proto.InternalMessageInfo
type MsgEditRouteName struct {
Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
Destination string `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
}
func (m *MsgEditRouteName) Reset() { *m = MsgEditRouteName{} }
func (m *MsgEditRouteName) String() string { return proto.CompactTextString(m) }
func (*MsgEditRouteName) ProtoMessage() {}
func (*MsgEditRouteName) Descriptor() ([]byte, []int) {
return fileDescriptor_c3762e80adb8270a, []int{3}
}
func (m *MsgEditRouteName) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgEditRouteName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgEditRouteName.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgEditRouteName) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgEditRouteName.Merge(m, src)
}
func (m *MsgEditRouteName) XXX_Size() int {
return m.Size()
}
func (m *MsgEditRouteName) XXX_DiscardUnknown() {
xxx_messageInfo_MsgEditRouteName.DiscardUnknown(m)
}
var xxx_messageInfo_MsgEditRouteName proto.InternalMessageInfo
type MsgCreateRouteResponse struct {
}
func (m *MsgCreateRouteResponse) Reset() { *m = MsgCreateRouteResponse{} }
func (m *MsgCreateRouteResponse) String() string { return proto.CompactTextString(m) }
func (*MsgCreateRouteResponse) ProtoMessage() {}
func (*MsgCreateRouteResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_c3762e80adb8270a, []int{4}
}
func (m *MsgCreateRouteResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgCreateRouteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgCreateRouteResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgCreateRouteResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgCreateRouteResponse.Merge(m, src)
}
func (m *MsgCreateRouteResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgCreateRouteResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgCreateRouteResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgCreateRouteResponse proto.InternalMessageInfo
type MsgEditRouteResponse struct {
}
func (m *MsgEditRouteResponse) Reset() { *m = MsgEditRouteResponse{} }
func (m *MsgEditRouteResponse) String() string { return proto.CompactTextString(m) }
func (*MsgEditRouteResponse) ProtoMessage() {}
func (*MsgEditRouteResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_c3762e80adb8270a, []int{5}
}
func (m *MsgEditRouteResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgEditRouteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgEditRouteResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgEditRouteResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgEditRouteResponse.Merge(m, src)
}
func (m *MsgEditRouteResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgEditRouteResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgEditRouteResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgEditRouteResponse proto.InternalMessageInfo
type MsgDeleteRouteResponse struct {
}
func (m *MsgDeleteRouteResponse) Reset() { *m = MsgDeleteRouteResponse{} }
func (m *MsgDeleteRouteResponse) String() string { return proto.CompactTextString(m) }
func (*MsgDeleteRouteResponse) ProtoMessage() {}
func (*MsgDeleteRouteResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_c3762e80adb8270a, []int{6}
}
func (m *MsgDeleteRouteResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgDeleteRouteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgDeleteRouteResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgDeleteRouteResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgDeleteRouteResponse.Merge(m, src)
}
func (m *MsgDeleteRouteResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgDeleteRouteResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgDeleteRouteResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgDeleteRouteResponse proto.InternalMessageInfo
type MsgEditRouteNameResponse struct {
}
func (m *MsgEditRouteNameResponse) Reset() { *m = MsgEditRouteNameResponse{} }
func (m *MsgEditRouteNameResponse) String() string { return proto.CompactTextString(m) }
func (*MsgEditRouteNameResponse) ProtoMessage() {}
func (*MsgEditRouteNameResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_c3762e80adb8270a, []int{7}
}
func (m *MsgEditRouteNameResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgEditRouteNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgEditRouteNameResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgEditRouteNameResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgEditRouteNameResponse.Merge(m, src)
}
func (m *MsgEditRouteNameResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgEditRouteNameResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgEditRouteNameResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgEditRouteNameResponse proto.InternalMessageInfo
func init() {
proto.RegisterType((*MsgCreateRoute)(nil), "cyber.grid.v1beta1.MsgCreateRoute")
proto.RegisterType((*MsgEditRoute)(nil), "cyber.grid.v1beta1.MsgEditRoute")
proto.RegisterType((*MsgDeleteRoute)(nil), "cyber.grid.v1beta1.MsgDeleteRoute")
proto.RegisterType((*MsgEditRouteName)(nil), "cyber.grid.v1beta1.MsgEditRouteName")
proto.RegisterType((*MsgCreateRouteResponse)(nil), "cyber.grid.v1beta1.MsgCreateRouteResponse")
proto.RegisterType((*MsgEditRouteResponse)(nil), "cyber.grid.v1beta1.MsgEditRouteResponse")
proto.RegisterType((*MsgDeleteRouteResponse)(nil), "cyber.grid.v1beta1.MsgDeleteRouteResponse")
proto.RegisterType((*MsgEditRouteNameResponse)(nil), "cyber.grid.v1beta1.MsgEditRouteNameResponse")
}
func init() { proto.RegisterFile("cyber/grid/v1beta1/tx.proto", fileDescriptor_c3762e80adb8270a) }
var fileDescriptor_c3762e80adb8270a = []byte{
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x54, 0x4f, 0x6b, 0xd4, 0x40,
0x14, 0x4f, 0x5c, 0x2d, 0xf6, 0x45, 0x45, 0x86, 0xb2, 0xc4, 0x08, 0xc9, 0x12, 0x04, 0x8b, 0xd8,
0x19, 0x5a, 0x6f, 0x1e, 0x5b, 0x05, 0x2f, 0xeb, 0x21, 0x08, 0x82, 0x50, 0x30, 0x7f, 0x86, 0x69,
0xb4, 0xc9, 0x2c, 0x99, 0x49, 0x69, 0x8f, 0xde, 0x3c, 0xfa, 0x11, 0xf6, 0x43, 0xf8, 0x21, 0xf6,
0xb8, 0x47, 0x4f, 0x8b, 0xec, 0x5e, 0xfc, 0x0c, 0x9e, 0x24, 0x33, 0x9b, 0x38, 0xab, 0x2e, 0x2b,
0x2c, 0x3d, 0x65, 0x32, 0xbf, 0xdf, 0xbc, 0xf7, 0x9b, 0xdf, 0x7b, 0xf3, 0xe0, 0x61, 0x7a, 0x95,
0xd0, 0x8a, 0xb0, 0x2a, 0xcf, 0xc8, 0xc5, 0x61, 0x42, 0x65, 0x7c, 0x48, 0xe4, 0x25, 0x1e, 0x55,
0x5c, 0x72, 0x84, 0x14, 0x88, 0x1b, 0x10, 0x2f, 0x41, 0x6f, 0x8f, 0x71, 0xc6, 0x15, 0x4c, 0x9a,
0x95, 0x66, 0x7a, 0x7e, 0xca, 0x45, 0xc1, 0x05, 0x49, 0x62, 0x41, 0xbb, 0x38, 0x29, 0xcf, 0x4b,
0x8d, 0x87, 0x67, 0x70, 0x6f, 0x28, 0xd8, 0x49, 0x45, 0x63, 0x49, 0x23, 0x5e, 0x4b, 0x8a, 0xfa,
0xb0, 0x23, 0x78, 0x5d, 0xa5, 0xd4, 0xb5, 0x07, 0xf6, 0xfe, 0x6e, 0xb4, 0xfc, 0x43, 0x03, 0x70,
0x32, 0x2a, 0x64, 0x5e, 0xc6, 0x32, 0xe7, 0xa5, 0x7b, 0x43, 0x81, 0xe6, 0x16, 0x42, 0x70, 0xb3,
0x8c, 0x0b, 0xea, 0xf6, 0x14, 0xa4, 0xd6, 0xcf, 0x6f, 0x7f, 0x1e, 0x07, 0xd6, 0x8f, 0x71, 0x60,
0x85, 0x5f, 0x6d, 0xb8, 0x33, 0x14, 0xec, 0x65, 0x96, 0xcb, 0x6d, 0x13, 0xbd, 0x87, 0x5b, 0x17,
0xf1, 0x79, 0xad, 0x33, 0x39, 0x47, 0x0f, 0xb0, 0xbe, 0x24, 0x6e, 0x2e, 0xd9, 0xfa, 0x81, 0x4f,
0x78, 0x5e, 0x1e, 0x93, 0xc9, 0x2c, 0xb0, 0x7e, 0xce, 0x82, 0xc7, 0x2c, 0x97, 0x67, 0x75, 0x82,
0x53, 0x5e, 0x90, 0xa5, 0x23, 0xfa, 0x73, 0x20, 0xb2, 0x8f, 0x44, 0x5e, 0x8d, 0xa8, 0x50, 0x07,
0x22, 0x1d, 0xd8, 0x90, 0xfd, 0x46, 0x19, 0xf4, 0x82, 0x9e, 0xd3, 0xad, 0x0d, 0x32, 0xa2, 0x7e,
0x80, 0xfb, 0xa6, 0x17, 0xaf, 0xe3, 0xe2, 0xfa, 0x8c, 0x77, 0xa1, 0xbf, 0x5a, 0xe2, 0x88, 0x8a,
0x11, 0x2f, 0x05, 0x0d, 0xfb, 0xb0, 0x67, 0xaa, 0xe8, 0xf6, 0xf5, 0x09, 0xe3, 0xce, 0x1d, 0xe2,
0x81, 0xfb, 0xa7, 0xee, 0x16, 0x3b, 0xfa, 0xd4, 0x83, 0xde, 0x50, 0x30, 0x74, 0x0a, 0x8e, 0xd9,
0x4f, 0x21, 0xfe, 0xbb, 0x59, 0xf1, 0xaa, 0x20, 0xef, 0xc9, 0x66, 0x4e, 0x9b, 0x06, 0xbd, 0x85,
0xdd, 0xdf, 0x3d, 0x34, 0x58, 0x73, 0xb0, 0x63, 0x78, 0xfb, 0x9b, 0x18, 0x5d, 0xe0, 0x53, 0x70,
0xcc, 0x32, 0xaf, 0xd3, 0x6d, 0x70, 0xd6, 0xea, 0xfe, 0x87, 0x75, 0x28, 0x85, 0xbb, 0xab, 0xf5,
0x7e, 0xb4, 0x49, 0x59, 0xc3, 0xf2, 0x9e, 0xfe, 0x0f, 0xab, 0x4d, 0x72, 0xfc, 0x6a, 0x32, 0xf7,
0xed, 0xe9, 0xdc, 0xb7, 0xbf, 0xcf, 0x7d, 0xfb, 0xcb, 0xc2, 0xb7, 0xa6, 0x0b, 0xdf, 0xfa, 0xb6,
0xf0, 0xad, 0x77, 0xd8, 0x7c, 0x01, 0x4d, 0xc4, 0x94, 0x97, 0xac, 0xa2, 0x42, 0x10, 0xc6, 0x0f,
0xf4, 0xac, 0xb9, 0xd4, 0xd3, 0x46, 0xbd, 0x86, 0x64, 0x47, 0xcd, 0x87, 0x67, 0xbf, 0x02, 0x00,
0x00, 0xff, 0xff, 0x83, 0x2a, 0x12, 0x10, 0x88, 0x04, 0x00, 0x00,
}
var _ context.Context
var _ grpc.ClientConn
const _ = grpc.SupportPackageIsVersion4
type MsgClient interface {
CreateRoute(ctx context.Context, in *MsgCreateRoute, opts ...grpc.CallOption) (*MsgCreateRouteResponse, error)
EditRoute(ctx context.Context, in *MsgEditRoute, opts ...grpc.CallOption) (*MsgEditRouteResponse, error)
DeleteRoute(ctx context.Context, in *MsgDeleteRoute, opts ...grpc.CallOption) (*MsgDeleteRouteResponse, error)
EditRouteName(ctx context.Context, in *MsgEditRouteName, opts ...grpc.CallOption) (*MsgEditRouteNameResponse, error)
}
type msgClient struct {
cc grpc1.ClientConn
}
func NewMsgClient(cc grpc1.ClientConn) MsgClient {
return &msgClient{cc}
}
func (c *msgClient) CreateRoute(ctx context.Context, in *MsgCreateRoute, opts ...grpc.CallOption) (*MsgCreateRouteResponse, error) {
out := new(MsgCreateRouteResponse)
err := c.cc.Invoke(ctx, "/cyber.grid.v1beta1.Msg/CreateRoute", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) EditRoute(ctx context.Context, in *MsgEditRoute, opts ...grpc.CallOption) (*MsgEditRouteResponse, error) {
out := new(MsgEditRouteResponse)
err := c.cc.Invoke(ctx, "/cyber.grid.v1beta1.Msg/EditRoute", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) DeleteRoute(ctx context.Context, in *MsgDeleteRoute, opts ...grpc.CallOption) (*MsgDeleteRouteResponse, error) {
out := new(MsgDeleteRouteResponse)
err := c.cc.Invoke(ctx, "/cyber.grid.v1beta1.Msg/DeleteRoute", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) EditRouteName(ctx context.Context, in *MsgEditRouteName, opts ...grpc.CallOption) (*MsgEditRouteNameResponse, error) {
out := new(MsgEditRouteNameResponse)
err := c.cc.Invoke(ctx, "/cyber.grid.v1beta1.Msg/EditRouteName", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
type MsgServer interface {
CreateRoute(context.Context, *MsgCreateRoute) (*MsgCreateRouteResponse, error)
EditRoute(context.Context, *MsgEditRoute) (*MsgEditRouteResponse, error)
DeleteRoute(context.Context, *MsgDeleteRoute) (*MsgDeleteRouteResponse, error)
EditRouteName(context.Context, *MsgEditRouteName) (*MsgEditRouteNameResponse, error)
}
type UnimplementedMsgServer struct {
}
func (*UnimplementedMsgServer) CreateRoute(ctx context.Context, req *MsgCreateRoute) (*MsgCreateRouteResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateRoute not implemented")
}
func (*UnimplementedMsgServer) EditRoute(ctx context.Context, req *MsgEditRoute) (*MsgEditRouteResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method EditRoute not implemented")
}
func (*UnimplementedMsgServer) DeleteRoute(ctx context.Context, req *MsgDeleteRoute) (*MsgDeleteRouteResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteRoute not implemented")
}
func (*UnimplementedMsgServer) EditRouteName(ctx context.Context, req *MsgEditRouteName) (*MsgEditRouteNameResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method EditRouteName not implemented")
}
func RegisterMsgServer(s grpc1.Server, srv MsgServer) {
s.RegisterService(&_Msg_serviceDesc, srv)
}
func _Msg_CreateRoute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgCreateRoute)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).CreateRoute(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/cyber.grid.v1beta1.Msg/CreateRoute",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).CreateRoute(ctx, req.(*MsgCreateRoute))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_EditRoute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgEditRoute)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).EditRoute(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/cyber.grid.v1beta1.Msg/EditRoute",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).EditRoute(ctx, req.(*MsgEditRoute))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_DeleteRoute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgDeleteRoute)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).DeleteRoute(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/cyber.grid.v1beta1.Msg/DeleteRoute",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).DeleteRoute(ctx, req.(*MsgDeleteRoute))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_EditRouteName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgEditRouteName)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).EditRouteName(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/cyber.grid.v1beta1.Msg/EditRouteName",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).EditRouteName(ctx, req.(*MsgEditRouteName))
}
return interceptor(ctx, in, info, handler)
}
var _Msg_serviceDesc = grpc.ServiceDesc{
ServiceName: "cyber.grid.v1beta1.Msg",
HandlerType: (*MsgServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CreateRoute",
Handler: _Msg_CreateRoute_Handler,
},
{
MethodName: "EditRoute",
Handler: _Msg_EditRoute_Handler,
},
{
MethodName: "DeleteRoute",
Handler: _Msg_DeleteRoute_Handler,
},
{
MethodName: "EditRouteName",
Handler: _Msg_EditRouteName_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "cyber/grid/v1beta1/tx.proto",
}
func (m *MsgCreateRoute) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgCreateRoute) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgCreateRoute) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.Name) > 0 {
i -= len(m.Name)
copy(dAtA[i:], m.Name)
i = encodeVarintTx(dAtA, i, uint64(len(m.Name)))
i--
dAtA[i] = 0x1a
}
if len(m.Destination) > 0 {
i -= len(m.Destination)
copy(dAtA[i:], m.Destination)
i = encodeVarintTx(dAtA, i, uint64(len(m.Destination)))
i--
dAtA[i] = 0x12
}
if len(m.Source) > 0 {
i -= len(m.Source)
copy(dAtA[i:], m.Source)
i = encodeVarintTx(dAtA, i, uint64(len(m.Source)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *MsgEditRoute) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgEditRoute) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgEditRoute) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
{
size, err := m.Value.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintTx(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x1a
if len(m.Destination) > 0 {
i -= len(m.Destination)
copy(dAtA[i:], m.Destination)
i = encodeVarintTx(dAtA, i, uint64(len(m.Destination)))
i--
dAtA[i] = 0x12
}
if len(m.Source) > 0 {
i -= len(m.Source)
copy(dAtA[i:], m.Source)
i = encodeVarintTx(dAtA, i, uint64(len(m.Source)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *MsgDeleteRoute) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgDeleteRoute) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgDeleteRoute) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.Destination) > 0 {
i -= len(m.Destination)
copy(dAtA[i:], m.Destination)
i = encodeVarintTx(dAtA, i, uint64(len(m.Destination)))
i--
dAtA[i] = 0x12
}
if len(m.Source) > 0 {
i -= len(m.Source)
copy(dAtA[i:], m.Source)
i = encodeVarintTx(dAtA, i, uint64(len(m.Source)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *MsgEditRouteName) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgEditRouteName) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgEditRouteName) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.Name) > 0 {
i -= len(m.Name)
copy(dAtA[i:], m.Name)
i = encodeVarintTx(dAtA, i, uint64(len(m.Name)))
i--
dAtA[i] = 0x1a
}
if len(m.Destination) > 0 {
i -= len(m.Destination)
copy(dAtA[i:], m.Destination)
i = encodeVarintTx(dAtA, i, uint64(len(m.Destination)))
i--
dAtA[i] = 0x12
}
if len(m.Source) > 0 {
i -= len(m.Source)
copy(dAtA[i:], m.Source)
i = encodeVarintTx(dAtA, i, uint64(len(m.Source)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *MsgCreateRouteResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgCreateRouteResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgCreateRouteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func (m *MsgEditRouteResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgEditRouteResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgEditRouteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func (m *MsgDeleteRouteResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgDeleteRouteResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgDeleteRouteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func (m *MsgEditRouteNameResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgEditRouteNameResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgEditRouteNameResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func encodeVarintTx(dAtA []byte, offset int, v uint64) int {
offset -= sovTx(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *MsgCreateRoute) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Source)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
l = len(m.Destination)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
l = len(m.Name)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
return n
}
func (m *MsgEditRoute) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Source)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
l = len(m.Destination)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
l = m.Value.Size()
n += 1 + l + sovTx(uint64(l))
return n
}
func (m *MsgDeleteRoute) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Source)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
l = len(m.Destination)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
return n
}
func (m *MsgEditRouteName) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Source)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
l = len(m.Destination)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
l = len(m.Name)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
return n
}
func (m *MsgCreateRouteResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func (m *MsgEditRouteResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func (m *MsgDeleteRouteResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func (m *MsgEditRouteNameResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func sovTx(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozTx(x uint64) (n int) {
return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *MsgCreateRoute) 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 ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgCreateRoute: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgCreateRoute: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Source = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Destination", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Destination = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Name = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgEditRoute) 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 ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgEditRoute: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgEditRoute: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Source = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Destination", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Destination = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgDeleteRoute) 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 ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgDeleteRoute: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgDeleteRoute: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Source = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Destination", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Destination = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgEditRouteName) 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 ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgEditRouteName: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgEditRouteName: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Source = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Destination", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Destination = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Name = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgCreateRouteResponse) 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 ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgCreateRouteResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgCreateRouteResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgEditRouteResponse) 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 ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgEditRouteResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgEditRouteResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgDeleteRouteResponse) 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 ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgDeleteRouteResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgDeleteRouteResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgEditRouteNameResponse) 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 ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgEditRouteNameResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgEditRouteNameResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipTx(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 {
if shift >= 64 {
return 0, ErrIntOverflowTx
}
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, ErrIntOverflowTx
}
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, ErrIntOverflowTx
}
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, ErrInvalidLengthTx
}
iNdEx += length
case 3:
depth++
case 4:
if depth == 0 {
return 0, ErrUnexpectedEndOfGroupTx
}
depth--
case 5:
iNdEx += 4
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
if iNdEx < 0 {
return 0, ErrInvalidLengthTx
}
if depth == 0 {
return iNdEx, nil
}
}
return 0, io.ErrUnexpectedEOF
}
var (
ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowTx = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)