github.com/matrixorigin/matrixone@v1.2.0/pkg/sql/colexec/aggexec/serialize.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: serialize.proto
     3  
     4  package aggexec
     5  
     6  import (
     7  	fmt "fmt"
     8  	io "io"
     9  	math "math"
    10  	math_bits "math/bits"
    11  
    12  	_ "github.com/gogo/protobuf/gogoproto"
    13  	proto "github.com/gogo/protobuf/proto"
    14  	github_com_matrixorigin_matrixone_pkg_container_types "github.com/matrixorigin/matrixone/pkg/container/types"
    15  )
    16  
    17  // Reference imports to suppress errors if they are not otherwise used.
    18  var _ = proto.Marshal
    19  var _ = fmt.Errorf
    20  var _ = math.Inf
    21  
    22  // This is a compile-time assertion to ensure that this generated file
    23  // is compatible with the proto package it is being compiled against.
    24  // A compilation error at this line likely means your copy of the
    25  // proto package needs to be updated.
    26  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    27  
    28  type EncodedAggExecType int32
    29  
    30  const (
    31  	EncodedAggExecType_single_fixed_fixed     EncodedAggExecType = 0
    32  	EncodedAggExecType_single_fixed_var       EncodedAggExecType = 1
    33  	EncodedAggExecType_single_var_fixed       EncodedAggExecType = 2
    34  	EncodedAggExecType_single_var_var         EncodedAggExecType = 3
    35  	EncodedAggExecType_multi_return_fixed     EncodedAggExecType = 4
    36  	EncodedAggExecType_multi_return_var       EncodedAggExecType = 5
    37  	EncodedAggExecType_special_group_concat   EncodedAggExecType = 6
    38  	EncodedAggExecType_special_count_column   EncodedAggExecType = 7
    39  	EncodedAggExecType_special_count_star     EncodedAggExecType = 8
    40  	EncodedAggExecType_special_approx_count   EncodedAggExecType = 9
    41  	EncodedAggExecType_special_median         EncodedAggExecType = 10
    42  	EncodedAggExecType_special_cluster_center EncodedAggExecType = 11
    43  	EncodedAggExecType_single_window          EncodedAggExecType = 12
    44  )
    45  
    46  var EncodedAggExecType_name = map[int32]string{
    47  	0:  "single_fixed_fixed",
    48  	1:  "single_fixed_var",
    49  	2:  "single_var_fixed",
    50  	3:  "single_var_var",
    51  	4:  "multi_return_fixed",
    52  	5:  "multi_return_var",
    53  	6:  "special_group_concat",
    54  	7:  "special_count_column",
    55  	8:  "special_count_star",
    56  	9:  "special_approx_count",
    57  	10: "special_median",
    58  	11: "special_cluster_center",
    59  	12: "single_window",
    60  }
    61  
    62  var EncodedAggExecType_value = map[string]int32{
    63  	"single_fixed_fixed":     0,
    64  	"single_fixed_var":       1,
    65  	"single_var_fixed":       2,
    66  	"single_var_var":         3,
    67  	"multi_return_fixed":     4,
    68  	"multi_return_var":       5,
    69  	"special_group_concat":   6,
    70  	"special_count_column":   7,
    71  	"special_count_star":     8,
    72  	"special_approx_count":   9,
    73  	"special_median":         10,
    74  	"special_cluster_center": 11,
    75  	"single_window":          12,
    76  }
    77  
    78  func (x EncodedAggExecType) String() string {
    79  	return proto.EnumName(EncodedAggExecType_name, int32(x))
    80  }
    81  
    82  func (EncodedAggExecType) EnumDescriptor() ([]byte, []int) {
    83  	return fileDescriptor_f1a7c2bf0e2dbbf4, []int{0}
    84  }
    85  
    86  type EncodedBasicInfo struct {
    87  	Id                   int64                                                        `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
    88  	IsDistinct           bool                                                         `protobuf:"varint,2,opt,name=is_distinct,json=isDistinct,proto3" json:"is_distinct,omitempty"`
    89  	NullEmpty            bool                                                         `protobuf:"varint,3,opt,name=null_empty,json=nullEmpty,proto3" json:"null_empty,omitempty"`
    90  	Args                 []github_com_matrixorigin_matrixone_pkg_container_types.Type `protobuf:"bytes,4,rep,name=args,proto3,customtype=github.com/matrixorigin/matrixone/pkg/container/types.Type" json:"args"`
    91  	Ret                  github_com_matrixorigin_matrixone_pkg_container_types.Type   `protobuf:"bytes,5,opt,name=ret,proto3,customtype=github.com/matrixorigin/matrixone/pkg/container/types.Type" json:"ret"`
    92  	XXX_NoUnkeyedLiteral struct{}                                                     `json:"-"`
    93  	XXX_unrecognized     []byte                                                       `json:"-"`
    94  	XXX_sizecache        int32                                                        `json:"-"`
    95  }
    96  
    97  func (m *EncodedBasicInfo) Reset()         { *m = EncodedBasicInfo{} }
    98  func (m *EncodedBasicInfo) String() string { return proto.CompactTextString(m) }
    99  func (*EncodedBasicInfo) ProtoMessage()    {}
   100  func (*EncodedBasicInfo) Descriptor() ([]byte, []int) {
   101  	return fileDescriptor_f1a7c2bf0e2dbbf4, []int{0}
   102  }
   103  func (m *EncodedBasicInfo) XXX_Unmarshal(b []byte) error {
   104  	return m.Unmarshal(b)
   105  }
   106  func (m *EncodedBasicInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   107  	if deterministic {
   108  		return xxx_messageInfo_EncodedBasicInfo.Marshal(b, m, deterministic)
   109  	} else {
   110  		b = b[:cap(b)]
   111  		n, err := m.MarshalToSizedBuffer(b)
   112  		if err != nil {
   113  			return nil, err
   114  		}
   115  		return b[:n], nil
   116  	}
   117  }
   118  func (m *EncodedBasicInfo) XXX_Merge(src proto.Message) {
   119  	xxx_messageInfo_EncodedBasicInfo.Merge(m, src)
   120  }
   121  func (m *EncodedBasicInfo) XXX_Size() int {
   122  	return m.ProtoSize()
   123  }
   124  func (m *EncodedBasicInfo) XXX_DiscardUnknown() {
   125  	xxx_messageInfo_EncodedBasicInfo.DiscardUnknown(m)
   126  }
   127  
   128  var xxx_messageInfo_EncodedBasicInfo proto.InternalMessageInfo
   129  
   130  func (m *EncodedBasicInfo) GetId() int64 {
   131  	if m != nil {
   132  		return m.Id
   133  	}
   134  	return 0
   135  }
   136  
   137  func (m *EncodedBasicInfo) GetIsDistinct() bool {
   138  	if m != nil {
   139  		return m.IsDistinct
   140  	}
   141  	return false
   142  }
   143  
   144  func (m *EncodedBasicInfo) GetNullEmpty() bool {
   145  	if m != nil {
   146  		return m.NullEmpty
   147  	}
   148  	return false
   149  }
   150  
   151  type EncodedAgg struct {
   152  	ExecType             EncodedAggExecType `protobuf:"varint,1,opt,name=exec_type,json=execType,proto3,enum=aggexec.EncodedAggExecType" json:"exec_type,omitempty"`
   153  	Info                 *EncodedBasicInfo  `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"`
   154  	Result               []byte             `protobuf:"bytes,3,opt,name=result,proto3" json:"result,omitempty"`
   155  	Groups               [][]byte           `protobuf:"bytes,4,rep,name=groups,proto3" json:"groups,omitempty"`
   156  	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
   157  	XXX_unrecognized     []byte             `json:"-"`
   158  	XXX_sizecache        int32              `json:"-"`
   159  }
   160  
   161  func (m *EncodedAgg) Reset()         { *m = EncodedAgg{} }
   162  func (m *EncodedAgg) String() string { return proto.CompactTextString(m) }
   163  func (*EncodedAgg) ProtoMessage()    {}
   164  func (*EncodedAgg) Descriptor() ([]byte, []int) {
   165  	return fileDescriptor_f1a7c2bf0e2dbbf4, []int{1}
   166  }
   167  func (m *EncodedAgg) XXX_Unmarshal(b []byte) error {
   168  	return m.Unmarshal(b)
   169  }
   170  func (m *EncodedAgg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   171  	if deterministic {
   172  		return xxx_messageInfo_EncodedAgg.Marshal(b, m, deterministic)
   173  	} else {
   174  		b = b[:cap(b)]
   175  		n, err := m.MarshalToSizedBuffer(b)
   176  		if err != nil {
   177  			return nil, err
   178  		}
   179  		return b[:n], nil
   180  	}
   181  }
   182  func (m *EncodedAgg) XXX_Merge(src proto.Message) {
   183  	xxx_messageInfo_EncodedAgg.Merge(m, src)
   184  }
   185  func (m *EncodedAgg) XXX_Size() int {
   186  	return m.ProtoSize()
   187  }
   188  func (m *EncodedAgg) XXX_DiscardUnknown() {
   189  	xxx_messageInfo_EncodedAgg.DiscardUnknown(m)
   190  }
   191  
   192  var xxx_messageInfo_EncodedAgg proto.InternalMessageInfo
   193  
   194  func (m *EncodedAgg) GetExecType() EncodedAggExecType {
   195  	if m != nil {
   196  		return m.ExecType
   197  	}
   198  	return EncodedAggExecType_single_fixed_fixed
   199  }
   200  
   201  func (m *EncodedAgg) GetInfo() *EncodedBasicInfo {
   202  	if m != nil {
   203  		return m.Info
   204  	}
   205  	return nil
   206  }
   207  
   208  func (m *EncodedAgg) GetResult() []byte {
   209  	if m != nil {
   210  		return m.Result
   211  	}
   212  	return nil
   213  }
   214  
   215  func (m *EncodedAgg) GetGroups() [][]byte {
   216  	if m != nil {
   217  		return m.Groups
   218  	}
   219  	return nil
   220  }
   221  
   222  func init() {
   223  	proto.RegisterEnum("aggexec.EncodedAggExecType", EncodedAggExecType_name, EncodedAggExecType_value)
   224  	proto.RegisterType((*EncodedBasicInfo)(nil), "aggexec.EncodedBasicInfo")
   225  	proto.RegisterType((*EncodedAgg)(nil), "aggexec.EncodedAgg")
   226  }
   227  
   228  func init() { proto.RegisterFile("serialize.proto", fileDescriptor_f1a7c2bf0e2dbbf4) }
   229  
   230  var fileDescriptor_f1a7c2bf0e2dbbf4 = []byte{
   231  	// 504 bytes of a gzipped FileDescriptorProto
   232  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x53, 0xbd, 0x8e, 0xd3, 0x4c,
   233  	0x14, 0x8d, 0x9d, 0x6c, 0x36, 0xb9, 0xc9, 0x97, 0x6f, 0x18, 0xad, 0x22, 0xb3, 0x88, 0x24, 0xda,
   234  	0x2a, 0x42, 0xda, 0x44, 0x5a, 0x1a, 0x44, 0x47, 0x44, 0x0a, 0x5a, 0x6b, 0x45, 0x6b, 0x4d, 0xc6,
   235  	0x37, 0xc3, 0x08, 0x7b, 0xc6, 0x9a, 0x19, 0xef, 0x26, 0x3c, 0x05, 0x8f, 0x40, 0xc3, 0x93, 0xd0,
   236  	0x6c, 0x49, 0x4d, 0xb1, 0x42, 0xe1, 0x45, 0x90, 0x27, 0x66, 0x49, 0xa0, 0xa5, 0xb1, 0xee, 0xf9,
   237  	0xb9, 0xc7, 0xd7, 0x47, 0x32, 0xfc, 0x6f, 0xd1, 0x48, 0x96, 0xc9, 0x0f, 0x38, 0x2b, 0x8c, 0x76,
   238  	0x9a, 0x9e, 0x32, 0x21, 0x70, 0x83, 0xfc, 0xfc, 0x52, 0x48, 0xf7, 0xae, 0x5c, 0xcd, 0xb8, 0xce,
   239  	0xe7, 0x42, 0x0b, 0x3d, 0xf7, 0xfa, 0xaa, 0x5c, 0x7b, 0xe4, 0x81, 0x9f, 0xf6, 0x7b, 0x17, 0x1f,
   240  	0x43, 0x20, 0x4b, 0xc5, 0x75, 0x8a, 0xe9, 0x82, 0x59, 0xc9, 0xdf, 0xa8, 0xb5, 0xa6, 0x03, 0x08,
   241  	0x65, 0x1a, 0x05, 0x93, 0x60, 0xda, 0x8c, 0x43, 0x99, 0xd2, 0x31, 0xf4, 0xa4, 0x4d, 0x52, 0x69,
   242  	0x9d, 0x54, 0xdc, 0x45, 0xe1, 0x24, 0x98, 0x76, 0x62, 0x90, 0xf6, 0x75, 0xcd, 0xd0, 0xa7, 0x00,
   243  	0xaa, 0xcc, 0xb2, 0x04, 0xf3, 0xc2, 0x6d, 0xa3, 0xa6, 0xd7, 0xbb, 0x15, 0xb3, 0xac, 0x08, 0xfa,
   244  	0x16, 0x5a, 0xcc, 0x08, 0x1b, 0xb5, 0x26, 0xcd, 0x69, 0x7f, 0xb1, 0xb8, 0xbb, 0x1f, 0x37, 0xbe,
   245  	0xdd, 0x8f, 0x5f, 0x1e, 0x5c, 0x9a, 0x33, 0x67, 0xe4, 0x46, 0x1b, 0x29, 0xa4, 0xfa, 0x05, 0x14,
   246  	0xce, 0x8b, 0xf7, 0x62, 0xce, 0xb5, 0x72, 0x4c, 0x2a, 0x34, 0x73, 0xb7, 0x2d, 0xd0, 0xce, 0xae,
   247  	0xb7, 0x05, 0xc6, 0x3e, 0x8f, 0x5e, 0x43, 0xd3, 0xa0, 0x8b, 0x4e, 0x26, 0xc1, 0x3f, 0x8a, 0xad,
   248  	0xe2, 0x2e, 0x3e, 0x07, 0x00, 0x75, 0x25, 0xaf, 0x84, 0xa0, 0x2f, 0xa0, 0x5b, 0x15, 0x9b, 0x54,
   249  	0x36, 0xdf, 0xc9, 0xe0, 0xea, 0xc9, 0xac, 0x6e, 0x7b, 0xf6, 0xdb, 0xb7, 0xdc, 0x20, 0xf7, 0x19,
   250  	0x1d, 0xac, 0x27, 0x7a, 0x09, 0x2d, 0xa9, 0xd6, 0xda, 0xf7, 0xd5, 0xbb, 0x7a, 0xfc, 0xe7, 0xd2,
   251  	0x43, 0xdf, 0xb1, 0xb7, 0xd1, 0x21, 0xb4, 0x0d, 0xda, 0x32, 0x73, 0xbe, 0xc0, 0x7e, 0x5c, 0xa3,
   252  	0x8a, 0x17, 0x46, 0x97, 0x45, 0xdd, 0x5f, 0x5c, 0xa3, 0x67, 0x5f, 0x42, 0xa0, 0x7f, 0xbf, 0x9f,
   253  	0x0e, 0x81, 0x5a, 0xa9, 0x44, 0x86, 0xc9, 0x5a, 0x6e, 0x30, 0xdd, 0x3f, 0x49, 0x83, 0x9e, 0x01,
   254  	0x39, 0xe2, 0x6f, 0x98, 0x21, 0xc1, 0x01, 0x7b, 0xc3, 0x4c, 0xed, 0x0d, 0x29, 0x85, 0xc1, 0x01,
   255  	0x5b, 0x39, 0x9b, 0x55, 0x6e, 0x5e, 0x66, 0x4e, 0x26, 0x06, 0x5d, 0x69, 0x54, 0xed, 0x6d, 0x55,
   256  	0x09, 0x47, 0x7c, 0xe5, 0x3e, 0xa1, 0x11, 0x9c, 0xd9, 0x02, 0xb9, 0x64, 0x59, 0xe2, 0xcf, 0x4d,
   257  	0xb8, 0x56, 0x9c, 0x39, 0xd2, 0x3e, 0x54, 0xb8, 0x2e, 0x95, 0x4b, 0xb8, 0xce, 0xca, 0x5c, 0x91,
   258  	0x53, 0x7f, 0xf9, 0x91, 0x62, 0x1d, 0x33, 0xa4, 0x73, 0xb8, 0xc1, 0x8a, 0xc2, 0xe8, 0xcd, 0x5e,
   259  	0x26, 0x5d, 0x7f, 0x67, 0xad, 0xe4, 0x98, 0x4a, 0xa6, 0x08, 0xd0, 0x73, 0x18, 0x3e, 0xa4, 0x64,
   260  	0xa5, 0x75, 0x68, 0x12, 0x8e, 0xca, 0xa1, 0x21, 0x3d, 0xfa, 0x08, 0xfe, 0xab, 0xbf, 0xeb, 0x56,
   261  	0xaa, 0x54, 0xdf, 0x92, 0xfe, 0x82, 0xdc, 0xed, 0x46, 0xc1, 0xd7, 0xdd, 0x28, 0xf8, 0xbe, 0x1b,
   262  	0x35, 0x3e, 0xfd, 0x18, 0x05, 0xab, 0xb6, 0xff, 0x33, 0x9e, 0xff, 0x0c, 0x00, 0x00, 0xff, 0xff,
   263  	0x9d, 0xdf, 0xbc, 0xeb, 0x64, 0x03, 0x00, 0x00,
   264  }
   265  
   266  func (m *EncodedBasicInfo) Marshal() (dAtA []byte, err error) {
   267  	size := m.ProtoSize()
   268  	dAtA = make([]byte, size)
   269  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   270  	if err != nil {
   271  		return nil, err
   272  	}
   273  	return dAtA[:n], nil
   274  }
   275  
   276  func (m *EncodedBasicInfo) MarshalTo(dAtA []byte) (int, error) {
   277  	size := m.ProtoSize()
   278  	return m.MarshalToSizedBuffer(dAtA[:size])
   279  }
   280  
   281  func (m *EncodedBasicInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   282  	i := len(dAtA)
   283  	_ = i
   284  	var l int
   285  	_ = l
   286  	if m.XXX_unrecognized != nil {
   287  		i -= len(m.XXX_unrecognized)
   288  		copy(dAtA[i:], m.XXX_unrecognized)
   289  	}
   290  	{
   291  		size := m.Ret.ProtoSize()
   292  		i -= size
   293  		if _, err := m.Ret.MarshalTo(dAtA[i:]); err != nil {
   294  			return 0, err
   295  		}
   296  		i = encodeVarintSerialize(dAtA, i, uint64(size))
   297  	}
   298  	i--
   299  	dAtA[i] = 0x2a
   300  	if len(m.Args) > 0 {
   301  		for iNdEx := len(m.Args) - 1; iNdEx >= 0; iNdEx-- {
   302  			{
   303  				size := m.Args[iNdEx].ProtoSize()
   304  				i -= size
   305  				if _, err := m.Args[iNdEx].MarshalTo(dAtA[i:]); err != nil {
   306  					return 0, err
   307  				}
   308  				i = encodeVarintSerialize(dAtA, i, uint64(size))
   309  			}
   310  			i--
   311  			dAtA[i] = 0x22
   312  		}
   313  	}
   314  	if m.NullEmpty {
   315  		i--
   316  		if m.NullEmpty {
   317  			dAtA[i] = 1
   318  		} else {
   319  			dAtA[i] = 0
   320  		}
   321  		i--
   322  		dAtA[i] = 0x18
   323  	}
   324  	if m.IsDistinct {
   325  		i--
   326  		if m.IsDistinct {
   327  			dAtA[i] = 1
   328  		} else {
   329  			dAtA[i] = 0
   330  		}
   331  		i--
   332  		dAtA[i] = 0x10
   333  	}
   334  	if m.Id != 0 {
   335  		i = encodeVarintSerialize(dAtA, i, uint64(m.Id))
   336  		i--
   337  		dAtA[i] = 0x8
   338  	}
   339  	return len(dAtA) - i, nil
   340  }
   341  
   342  func (m *EncodedAgg) Marshal() (dAtA []byte, err error) {
   343  	size := m.ProtoSize()
   344  	dAtA = make([]byte, size)
   345  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   346  	if err != nil {
   347  		return nil, err
   348  	}
   349  	return dAtA[:n], nil
   350  }
   351  
   352  func (m *EncodedAgg) MarshalTo(dAtA []byte) (int, error) {
   353  	size := m.ProtoSize()
   354  	return m.MarshalToSizedBuffer(dAtA[:size])
   355  }
   356  
   357  func (m *EncodedAgg) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   358  	i := len(dAtA)
   359  	_ = i
   360  	var l int
   361  	_ = l
   362  	if m.XXX_unrecognized != nil {
   363  		i -= len(m.XXX_unrecognized)
   364  		copy(dAtA[i:], m.XXX_unrecognized)
   365  	}
   366  	if len(m.Groups) > 0 {
   367  		for iNdEx := len(m.Groups) - 1; iNdEx >= 0; iNdEx-- {
   368  			i -= len(m.Groups[iNdEx])
   369  			copy(dAtA[i:], m.Groups[iNdEx])
   370  			i = encodeVarintSerialize(dAtA, i, uint64(len(m.Groups[iNdEx])))
   371  			i--
   372  			dAtA[i] = 0x22
   373  		}
   374  	}
   375  	if len(m.Result) > 0 {
   376  		i -= len(m.Result)
   377  		copy(dAtA[i:], m.Result)
   378  		i = encodeVarintSerialize(dAtA, i, uint64(len(m.Result)))
   379  		i--
   380  		dAtA[i] = 0x1a
   381  	}
   382  	if m.Info != nil {
   383  		{
   384  			size, err := m.Info.MarshalToSizedBuffer(dAtA[:i])
   385  			if err != nil {
   386  				return 0, err
   387  			}
   388  			i -= size
   389  			i = encodeVarintSerialize(dAtA, i, uint64(size))
   390  		}
   391  		i--
   392  		dAtA[i] = 0x12
   393  	}
   394  	if m.ExecType != 0 {
   395  		i = encodeVarintSerialize(dAtA, i, uint64(m.ExecType))
   396  		i--
   397  		dAtA[i] = 0x8
   398  	}
   399  	return len(dAtA) - i, nil
   400  }
   401  
   402  func encodeVarintSerialize(dAtA []byte, offset int, v uint64) int {
   403  	offset -= sovSerialize(v)
   404  	base := offset
   405  	for v >= 1<<7 {
   406  		dAtA[offset] = uint8(v&0x7f | 0x80)
   407  		v >>= 7
   408  		offset++
   409  	}
   410  	dAtA[offset] = uint8(v)
   411  	return base
   412  }
   413  func (m *EncodedBasicInfo) ProtoSize() (n int) {
   414  	if m == nil {
   415  		return 0
   416  	}
   417  	var l int
   418  	_ = l
   419  	if m.Id != 0 {
   420  		n += 1 + sovSerialize(uint64(m.Id))
   421  	}
   422  	if m.IsDistinct {
   423  		n += 2
   424  	}
   425  	if m.NullEmpty {
   426  		n += 2
   427  	}
   428  	if len(m.Args) > 0 {
   429  		for _, e := range m.Args {
   430  			l = e.ProtoSize()
   431  			n += 1 + l + sovSerialize(uint64(l))
   432  		}
   433  	}
   434  	l = m.Ret.ProtoSize()
   435  	n += 1 + l + sovSerialize(uint64(l))
   436  	if m.XXX_unrecognized != nil {
   437  		n += len(m.XXX_unrecognized)
   438  	}
   439  	return n
   440  }
   441  
   442  func (m *EncodedAgg) ProtoSize() (n int) {
   443  	if m == nil {
   444  		return 0
   445  	}
   446  	var l int
   447  	_ = l
   448  	if m.ExecType != 0 {
   449  		n += 1 + sovSerialize(uint64(m.ExecType))
   450  	}
   451  	if m.Info != nil {
   452  		l = m.Info.ProtoSize()
   453  		n += 1 + l + sovSerialize(uint64(l))
   454  	}
   455  	l = len(m.Result)
   456  	if l > 0 {
   457  		n += 1 + l + sovSerialize(uint64(l))
   458  	}
   459  	if len(m.Groups) > 0 {
   460  		for _, b := range m.Groups {
   461  			l = len(b)
   462  			n += 1 + l + sovSerialize(uint64(l))
   463  		}
   464  	}
   465  	if m.XXX_unrecognized != nil {
   466  		n += len(m.XXX_unrecognized)
   467  	}
   468  	return n
   469  }
   470  
   471  func sovSerialize(x uint64) (n int) {
   472  	return (math_bits.Len64(x|1) + 6) / 7
   473  }
   474  func sozSerialize(x uint64) (n int) {
   475  	return sovSerialize(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   476  }
   477  func (m *EncodedBasicInfo) Unmarshal(dAtA []byte) error {
   478  	l := len(dAtA)
   479  	iNdEx := 0
   480  	for iNdEx < l {
   481  		preIndex := iNdEx
   482  		var wire uint64
   483  		for shift := uint(0); ; shift += 7 {
   484  			if shift >= 64 {
   485  				return ErrIntOverflowSerialize
   486  			}
   487  			if iNdEx >= l {
   488  				return io.ErrUnexpectedEOF
   489  			}
   490  			b := dAtA[iNdEx]
   491  			iNdEx++
   492  			wire |= uint64(b&0x7F) << shift
   493  			if b < 0x80 {
   494  				break
   495  			}
   496  		}
   497  		fieldNum := int32(wire >> 3)
   498  		wireType := int(wire & 0x7)
   499  		if wireType == 4 {
   500  			return fmt.Errorf("proto: EncodedBasicInfo: wiretype end group for non-group")
   501  		}
   502  		if fieldNum <= 0 {
   503  			return fmt.Errorf("proto: EncodedBasicInfo: illegal tag %d (wire type %d)", fieldNum, wire)
   504  		}
   505  		switch fieldNum {
   506  		case 1:
   507  			if wireType != 0 {
   508  				return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
   509  			}
   510  			m.Id = 0
   511  			for shift := uint(0); ; shift += 7 {
   512  				if shift >= 64 {
   513  					return ErrIntOverflowSerialize
   514  				}
   515  				if iNdEx >= l {
   516  					return io.ErrUnexpectedEOF
   517  				}
   518  				b := dAtA[iNdEx]
   519  				iNdEx++
   520  				m.Id |= int64(b&0x7F) << shift
   521  				if b < 0x80 {
   522  					break
   523  				}
   524  			}
   525  		case 2:
   526  			if wireType != 0 {
   527  				return fmt.Errorf("proto: wrong wireType = %d for field IsDistinct", wireType)
   528  			}
   529  			var v int
   530  			for shift := uint(0); ; shift += 7 {
   531  				if shift >= 64 {
   532  					return ErrIntOverflowSerialize
   533  				}
   534  				if iNdEx >= l {
   535  					return io.ErrUnexpectedEOF
   536  				}
   537  				b := dAtA[iNdEx]
   538  				iNdEx++
   539  				v |= int(b&0x7F) << shift
   540  				if b < 0x80 {
   541  					break
   542  				}
   543  			}
   544  			m.IsDistinct = bool(v != 0)
   545  		case 3:
   546  			if wireType != 0 {
   547  				return fmt.Errorf("proto: wrong wireType = %d for field NullEmpty", wireType)
   548  			}
   549  			var v int
   550  			for shift := uint(0); ; shift += 7 {
   551  				if shift >= 64 {
   552  					return ErrIntOverflowSerialize
   553  				}
   554  				if iNdEx >= l {
   555  					return io.ErrUnexpectedEOF
   556  				}
   557  				b := dAtA[iNdEx]
   558  				iNdEx++
   559  				v |= int(b&0x7F) << shift
   560  				if b < 0x80 {
   561  					break
   562  				}
   563  			}
   564  			m.NullEmpty = bool(v != 0)
   565  		case 4:
   566  			if wireType != 2 {
   567  				return fmt.Errorf("proto: wrong wireType = %d for field Args", wireType)
   568  			}
   569  			var byteLen int
   570  			for shift := uint(0); ; shift += 7 {
   571  				if shift >= 64 {
   572  					return ErrIntOverflowSerialize
   573  				}
   574  				if iNdEx >= l {
   575  					return io.ErrUnexpectedEOF
   576  				}
   577  				b := dAtA[iNdEx]
   578  				iNdEx++
   579  				byteLen |= int(b&0x7F) << shift
   580  				if b < 0x80 {
   581  					break
   582  				}
   583  			}
   584  			if byteLen < 0 {
   585  				return ErrInvalidLengthSerialize
   586  			}
   587  			postIndex := iNdEx + byteLen
   588  			if postIndex < 0 {
   589  				return ErrInvalidLengthSerialize
   590  			}
   591  			if postIndex > l {
   592  				return io.ErrUnexpectedEOF
   593  			}
   594  			var v github_com_matrixorigin_matrixone_pkg_container_types.Type
   595  			m.Args = append(m.Args, v)
   596  			if err := m.Args[len(m.Args)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   597  				return err
   598  			}
   599  			iNdEx = postIndex
   600  		case 5:
   601  			if wireType != 2 {
   602  				return fmt.Errorf("proto: wrong wireType = %d for field Ret", wireType)
   603  			}
   604  			var byteLen int
   605  			for shift := uint(0); ; shift += 7 {
   606  				if shift >= 64 {
   607  					return ErrIntOverflowSerialize
   608  				}
   609  				if iNdEx >= l {
   610  					return io.ErrUnexpectedEOF
   611  				}
   612  				b := dAtA[iNdEx]
   613  				iNdEx++
   614  				byteLen |= int(b&0x7F) << shift
   615  				if b < 0x80 {
   616  					break
   617  				}
   618  			}
   619  			if byteLen < 0 {
   620  				return ErrInvalidLengthSerialize
   621  			}
   622  			postIndex := iNdEx + byteLen
   623  			if postIndex < 0 {
   624  				return ErrInvalidLengthSerialize
   625  			}
   626  			if postIndex > l {
   627  				return io.ErrUnexpectedEOF
   628  			}
   629  			if err := m.Ret.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   630  				return err
   631  			}
   632  			iNdEx = postIndex
   633  		default:
   634  			iNdEx = preIndex
   635  			skippy, err := skipSerialize(dAtA[iNdEx:])
   636  			if err != nil {
   637  				return err
   638  			}
   639  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   640  				return ErrInvalidLengthSerialize
   641  			}
   642  			if (iNdEx + skippy) > l {
   643  				return io.ErrUnexpectedEOF
   644  			}
   645  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
   646  			iNdEx += skippy
   647  		}
   648  	}
   649  
   650  	if iNdEx > l {
   651  		return io.ErrUnexpectedEOF
   652  	}
   653  	return nil
   654  }
   655  func (m *EncodedAgg) Unmarshal(dAtA []byte) error {
   656  	l := len(dAtA)
   657  	iNdEx := 0
   658  	for iNdEx < l {
   659  		preIndex := iNdEx
   660  		var wire uint64
   661  		for shift := uint(0); ; shift += 7 {
   662  			if shift >= 64 {
   663  				return ErrIntOverflowSerialize
   664  			}
   665  			if iNdEx >= l {
   666  				return io.ErrUnexpectedEOF
   667  			}
   668  			b := dAtA[iNdEx]
   669  			iNdEx++
   670  			wire |= uint64(b&0x7F) << shift
   671  			if b < 0x80 {
   672  				break
   673  			}
   674  		}
   675  		fieldNum := int32(wire >> 3)
   676  		wireType := int(wire & 0x7)
   677  		if wireType == 4 {
   678  			return fmt.Errorf("proto: EncodedAgg: wiretype end group for non-group")
   679  		}
   680  		if fieldNum <= 0 {
   681  			return fmt.Errorf("proto: EncodedAgg: illegal tag %d (wire type %d)", fieldNum, wire)
   682  		}
   683  		switch fieldNum {
   684  		case 1:
   685  			if wireType != 0 {
   686  				return fmt.Errorf("proto: wrong wireType = %d for field ExecType", wireType)
   687  			}
   688  			m.ExecType = 0
   689  			for shift := uint(0); ; shift += 7 {
   690  				if shift >= 64 {
   691  					return ErrIntOverflowSerialize
   692  				}
   693  				if iNdEx >= l {
   694  					return io.ErrUnexpectedEOF
   695  				}
   696  				b := dAtA[iNdEx]
   697  				iNdEx++
   698  				m.ExecType |= EncodedAggExecType(b&0x7F) << shift
   699  				if b < 0x80 {
   700  					break
   701  				}
   702  			}
   703  		case 2:
   704  			if wireType != 2 {
   705  				return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
   706  			}
   707  			var msglen int
   708  			for shift := uint(0); ; shift += 7 {
   709  				if shift >= 64 {
   710  					return ErrIntOverflowSerialize
   711  				}
   712  				if iNdEx >= l {
   713  					return io.ErrUnexpectedEOF
   714  				}
   715  				b := dAtA[iNdEx]
   716  				iNdEx++
   717  				msglen |= int(b&0x7F) << shift
   718  				if b < 0x80 {
   719  					break
   720  				}
   721  			}
   722  			if msglen < 0 {
   723  				return ErrInvalidLengthSerialize
   724  			}
   725  			postIndex := iNdEx + msglen
   726  			if postIndex < 0 {
   727  				return ErrInvalidLengthSerialize
   728  			}
   729  			if postIndex > l {
   730  				return io.ErrUnexpectedEOF
   731  			}
   732  			if m.Info == nil {
   733  				m.Info = &EncodedBasicInfo{}
   734  			}
   735  			if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   736  				return err
   737  			}
   738  			iNdEx = postIndex
   739  		case 3:
   740  			if wireType != 2 {
   741  				return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType)
   742  			}
   743  			var byteLen int
   744  			for shift := uint(0); ; shift += 7 {
   745  				if shift >= 64 {
   746  					return ErrIntOverflowSerialize
   747  				}
   748  				if iNdEx >= l {
   749  					return io.ErrUnexpectedEOF
   750  				}
   751  				b := dAtA[iNdEx]
   752  				iNdEx++
   753  				byteLen |= int(b&0x7F) << shift
   754  				if b < 0x80 {
   755  					break
   756  				}
   757  			}
   758  			if byteLen < 0 {
   759  				return ErrInvalidLengthSerialize
   760  			}
   761  			postIndex := iNdEx + byteLen
   762  			if postIndex < 0 {
   763  				return ErrInvalidLengthSerialize
   764  			}
   765  			if postIndex > l {
   766  				return io.ErrUnexpectedEOF
   767  			}
   768  			m.Result = append(m.Result[:0], dAtA[iNdEx:postIndex]...)
   769  			if m.Result == nil {
   770  				m.Result = []byte{}
   771  			}
   772  			iNdEx = postIndex
   773  		case 4:
   774  			if wireType != 2 {
   775  				return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType)
   776  			}
   777  			var byteLen int
   778  			for shift := uint(0); ; shift += 7 {
   779  				if shift >= 64 {
   780  					return ErrIntOverflowSerialize
   781  				}
   782  				if iNdEx >= l {
   783  					return io.ErrUnexpectedEOF
   784  				}
   785  				b := dAtA[iNdEx]
   786  				iNdEx++
   787  				byteLen |= int(b&0x7F) << shift
   788  				if b < 0x80 {
   789  					break
   790  				}
   791  			}
   792  			if byteLen < 0 {
   793  				return ErrInvalidLengthSerialize
   794  			}
   795  			postIndex := iNdEx + byteLen
   796  			if postIndex < 0 {
   797  				return ErrInvalidLengthSerialize
   798  			}
   799  			if postIndex > l {
   800  				return io.ErrUnexpectedEOF
   801  			}
   802  			m.Groups = append(m.Groups, make([]byte, postIndex-iNdEx))
   803  			copy(m.Groups[len(m.Groups)-1], dAtA[iNdEx:postIndex])
   804  			iNdEx = postIndex
   805  		default:
   806  			iNdEx = preIndex
   807  			skippy, err := skipSerialize(dAtA[iNdEx:])
   808  			if err != nil {
   809  				return err
   810  			}
   811  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   812  				return ErrInvalidLengthSerialize
   813  			}
   814  			if (iNdEx + skippy) > l {
   815  				return io.ErrUnexpectedEOF
   816  			}
   817  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
   818  			iNdEx += skippy
   819  		}
   820  	}
   821  
   822  	if iNdEx > l {
   823  		return io.ErrUnexpectedEOF
   824  	}
   825  	return nil
   826  }
   827  func skipSerialize(dAtA []byte) (n int, err error) {
   828  	l := len(dAtA)
   829  	iNdEx := 0
   830  	depth := 0
   831  	for iNdEx < l {
   832  		var wire uint64
   833  		for shift := uint(0); ; shift += 7 {
   834  			if shift >= 64 {
   835  				return 0, ErrIntOverflowSerialize
   836  			}
   837  			if iNdEx >= l {
   838  				return 0, io.ErrUnexpectedEOF
   839  			}
   840  			b := dAtA[iNdEx]
   841  			iNdEx++
   842  			wire |= (uint64(b) & 0x7F) << shift
   843  			if b < 0x80 {
   844  				break
   845  			}
   846  		}
   847  		wireType := int(wire & 0x7)
   848  		switch wireType {
   849  		case 0:
   850  			for shift := uint(0); ; shift += 7 {
   851  				if shift >= 64 {
   852  					return 0, ErrIntOverflowSerialize
   853  				}
   854  				if iNdEx >= l {
   855  					return 0, io.ErrUnexpectedEOF
   856  				}
   857  				iNdEx++
   858  				if dAtA[iNdEx-1] < 0x80 {
   859  					break
   860  				}
   861  			}
   862  		case 1:
   863  			iNdEx += 8
   864  		case 2:
   865  			var length int
   866  			for shift := uint(0); ; shift += 7 {
   867  				if shift >= 64 {
   868  					return 0, ErrIntOverflowSerialize
   869  				}
   870  				if iNdEx >= l {
   871  					return 0, io.ErrUnexpectedEOF
   872  				}
   873  				b := dAtA[iNdEx]
   874  				iNdEx++
   875  				length |= (int(b) & 0x7F) << shift
   876  				if b < 0x80 {
   877  					break
   878  				}
   879  			}
   880  			if length < 0 {
   881  				return 0, ErrInvalidLengthSerialize
   882  			}
   883  			iNdEx += length
   884  		case 3:
   885  			depth++
   886  		case 4:
   887  			if depth == 0 {
   888  				return 0, ErrUnexpectedEndOfGroupSerialize
   889  			}
   890  			depth--
   891  		case 5:
   892  			iNdEx += 4
   893  		default:
   894  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   895  		}
   896  		if iNdEx < 0 {
   897  			return 0, ErrInvalidLengthSerialize
   898  		}
   899  		if depth == 0 {
   900  			return iNdEx, nil
   901  		}
   902  	}
   903  	return 0, io.ErrUnexpectedEOF
   904  }
   905  
   906  var (
   907  	ErrInvalidLengthSerialize        = fmt.Errorf("proto: negative length found during unmarshaling")
   908  	ErrIntOverflowSerialize          = fmt.Errorf("proto: integer overflow")
   909  	ErrUnexpectedEndOfGroupSerialize = fmt.Errorf("proto: unexpected end of group")
   910  )