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"
_ "google.golang.org/genproto/googleapis/api/annotations"
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 QueryLoadRequest struct {
}
func (m *QueryLoadRequest) Reset() { *m = QueryLoadRequest{} }
func (m *QueryLoadRequest) String() string { return proto.CompactTextString(m) }
func (*QueryLoadRequest) ProtoMessage() {}
func (*QueryLoadRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_bccaa873af5af46c, []int{0}
}
func (m *QueryLoadRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryLoadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryLoadRequest.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 *QueryLoadRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryLoadRequest.Merge(m, src)
}
func (m *QueryLoadRequest) XXX_Size() int {
return m.Size()
}
func (m *QueryLoadRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryLoadRequest.DiscardUnknown(m)
}
var xxx_messageInfo_QueryLoadRequest proto.InternalMessageInfo
type QueryLoadResponse struct {
Load github_com_cosmos_cosmos_sdk_types.DecProto `protobuf:"bytes,1,opt,name=load,proto3,customtype=github.com/cosmos/cosmos-sdk/types.DecProto" json:"load"`
}
func (m *QueryLoadResponse) Reset() { *m = QueryLoadResponse{} }
func (m *QueryLoadResponse) String() string { return proto.CompactTextString(m) }
func (*QueryLoadResponse) ProtoMessage() {}
func (*QueryLoadResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_bccaa873af5af46c, []int{1}
}
func (m *QueryLoadResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryLoadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryLoadResponse.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 *QueryLoadResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryLoadResponse.Merge(m, src)
}
func (m *QueryLoadResponse) XXX_Size() int {
return m.Size()
}
func (m *QueryLoadResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryLoadResponse.DiscardUnknown(m)
}
var xxx_messageInfo_QueryLoadResponse proto.InternalMessageInfo
type QueryPriceRequest struct {
}
func (m *QueryPriceRequest) Reset() { *m = QueryPriceRequest{} }
func (m *QueryPriceRequest) String() string { return proto.CompactTextString(m) }
func (*QueryPriceRequest) ProtoMessage() {}
func (*QueryPriceRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_bccaa873af5af46c, []int{2}
}
func (m *QueryPriceRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryPriceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryPriceRequest.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 *QueryPriceRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryPriceRequest.Merge(m, src)
}
func (m *QueryPriceRequest) XXX_Size() int {
return m.Size()
}
func (m *QueryPriceRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryPriceRequest.DiscardUnknown(m)
}
var xxx_messageInfo_QueryPriceRequest proto.InternalMessageInfo
type QueryPriceResponse struct {
Price github_com_cosmos_cosmos_sdk_types.DecProto `protobuf:"bytes,1,opt,name=price,proto3,customtype=github.com/cosmos/cosmos-sdk/types.DecProto" json:"price"`
}
func (m *QueryPriceResponse) Reset() { *m = QueryPriceResponse{} }
func (m *QueryPriceResponse) String() string { return proto.CompactTextString(m) }
func (*QueryPriceResponse) ProtoMessage() {}
func (*QueryPriceResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_bccaa873af5af46c, []int{3}
}
func (m *QueryPriceResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryPriceResponse.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 *QueryPriceResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryPriceResponse.Merge(m, src)
}
func (m *QueryPriceResponse) XXX_Size() int {
return m.Size()
}
func (m *QueryPriceResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryPriceResponse.DiscardUnknown(m)
}
var xxx_messageInfo_QueryPriceResponse proto.InternalMessageInfo
type QueryTotalBandwidthRequest struct {
}
func (m *QueryTotalBandwidthRequest) Reset() { *m = QueryTotalBandwidthRequest{} }
func (m *QueryTotalBandwidthRequest) String() string { return proto.CompactTextString(m) }
func (*QueryTotalBandwidthRequest) ProtoMessage() {}
func (*QueryTotalBandwidthRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_bccaa873af5af46c, []int{4}
}
func (m *QueryTotalBandwidthRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryTotalBandwidthRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryTotalBandwidthRequest.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 *QueryTotalBandwidthRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryTotalBandwidthRequest.Merge(m, src)
}
func (m *QueryTotalBandwidthRequest) XXX_Size() int {
return m.Size()
}
func (m *QueryTotalBandwidthRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryTotalBandwidthRequest.DiscardUnknown(m)
}
var xxx_messageInfo_QueryTotalBandwidthRequest proto.InternalMessageInfo
type QueryTotalBandwidthResponse struct {
TotalBandwidth uint64 `protobuf:"varint,1,opt,name=total_bandwidth,json=totalBandwidth,proto3" json:"total_bandwidth,omitempty"`
}
func (m *QueryTotalBandwidthResponse) Reset() { *m = QueryTotalBandwidthResponse{} }
func (m *QueryTotalBandwidthResponse) String() string { return proto.CompactTextString(m) }
func (*QueryTotalBandwidthResponse) ProtoMessage() {}
func (*QueryTotalBandwidthResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_bccaa873af5af46c, []int{5}
}
func (m *QueryTotalBandwidthResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryTotalBandwidthResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryTotalBandwidthResponse.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 *QueryTotalBandwidthResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryTotalBandwidthResponse.Merge(m, src)
}
func (m *QueryTotalBandwidthResponse) XXX_Size() int {
return m.Size()
}
func (m *QueryTotalBandwidthResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryTotalBandwidthResponse.DiscardUnknown(m)
}
var xxx_messageInfo_QueryTotalBandwidthResponse proto.InternalMessageInfo
type QueryNeuronBandwidthRequest struct {
Neuron string `protobuf:"bytes,1,opt,name=neuron,proto3" json:"neuron,omitempty"`
}
func (m *QueryNeuronBandwidthRequest) Reset() { *m = QueryNeuronBandwidthRequest{} }
func (m *QueryNeuronBandwidthRequest) String() string { return proto.CompactTextString(m) }
func (*QueryNeuronBandwidthRequest) ProtoMessage() {}
func (*QueryNeuronBandwidthRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_bccaa873af5af46c, []int{6}
}
func (m *QueryNeuronBandwidthRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryNeuronBandwidthRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryNeuronBandwidthRequest.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 *QueryNeuronBandwidthRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryNeuronBandwidthRequest.Merge(m, src)
}
func (m *QueryNeuronBandwidthRequest) XXX_Size() int {
return m.Size()
}
func (m *QueryNeuronBandwidthRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryNeuronBandwidthRequest.DiscardUnknown(m)
}
var xxx_messageInfo_QueryNeuronBandwidthRequest proto.InternalMessageInfo
type QueryNeuronBandwidthResponse struct {
NeuronBandwidth NeuronBandwidth `protobuf:"bytes,1,opt,name=neuron_bandwidth,json=neuronBandwidth,proto3" json:"neuron_bandwidth"`
}
func (m *QueryNeuronBandwidthResponse) Reset() { *m = QueryNeuronBandwidthResponse{} }
func (m *QueryNeuronBandwidthResponse) String() string { return proto.CompactTextString(m) }
func (*QueryNeuronBandwidthResponse) ProtoMessage() {}
func (*QueryNeuronBandwidthResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_bccaa873af5af46c, []int{7}
}
func (m *QueryNeuronBandwidthResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryNeuronBandwidthResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryNeuronBandwidthResponse.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 *QueryNeuronBandwidthResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryNeuronBandwidthResponse.Merge(m, src)
}
func (m *QueryNeuronBandwidthResponse) XXX_Size() int {
return m.Size()
}
func (m *QueryNeuronBandwidthResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryNeuronBandwidthResponse.DiscardUnknown(m)
}
var xxx_messageInfo_QueryNeuronBandwidthResponse proto.InternalMessageInfo
type QueryParamsRequest struct {
}
func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} }
func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) }
func (*QueryParamsRequest) ProtoMessage() {}
func (*QueryParamsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_bccaa873af5af46c, []int{8}
}
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryParamsRequest.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 *QueryParamsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryParamsRequest.Merge(m, src)
}
func (m *QueryParamsRequest) XXX_Size() int {
return m.Size()
}
func (m *QueryParamsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo
type QueryParamsResponse struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} }
func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) }
func (*QueryParamsResponse) ProtoMessage() {}
func (*QueryParamsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_bccaa873af5af46c, []int{9}
}
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryParamsResponse.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 *QueryParamsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryParamsResponse.Merge(m, src)
}
func (m *QueryParamsResponse) XXX_Size() int {
return m.Size()
}
func (m *QueryParamsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo
func init() {
proto.RegisterType((*QueryLoadRequest)(nil), "cyber.bandwidth.v1beta1.QueryLoadRequest")
proto.RegisterType((*QueryLoadResponse)(nil), "cyber.bandwidth.v1beta1.QueryLoadResponse")
proto.RegisterType((*QueryPriceRequest)(nil), "cyber.bandwidth.v1beta1.QueryPriceRequest")
proto.RegisterType((*QueryPriceResponse)(nil), "cyber.bandwidth.v1beta1.QueryPriceResponse")
proto.RegisterType((*QueryTotalBandwidthRequest)(nil), "cyber.bandwidth.v1beta1.QueryTotalBandwidthRequest")
proto.RegisterType((*QueryTotalBandwidthResponse)(nil), "cyber.bandwidth.v1beta1.QueryTotalBandwidthResponse")
proto.RegisterType((*QueryNeuronBandwidthRequest)(nil), "cyber.bandwidth.v1beta1.QueryNeuronBandwidthRequest")
proto.RegisterType((*QueryNeuronBandwidthResponse)(nil), "cyber.bandwidth.v1beta1.QueryNeuronBandwidthResponse")
proto.RegisterType((*QueryParamsRequest)(nil), "cyber.bandwidth.v1beta1.QueryParamsRequest")
proto.RegisterType((*QueryParamsResponse)(nil), "cyber.bandwidth.v1beta1.QueryParamsResponse")
}
func init() {
proto.RegisterFile("cyber/bandwidth/v1beta1/query.proto", fileDescriptor_bccaa873af5af46c)
}
var fileDescriptor_bccaa873af5af46c = []byte{
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x95, 0x4d, 0x8f, 0xd2, 0x4e,
0x1c, 0xc7, 0xdb, 0x7f, 0x80, 0xe4, 0x3f, 0x9b, 0x2c, 0xeb, 0xec, 0x46, 0x4d, 0xc5, 0x62, 0xea,
0x61, 0x61, 0x71, 0x3b, 0x02, 0xbb, 0x17, 0x13, 0x2f, 0xc4, 0x78, 0x32, 0x66, 0x25, 0xeb, 0x41,
0x2f, 0xa6, 0x2d, 0x63, 0x69, 0x84, 0x4e, 0xb7, 0x33, 0xa8, 0x64, 0xa3, 0x07, 0x5f, 0x80, 0x31,
0x9a, 0xf8, 0x1a, 0xbc, 0x78, 0xf2, 0xe6, 0x2b, 0xe0, 0xb8, 0x89, 0x17, 0xe3, 0x61, 0xa3, 0xe0,
0x0b, 0x31, 0xf3, 0x50, 0x2c, 0x04, 0xa4, 0x6b, 0xe2, 0xa9, 0xf0, 0x7b, 0xfa, 0x7e, 0x98, 0xf9,
0xfe, 0x0a, 0xb8, 0xea, 0x0d, 0x5d, 0x1c, 0x23, 0xd7, 0x09, 0x3b, 0xcf, 0x82, 0x0e, 0xeb, 0xa2,
0xa7, 0x75, 0x17, 0x33, 0xa7, 0x8e, 0x8e, 0x06, 0x38, 0x1e, 0xda, 0x51, 0x4c, 0x18, 0x81, 0x17,
0x44, 0x91, 0x3d, 0x2d, 0xb2, 0x55, 0x91, 0xb1, 0xe5, 0x13, 0x9f, 0x88, 0x1a, 0xc4, 0x3f, 0xc9,
0x72, 0xa3, 0xe4, 0x13, 0xe2, 0xf7, 0x30, 0x72, 0xa2, 0x00, 0x39, 0x61, 0x48, 0x98, 0xc3, 0x02,
0x12, 0x52, 0x95, 0x35, 0x3d, 0x42, 0xfb, 0x84, 0x22, 0xd7, 0xa1, 0x78, 0xaa, 0xe6, 0x91, 0x20,
0x54, 0xf9, 0xa5, 0x44, 0x6c, 0x18, 0x61, 0x35, 0xc4, 0x82, 0x60, 0xe3, 0x1e, 0x07, 0xbc, 0x43,
0x9c, 0x4e, 0x1b, 0x1f, 0x0d, 0x30, 0x65, 0xd6, 0x31, 0x38, 0x97, 0x8a, 0xd1, 0x88, 0x84, 0x14,
0xc3, 0xc7, 0x20, 0xd7, 0x23, 0x4e, 0xe7, 0xa2, 0x7e, 0x45, 0xaf, 0xac, 0x35, 0x2e, 0xdb, 0x52,
0xdc, 0xe6, 0xe2, 0xc9, 0xaf, 0xb0, 0x6f, 0x61, 0xef, 0x80, 0x4f, 0x6d, 0x35, 0x47, 0xa7, 0x65,
0xed, 0xdb, 0x69, 0xb9, 0xe6, 0x07, 0xac, 0x3b, 0x70, 0x6d, 0x8f, 0xf4, 0x91, 0xa2, 0x95, 0x8f,
0x5d, 0xda, 0x79, 0xa2, 0x38, 0x92, 0xa6, 0xb6, 0x98, 0x6f, 0x6d, 0x2a, 0xf1, 0x83, 0x38, 0xf0,
0x70, 0x42, 0xf4, 0x12, 0xc0, 0x74, 0x50, 0x21, 0x75, 0x41, 0x3e, 0xe2, 0x81, 0x7f, 0xc8, 0x24,
0x05, 0xac, 0x12, 0x30, 0x84, 0xfe, 0x21, 0x61, 0x4e, 0xaf, 0x95, 0x1c, 0x68, 0x42, 0x77, 0x1b,
0x5c, 0x5a, 0x98, 0x55, 0x98, 0xdb, 0xa0, 0xc8, 0x78, 0xe6, 0xd1, 0xf4, 0x26, 0x04, 0x70, 0xae,
0xbd, 0xce, 0x66, 0x1a, 0xac, 0x7d, 0x35, 0xe7, 0x2e, 0x1e, 0xc4, 0x24, 0x9c, 0x97, 0x81, 0xe7,
0x41, 0x21, 0x14, 0x19, 0xd1, 0xfe, 0x7f, 0x5b, 0x7d, 0xb3, 0x86, 0xa0, 0xb4, 0xb8, 0x4d, 0xe9,
0x3f, 0x00, 0x1b, 0xb2, 0x72, 0x0e, 0x60, 0xad, 0x51, 0xb1, 0x97, 0xf8, 0xd1, 0x9e, 0x9b, 0xd5,
0xca, 0xf1, 0xc3, 0x6b, 0x17, 0xc3, 0xd9, 0xb0, 0xb5, 0x95, 0xdc, 0x8b, 0x13, 0x3b, 0x7d, 0x9a,
0x9c, 0xc7, 0x21, 0xd8, 0x9c, 0x89, 0x2a, 0x8e, 0x9b, 0xa0, 0x10, 0x89, 0x88, 0x52, 0x2f, 0x2f,
0x55, 0x97, 0x8d, 0x4a, 0x54, 0x35, 0x35, 0x3e, 0x15, 0x40, 0x5e, 0x8c, 0x85, 0xaf, 0x75, 0x90,
0xe3, 0xde, 0x84, 0xd5, 0xa5, 0x13, 0xe6, 0x3d, 0x6d, 0xec, 0x64, 0x29, 0x95, 0xa0, 0x16, 0x7a,
0xf5, 0xe5, 0xe7, 0xbb, 0xff, 0xaa, 0x70, 0x1b, 0x2d, 0xdb, 0xa0, 0xdf, 0x11, 0xee, 0x59, 0xf8,
0x56, 0x07, 0x79, 0x61, 0x4d, 0xb8, 0x42, 0x26, 0x6d, 0x6a, 0xa3, 0x96, 0xa9, 0x56, 0x31, 0x5d,
0x17, 0x4c, 0x3b, 0xb0, 0x92, 0x81, 0x49, 0x78, 0x16, 0x7e, 0xd4, 0xc1, 0xfa, 0xac, 0x23, 0x61,
0xf3, 0xcf, 0x8a, 0x0b, 0xdd, 0x6d, 0xec, 0x9d, 0xad, 0xe9, 0x2f, 0x78, 0xc5, 0x1a, 0xc0, 0xcf,
0x3a, 0x28, 0xce, 0xd9, 0x0e, 0xae, 0xd0, 0x5e, 0xbc, 0x28, 0xc6, 0xfe, 0x19, 0xbb, 0x14, 0xf2,
0x0d, 0x81, 0xbc, 0x07, 0x1b, 0x19, 0x90, 0xe5, 0x22, 0xa0, 0x63, 0xf9, 0x7c, 0x01, 0xdf, 0xeb,
0xa0, 0x20, 0x5d, 0x0b, 0x57, 0x5d, 0x6b, 0x7a, 0x55, 0x8c, 0x6b, 0xd9, 0x8a, 0x15, 0x61, 0x5d,
0x10, 0xd6, 0x60, 0x35, 0x8b, 0x09, 0xe4, 0x0e, 0xdd, 0x1f, 0xfd, 0x30, 0xb5, 0x0f, 0x63, 0x53,
0x1b, 0x8d, 0x4d, 0xfd, 0x64, 0x6c, 0xea, 0xdf, 0xc7, 0xa6, 0xfe, 0x66, 0x62, 0x6a, 0x27, 0x13,
0x53, 0xfb, 0x3a, 0x31, 0xb5, 0x87, 0xcd, 0xf4, 0xfb, 0x90, 0x8f, 0xf5, 0x48, 0xe8, 0xc7, 0x98,
0x52, 0xe4, 0x93, 0x5d, 0xa9, 0xf3, 0x3c, 0x7d, 0x59, 0xfc, 0x05, 0xe9, 0x16, 0xc4, 0xbf, 0x47,
0xf3, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1d, 0xfa, 0x2a, 0x5f, 0xf6, 0x06, 0x00, 0x00,
}
var _ context.Context
var _ grpc.ClientConn
const _ = grpc.SupportPackageIsVersion4
type QueryClient interface {
Load(ctx context.Context, in *QueryLoadRequest, opts ...grpc.CallOption) (*QueryLoadResponse, error)
Price(ctx context.Context, in *QueryPriceRequest, opts ...grpc.CallOption) (*QueryPriceResponse, error)
TotalBandwidth(ctx context.Context, in *QueryTotalBandwidthRequest, opts ...grpc.CallOption) (*QueryTotalBandwidthResponse, error)
NeuronBandwidth(ctx context.Context, in *QueryNeuronBandwidthRequest, opts ...grpc.CallOption) (*QueryNeuronBandwidthResponse, error)
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
}
type queryClient struct {
cc grpc1.ClientConn
}
func NewQueryClient(cc grpc1.ClientConn) QueryClient {
return &queryClient{cc}
}
func (c *queryClient) Load(ctx context.Context, in *QueryLoadRequest, opts ...grpc.CallOption) (*QueryLoadResponse, error) {
out := new(QueryLoadResponse)
err := c.cc.Invoke(ctx, "/cyber.bandwidth.v1beta1.Query/Load", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) Price(ctx context.Context, in *QueryPriceRequest, opts ...grpc.CallOption) (*QueryPriceResponse, error) {
out := new(QueryPriceResponse)
err := c.cc.Invoke(ctx, "/cyber.bandwidth.v1beta1.Query/Price", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) TotalBandwidth(ctx context.Context, in *QueryTotalBandwidthRequest, opts ...grpc.CallOption) (*QueryTotalBandwidthResponse, error) {
out := new(QueryTotalBandwidthResponse)
err := c.cc.Invoke(ctx, "/cyber.bandwidth.v1beta1.Query/TotalBandwidth", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) NeuronBandwidth(ctx context.Context, in *QueryNeuronBandwidthRequest, opts ...grpc.CallOption) (*QueryNeuronBandwidthResponse, error) {
out := new(QueryNeuronBandwidthResponse)
err := c.cc.Invoke(ctx, "/cyber.bandwidth.v1beta1.Query/NeuronBandwidth", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) {
out := new(QueryParamsResponse)
err := c.cc.Invoke(ctx, "/cyber.bandwidth.v1beta1.Query/Params", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
type QueryServer interface {
Load(context.Context, *QueryLoadRequest) (*QueryLoadResponse, error)
Price(context.Context, *QueryPriceRequest) (*QueryPriceResponse, error)
TotalBandwidth(context.Context, *QueryTotalBandwidthRequest) (*QueryTotalBandwidthResponse, error)
NeuronBandwidth(context.Context, *QueryNeuronBandwidthRequest) (*QueryNeuronBandwidthResponse, error)
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
}
type UnimplementedQueryServer struct {
}
func (*UnimplementedQueryServer) Load(ctx context.Context, req *QueryLoadRequest) (*QueryLoadResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Load not implemented")
}
func (*UnimplementedQueryServer) Price(ctx context.Context, req *QueryPriceRequest) (*QueryPriceResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Price not implemented")
}
func (*UnimplementedQueryServer) TotalBandwidth(ctx context.Context, req *QueryTotalBandwidthRequest) (*QueryTotalBandwidthResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method TotalBandwidth not implemented")
}
func (*UnimplementedQueryServer) NeuronBandwidth(ctx context.Context, req *QueryNeuronBandwidthRequest) (*QueryNeuronBandwidthResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method NeuronBandwidth not implemented")
}
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Params not implemented")
}
func RegisterQueryServer(s grpc1.Server, srv QueryServer) {
s.RegisterService(&_Query_serviceDesc, srv)
}
func _Query_Load_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryLoadRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).Load(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/cyber.bandwidth.v1beta1.Query/Load",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).Load(ctx, req.(*QueryLoadRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_Price_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryPriceRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).Price(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/cyber.bandwidth.v1beta1.Query/Price",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).Price(ctx, req.(*QueryPriceRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_TotalBandwidth_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryTotalBandwidthRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).TotalBandwidth(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/cyber.bandwidth.v1beta1.Query/TotalBandwidth",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).TotalBandwidth(ctx, req.(*QueryTotalBandwidthRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_NeuronBandwidth_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryNeuronBandwidthRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).NeuronBandwidth(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/cyber.bandwidth.v1beta1.Query/NeuronBandwidth",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).NeuronBandwidth(ctx, req.(*QueryNeuronBandwidthRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryParamsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).Params(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/cyber.bandwidth.v1beta1.Query/Params",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest))
}
return interceptor(ctx, in, info, handler)
}
var _Query_serviceDesc = grpc.ServiceDesc{
ServiceName: "cyber.bandwidth.v1beta1.Query",
HandlerType: (*QueryServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Load",
Handler: _Query_Load_Handler,
},
{
MethodName: "Price",
Handler: _Query_Price_Handler,
},
{
MethodName: "TotalBandwidth",
Handler: _Query_TotalBandwidth_Handler,
},
{
MethodName: "NeuronBandwidth",
Handler: _Query_NeuronBandwidth_Handler,
},
{
MethodName: "Params",
Handler: _Query_Params_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "cyber/bandwidth/v1beta1/query.proto",
}
func (m *QueryLoadRequest) 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 *QueryLoadRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryLoadRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func (m *QueryLoadResponse) 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 *QueryLoadResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryLoadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
{
size := m.Load.Size()
i -= size
if _, err := m.Load.MarshalTo(dAtA[i:]); err != nil {
return 0, err
}
i = encodeVarintQuery(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
return len(dAtA) - i, nil
}
func (m *QueryPriceRequest) 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 *QueryPriceRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryPriceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func (m *QueryPriceResponse) 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 *QueryPriceResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
{
size := m.Price.Size()
i -= size
if _, err := m.Price.MarshalTo(dAtA[i:]); err != nil {
return 0, err
}
i = encodeVarintQuery(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
return len(dAtA) - i, nil
}
func (m *QueryTotalBandwidthRequest) 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 *QueryTotalBandwidthRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryTotalBandwidthRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func (m *QueryTotalBandwidthResponse) 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 *QueryTotalBandwidthResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryTotalBandwidthResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.TotalBandwidth != 0 {
i = encodeVarintQuery(dAtA, i, uint64(m.TotalBandwidth))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func (m *QueryNeuronBandwidthRequest) 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 *QueryNeuronBandwidthRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryNeuronBandwidthRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.Neuron) > 0 {
i -= len(m.Neuron)
copy(dAtA[i:], m.Neuron)
i = encodeVarintQuery(dAtA, i, uint64(len(m.Neuron)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *QueryNeuronBandwidthResponse) 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 *QueryNeuronBandwidthResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryNeuronBandwidthResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
{
size, err := m.NeuronBandwidth.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintQuery(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
return len(dAtA) - i, nil
}
func (m *QueryParamsRequest) 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 *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func (m *QueryParamsResponse) 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 *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
{
size, err := m.Params.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintQuery(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
return len(dAtA) - i, nil
}
func encodeVarintQuery(dAtA []byte, offset int, v uint64) int {
offset -= sovQuery(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *QueryLoadRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func (m *QueryLoadResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = m.Load.Size()
n += 1 + l + sovQuery(uint64(l))
return n
}
func (m *QueryPriceRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func (m *QueryPriceResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = m.Price.Size()
n += 1 + l + sovQuery(uint64(l))
return n
}
func (m *QueryTotalBandwidthRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func (m *QueryTotalBandwidthResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.TotalBandwidth != 0 {
n += 1 + sovQuery(uint64(m.TotalBandwidth))
}
return n
}
func (m *QueryNeuronBandwidthRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Neuron)
if l > 0 {
n += 1 + l + sovQuery(uint64(l))
}
return n
}
func (m *QueryNeuronBandwidthResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = m.NeuronBandwidth.Size()
n += 1 + l + sovQuery(uint64(l))
return n
}
func (m *QueryParamsRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func (m *QueryParamsResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = m.Params.Size()
n += 1 + l + sovQuery(uint64(l))
return n
}
func sovQuery(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozQuery(x uint64) (n int) {
return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *QueryLoadRequest) 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 ErrIntOverflowQuery
}
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: QueryLoadRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryLoadRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryLoadResponse) 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 ErrIntOverflowQuery
}
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: QueryLoadResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryLoadResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Load", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthQuery
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.Load.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryPriceRequest) 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 ErrIntOverflowQuery
}
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: QueryPriceRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryPriceRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryPriceResponse) 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 ErrIntOverflowQuery
}
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: QueryPriceResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryPriceResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Price", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthQuery
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.Price.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryTotalBandwidthRequest) 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 ErrIntOverflowQuery
}
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: QueryTotalBandwidthRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryTotalBandwidthRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryTotalBandwidthResponse) 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 ErrIntOverflowQuery
}
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: QueryTotalBandwidthResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryTotalBandwidthResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field TotalBandwidth", wireType)
}
m.TotalBandwidth = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.TotalBandwidth |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryNeuronBandwidthRequest) 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 ErrIntOverflowQuery
}
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: QueryNeuronBandwidthRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryNeuronBandwidthRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Neuron", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
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 ErrInvalidLengthQuery
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Neuron = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryNeuronBandwidthResponse) 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 ErrIntOverflowQuery
}
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: QueryNeuronBandwidthResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryNeuronBandwidthResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field NeuronBandwidth", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthQuery
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.NeuronBandwidth.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryParamsRequest) 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 ErrIntOverflowQuery
}
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: QueryParamsRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryParamsResponse) 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 ErrIntOverflowQuery
}
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: QueryParamsResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthQuery
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipQuery(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, ErrIntOverflowQuery
}
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, ErrIntOverflowQuery
}
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, ErrIntOverflowQuery
}
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, ErrInvalidLengthQuery
}
iNdEx += length
case 3:
depth++
case 4:
if depth == 0 {
return 0, ErrUnexpectedEndOfGroupQuery
}
depth--
case 5:
iNdEx += 4
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
if iNdEx < 0 {
return 0, ErrInvalidLengthQuery
}
if depth == 0 {
return iNdEx, nil
}
}
return 0, io.ErrUnexpectedEOF
}
var (
ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)