space-pussy/x/graph/types/query.pb.go

// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: cyber/graph/v1beta1/query.proto

package types

import (
	context "context"
	fmt "fmt"
	_ "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"
)

// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf

// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package

type QueryGraphStatsRequest struct {
}

func (m *QueryGraphStatsRequest) Reset()         { *m = QueryGraphStatsRequest{} }
func (m *QueryGraphStatsRequest) String() string { return proto.CompactTextString(m) }
func (*QueryGraphStatsRequest) ProtoMessage()    {}
func (*QueryGraphStatsRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_1588f994db3ad35c, []int{0}
}
func (m *QueryGraphStatsRequest) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *QueryGraphStatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_QueryGraphStatsRequest.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 *QueryGraphStatsRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_QueryGraphStatsRequest.Merge(m, src)
}
func (m *QueryGraphStatsRequest) XXX_Size() int {
	return m.Size()
}
func (m *QueryGraphStatsRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_QueryGraphStatsRequest.DiscardUnknown(m)
}

var xxx_messageInfo_QueryGraphStatsRequest proto.InternalMessageInfo

type QueryGraphStatsResponse struct {
	Cyberlinks uint64 `protobuf:"varint,1,opt,name=cyberlinks,proto3" json:"cyberlinks,omitempty"`
	Particles  uint64 `protobuf:"varint,2,opt,name=particles,proto3" json:"particles,omitempty"`
}

func (m *QueryGraphStatsResponse) Reset()         { *m = QueryGraphStatsResponse{} }
func (m *QueryGraphStatsResponse) String() string { return proto.CompactTextString(m) }
func (*QueryGraphStatsResponse) ProtoMessage()    {}
func (*QueryGraphStatsResponse) Descriptor() ([]byte, []int) {
	return fileDescriptor_1588f994db3ad35c, []int{1}
}
func (m *QueryGraphStatsResponse) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *QueryGraphStatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_QueryGraphStatsResponse.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 *QueryGraphStatsResponse) XXX_Merge(src proto.Message) {
	xxx_messageInfo_QueryGraphStatsResponse.Merge(m, src)
}
func (m *QueryGraphStatsResponse) XXX_Size() int {
	return m.Size()
}
func (m *QueryGraphStatsResponse) XXX_DiscardUnknown() {
	xxx_messageInfo_QueryGraphStatsResponse.DiscardUnknown(m)
}

var xxx_messageInfo_QueryGraphStatsResponse proto.InternalMessageInfo

func (m *QueryGraphStatsResponse) GetCyberlinks() uint64 {
	if m != nil {
		return m.Cyberlinks
	}
	return 0
}

func (m *QueryGraphStatsResponse) GetParticles() uint64 {
	if m != nil {
		return m.Particles
	}
	return 0
}

func init() {
	proto.RegisterType((*QueryGraphStatsRequest)(nil), "cyber.graph.v1beta1.QueryGraphStatsRequest")
	proto.RegisterType((*QueryGraphStatsResponse)(nil), "cyber.graph.v1beta1.QueryGraphStatsResponse")
}

func init() { proto.RegisterFile("cyber/graph/v1beta1/query.proto", fileDescriptor_1588f994db3ad35c) }

var fileDescriptor_1588f994db3ad35c = []byte{
	// 293 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x90, 0x31, 0x4b, 0xc4, 0x30,
	0x14, 0xc7, 0x2f, 0x87, 0x0a, 0x66, 0x8c, 0xa2, 0xa5, 0x1c, 0xf1, 0xe8, 0x74, 0xa0, 0x26, 0x9c,
	0x7e, 0x03, 0x17, 0x71, 0xf4, 0x1c, 0x04, 0x17, 0x49, 0x4b, 0xc8, 0x15, 0x6b, 0x5e, 0x2e, 0x49,
	0xc5, 0xae, 0x7e, 0x02, 0xc5, 0xd1, 0x2f, 0xe4, 0x78, 0xe0, 0xe2, 0x28, 0xad, 0x1f, 0x44, 0x9a,
	0x1e, 0x9c, 0x60, 0x07, 0xb7, 0xe4, 0xfd, 0x7f, 0xf9, 0xe5, 0xbd, 0x87, 0x0f, 0xb2, 0x2a, 0x95,
	0x96, 0x2b, 0x2b, 0xcc, 0x9c, 0x3f, 0x4c, 0x53, 0xe9, 0xc5, 0x94, 0x2f, 0x4a, 0x69, 0x2b, 0x66,
	0x2c, 0x78, 0x20, 0x3b, 0x01, 0x60, 0x01, 0x60, 0x2b, 0x20, 0xde, 0x55, 0xa0, 0x20, 0xe4, 0xbc,
	0x3d, 0x75, 0x68, 0x3c, 0x52, 0x00, 0xaa, 0x90, 0x5c, 0x98, 0x9c, 0x0b, 0xad, 0xc1, 0x0b, 0x9f,
	0x83, 0x76, 0x5d, 0x9a, 0x44, 0x78, 0xef, 0xb2, 0xf5, 0x9e, 0xb7, 0xa6, 0x2b, 0x2f, 0xbc, 0x9b,
	0xc9, 0x45, 0x29, 0x9d, 0x4f, 0xae, 0xf1, 0xfe, 0x9f, 0xc4, 0x19, 0xd0, 0x4e, 0x12, 0x8a, 0x71,
	0xf8, 0xbf, 0xc8, 0xf5, 0x9d, 0x8b, 0xd0, 0x18, 0x4d, 0x36, 0x66, 0xbf, 0x2a, 0x64, 0x84, 0xb7,
	0x8d, 0xb0, 0x3e, 0xcf, 0x0a, 0xe9, 0xa2, 0x61, 0x88, 0xd7, 0x85, 0x93, 0x37, 0x84, 0x37, 0x83,
	0x99, 0xbc, 0x20, 0x8c, 0xd7, 0x7a, 0x72, 0xc8, 0x7a, 0xa6, 0x62, 0xfd, 0xed, 0xc5, 0x47, 0xff,
	0x83, 0xbb, 0x8e, 0x93, 0xc9, 0xd3, 0xc7, 0xf7, 0xeb, 0x30, 0x21, 0x63, 0xde, 0xb7, 0xd9, 0x70,
	0xbb, 0x75, 0xed, 0x8b, 0xb3, 0x8b, 0xf7, 0x9a, 0xa2, 0x65, 0x4d, 0xd1, 0x57, 0x4d, 0xd1, 0x73,
	0x43, 0x07, 0xcb, 0x86, 0x0e, 0x3e, 0x1b, 0x3a, 0xb8, 0xe1, 0x2a, 0xf7, 0xf3, 0x32, 0x65, 0x19,
	0xdc, 0x77, 0x96, 0x0c, 0xb4, 0xb2, 0xd2, 0x39, 0xae, 0xe0, 0xb8, 0xd3, 0x3e, 0xae, 0xc4, 0xbe,
	0x32, 0xd2, 0xa5, 0x5b, 0x61, 0xc5, 0xa7, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x5b, 0xd0, 0xea,
	0xc8, 0xce, 0x01, 0x00, 0x00,
}

// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn

// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4

// QueryClient is the client API for Query service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type QueryClient interface {
	GraphStats(ctx context.Context, in *QueryGraphStatsRequest, opts ...grpc.CallOption) (*QueryGraphStatsResponse, error)
}

type queryClient struct {
	cc grpc1.ClientConn
}

func NewQueryClient(cc grpc1.ClientConn) QueryClient {
	return &queryClient{cc}
}

func (c *queryClient) GraphStats(ctx context.Context, in *QueryGraphStatsRequest, opts ...grpc.CallOption) (*QueryGraphStatsResponse, error) {
	out := new(QueryGraphStatsResponse)
	err := c.cc.Invoke(ctx, "/cyber.graph.v1beta1.Query/GraphStats", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// QueryServer is the server API for Query service.
type QueryServer interface {
	GraphStats(context.Context, *QueryGraphStatsRequest) (*QueryGraphStatsResponse, error)
}

// UnimplementedQueryServer can be embedded to have forward compatible implementations.
type UnimplementedQueryServer struct {
}

func (*UnimplementedQueryServer) GraphStats(ctx context.Context, req *QueryGraphStatsRequest) (*QueryGraphStatsResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GraphStats not implemented")
}

func RegisterQueryServer(s grpc1.Server, srv QueryServer) {
	s.RegisterService(&_Query_serviceDesc, srv)
}

func _Query_GraphStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(QueryGraphStatsRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(QueryServer).GraphStats(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/cyber.graph.v1beta1.Query/GraphStats",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(QueryServer).GraphStats(ctx, req.(*QueryGraphStatsRequest))
	}
	return interceptor(ctx, in, info, handler)
}

var _Query_serviceDesc = grpc.ServiceDesc{
	ServiceName: "cyber.graph.v1beta1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GraphStats",
			Handler:    _Query_GraphStats_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cyber/graph/v1beta1/query.proto",
}

func (m *QueryGraphStatsRequest) 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 *QueryGraphStatsRequest) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *QueryGraphStatsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	return len(dAtA) - i, nil
}

func (m *QueryGraphStatsResponse) 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 *QueryGraphStatsResponse) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *QueryGraphStatsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	if m.Particles != 0 {
		i = encodeVarintQuery(dAtA, i, uint64(m.Particles))
		i--
		dAtA[i] = 0x10
	}
	if m.Cyberlinks != 0 {
		i = encodeVarintQuery(dAtA, i, uint64(m.Cyberlinks))
		i--
		dAtA[i] = 0x8
	}
	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 *QueryGraphStatsRequest) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	return n
}

func (m *QueryGraphStatsResponse) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.Cyberlinks != 0 {
		n += 1 + sovQuery(uint64(m.Cyberlinks))
	}
	if m.Particles != 0 {
		n += 1 + sovQuery(uint64(m.Particles))
	}
	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 *QueryGraphStatsRequest) 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: QueryGraphStatsRequest: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: QueryGraphStatsRequest: 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 *QueryGraphStatsResponse) 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: QueryGraphStatsResponse: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: QueryGraphStatsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 0 {
				return fmt.Errorf("proto: wrong wireType = %d for field Cyberlinks", wireType)
			}
			m.Cyberlinks = 0
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowQuery
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				m.Cyberlinks |= uint64(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
		case 2:
			if wireType != 0 {
				return fmt.Errorf("proto: wrong wireType = %d for field Particles", wireType)
			}
			m.Particles = 0
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowQuery
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				m.Particles |= 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 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")
)

Synonyms

space-pussy/x/grid/types/query.pb.go
go-cyber/x/resources/types/query.pb.go
go-cyber/x/graph/types/query.pb.go
go-cyber/x/dmn/types/query.pb.go
space-pussy/x/dmn/types/query.pb.go
go-cyber/x/tokenfactory/types/query.pb.go
go-cyber/x/clock/types/query.pb.go
space-pussy/x/bandwidth/types/query.pb.go
space-pussy/x/rank/types/query.pb.go
go-cyber/x/rank/types/query.pb.go
space-pussy/x/resources/types/query.pb.go
go-cyber/x/grid/types/query.pb.go
go-cyber/x/bandwidth/types/query.pb.go
go-cyber/x/liquidity/types/query.pb.go

Neighbours