// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: cosmos/benchmark/v1/benchmark.proto package benchmark import ( fmt "fmt" proto "github.com/cosmos/gogoproto/proto" 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 // Op is a message describing a benchmark operation. type Op struct { Seed uint64 `protobuf:"varint,1,opt,name=seed,proto3" json:"seed,omitempty"` Actor string `protobuf:"bytes,2,opt,name=actor,proto3" json:"actor,omitempty"` KeyLength uint64 `protobuf:"varint,3,opt,name=key_length,json=keyLength,proto3" json:"key_length,omitempty"` ValueLength uint64 `protobuf:"varint,4,opt,name=value_length,json=valueLength,proto3" json:"value_length,omitempty"` Iterations uint32 `protobuf:"varint,5,opt,name=iterations,proto3" json:"iterations,omitempty"` Delete bool `protobuf:"varint,6,opt,name=delete,proto3" json:"delete,omitempty"` Exists bool `protobuf:"varint,7,opt,name=exists,proto3" json:"exists,omitempty"` } func (m *Op) Reset() { *m = Op{} } func (m *Op) String() string { return proto.CompactTextString(m) } func (*Op) ProtoMessage() {} func (*Op) Descriptor() ([]byte, []int) { return fileDescriptor_dca1624628907df9, []int{0} } func (m *Op) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *Op) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Op.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 *Op) XXX_Merge(src proto.Message) { xxx_messageInfo_Op.Merge(m, src) } func (m *Op) XXX_Size() int { return m.Size() } func (m *Op) XXX_DiscardUnknown() { xxx_messageInfo_Op.DiscardUnknown(m) } var xxx_messageInfo_Op proto.InternalMessageInfo func (m *Op) GetSeed() uint64 { if m != nil { return m.Seed } return 0 } func (m *Op) GetActor() string { if m != nil { return m.Actor } return "" } func (m *Op) GetKeyLength() uint64 { if m != nil { return m.KeyLength } return 0 } func (m *Op) GetValueLength() uint64 { if m != nil { return m.ValueLength } return 0 } func (m *Op) GetIterations() uint32 { if m != nil { return m.Iterations } return 0 } func (m *Op) GetDelete() bool { if m != nil { return m.Delete } return false } func (m *Op) GetExists() bool { if m != nil { return m.Exists } return false } func init() { proto.RegisterType((*Op)(nil), "cosmos.benchmark.v1.Op") } func init() { proto.RegisterFile("cosmos/benchmark/v1/benchmark.proto", fileDescriptor_dca1624628907df9) } var fileDescriptor_dca1624628907df9 = []byte{ // 249 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x90, 0xb1, 0x4e, 0x84, 0x40, 0x10, 0x86, 0x99, 0x93, 0x43, 0x6f, 0xd4, 0x66, 0x35, 0x66, 0x0b, 0xdd, 0xa0, 0x36, 0x54, 0x90, 0x8b, 0x89, 0x0f, 0x60, 0x6d, 0x62, 0x42, 0x69, 0x63, 0x38, 0x98, 0x78, 0x04, 0x8e, 0xb9, 0xb0, 0x2b, 0xf1, 0xde, 0xc2, 0x47, 0xb2, 0xb4, 0xbc, 0xd2, 0xd2, 0xc0, 0x8b, 0x18, 0x77, 0xcf, 0x1c, 0xdd, 0x7c, 0x5f, 0xbe, 0x66, 0x7e, 0xbc, 0xcd, 0x59, 0xaf, 0x58, 0x27, 0x0b, 0x6a, 0xf2, 0xe5, 0x2a, 0x6b, 0xab, 0xa4, 0x9b, 0xef, 0x21, 0x5e, 0xb7, 0x6c, 0x58, 0x9c, 0xb9, 0x28, 0xde, 0xfb, 0x6e, 0x7e, 0xf3, 0x09, 0x38, 0x79, 0x5a, 0x0b, 0x81, 0xbe, 0x26, 0x2a, 0x24, 0x84, 0x10, 0xf9, 0xa9, 0xbd, 0xc5, 0x39, 0x4e, 0xb3, 0xdc, 0x70, 0x2b, 0x27, 0x21, 0x44, 0xb3, 0xd4, 0x81, 0xb8, 0x42, 0xac, 0x68, 0xf3, 0x52, 0x53, 0xf3, 0x6a, 0x96, 0xf2, 0xc0, 0xf6, 0xb3, 0x8a, 0x36, 0x8f, 0x56, 0x88, 0x6b, 0x3c, 0xe9, 0xb2, 0xfa, 0x8d, 0xfe, 0x03, 0xdf, 0x06, 0xc7, 0xd6, 0xed, 0x12, 0x85, 0x58, 0x1a, 0x6a, 0x33, 0x53, 0x72, 0xa3, 0xe5, 0x34, 0x84, 0xe8, 0x34, 0x1d, 0x19, 0x71, 0x81, 0x41, 0x41, 0x35, 0x19, 0x92, 0x41, 0x08, 0xd1, 0x51, 0xba, 0xa3, 0x3f, 0x4f, 0xef, 0xa5, 0x36, 0x5a, 0x1e, 0x3a, 0xef, 0xe8, 0xe1, 0xfe, 0xab, 0x57, 0xb0, 0xed, 0x15, 0xfc, 0xf4, 0x0a, 0x3e, 0x06, 0xe5, 0x6d, 0x07, 0xe5, 0x7d, 0x0f, 0xca, 0x7b, 0xbe, 0x74, 0x1f, 0xeb, 0xa2, 0x8a, 0x4b, 0x4e, 0x0c, 0x73, 0x3d, 0x9a, 0x68, 0x11, 0xd8, 0x59, 0xee, 0x7e, 0x03, 0x00, 0x00, 0xff, 0xff, 0x76, 0x0b, 0x27, 0x18, 0x3d, 0x01, 0x00, 0x00, } func (m *Op) 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 *Op) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Op) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Exists { i-- if m.Exists { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x38 } if m.Delete { i-- if m.Delete { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x30 } if m.Iterations != 0 { i = encodeVarintBenchmark(dAtA, i, uint64(m.Iterations)) i-- dAtA[i] = 0x28 } if m.ValueLength != 0 { i = encodeVarintBenchmark(dAtA, i, uint64(m.ValueLength)) i-- dAtA[i] = 0x20 } if m.KeyLength != 0 { i = encodeVarintBenchmark(dAtA, i, uint64(m.KeyLength)) i-- dAtA[i] = 0x18 } if len(m.Actor) > 0 { i -= len(m.Actor) copy(dAtA[i:], m.Actor) i = encodeVarintBenchmark(dAtA, i, uint64(len(m.Actor))) i-- dAtA[i] = 0x12 } if m.Seed != 0 { i = encodeVarintBenchmark(dAtA, i, uint64(m.Seed)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } func encodeVarintBenchmark(dAtA []byte, offset int, v uint64) int { offset -= sovBenchmark(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) return base } func (m *Op) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Seed != 0 { n += 1 + sovBenchmark(uint64(m.Seed)) } l = len(m.Actor) if l > 0 { n += 1 + l + sovBenchmark(uint64(l)) } if m.KeyLength != 0 { n += 1 + sovBenchmark(uint64(m.KeyLength)) } if m.ValueLength != 0 { n += 1 + sovBenchmark(uint64(m.ValueLength)) } if m.Iterations != 0 { n += 1 + sovBenchmark(uint64(m.Iterations)) } if m.Delete { n += 2 } if m.Exists { n += 2 } return n } func sovBenchmark(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } func sozBenchmark(x uint64) (n int) { return sovBenchmark(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *Op) 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 ErrIntOverflowBenchmark } 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: Op: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: Op: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Seed", wireType) } m.Seed = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowBenchmark } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Seed |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Actor", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowBenchmark } 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 ErrInvalidLengthBenchmark } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthBenchmark } if postIndex > l { return io.ErrUnexpectedEOF } m.Actor = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field KeyLength", wireType) } m.KeyLength = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowBenchmark } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.KeyLength |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 4: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field ValueLength", wireType) } m.ValueLength = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowBenchmark } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.ValueLength |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 5: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Iterations", wireType) } m.Iterations = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowBenchmark } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Iterations |= uint32(b&0x7F) << shift if b < 0x80 { break } } case 6: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Delete", wireType) } var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowBenchmark } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= int(b&0x7F) << shift if b < 0x80 { break } } m.Delete = bool(v != 0) case 7: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Exists", wireType) } var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowBenchmark } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= int(b&0x7F) << shift if b < 0x80 { break } } m.Exists = bool(v != 0) default: iNdEx = preIndex skippy, err := skipBenchmark(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBenchmark } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func skipBenchmark(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, ErrIntOverflowBenchmark } 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, ErrIntOverflowBenchmark } 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, ErrIntOverflowBenchmark } 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, ErrInvalidLengthBenchmark } iNdEx += length case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupBenchmark } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthBenchmark } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthBenchmark = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowBenchmark = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupBenchmark = fmt.Errorf("proto: unexpected end of group") )