| 3106 | return nil |
| 3107 | } |
| 3108 | func (m *ProjectionPb) Unmarshal(data []byte) error { |
| 3109 | var hasFields [1]uint64 |
| 3110 | l := len(data) |
| 3111 | iNdEx := 0 |
| 3112 | for iNdEx < l { |
| 3113 | preIndex := iNdEx |
| 3114 | var wire uint64 |
| 3115 | for shift := uint(0); ; shift += 7 { |
| 3116 | if shift >= 64 { |
| 3117 | return ErrIntOverflowSql |
| 3118 | } |
| 3119 | if iNdEx >= l { |
| 3120 | return io.ErrUnexpectedEOF |
| 3121 | } |
| 3122 | b := data[iNdEx] |
| 3123 | iNdEx++ |
| 3124 | wire |= (uint64(b) & 0x7F) << shift |
| 3125 | if b < 0x80 { |
| 3126 | break |
| 3127 | } |
| 3128 | } |
| 3129 | fieldNum := int32(wire >> 3) |
| 3130 | wireType := int(wire & 0x7) |
| 3131 | if wireType == 4 { |
| 3132 | return fmt.Errorf("proto: ProjectionPb: wiretype end group for non-group") |
| 3133 | } |
| 3134 | if fieldNum <= 0 { |
| 3135 | return fmt.Errorf("proto: ProjectionPb: illegal tag %d (wire type %d)", fieldNum, wire) |
| 3136 | } |
| 3137 | switch fieldNum { |
| 3138 | case 1: |
| 3139 | if wireType != 0 { |
| 3140 | return fmt.Errorf("proto: wrong wireType = %d for field Distinct", wireType) |
| 3141 | } |
| 3142 | var v int |
| 3143 | for shift := uint(0); ; shift += 7 { |
| 3144 | if shift >= 64 { |
| 3145 | return ErrIntOverflowSql |
| 3146 | } |
| 3147 | if iNdEx >= l { |
| 3148 | return io.ErrUnexpectedEOF |
| 3149 | } |
| 3150 | b := data[iNdEx] |
| 3151 | iNdEx++ |
| 3152 | v |= (int(b) & 0x7F) << shift |
| 3153 | if b < 0x80 { |
| 3154 | break |
| 3155 | } |
| 3156 | } |
| 3157 | m.Distinct = bool(v != 0) |
| 3158 | hasFields[0] |= uint64(0x00000001) |
| 3159 | case 2: |
| 3160 | if wireType != 0 { |
| 3161 | return fmt.Errorf("proto: wrong wireType = %d for field Final", wireType) |
| 3162 | } |
| 3163 | var v int |
| 3164 | for shift := uint(0); ; shift += 7 { |
| 3165 | if shift >= 64 { |